blob: 83a44a05af1d93f61e483774b01a16439bad2a57 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner49ff6612008-05-10 04:20:38 +00003# Generated by GNU Autoconf 2.60 for llvm 2.4svn.
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#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattnercf067672008-01-17 05:57:22 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if 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
Tanya Lattnercf067672008-01-17 05:57:22 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if 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
Tanya Lattnercf067672008-01-17 05:57:22 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattnercf067672008-01-17 05:57:22 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if 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
Tanya Lattnercf067672008-01-17 05:57:22 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
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
Tanya Lattnercf067672008-01-17 05:57:22 +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"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Tanya Lattnercf067672008-01-17 05:57:22 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner49ff6612008-05-10 04:20:38 +0000718PACKAGE_VERSION='2.4svn'
719PACKAGE_STRING='llvm 2.4svn'
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>
Tanya Lattnercf067672008-01-17 05:57:22 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnercf067672008-01-17 05:57:22 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# 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
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
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
Scott Michel96dcd2b2007-12-05 21:24:02 +0000848LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000849LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000889OCAMLDOC
Reid Spencera773bd52006-08-04 18:18:08 +0000890INSTALL_LTDL_TRUE
891INSTALL_LTDL_FALSE
892CONVENIENCE_LTDL_TRUE
893CONVENIENCE_LTDL_FALSE
894LIBADD_DL
895ECHO
896AR
897STRIP
898CXXCPP
899F77
900FFLAGS
901ac_ct_F77
902LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000903LLVMGCC
904LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000905USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000906HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000907HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000908ALLOCA
909MMAP_FILE
910LLVMCC1
911LLVMCC1PLUS
912LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000913LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000914LLVMGCC_VERSION
915LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000916LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000917SHLIBEXT
918LLVM_PREFIX
919LLVM_BINDIR
920LLVM_LIBDIR
921LLVM_DATADIR
922LLVM_DOCSDIR
923LLVM_ETCDIR
924LLVM_INCLUDEDIR
925LLVM_INFODIR
926LLVM_MANDIR
927LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000928BINDINGS_TO_BUILD
929ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000930OCAML_LIBDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000931LIBOBJS
932LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000933ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
945YACC
946YFLAGS
947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000952projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000953projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000954projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000960projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000961projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000988# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000997includedir='${prefix}/include'
998oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001010ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001015 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001016 ac_prev=
1017 continue
1018 fi
1019
Reid Spencera773bd52006-08-04 18:18:08 +00001020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
Reid Spencera773bd52006-08-04 18:18:08 +00001027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001052 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001054 datadir=$ac_optarg ;;
1055
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
John Criswell7a73b802003-06-30 21:59:07 +00001063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001070 eval enable_$ac_feature=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001089 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
Reid Spencera773bd52006-08-04 18:18:08 +00001116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
John Criswell7a73b802003-06-30 21:59:07 +00001122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
Reid Spencera773bd52006-08-04 18:18:08 +00001146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
John Criswell7a73b802003-06-30 21:59:07 +00001151 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
Reid Spencera773bd52006-08-04 18:18:08 +00001220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
John Criswell7a73b802003-06-30 21:59:07 +00001230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001285 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001286 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001287
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001294 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001295 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001326 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1344fi
1345
Reid Spencera773bd52006-08-04 18:18:08 +00001346# Be sure to have absolute directory names.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001351do
Reid Spencera773bd52006-08-04 18:18:08 +00001352 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001353 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001356 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
Reid Spencera773bd52006-08-04 18:18:08 +00001385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1393
1394
John Criswell7a73b802003-06-30 21:59:07 +00001395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001404echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001423 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
Reid Spencera773bd52006-08-04 18:18:08 +00001429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001432 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001433fi
Reid Spencera773bd52006-08-04 18:18:08 +00001434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001437 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001463\`configure' configures llvm 2.4svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
John Criswell7a73b802003-06-30 21:59:07 +00001483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528 case $ac_init_help in
Tanya Lattner49ff6612008-05-10 04:20:38 +00001529 short | recursive ) echo "Configuration of llvm 2.4svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001530 esac
1531 cat <<\_ACEOF
1532
1533Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001536 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001537 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001538 --enable-expensive-checks
1539
Reid Spencer8b2e1412006-11-17 03:32:33 +00001540 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001542 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001543 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001544 --enable-pic Build LLVM with Position Independent Code (default
1545 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001546 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001547 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001548 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1549 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001550 --enable-bindings Build specific language bindings:
1551 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001552 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001553 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001554 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001555 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001556 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001557 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001558 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001559 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001560 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001561
1562Optional Packages:
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001565 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1566 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001567 --with-llvmgcc Specify location of llvm-gcc driver (default
1568 searches PATH)
1569 --with-llvmgxx Specify location of llvm-g++ driver (default
1570 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001571 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001572 --with-ocaml-libdir Specify install location for ocaml bindings (default
1573 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001574 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001578 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001579 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001582 CC C compiler command
1583 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001588 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001591 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1592 the first program found out of: `bison -y', `byacc', `yacc'.
1593 YFLAGS The list of arguments that will be passed by default to $YACC.
1594 This script will default YFLAGS to the empty string to avoid a
1595 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001596 CXXCPP C++ preprocessor
1597 F77 Fortran 77 compiler command
1598 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
1603Report bugs to <llvmbugs@cs.uiuc.edu>.
1604_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001605ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001611 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001612 ac_builddir=.
1613
Reid Spencera773bd52006-08-04 18:18:08 +00001614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
John Criswell7a73b802003-06-30 21:59:07 +00001617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001629
1630case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001631 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001632 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001636 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001643esac
Reid Spencera773bd52006-08-04 18:18:08 +00001644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001645
Reid Spencera773bd52006-08-04 18:18:08 +00001646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001654 else
1655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001658 done
1659fi
1660
Reid Spencera773bd52006-08-04 18:18:08 +00001661test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001662if $ac_init_version; then
1663 cat <<\_ACEOF
Tanya Lattner49ff6612008-05-10 04:20:38 +00001664llvm configure 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +00001665generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001666
Reid Spencera773bd52006-08-04 18:18:08 +00001667Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16682002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001671
Tanya Lattnercf067672008-01-17 05:57:22 +00001672Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001673_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001674 exit
John Criswell7a73b802003-06-30 21:59:07 +00001675fi
Reid Spencera773bd52006-08-04 18:18:08 +00001676cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001677This file contains any messages produced by compilers while
1678running configure, to aid debugging if configure makes a mistake.
1679
Tanya Lattner49ff6612008-05-10 04:20:38 +00001680It was created by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +00001681generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001682
1683 $ $0 $@
1684
1685_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001686exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001687{
1688cat <<_ASUNAME
1689## --------- ##
1690## Platform. ##
1691## --------- ##
1692
1693hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697uname -v = `(uname -v) 2>/dev/null || echo unknown`
1698
1699/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1701
1702/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1703/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1704/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001705/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001706/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1707/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1708/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1709
1710_ASUNAME
1711
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 echo "PATH: $as_dir"
1718done
Reid Spencera773bd52006-08-04 18:18:08 +00001719IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001720
1721} >&5
1722
1723cat >&5 <<_ACEOF
1724
1725
1726## ----------- ##
1727## Core tests. ##
1728## ----------- ##
1729
1730_ACEOF
1731
1732
1733# Keep a trace of the command line.
1734# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001735# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001736# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001737# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001738ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001739ac_configure_args0=
1740ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001741ac_must_keep_next=false
1742for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001743do
John Criswell0c38eaf2003-09-10 15:17:25 +00001744 for ac_arg
1745 do
1746 case $ac_arg in
1747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749 | -silent | --silent | --silen | --sile | --sil)
1750 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001751 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753 esac
1754 case $ac_pass in
1755 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756 2)
1757 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001759 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001761 case $ac_arg in
1762 *=* | --config-cache | -C | -disable-* | --disable-* \
1763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765 | -with-* | --with-* | -without-* | --without-* | --x)
1766 case "$ac_configure_args0 " in
1767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768 esac
1769 ;;
1770 -* ) ac_must_keep_next=true ;;
1771 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001773 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001774 ;;
1775 esac
1776 done
John Criswell7a73b802003-06-30 21:59:07 +00001777done
John Criswell0c38eaf2003-09-10 15:17:25 +00001778$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779$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 +00001780
1781# When interrupted or exit'd, cleanup temporary files, and complete
1782# config.log. We remove comments because anyway the quotes in there
1783# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001784# WARNING: Use '\'' to represent an apostrophe within the trap.
1785# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001786trap 'exit_status=$?
1787 # Save into config.log some information that might help in debugging.
1788 {
1789 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001790
John Criswell7a73b802003-06-30 21:59:07 +00001791 cat <<\_ASBOX
1792## ---------------- ##
1793## Cache variables. ##
1794## ---------------- ##
1795_ASBOX
1796 echo
1797 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001798(
1799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800 eval ac_val=\$$ac_var
1801 case $ac_val in #(
1802 *${as_nl}*)
1803 case $ac_var in #(
1804 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806 esac
1807 case $ac_var in #(
1808 _ | IFS | as_nl) ;; #(
1809 *) $as_unset $ac_var ;;
1810 esac ;;
1811 esac
1812 done
John Criswell7a73b802003-06-30 21:59:07 +00001813 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001816 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001817 "s/'\''/'\''\\\\'\'''\''/g;
1818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001820 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001823 esac |
1824 sort
1825)
John Criswell7a73b802003-06-30 21:59:07 +00001826 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001827
1828 cat <<\_ASBOX
1829## ----------------- ##
1830## Output variables. ##
1831## ----------------- ##
1832_ASBOX
1833 echo
1834 for ac_var in $ac_subst_vars
1835 do
Reid Spencera773bd52006-08-04 18:18:08 +00001836 eval ac_val=\$$ac_var
1837 case $ac_val in
1838 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 esac
1840 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001841 done | sort
1842 echo
1843
1844 if test -n "$ac_subst_files"; then
1845 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001846## ------------------- ##
1847## File substitutions. ##
1848## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001849_ASBOX
1850 echo
1851 for ac_var in $ac_subst_files
1852 do
Reid Spencera773bd52006-08-04 18:18:08 +00001853 eval ac_val=\$$ac_var
1854 case $ac_val in
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856 esac
1857 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001858 done | sort
1859 echo
1860 fi
1861
John Criswell7a73b802003-06-30 21:59:07 +00001862 if test -s confdefs.h; then
1863 cat <<\_ASBOX
1864## ----------- ##
1865## confdefs.h. ##
1866## ----------- ##
1867_ASBOX
1868 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001869 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001870 echo
1871 fi
1872 test "$ac_signal" != 0 &&
1873 echo "$as_me: caught signal $ac_signal"
1874 echo "$as_me: exit $exit_status"
1875 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001876 rm -f core *.core core.conftest.* &&
1877 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001878 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001879' 0
John Criswell7a73b802003-06-30 21:59:07 +00001880for ac_signal in 1 2 13 15; do
1881 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882done
1883ac_signal=0
1884
1885# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001886rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001887
1888# Predefined preprocessor variables.
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_NAME "$PACKAGE_NAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_VERSION "$PACKAGE_VERSION"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_STRING "$PACKAGE_STRING"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912_ACEOF
1913
1914
1915# Let the site file select an alternate cache file if it wants to.
1916# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001917if test -n "$CONFIG_SITE"; then
1918 set x "$CONFIG_SITE"
1919elif test "x$prefix" != xNONE; then
1920 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921else
1922 set x "$ac_default_prefix/share/config.site" \
1923 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001924fi
Reid Spencera773bd52006-08-04 18:18:08 +00001925shift
1926for ac_site_file
1927do
John Criswell7a73b802003-06-30 21:59:07 +00001928 if test -r "$ac_site_file"; then
1929 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930echo "$as_me: loading site script $ac_site_file" >&6;}
1931 sed 's/^/| /' "$ac_site_file" >&5
1932 . "$ac_site_file"
1933 fi
1934done
1935
1936if test -r "$cache_file"; then
1937 # Some versions of bash will fail to source /dev/null (special
1938 # files actually), so we avoid doing that.
1939 if test -f "$cache_file"; then
1940 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941echo "$as_me: loading cache $cache_file" >&6;}
1942 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001943 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001945 esac
1946 fi
1947else
1948 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949echo "$as_me: creating cache $cache_file" >&6;}
1950 >$cache_file
1951fi
1952
1953# Check that the precious variables saved in the cache have kept the same
1954# value.
1955ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001956for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001961 case $ac_old_set,$ac_new_set in
1962 set,)
1963 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,set)
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,);;
1971 *)
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001980 fi;;
1981 esac
1982 # Pass precious variables to config.status.
1983 if test "$ac_new_set" = set; then
1984 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001985 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001986 *) ac_arg=$ac_var=$ac_new_val ;;
1987 esac
1988 case " $ac_configure_args " in
1989 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1990 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991 esac
1992 fi
1993done
1994if $ac_cache_corrupted; then
1995 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999 { (exit 1); exit 1; }; }
2000fi
2001
Reid Spencera773bd52006-08-04 18:18:08 +00002002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
John Criswell7a73b802003-06-30 21:59:07 +00002026ac_ext=c
2027ac_cpp='$CPP $CPPFLAGS'
2028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031
2032
2033
Tanya Lattnercf067672008-01-17 05:57:22 +00002034LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035
2036
2037
2038
2039
2040
2041
John Criswell7a73b802003-06-30 21:59:07 +00002042ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002043for ac_dir in autoconf "$srcdir"/autoconf; do
2044 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install-sh -c"
2047 break
Reid Spencera773bd52006-08-04 18:18:08 +00002048 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install.sh -c"
2051 break
Reid Spencera773bd52006-08-04 18:18:08 +00002052 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/shtool install -c"
2055 break
2056 fi
2057done
2058if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002059 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2060echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002061 { (exit 1); exit 1; }; }
2062fi
Reid Spencera773bd52006-08-04 18:18:08 +00002063
2064# These three variables are undocumented and unsupported,
2065# and are intended to be withdrawn in a future Autoconf release.
2066# They can cause serious problems if a builder's source tree is in a directory
2067# whose full name contains unusual characters.
2068ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2069ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2070ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2071
John Criswell7a73b802003-06-30 21:59:07 +00002072
John Criswell392aaa32003-07-22 19:18:09 +00002073
Reid Spencer2706f8c2004-09-19 23:53:36 +00002074if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002075 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2076 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002077echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2078 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 fi
John Criswell93e1c722003-09-15 17:04:06 +00002080fi
2081
John Criswell33a911a2003-11-25 20:36:46 +00002082for i in `ls ${srcdir}/projects`
2083do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002084 if test -d ${srcdir}/projects/${i} ; then
2085 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002086 CVS) ;;
2087 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002090 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002092 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002093 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002095 test-suite) subdirs="$subdirs projects/test-suite"
2096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002106 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002107 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002110 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002112 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002114 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 esac
John Criswell33a911a2003-11-25 20:36:46 +00002116 fi
2117done
John Criswell559a6c12003-09-30 16:31:48 +00002118
John Criswell7a73b802003-06-30 21:59:07 +00002119
2120# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002121$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002124 { (exit 1); exit 1; }; }
2125
Reid Spencera773bd52006-08-04 18:18:08 +00002126{ echo "$as_me:$LINENO: checking build system type" >&5
2127echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002128if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
Reid Spencera773bd52006-08-04 18:18:08 +00002131 ac_build_alias=$build_alias
2132test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002138ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002141 { (exit 1); exit 1; }; }
2142
2143fi
Reid Spencera773bd52006-08-04 18:18:08 +00002144{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145echo "${ECHO_T}$ac_cv_build" >&6; }
2146case $ac_cv_build in
2147*-*-*) ;;
2148*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2151esac
John Criswell7a73b802003-06-30 21:59:07 +00002152build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002153ac_save_IFS=$IFS; IFS='-'
2154set x $ac_cv_build
2155shift
2156build_cpu=$1
2157build_vendor=$2
2158shift; shift
2159# Remember, the first character of IFS is used to create $*,
2160# except with old shells:
2161build_os=$*
2162IFS=$ac_save_IFS
2163case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002164
2165
Reid Spencera773bd52006-08-04 18:18:08 +00002166{ echo "$as_me:$LINENO: checking host system type" >&5
2167echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002168if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
Reid Spencera773bd52006-08-04 18:18:08 +00002171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2173else
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002177 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002178fi
John Criswell7a73b802003-06-30 21:59:07 +00002179
2180fi
Reid Spencera773bd52006-08-04 18:18:08 +00002181{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182echo "${ECHO_T}$ac_cv_host" >&6; }
2183case $ac_cv_host in
2184*-*-*) ;;
2185*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2188esac
John Criswell7a73b802003-06-30 21:59:07 +00002189host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002190ac_save_IFS=$IFS; IFS='-'
2191set x $ac_cv_host
2192shift
2193host_cpu=$1
2194host_vendor=$2
2195shift; shift
2196# Remember, the first character of IFS is used to create $*,
2197# except with old shells:
2198host_os=$*
2199IFS=$ac_save_IFS
2200case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002201
2202
Reid Spencera773bd52006-08-04 18:18:08 +00002203{ echo "$as_me:$LINENO: checking target system type" >&5
2204echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002205if test "${ac_cv_target+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
Reid Spencera773bd52006-08-04 18:18:08 +00002208 if test "x$target_alias" = x; then
2209 ac_cv_target=$ac_cv_host
2210else
2211 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002215fi
John Criswell7a73b802003-06-30 21:59:07 +00002216
2217fi
Reid Spencera773bd52006-08-04 18:18:08 +00002218{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219echo "${ECHO_T}$ac_cv_target" >&6; }
2220case $ac_cv_target in
2221*-*-*) ;;
2222*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223echo "$as_me: error: invalid value of canonical target" >&2;}
2224 { (exit 1); exit 1; }; };;
2225esac
John Criswell7a73b802003-06-30 21:59:07 +00002226target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002227ac_save_IFS=$IFS; IFS='-'
2228set x $ac_cv_target
2229shift
2230target_cpu=$1
2231target_vendor=$2
2232shift; shift
2233# Remember, the first character of IFS is used to create $*,
2234# except with old shells:
2235target_os=$*
2236IFS=$ac_save_IFS
2237case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002238
2239
2240# The aliases save the names the user supplied, while $host etc.
2241# will get canonicalized.
2242test -n "$target_alias" &&
2243 test "$program_prefix$program_suffix$program_transform_name" = \
2244 NONENONEs,x,x, &&
2245 program_prefix=${target_alias}-
2246
Reid Spencera773bd52006-08-04 18:18:08 +00002247{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002252 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="AIX"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002258 *-*-irix*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="IRIX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Cygwin"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002270 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Darwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="FreeBSD"
2277 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002278 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002281 llvm_cv_os_type="OpenBSD"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002283 *-*-netbsd*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="NetBSD"
2287 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002288 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002291 llvm_cv_os_type="HP-UX"
2292 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="Interix"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 llvm_cv_os_type="Linux"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,-z,allextract"
2305 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="SunOS"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311 llvm_cv_os_type="Win32"
2312 llvm_cv_platform_type="Win32" ;;
2313 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 llvm_cv_os_type="MingW"
2317 llvm_cv_platform_type="Win32" ;;
2318 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option=""
2320 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 llvm_cv_os_type="Unknown"
2322 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002323esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002324fi
Reid Spencera773bd52006-08-04 18:18:08 +00002325{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2326echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002327
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328if test "$llvm_cv_os_type" = "Unknown" ; then
2329 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2330echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002331 { (exit 1); exit 1; }; }
2332fi
2333
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002335
2336
Reid Spencera773bd52006-08-04 18:18:08 +00002337LINKALL=$llvm_cv_link_all_option
2338
2339NOLINKALL=$llvm_cv_no_link_all_option
2340
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342case $llvm_cv_platform_type in
2343 Unix)
2344
2345cat >>confdefs.h <<\_ACEOF
2346#define LLVM_ON_UNIX 1
2347_ACEOF
2348
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002349 LLVM_ON_UNIX=1
2350
2351 LLVM_ON_WIN32=0
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353 ;;
2354 Win32)
2355
2356cat >>confdefs.h <<\_ACEOF
2357#define LLVM_ON_WIN32 1
2358_ACEOF
2359
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002360 LLVM_ON_UNIX=0
2361
2362 LLVM_ON_WIN32=1
2363
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364 ;;
2365esac
2366
Reid Spencera773bd52006-08-04 18:18:08 +00002367{ echo "$as_me:$LINENO: checking target architecture" >&5
2368echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002369if test "${llvm_cv_target_arch+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002373 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002374 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002375 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2376 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002377 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002378 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002379 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002380 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002381 pic16-*) llvm_cv_target_arch="PIC16" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002382 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002383esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384fi
Reid Spencera773bd52006-08-04 18:18:08 +00002385{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2386echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388if test "$llvm_cv_target_arch" = "Unknown" ; then
2389 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2390echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2391fi
John Criswell76595452003-07-01 22:07:39 +00002392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002394
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002395
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396ac_ext=c
2397ac_cpp='$CPP $CPPFLAGS'
2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002401if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406if test "${ac_cv_prog_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002418 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 +00002419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423done
2424done
Reid Spencera773bd52006-08-04 18:18:08 +00002425IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002431 { echo "$as_me:$LINENO: result: $CC" >&5
2432echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433else
Reid Spencera773bd52006-08-04 18:18:08 +00002434 { echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436fi
2437
Reid Spencera773bd52006-08-04 18:18:08 +00002438
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439fi
2440if test -z "$ac_cv_prog_CC"; then
2441 ac_ct_CC=$CC
2442 # Extract the first word of "gcc", so it can be a program name with args.
2443set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002458 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 +00002459 ac_cv_prog_ac_ct_CC="gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463done
2464done
Reid Spencera773bd52006-08-04 18:18:08 +00002465IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466
2467fi
2468fi
2469ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002471 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2472echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473else
Reid Spencera773bd52006-08-04 18:18:08 +00002474 { echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476fi
2477
Reid Spencera773bd52006-08-04 18:18:08 +00002478 if test "x$ac_ct_CC" = x; then
2479 CC=""
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482yes:)
2483{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2484whose name does not start with the host triplet. If you think this
2485configuration is useful to you, please write to autoconf@gnu.org." >&5
2486echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2487whose name does not start with the host triplet. If you think this
2488configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2489ac_tool_warned=yes ;;
2490esac
2491 CC=$ac_ct_CC
2492 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493else
2494 CC="$ac_cv_prog_CC"
2495fi
2496
2497if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002498 if test -n "$ac_tool_prefix"; then
2499 # 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 +00002500set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2508else
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002515 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 +00002516 ac_cv_prog_CC="${ac_tool_prefix}cc"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520done
2521done
Reid Spencera773bd52006-08-04 18:18:08 +00002522IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523
2524fi
2525fi
2526CC=$ac_cv_prog_CC
2527if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002528 { echo "$as_me:$LINENO: result: $CC" >&5
2529echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530else
Reid Spencera773bd52006-08-04 18:18:08 +00002531 { echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533fi
2534
Reid Spencera773bd52006-08-04 18:18:08 +00002535
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537fi
2538if test -z "$CC"; then
2539 # Extract the first word of "cc", so it can be a program name with args.
2540set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548else
2549 ac_prog_rejected=no
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002556 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 +00002557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2558 ac_prog_rejected=yes
2559 continue
2560 fi
2561 ac_cv_prog_CC="cc"
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565done
2566done
Reid Spencera773bd52006-08-04 18:18:08 +00002567IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568
2569if test $ac_prog_rejected = yes; then
2570 # We found a bogon in the path, so make sure we never use it.
2571 set dummy $ac_cv_prog_CC
2572 shift
2573 if test $# != 0; then
2574 # We chose a different compiler from the bogus one.
2575 # However, it has the same basename, so the bogon will be chosen
2576 # first if we set CC to just the basename; use the full file name.
2577 shift
2578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2579 fi
2580fi
2581fi
2582fi
2583CC=$ac_cv_prog_CC
2584if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002585 { echo "$as_me:$LINENO: result: $CC" >&5
2586echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587else
Reid Spencera773bd52006-08-04 18:18:08 +00002588 { echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590fi
2591
Reid Spencera773bd52006-08-04 18:18:08 +00002592
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593fi
2594if test -z "$CC"; then
2595 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002596 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002597 do
2598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605 if test -n "$CC"; then
2606 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619done
2620done
Reid Spencera773bd52006-08-04 18:18:08 +00002621IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002622
2623fi
2624fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625CC=$ac_cv_prog_CC
2626if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002627 { echo "$as_me:$LINENO: result: $CC" >&5
2628echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002629else
Reid Spencera773bd52006-08-04 18:18:08 +00002630 { echo "$as_me:$LINENO: result: no" >&5
2631echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002632fi
2633
Reid Spencera773bd52006-08-04 18:18:08 +00002634
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002636 done
2637fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638if test -z "$CC"; then
2639 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002640 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002641do
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649 if test -n "$ac_ct_CC"; then
2650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002658 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 +00002659 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663done
2664done
Reid Spencera773bd52006-08-04 18:18:08 +00002665IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002666
2667fi
2668fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002671 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2672echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002673else
Reid Spencera773bd52006-08-04 18:18:08 +00002674 { echo "$as_me:$LINENO: result: no" >&5
2675echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002676fi
2677
Reid Spencera773bd52006-08-04 18:18:08 +00002678
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002680done
John Criswell7a73b802003-06-30 21:59:07 +00002681
Reid Spencera773bd52006-08-04 18:18:08 +00002682 if test "x$ac_ct_CC" = x; then
2683 CC=""
2684 else
2685 case $cross_compiling:$ac_tool_warned in
2686yes:)
2687{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2688whose name does not start with the host triplet. If you think this
2689configuration is useful to you, please write to autoconf@gnu.org." >&5
2690echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2691whose name does not start with the host triplet. If you think this
2692configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2693ac_tool_warned=yes ;;
2694esac
2695 CC=$ac_ct_CC
2696 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697fi
2698
John Criswell7a73b802003-06-30 21:59:07 +00002699fi
2700
2701
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002702test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2703See \`config.log' for more details." >&5
2704echo "$as_me: error: no acceptable C compiler found in \$PATH
2705See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2707
John Criswell7a73b802003-06-30 21:59:07 +00002708# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002709echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002710ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002711{ (ac_try="$ac_compiler --version >&5"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002721{ (ac_try="$ac_compiler -v >&5"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002731{ (ac_try="$ac_compiler -V >&5"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2741
2742cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002743/* confdefs.h. */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002748
John Criswell7a73b802003-06-30 21:59:07 +00002749int
2750main ()
2751{
2752
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002758ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002759# Try to create an executable without -o first, disregard a.out.
2760# It will help us diagnose broken compilers, and finding out an intuition
2761# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002762{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2763echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002764ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002765#
2766# List of possible output files, starting from the most likely.
2767# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2768# only as a last resort. b.out is created by i960 compilers.
2769ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2770#
2771# The IRIX 6 linker writes into existing files which may not be
2772# executable, retaining their permissions. Remove them first so a
2773# subsequent execution test works.
2774ac_rmfiles=
2775for ac_file in $ac_files
2776do
2777 case $ac_file in
2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2779 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780 esac
2781done
2782rm -f $ac_rmfiles
2783
2784if { (ac_try="$ac_link_default"
2785case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788esac
2789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002794 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2795# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2796# in a Makefile. We should not override ac_cv_exeext if it was cached,
2797# so that the user can short-circuit this test for compilers unknown to
2798# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002799for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002800do
2801 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002802 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002804 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002805 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002806 # We found the default executable, but exeext='' is most
2807 # certainly right.
2808 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002809 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002810 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2811 then :; else
2812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2813 fi
2814 # We set ac_cv_exeext here because the later test for it is not
2815 # safe: cross compilers may not add the suffix if given an `-o'
2816 # argument, so we may need to know it at that point already.
2817 # Even if this section looks crufty: it has the advantage of
2818 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002819 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002820 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002821 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002822 esac
2823done
Reid Spencera773bd52006-08-04 18:18:08 +00002824test "$ac_cv_exeext" = no && ac_cv_exeext=
2825
John Criswell7a73b802003-06-30 21:59:07 +00002826else
2827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002828sed 's/^/| /' conftest.$ac_ext >&5
2829
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002830{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002831See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002832echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002833See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002834 { (exit 77); exit 77; }; }
2835fi
2836
2837ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002838{ echo "$as_me:$LINENO: result: $ac_file" >&5
2839echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002840
Reid Spencera773bd52006-08-04 18:18:08 +00002841# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002842# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002843{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2844echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002845# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2846# If not cross compiling, check that we can run a simple program.
2847if test "$cross_compiling" != yes; then
2848 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002849 { (case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2858 cross_compiling=no
2859 else
2860 if test "$cross_compiling" = maybe; then
2861 cross_compiling=yes
2862 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002864If you meant to cross compile, use \`--host'.
2865See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002866echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002867If you meant to cross compile, use \`--host'.
2868See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002869 { (exit 1); exit 1; }; }
2870 fi
2871 fi
2872fi
Reid Spencera773bd52006-08-04 18:18:08 +00002873{ echo "$as_me:$LINENO: result: yes" >&5
2874echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002875
John Criswell0c38eaf2003-09-10 15:17:25 +00002876rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002877ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002878# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002879# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2881echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2882{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2883echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002884
Reid Spencera773bd52006-08-04 18:18:08 +00002885{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2886echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2887if { (ac_try="$ac_link"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; then
2897 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2899# work properly (i.e., refer to `conftest.exe'), while it won't with
2900# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002901for ac_file in conftest.exe conftest conftest.*; do
2902 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002903 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002906 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002907 * ) break;;
2908 esac
2909done
2910else
John Criswell0c38eaf2003-09-10 15:17:25 +00002911 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2912See \`config.log' for more details." >&5
2913echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002915 { (exit 1); exit 1; }; }
2916fi
2917
2918rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002919{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2920echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002921
2922rm -f conftest.$ac_ext
2923EXEEXT=$ac_cv_exeext
2924ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002925{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2926echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002927if test "${ac_cv_objext+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929else
2930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002936
John Criswell7a73b802003-06-30 21:59:07 +00002937int
2938main ()
2939{
2940
2941 ;
2942 return 0;
2943}
2944_ACEOF
2945rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002946if { (ac_try="$ac_compile"
2947case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950esac
2951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002956 for ac_file in conftest.o conftest.obj conftest.*; do
2957 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002958 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2961 break;;
2962 esac
2963done
2964else
2965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2969See \`config.log' for more details." >&5
2970echo "$as_me: error: cannot compute suffix of object files: cannot compile
2971See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002972 { (exit 1); exit 1; }; }
2973fi
2974
2975rm -f conftest.$ac_cv_objext conftest.$ac_ext
2976fi
Reid Spencera773bd52006-08-04 18:18:08 +00002977{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2978echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002979OBJEXT=$ac_cv_objext
2980ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002981{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2982echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002983if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002987/* confdefs.h. */
2988_ACEOF
2989cat confdefs.h >>conftest.$ac_ext
2990cat >>conftest.$ac_ext <<_ACEOF
2991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002992
John Criswell7a73b802003-06-30 21:59:07 +00002993int
2994main ()
2995{
2996#ifndef __GNUC__
2997 choke me
2998#endif
2999
3000 ;
3001 return 0;
3002}
3003_ACEOF
3004rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003005if { (ac_try="$ac_compile"
3006case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009esac
3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003012 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003017 (exit $ac_status); } &&
3018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_try") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003038 ac_compiler_gnu=yes
3039else
3040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003041sed 's/^/| /' conftest.$ac_ext >&5
3042
Reid Spencera773bd52006-08-04 18:18:08 +00003043 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003044fi
Reid Spencera773bd52006-08-04 18:18:08 +00003045
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003047ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003048
3049fi
Reid Spencera773bd52006-08-04 18:18:08 +00003050{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003052GCC=`test $ac_compiler_gnu = yes && echo yes`
3053ac_test_CFLAGS=${CFLAGS+set}
3054ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003055{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3056echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003057if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059else
Reid Spencera773bd52006-08-04 18:18:08 +00003060 ac_save_c_werror_flag=$ac_c_werror_flag
3061 ac_c_werror_flag=yes
3062 ac_cv_prog_cc_g=no
3063 CFLAGS="-g"
3064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003070
John Criswell7a73b802003-06-30 21:59:07 +00003071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003113 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003114else
3115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003116sed 's/^/| /' conftest.$ac_ext >&5
3117
Reid Spencera773bd52006-08-04 18:18:08 +00003118 CFLAGS=""
3119 cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125
3126int
3127main ()
3128{
3129
3130 ;
3131 return 0;
3132}
3133_ACEOF
3134rm -f conftest.$ac_objext
3135if { (ac_try="$ac_compile"
3136case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162esac
3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_try") 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003168 :
3169else
3170 echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 ac_c_werror_flag=$ac_save_c_werror_flag
3174 CFLAGS="-g"
3175 cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext
3191if { (ac_try="$ac_compile"
3192case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195esac
3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3198 ac_status=$?
3199 grep -v '^ *+' conftest.er1 >conftest.err
3200 rm -f conftest.er1
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003203 (exit $ac_status); } &&
3204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_try") 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003224 ac_cv_prog_cc_g=yes
3225else
3226 echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229
John Criswell7a73b802003-06-30 21:59:07 +00003230fi
Reid Spencera773bd52006-08-04 18:18:08 +00003231
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003233fi
Reid Spencera773bd52006-08-04 18:18:08 +00003234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3240fi
3241{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243if test "$ac_test_CFLAGS" = set; then
3244 CFLAGS=$ac_save_CFLAGS
3245elif test $ac_cv_prog_cc_g = yes; then
3246 if test "$GCC" = yes; then
3247 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003248 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003250 fi
3251else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252 if test "$GCC" = yes; then
3253 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003254 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003256 fi
3257fi
Reid Spencera773bd52006-08-04 18:18:08 +00003258{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3259echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3260if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
Reid Spencera773bd52006-08-04 18:18:08 +00003263 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264ac_save_CC=$CC
3265cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h. */
3271#include <stdarg.h>
3272#include <stdio.h>
3273#include <sys/types.h>
3274#include <sys/stat.h>
3275/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276struct buf { int x; };
3277FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278static char *e (p, i)
3279 char **p;
3280 int i;
3281{
3282 return p[i];
3283}
3284static char *f (char * (*g) (char **, int), char **p, ...)
3285{
3286 char *s;
3287 va_list v;
3288 va_start (v,p);
3289 s = g (p, va_arg (v,int));
3290 va_end (v);
3291 return s;
3292}
3293
3294/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3295 function prototypes and stuff, but not '\xHH' hex character constants.
3296 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003297 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3299 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003300 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3302
Reid Spencera773bd52006-08-04 18:18:08 +00003303/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304 inside strings and character constants. */
3305#define FOO(x) 'x'
3306int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308int test (int i, double x);
3309struct s1 {int (*f) (int a);};
3310struct s2 {int (*f) (double a);};
3311int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312int argc;
3313char **argv;
3314int
3315main ()
3316{
3317return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3318 ;
3319 return 0;
3320}
3321_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003322for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324do
3325 CC="$ac_save_CC $ac_arg"
3326 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003327if { (ac_try="$ac_compile"
3328case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354esac
3355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003360 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361else
3362 echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
Reid Spencera773bd52006-08-04 18:18:08 +00003365
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366fi
Reid Spencera773bd52006-08-04 18:18:08 +00003367
3368rm -f core conftest.err conftest.$ac_objext
3369 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370done
Reid Spencera773bd52006-08-04 18:18:08 +00003371rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372CC=$ac_save_CC
3373
3374fi
Reid Spencera773bd52006-08-04 18:18:08 +00003375# AC_CACHE_VAL
3376case "x$ac_cv_prog_cc_c89" in
3377 x)
3378 { echo "$as_me:$LINENO: result: none needed" >&5
3379echo "${ECHO_T}none needed" >&6; } ;;
3380 xno)
3381 { echo "$as_me:$LINENO: result: unsupported" >&5
3382echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003384 CC="$CC $ac_cv_prog_cc_c89"
3385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3386echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387esac
3388
John Criswell0c38eaf2003-09-10 15:17:25 +00003389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003402{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3403echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404# On Suns, sometimes $CPP names a directory.
3405if test -n "$CPP" && test -d "$CPP"; then
3406 CPP=
3407fi
3408if test -z "$CPP"; then
3409 if test "${ac_cv_prog_CPP+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411else
3412 # Double quotes because CPP needs to be expanded
3413 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3414 do
3415 ac_preproc_ok=false
3416for ac_c_preproc_warn_flag in '' yes
3417do
3418 # Use a header file that comes with gcc, so configuring glibc
3419 # with a fresh cross-compiler works.
3420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421 # <limits.h> exists even on freestanding compilers.
3422 # On the NeXT, cc -E runs the code through the compiler's parser,
3423 # not just through cpp. "Syntax error" is here to catch this case.
3424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h. */
3430#ifdef __STDC__
3431# include <limits.h>
3432#else
3433# include <assert.h>
3434#endif
3435 Syntax error
3436_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003437if { (ac_try="$ac_cpp conftest.$ac_ext"
3438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
3442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3453 else
3454 ac_cpp_err=
3455 fi
3456else
3457 ac_cpp_err=yes
3458fi
3459if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460 :
3461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 # Broken: fails on valid input.
3466continue
3467fi
Reid Spencera773bd52006-08-04 18:18:08 +00003468
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469rm -f conftest.err conftest.$ac_ext
3470
Reid Spencera773bd52006-08-04 18:18:08 +00003471 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003472 # can be detected and how.
3473 cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
3479#include <ac_nonexistent.h>
3480_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003481if { (ac_try="$ac_cpp conftest.$ac_ext"
3482case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485esac
3486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003493 (exit $ac_status); } >/dev/null; then
3494 if test -s conftest.err; then
3495 ac_cpp_err=$ac_c_preproc_warn_flag
3496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3497 else
3498 ac_cpp_err=
3499 fi
3500else
3501 ac_cpp_err=yes
3502fi
3503if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504 # Broken: success on invalid input.
3505continue
3506else
3507 echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 # Passes both tests.
3511ac_preproc_ok=:
3512break
3513fi
Reid Spencera773bd52006-08-04 18:18:08 +00003514
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003515rm -f conftest.err conftest.$ac_ext
3516
3517done
3518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519rm -f conftest.err conftest.$ac_ext
3520if $ac_preproc_ok; then
3521 break
3522fi
3523
3524 done
3525 ac_cv_prog_CPP=$CPP
3526
3527fi
3528 CPP=$ac_cv_prog_CPP
3529else
3530 ac_cv_prog_CPP=$CPP
3531fi
Reid Spencera773bd52006-08-04 18:18:08 +00003532{ echo "$as_me:$LINENO: result: $CPP" >&5
3533echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003534ac_preproc_ok=false
3535for ac_c_preproc_warn_flag in '' yes
3536do
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error" is here to catch this case.
3543 cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#ifdef __STDC__
3550# include <limits.h>
3551#else
3552# include <assert.h>
3553#endif
3554 Syntax error
3555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003556if { (ac_try="$ac_cpp conftest.$ac_ext"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572 else
3573 ac_cpp_err=
3574 fi
3575else
3576 ac_cpp_err=yes
3577fi
3578if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579 :
3580else
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 # Broken: fails on valid input.
3585continue
3586fi
Reid Spencera773bd52006-08-04 18:18:08 +00003587
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588rm -f conftest.err conftest.$ac_ext
3589
Reid Spencera773bd52006-08-04 18:18:08 +00003590 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3593/* confdefs.h. */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h. */
3598#include <ac_nonexistent.h>
3599_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003600if { (ac_try="$ac_cpp conftest.$ac_ext"
3601case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003612 (exit $ac_status); } >/dev/null; then
3613 if test -s conftest.err; then
3614 ac_cpp_err=$ac_c_preproc_warn_flag
3615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3616 else
3617 ac_cpp_err=
3618 fi
3619else
3620 ac_cpp_err=yes
3621fi
3622if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003623 # Broken: success on invalid input.
3624continue
3625else
3626 echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 # Passes both tests.
3630ac_preproc_ok=:
3631break
3632fi
Reid Spencera773bd52006-08-04 18:18:08 +00003633
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634rm -f conftest.err conftest.$ac_ext
3635
3636done
3637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638rm -f conftest.err conftest.$ac_ext
3639if $ac_preproc_ok; then
3640 :
3641else
3642 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3643See \`config.log' for more details." >&5
3644echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3645See \`config.log' for more details." >&2;}
3646 { (exit 1); exit 1; }; }
3647fi
3648
John Criswell7a73b802003-06-30 21:59:07 +00003649ac_ext=c
3650ac_cpp='$CPP $CPPFLAGS'
3651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654
John Criswell7a73b802003-06-30 21:59:07 +00003655
Reid Spencera773bd52006-08-04 18:18:08 +00003656{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3657echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003658if test "${ac_cv_path_GREP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
Reid Spencera773bd52006-08-04 18:18:08 +00003661 # Extract the first word of "grep ggrep" to use in msg output
3662if test -z "$GREP"; then
3663set dummy grep ggrep; ac_prog_name=$2
3664if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
Reid Spencera773bd52006-08-04 18:18:08 +00003667 ac_path_GREP_found=false
3668# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003674 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003675 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003676 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003677 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003678 # Check for GNU ac_path_GREP and select it if it is found.
3679 # Check for GNU $ac_path_GREP
3680case `"$ac_path_GREP" --version 2>&1` in
3681*GNU*)
3682 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3683*)
3684 ac_count=0
3685 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 echo 'GREP' >> "conftest.nl"
3692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_GREP="$ac_path_GREP"
3698 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003699 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704esac
3705
3706
3707 $ac_path_GREP_found && break 3
3708 done
3709done
3710
3711done
3712IFS=$as_save_IFS
3713
3714
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003715fi
Reid Spencera773bd52006-08-04 18:18:08 +00003716
3717GREP="$ac_cv_path_GREP"
3718if test -z "$GREP"; then
3719 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721 { (exit 1); exit 1; }; }
3722fi
3723
3724else
3725 ac_cv_path_GREP=$GREP
3726fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003727
John Criswell7a73b802003-06-30 21:59:07 +00003728
Reid Spencera773bd52006-08-04 18:18:08 +00003729fi
3730{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3731echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3732 GREP="$ac_cv_path_GREP"
3733
3734
3735{ echo "$as_me:$LINENO: checking for egrep" >&5
3736echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3741 then ac_cv_path_EGREP="$GREP -E"
3742 else
3743 # Extract the first word of "egrep" to use in msg output
3744if test -z "$EGREP"; then
3745set dummy egrep; ac_prog_name=$2
3746if test "${ac_cv_path_EGREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749 ac_path_EGREP_found=false
3750# Loop through the user's path and test for each of PROGNAME-LIST
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_prog in egrep; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003759 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003760 # Check for GNU ac_path_EGREP and select it if it is found.
3761 # Check for GNU $ac_path_EGREP
3762case `"$ac_path_EGREP" --version 2>&1` in
3763*GNU*)
3764 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3765*)
3766 ac_count=0
3767 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768 while :
3769 do
3770 cat "conftest.in" "conftest.in" >"conftest.tmp"
3771 mv "conftest.tmp" "conftest.in"
3772 cp "conftest.in" "conftest.nl"
3773 echo 'EGREP' >> "conftest.nl"
3774 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776 ac_count=`expr $ac_count + 1`
3777 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3778 # Best one so far, save it but keep looking for a better one
3779 ac_cv_path_EGREP="$ac_path_EGREP"
3780 ac_path_EGREP_max=$ac_count
3781 fi
3782 # 10*(2^10) chars as input seems more than enough
3783 test $ac_count -gt 10 && break
3784 done
3785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786esac
3787
3788
3789 $ac_path_EGREP_found && break 3
3790 done
3791done
3792
3793done
3794IFS=$as_save_IFS
3795
3796
3797fi
3798
3799EGREP="$ac_cv_path_EGREP"
3800if test -z "$EGREP"; then
3801 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803 { (exit 1); exit 1; }; }
3804fi
3805
3806else
3807 ac_cv_path_EGREP=$EGREP
3808fi
3809
3810
3811 fi
3812fi
3813{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3814echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3815 EGREP="$ac_cv_path_EGREP"
3816
3817
3818{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3819echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003820if test "${ac_cv_header_stdc+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003824/* confdefs.h. */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003829#include <stdlib.h>
3830#include <stdarg.h>
3831#include <string.h>
3832#include <float.h>
3833
John Criswell0c38eaf2003-09-10 15:17:25 +00003834int
3835main ()
3836{
3837
3838 ;
3839 return 0;
3840}
John Criswell7a73b802003-06-30 21:59:07 +00003841_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003842rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003843if { (ac_try="$ac_compile"
3844case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847esac
3848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870esac
3871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_try") 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003876 ac_cv_header_stdc=yes
3877else
3878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003879sed 's/^/| /' conftest.$ac_ext >&5
3880
Reid Spencera773bd52006-08-04 18:18:08 +00003881 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003882fi
Reid Spencera773bd52006-08-04 18:18:08 +00003883
3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003885
3886if test $ac_cv_header_stdc = yes; then
3887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3888 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003894#include <string.h>
3895
3896_ACEOF
3897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003898 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003899 :
3900else
3901 ac_cv_header_stdc=no
3902fi
3903rm -f conftest*
3904
3905fi
3906
3907if test $ac_cv_header_stdc = yes; then
3908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3909 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003910/* confdefs.h. */
3911_ACEOF
3912cat confdefs.h >>conftest.$ac_ext
3913cat >>conftest.$ac_ext <<_ACEOF
3914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003915#include <stdlib.h>
3916
3917_ACEOF
3918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003919 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003920 :
3921else
3922 ac_cv_header_stdc=no
3923fi
3924rm -f conftest*
3925
3926fi
3927
3928if test $ac_cv_header_stdc = yes; then
3929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3930 if test "$cross_compiling" = yes; then
3931 :
3932else
3933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003939#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003940#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003941#if ((' ' & 0x0FF) == 0x020)
3942# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3943# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3944#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003945# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003946 (('a' <= (c) && (c) <= 'i') \
3947 || ('j' <= (c) && (c) <= 'r') \
3948 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003949# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3950#endif
3951
3952#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3953int
3954main ()
3955{
3956 int i;
3957 for (i = 0; i < 256; i++)
3958 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003959 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003960 return 2;
3961 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003962}
3963_ACEOF
3964rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003965if { (ac_try="$ac_link"
3966case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003975 { (case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978esac
3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 :
3985else
3986 echo "$as_me: program exited with status $ac_status" >&5
3987echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003988sed 's/^/| /' conftest.$ac_ext >&5
3989
John Criswell7a73b802003-06-30 21:59:07 +00003990( exit $ac_status )
3991ac_cv_header_stdc=no
3992fi
Reid Spencera773bd52006-08-04 18:18:08 +00003993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3994fi
3995
3996
John Criswell7a73b802003-06-30 21:59:07 +00003997fi
3998fi
Reid Spencera773bd52006-08-04 18:18:08 +00003999{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4000echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004001if test $ac_cv_header_stdc = yes; then
4002
4003cat >>confdefs.h <<\_ACEOF
4004#define STDC_HEADERS 1
4005_ACEOF
4006
4007fi
4008
Reid Spencera773bd52006-08-04 18:18:08 +00004009# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4020 inttypes.h stdint.h unistd.h
4021do
4022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028 cat >conftest.$ac_ext <<_ACEOF
4029/* confdefs.h. */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h. */
4034$ac_includes_default
4035
4036#include <$ac_header>
4037_ACEOF
4038rm -f conftest.$ac_objext
4039if { (ac_try="$ac_compile"
4040case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043esac
4044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
4063 { (case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066esac
4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_try") 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004072 eval "$as_ac_Header=yes"
4073else
4074 echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077 eval "$as_ac_Header=no"
4078fi
4079
4080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081fi
4082ac_res=`eval echo '${'$as_ac_Header'}'`
4083 { echo "$as_me:$LINENO: result: $ac_res" >&5
4084echo "${ECHO_T}$ac_res" >&6; }
4085if test `eval echo '${'$as_ac_Header'}'` = yes; then
4086 cat >>confdefs.h <<_ACEOF
4087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4088_ACEOF
4089
4090fi
4091
4092done
4093
4094
4095{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4096echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4097if test "${ac_cv_c_bigendian+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 # See if sys/param.h defines the BYTE_ORDER macro.
4101cat >conftest.$ac_ext <<_ACEOF
4102/* confdefs.h. */
4103_ACEOF
4104cat confdefs.h >>conftest.$ac_ext
4105cat >>conftest.$ac_ext <<_ACEOF
4106/* end confdefs.h. */
4107#include <sys/types.h>
4108#include <sys/param.h>
4109
4110int
4111main ()
4112{
Tanya Lattnercf067672008-01-17 05:57:22 +00004113#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004114 bogus endian macros
4115#endif
4116
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121rm -f conftest.$ac_objext
4122if { (ac_try="$ac_compile"
4123case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004155 # It does; now see whether it defined to BIG_ENDIAN or not.
4156cat >conftest.$ac_ext <<_ACEOF
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
4162#include <sys/types.h>
4163#include <sys/param.h>
4164
4165int
4166main ()
4167{
4168#if BYTE_ORDER != BIG_ENDIAN
4169 not big endian
4170#endif
4171
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176rm -f conftest.$ac_objext
4177if { (ac_try="$ac_compile"
4178case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181esac
4182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_compile") 2>conftest.er1
4184 ac_status=$?
4185 grep -v '^ *+' conftest.er1 >conftest.err
4186 rm -f conftest.er1
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004189 (exit $ac_status); } &&
4190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; } &&
4200 { ac_try='test -s conftest.$ac_objext'
4201 { (case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_try") 2>&5
4207 ac_status=$?
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004210 ac_cv_c_bigendian=yes
4211else
4212 echo "$as_me: failed program was:" >&5
4213sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 ac_cv_c_bigendian=no
4216fi
4217
4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219else
4220 echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 # It does not; compile a test program.
4224if test "$cross_compiling" = yes; then
4225 # try to guess the endianness by grepping values into an object file
4226 ac_cv_c_bigendian=unknown
4227 cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
4233short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4234short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4235void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4236short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4237short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4238void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4239int
4240main ()
4241{
4242 _ascii (); _ebcdic ();
4243 ;
4244 return 0;
4245}
4246_ACEOF
4247rm -f conftest.$ac_objext
4248if { (ac_try="$ac_compile"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_compile") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004260 (exit $ac_status); } &&
4261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004281 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4282 ac_cv_c_bigendian=yes
4283fi
4284if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4285 if test "$ac_cv_c_bigendian" = unknown; then
4286 ac_cv_c_bigendian=no
4287 else
4288 # finding both strings is unlikely to happen, but who knows?
4289 ac_cv_c_bigendian=unknown
4290 fi
4291fi
4292else
4293 echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296
4297fi
4298
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300else
4301 cat >conftest.$ac_ext <<_ACEOF
4302/* confdefs.h. */
4303_ACEOF
4304cat confdefs.h >>conftest.$ac_ext
4305cat >>conftest.$ac_ext <<_ACEOF
4306/* end confdefs.h. */
4307$ac_includes_default
4308int
4309main ()
4310{
4311
4312 /* Are we little or big endian? From Harbison&Steele. */
4313 union
4314 {
4315 long int l;
4316 char c[sizeof (long int)];
4317 } u;
4318 u.l = 1;
4319 return u.c[sizeof (long int) - 1] == 1;
4320
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325rm -f conftest$ac_exeext
4326if { (ac_try="$ac_link"
4327case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_link") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336 { (case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339esac
4340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_try") 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 ac_cv_c_bigendian=no
4346else
4347 echo "$as_me: program exited with status $ac_status" >&5
4348echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
4351( exit $ac_status )
4352ac_cv_c_bigendian=yes
4353fi
4354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355fi
4356
4357
4358fi
4359
4360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361fi
4362{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4363echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4364case $ac_cv_c_bigendian in
4365 yes)
4366 ENDIAN=big
4367 ;;
4368 no)
4369 ENDIAN=little
4370 ;;
4371 *)
4372 { { echo "$as_me:$LINENO: error: unknown endianness
4373presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4374echo "$as_me: error: unknown endianness
4375presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4376 { (exit 1); exit 1; }; } ;;
4377esac
4378
4379
4380if test "$cross_compiling" = yes; then
4381 LLVM_CROSS_COMPILING=1
4382
4383
4384{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4385echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4386if test "${ac_cv_build_exeext+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4390 ac_cv_build_exeext=.exe
4391else
4392 ac_build_prefix=${build_alias}-
4393
4394 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4395set dummy ${ac_build_prefix}gcc; ac_word=$2
4396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
4401 if test -n "$BUILD_CC"; then
4402 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4403else
4404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405for as_dir in $PATH
4406do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004411 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4414 fi
4415done
4416done
4417IFS=$as_save_IFS
4418
4419fi
4420fi
4421BUILD_CC=$ac_cv_prog_BUILD_CC
4422if test -n "$BUILD_CC"; then
4423 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4424echo "${ECHO_T}$BUILD_CC" >&6; }
4425else
4426 { echo "$as_me:$LINENO: result: no" >&5
4427echo "${ECHO_T}no" >&6; }
4428fi
4429
4430
4431 if test -z "$BUILD_CC"; then
4432 # Extract the first word of "gcc", so it can be a program name with args.
4433set dummy gcc; ac_word=$2
4434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439 if test -n "$BUILD_CC"; then
4440 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004449 ac_cv_prog_BUILD_CC="gcc"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453done
4454done
4455IFS=$as_save_IFS
4456
4457fi
4458fi
4459BUILD_CC=$ac_cv_prog_BUILD_CC
4460if test -n "$BUILD_CC"; then
4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462echo "${ECHO_T}$BUILD_CC" >&6; }
4463else
4464 { echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6; }
4466fi
4467
4468
4469 if test -z "$BUILD_CC"; then
4470 # Extract the first word of "cc", so it can be a program name with args.
4471set dummy cc; ac_word=$2
4472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477 if test -n "$BUILD_CC"; then
4478 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479else
4480 ac_prog_rejected=no
4481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4489 ac_prog_rejected=yes
4490 continue
4491 fi
4492 ac_cv_prog_BUILD_CC="cc"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496done
4497done
4498IFS=$as_save_IFS
4499
4500if test $ac_prog_rejected = yes; then
4501 # We found a bogon in the path, so make sure we never use it.
4502 set dummy $ac_cv_prog_BUILD_CC
4503 shift
4504 if test $# != 0; then
4505 # We chose a different compiler from the bogus one.
4506 # However, it has the same basename, so the bogon will be chosen
4507 # first if we set BUILD_CC to just the basename; use the full file name.
4508 shift
4509 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4510 fi
4511fi
4512fi
4513fi
4514BUILD_CC=$ac_cv_prog_BUILD_CC
4515if test -n "$BUILD_CC"; then
4516 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4517echo "${ECHO_T}$BUILD_CC" >&6; }
4518else
4519 { echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6; }
4521fi
4522
4523
4524 fi
4525 fi
4526 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4527echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4528 { (exit 1); exit 1; }; }
4529 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4530 rm -f conftest*
4531 echo 'int main () { return 0; }' > conftest.$ac_ext
4532 ac_cv_build_exeext=
4533 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4534 (eval $ac_build_link) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; then
4538 for file in conftest.*; do
4539 case $file in
4540 *.c | *.o | *.obj) ;;
4541 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4542 esac
4543 done
4544 else
4545 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4546echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4547 { (exit 1); exit 1; }; }
4548 fi
4549 rm -f conftest*
4550 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4551fi
4552fi
4553
4554BUILD_EXEEXT=""
4555test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4556{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4557echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4558ac_build_exeext=$BUILD_EXEEXT
4559
4560else
4561 LLVM_CROSS_COMPILING=0
4562
4563fi
4564
Reid Spencer0b1e4662007-04-02 15:41:39 +00004565if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004566 cvsbuild="yes"
4567 optimize="no"
4568 CVSBUILD=CVSBUILD=1
4569
4570else
4571 cvsbuild="no"
4572 optimize="yes"
4573fi
4574
4575
4576# Check whether --enable-optimized was given.
4577if test "${enable_optimized+set}" = set; then
4578 enableval=$enable_optimized;
4579else
4580 enableval=$optimize
4581fi
4582
4583if test ${enableval} = "no" ; then
4584 ENABLE_OPTIMIZED=
4585
4586else
4587 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4588
4589fi
4590
4591# Check whether --enable-assertions was given.
4592if test "${enable_assertions+set}" = set; then
4593 enableval=$enable_assertions;
4594else
4595 enableval="yes"
4596fi
4597
4598if test ${enableval} = "yes" ; then
4599 DISABLE_ASSERTIONS=
4600
4601else
4602 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4603
4604fi
4605
David Greenea696d242007-06-28 19:36:08 +00004606# Check whether --enable-expensive-checks was given.
4607if test "${enable_expensive_checks+set}" = set; then
4608 enableval=$enable_expensive_checks;
4609else
4610 enableval="no"
4611fi
4612
4613if test ${enableval} = "yes" ; then
4614 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4615
4616 EXPENSIVE_CHECKS=yes
4617
4618else
4619 ENABLE_EXPENSIVE_CHECKS=
4620
4621 EXPENSIVE_CHECKS=no
4622
4623fi
4624
Reid Spencer8b2e1412006-11-17 03:32:33 +00004625# Check whether --enable-debug-runtime was given.
4626if test "${enable_debug_runtime+set}" = set; then
4627 enableval=$enable_debug_runtime;
4628else
4629 enableval=no
4630fi
4631
4632if test ${enableval} = "no" ; then
4633 DEBUG_RUNTIME=
4634
4635else
4636 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4637
4638fi
4639
Reid Spencera773bd52006-08-04 18:18:08 +00004640# Check whether --enable-jit was given.
4641if test "${enable_jit+set}" = set; then
4642 enableval=$enable_jit;
4643else
4644 enableval=default
4645fi
4646
4647if test ${enableval} = "no"
4648then
4649 JIT=
4650
4651else
4652 case "$llvm_cv_target_arch" in
4653 x86) TARGET_HAS_JIT=1
4654 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004655 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004656 ;;
4657 PowerPC) TARGET_HAS_JIT=1
4658 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004659 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004660 ;;
4661 Alpha) TARGET_HAS_JIT=1
4662 ;;
4663 IA64) TARGET_HAS_JIT=0
4664 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004665 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004666 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004667 Mips) TARGET_HAS_JIT=0
4668 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004669 PIC16) TARGET_HAS_JIT=0
4670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004671 *) TARGET_HAS_JIT=0
4672 ;;
4673 esac
4674fi
4675
4676# Check whether --enable-doxygen was given.
4677if test "${enable_doxygen+set}" = set; then
4678 enableval=$enable_doxygen;
4679else
4680 enableval=default
4681fi
4682
4683case "$enableval" in
4684 yes) ENABLE_DOXYGEN=1
4685 ;;
4686 no) ENABLE_DOXYGEN=0
4687 ;;
4688 default) ENABLE_DOXYGEN=0
4689 ;;
4690 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4691echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4692 { (exit 1); exit 1; }; } ;;
4693esac
4694
4695# Check whether --enable-threads was given.
4696if test "${enable_threads+set}" = set; then
4697 enableval=$enable_threads;
4698else
Reid Spencer65c5d752006-11-05 17:08:18 +00004699 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004700fi
4701
4702case "$enableval" in
4703 yes) ENABLE_THREADS=1
4704 ;;
4705 no) ENABLE_THREADS=0
4706 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004707 default) ENABLE_THREADS=1
4708 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004709 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4710echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4711 { (exit 1); exit 1; }; } ;;
4712esac
4713
4714cat >>confdefs.h <<_ACEOF
4715#define ENABLE_THREADS $ENABLE_THREADS
4716_ACEOF
4717
4718
Reid Spencer89b0d992006-12-16 22:07:52 +00004719# Check whether --enable-pic was given.
4720if test "${enable_pic+set}" = set; then
4721 enableval=$enable_pic;
4722else
4723 enableval=default
4724fi
4725
4726case "$enableval" in
4727 yes) ENABLE_PIC=1
4728 ;;
4729 no) ENABLE_PIC=0
4730 ;;
4731 default) ENABLE_PIC=0
4732 ;;
4733 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4734echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4735 { (exit 1); exit 1; }; } ;;
4736esac
4737
4738cat >>confdefs.h <<_ACEOF
4739#define ENABLE_PIC $ENABLE_PIC
4740_ACEOF
4741
4742
Reid Spencera773bd52006-08-04 18:18:08 +00004743TARGETS_TO_BUILD=""
4744# Check whether --enable-targets was given.
4745if test "${enable_targets+set}" = set; then
4746 enableval=$enable_targets;
4747else
4748 enableval=all
4749fi
4750
4751case "$enableval" in
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004752 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004753 host-only)
4754 case "$llvm_cv_target_arch" in
4755 x86) TARGETS_TO_BUILD="X86" ;;
4756 x86_64) TARGETS_TO_BUILD="X86" ;;
4757 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4758 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4759 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4760 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004761 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004762 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004763 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004764 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004765 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4766echo "$as_me: error: Can not set target to build" >&2;}
4767 { (exit 1); exit 1; }; } ;;
4768 esac
4769 ;;
4770 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4771 case "$a_target" in
4772 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4773 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4774 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4775 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4776 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4777 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004778 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004779 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004780 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004781 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004782 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4783 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004784 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004785 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4786echo "$as_me: error: Unrecognized target $a_target" >&2;}
4787 { (exit 1); exit 1; }; } ;;
4788 esac
4789 done
4790 ;;
4791esac
Reid Spencera773bd52006-08-04 18:18:08 +00004792TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4793
4794
Reid Spencer65c5d752006-11-05 17:08:18 +00004795# Check whether --enable-cbe-printf-a was given.
4796if test "${enable_cbe_printf_a+set}" = set; then
4797 enableval=$enable_cbe_printf_a;
4798else
4799 enableval=default
4800fi
4801
4802case "$enableval" in
4803 yes) ENABLE_CBE_PRINTF_A=1
4804 ;;
4805 no) ENABLE_CBE_PRINTF_A=0
4806 ;;
4807 default) ENABLE_CBE_PRINTF_A=1
4808 ;;
4809 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4810echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4811 { (exit 1); exit 1; }; } ;;
4812esac
4813
4814cat >>confdefs.h <<_ACEOF
4815#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4816_ACEOF
4817
4818
Reid Spencera773bd52006-08-04 18:18:08 +00004819
4820# Check whether --with-llvmgccdir was given.
4821if test "${with_llvmgccdir+set}" = set; then
4822 withval=$with_llvmgccdir;
4823else
4824 withval=default
4825fi
4826
4827case "$withval" in
4828 default) WITH_LLVMGCCDIR=default ;;
4829 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4830 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4831echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4832 { (exit 1); exit 1; }; } ;;
4833esac
4834
4835
Devang Patel5d28b882007-12-04 22:54:47 +00004836# Check whether --with-llvmgcc was given.
4837if test "${with_llvmgcc+set}" = set; then
4838 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4839 WITH_LLVMGCCDIR=""
4840fi
4841
4842
4843
4844# Check whether --with-llvmgxx was given.
4845if test "${with_llvmgxx+set}" = set; then
4846 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4847 WITH_LLVMGCCDIR=""
4848fi
4849
4850
4851if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4852 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4853echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4854 { (exit 1); exit 1; }; };
4855fi
4856
4857if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4858 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4859echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4860 { (exit 1); exit 1; }; };
4861fi
4862
4863
Reid Spencera773bd52006-08-04 18:18:08 +00004864# Check whether --with-extra-options was given.
4865if test "${with_extra_options+set}" = set; then
4866 withval=$with_extra_options;
4867else
4868 withval=default
4869fi
4870
4871case "$withval" in
4872 default) EXTRA_OPTIONS= ;;
4873 *) EXTRA_OPTIONS=$withval ;;
4874esac
4875EXTRA_OPTIONS=$EXTRA_OPTIONS
4876
4877
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004878# Check whether --enable-bindings was given.
4879if test "${enable_bindings+set}" = set; then
4880 enableval=$enable_bindings;
4881else
4882 enableval=default
4883fi
4884
4885BINDINGS_TO_BUILD=""
4886case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004887 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004888 all ) BINDINGS_TO_BUILD="ocaml" ;;
4889 none | no) BINDINGS_TO_BUILD="" ;;
4890 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4891 case "$a_binding" in
4892 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4893 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4894echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4895 { (exit 1); exit 1; }; } ;;
4896 esac
4897 done
4898 ;;
4899esac
4900
Reid Spencera773bd52006-08-04 18:18:08 +00004901
Gordon Henriksenf0915682007-10-02 16:42:22 +00004902# Check whether --with-ocaml-libdir was given.
4903if test "${with_ocaml_libdir+set}" = set; then
4904 withval=$with_ocaml_libdir;
4905else
4906 withval=auto
4907fi
4908
4909case "$withval" in
4910 auto) with_ocaml_libdir="$withval" ;;
4911 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4912 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4913echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4915esac
4916
4917
Reid Spencera773bd52006-08-04 18:18:08 +00004918ac_ext=c
4919ac_cpp='$CPP $CPPFLAGS'
4920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4924echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4925# On Suns, sometimes $CPP names a directory.
4926if test -n "$CPP" && test -d "$CPP"; then
4927 CPP=
4928fi
4929if test -z "$CPP"; then
4930 if test "${ac_cv_prog_CPP+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933 # Double quotes because CPP needs to be expanded
4934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4935 do
4936 ac_preproc_ok=false
4937for ac_c_preproc_warn_flag in '' yes
4938do
4939 # Use a header file that comes with gcc, so configuring glibc
4940 # with a fresh cross-compiler works.
4941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4942 # <limits.h> exists even on freestanding compilers.
4943 # On the NeXT, cc -E runs the code through the compiler's parser,
4944 # not just through cpp. "Syntax error" is here to catch this case.
4945 cat >conftest.$ac_ext <<_ACEOF
4946/* confdefs.h. */
4947_ACEOF
4948cat confdefs.h >>conftest.$ac_ext
4949cat >>conftest.$ac_ext <<_ACEOF
4950/* end confdefs.h. */
4951#ifdef __STDC__
4952# include <limits.h>
4953#else
4954# include <assert.h>
4955#endif
4956 Syntax error
4957_ACEOF
4958if { (ac_try="$ac_cpp conftest.$ac_ext"
4959case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962esac
4963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004970 (exit $ac_status); } >/dev/null; then
4971 if test -s conftest.err; then
4972 ac_cpp_err=$ac_c_preproc_warn_flag
4973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4974 else
4975 ac_cpp_err=
4976 fi
4977else
4978 ac_cpp_err=yes
4979fi
4980if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004981 :
4982else
4983 echo "$as_me: failed program was:" >&5
4984sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 # Broken: fails on valid input.
4987continue
4988fi
4989
4990rm -f conftest.err conftest.$ac_ext
4991
4992 # OK, works on sane cases. Now check whether nonexistent headers
4993 # can be detected and how.
4994 cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h. */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h. */
5000#include <ac_nonexistent.h>
5001_ACEOF
5002if { (ac_try="$ac_cpp conftest.$ac_ext"
5003case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006esac
5007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_c_preproc_warn_flag
5017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5018 else
5019 ac_cpp_err=
5020 fi
5021else
5022 ac_cpp_err=yes
5023fi
5024if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005025 # Broken: success on invalid input.
5026continue
5027else
5028 echo "$as_me: failed program was:" >&5
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031 # Passes both tests.
5032ac_preproc_ok=:
5033break
5034fi
5035
5036rm -f conftest.err conftest.$ac_ext
5037
5038done
5039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5040rm -f conftest.err conftest.$ac_ext
5041if $ac_preproc_ok; then
5042 break
5043fi
5044
5045 done
5046 ac_cv_prog_CPP=$CPP
5047
5048fi
5049 CPP=$ac_cv_prog_CPP
5050else
5051 ac_cv_prog_CPP=$CPP
5052fi
5053{ echo "$as_me:$LINENO: result: $CPP" >&5
5054echo "${ECHO_T}$CPP" >&6; }
5055ac_preproc_ok=false
5056for ac_c_preproc_warn_flag in '' yes
5057do
5058 # Use a header file that comes with gcc, so configuring glibc
5059 # with a fresh cross-compiler works.
5060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061 # <limits.h> exists even on freestanding compilers.
5062 # On the NeXT, cc -E runs the code through the compiler's parser,
5063 # not just through cpp. "Syntax error" is here to catch this case.
5064 cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h. */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h. */
5070#ifdef __STDC__
5071# include <limits.h>
5072#else
5073# include <assert.h>
5074#endif
5075 Syntax error
5076_ACEOF
5077if { (ac_try="$ac_cpp conftest.$ac_ext"
5078case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081esac
5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005089 (exit $ac_status); } >/dev/null; then
5090 if test -s conftest.err; then
5091 ac_cpp_err=$ac_c_preproc_warn_flag
5092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5093 else
5094 ac_cpp_err=
5095 fi
5096else
5097 ac_cpp_err=yes
5098fi
5099if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005100 :
5101else
5102 echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 # Broken: fails on valid input.
5106continue
5107fi
5108
5109rm -f conftest.err conftest.$ac_ext
5110
5111 # OK, works on sane cases. Now check whether nonexistent headers
5112 # can be detected and how.
5113 cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
5119#include <ac_nonexistent.h>
5120_ACEOF
5121if { (ac_try="$ac_cpp conftest.$ac_ext"
5122case "(($ac_try" in
5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124 *) ac_try_echo=$ac_try;;
5125esac
5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5128 ac_status=$?
5129 grep -v '^ *+' conftest.er1 >conftest.err
5130 rm -f conftest.er1
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005133 (exit $ac_status); } >/dev/null; then
5134 if test -s conftest.err; then
5135 ac_cpp_err=$ac_c_preproc_warn_flag
5136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5137 else
5138 ac_cpp_err=
5139 fi
5140else
5141 ac_cpp_err=yes
5142fi
5143if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005144 # Broken: success on invalid input.
5145continue
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 # Passes both tests.
5151ac_preproc_ok=:
5152break
5153fi
5154
5155rm -f conftest.err conftest.$ac_ext
5156
5157done
5158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5159rm -f conftest.err conftest.$ac_ext
5160if $ac_preproc_ok; then
5161 :
5162else
5163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5164See \`config.log' for more details." >&5
5165echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5166See \`config.log' for more details." >&2;}
5167 { (exit 1); exit 1; }; }
5168fi
5169
5170ac_ext=c
5171ac_cpp='$CPP $CPPFLAGS'
5172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176ac_ext=c
5177ac_cpp='$CPP $CPPFLAGS'
5178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181if test -n "$ac_tool_prefix"; then
5182 for ac_prog in gcc
5183 do
5184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5185set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188if test "${ac_cv_prog_CC+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191 if test -n "$CC"; then
5192 ac_cv_prog_CC="$CC" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206done
5207IFS=$as_save_IFS
5208
5209fi
5210fi
5211CC=$ac_cv_prog_CC
5212if test -n "$CC"; then
5213 { echo "$as_me:$LINENO: result: $CC" >&5
5214echo "${ECHO_T}$CC" >&6; }
5215else
5216 { echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6; }
5218fi
5219
5220
5221 test -n "$CC" && break
5222 done
5223fi
5224if test -z "$CC"; then
5225 ac_ct_CC=$CC
5226 for ac_prog in gcc
5227do
5228 # Extract the first word of "$ac_prog", so it can be a program name with args.
5229set dummy $ac_prog; ac_word=$2
5230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235 if test -n "$ac_ct_CC"; then
5236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005245 ac_cv_prog_ac_ct_CC="$ac_prog"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5248 fi
5249done
5250done
5251IFS=$as_save_IFS
5252
5253fi
5254fi
5255ac_ct_CC=$ac_cv_prog_ac_ct_CC
5256if test -n "$ac_ct_CC"; then
5257 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5258echo "${ECHO_T}$ac_ct_CC" >&6; }
5259else
5260 { echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6; }
5262fi
5263
5264
5265 test -n "$ac_ct_CC" && break
5266done
5267
5268 if test "x$ac_ct_CC" = x; then
5269 CC=""
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272yes:)
5273{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5274whose name does not start with the host triplet. If you think this
5275configuration is useful to you, please write to autoconf@gnu.org." >&5
5276echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5277whose name does not start with the host triplet. If you think this
5278configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5279ac_tool_warned=yes ;;
5280esac
5281 CC=$ac_ct_CC
5282 fi
5283fi
5284
5285
5286test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5287See \`config.log' for more details." >&5
5288echo "$as_me: error: no acceptable C compiler found in \$PATH
5289See \`config.log' for more details." >&2;}
5290 { (exit 1); exit 1; }; }
5291
5292# Provide some information about the compiler.
5293echo "$as_me:$LINENO: checking for C compiler version" >&5
5294ac_compiler=`set X $ac_compile; echo $2`
5295{ (ac_try="$ac_compiler --version >&5"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler --version >&5") 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305{ (ac_try="$ac_compiler -v >&5"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -v >&5") 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5315{ (ac_try="$ac_compiler -V >&5"
5316case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5319esac
5320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compiler -V >&5") 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }
5325
5326{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5327echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5328if test "${ac_cv_c_compiler_gnu+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330else
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337
5338int
5339main ()
5340{
5341#ifndef __GNUC__
5342 choke me
5343#endif
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (ac_try="$ac_compile"
5351case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_compile") 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_try") 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005383 ac_compiler_gnu=yes
5384else
5385 echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 ac_compiler_gnu=no
5389fi
5390
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392ac_cv_c_compiler_gnu=$ac_compiler_gnu
5393
5394fi
5395{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5396echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5397GCC=`test $ac_compiler_gnu = yes && echo yes`
5398ac_test_CFLAGS=${CFLAGS+set}
5399ac_save_CFLAGS=$CFLAGS
5400{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5401echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5402if test "${ac_cv_prog_cc_g+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405 ac_save_c_werror_flag=$ac_c_werror_flag
5406 ac_c_werror_flag=yes
5407 ac_cv_prog_cc_g=no
5408 CFLAGS="-g"
5409 cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h. */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h. */
5415
5416int
5417main ()
5418{
5419
5420 ;
5421 return 0;
5422}
5423_ACEOF
5424rm -f conftest.$ac_objext
5425if { (ac_try="$ac_compile"
5426case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452esac
5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005458 ac_cv_prog_cc_g=yes
5459else
5460 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 CFLAGS=""
5464 cat >conftest.$ac_ext <<_ACEOF
5465/* confdefs.h. */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h. */
5470
5471int
5472main ()
5473{
5474
5475 ;
5476 return 0;
5477}
5478_ACEOF
5479rm -f conftest.$ac_objext
5480if { (ac_try="$ac_compile"
5481case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005492 (exit $ac_status); } &&
5493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; } &&
5503 { ac_try='test -s conftest.$ac_objext'
5504 { (case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_try") 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005513 :
5514else
5515 echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518 ac_c_werror_flag=$ac_save_c_werror_flag
5519 CFLAGS="-g"
5520 cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h. */
5526
5527int
5528main ()
5529{
5530
5531 ;
5532 return 0;
5533}
5534_ACEOF
5535rm -f conftest.$ac_objext
5536if { (ac_try="$ac_compile"
5537case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540esac
5541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5550 { (case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553esac
5554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; } &&
5559 { ac_try='test -s conftest.$ac_objext'
5560 { (case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_try") 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005569 ac_cv_prog_cc_g=yes
5570else
5571 echo "$as_me: failed program was:" >&5
5572sed 's/^/| /' conftest.$ac_ext >&5
5573
5574
5575fi
5576
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_c_werror_flag=$ac_save_c_werror_flag
5585fi
5586{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5587echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5588if test "$ac_test_CFLAGS" = set; then
5589 CFLAGS=$ac_save_CFLAGS
5590elif test $ac_cv_prog_cc_g = yes; then
5591 if test "$GCC" = yes; then
5592 CFLAGS="-g -O2"
5593 else
5594 CFLAGS="-g"
5595 fi
5596else
5597 if test "$GCC" = yes; then
5598 CFLAGS="-O2"
5599 else
5600 CFLAGS=
5601 fi
5602fi
5603{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5604echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5605if test "${ac_cv_prog_cc_c89+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608 ac_cv_prog_cc_c89=no
5609ac_save_CC=$CC
5610cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
5616#include <stdarg.h>
5617#include <stdio.h>
5618#include <sys/types.h>
5619#include <sys/stat.h>
5620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5621struct buf { int x; };
5622FILE * (*rcsopen) (struct buf *, struct stat *, int);
5623static char *e (p, i)
5624 char **p;
5625 int i;
5626{
5627 return p[i];
5628}
5629static char *f (char * (*g) (char **, int), char **p, ...)
5630{
5631 char *s;
5632 va_list v;
5633 va_start (v,p);
5634 s = g (p, va_arg (v,int));
5635 va_end (v);
5636 return s;
5637}
5638
5639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5640 function prototypes and stuff, but not '\xHH' hex character constants.
5641 These don't provoke an error unfortunately, instead are silently treated
5642 as 'x'. The following induces an error, until -std is added to get
5643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5644 array size at least. It's necessary to write '\x00'==0 to get something
5645 that's true only with -std. */
5646int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5647
5648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5649 inside strings and character constants. */
5650#define FOO(x) 'x'
5651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5652
5653int test (int i, double x);
5654struct s1 {int (*f) (int a);};
5655struct s2 {int (*f) (double a);};
5656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5657int argc;
5658char **argv;
5659int
5660main ()
5661{
5662return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5663 ;
5664 return 0;
5665}
5666_ACEOF
5667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5669do
5670 CC="$ac_save_CC $ac_arg"
5671 rm -f conftest.$ac_objext
5672if { (ac_try="$ac_compile"
5673case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest.$ac_objext'
5696 { (case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699esac
5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005705 ac_cv_prog_cc_c89=$ac_arg
5706else
5707 echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710
5711fi
5712
5713rm -f core conftest.err conftest.$ac_objext
5714 test "x$ac_cv_prog_cc_c89" != "xno" && break
5715done
5716rm -f conftest.$ac_ext
5717CC=$ac_save_CC
5718
5719fi
5720# AC_CACHE_VAL
5721case "x$ac_cv_prog_cc_c89" in
5722 x)
5723 { echo "$as_me:$LINENO: result: none needed" >&5
5724echo "${ECHO_T}none needed" >&6; } ;;
5725 xno)
5726 { echo "$as_me:$LINENO: result: unsupported" >&5
5727echo "${ECHO_T}unsupported" >&6; } ;;
5728 *)
5729 CC="$CC $ac_cv_prog_cc_c89"
5730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5731echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5732esac
5733
5734
5735ac_ext=c
5736ac_cpp='$CPP $CPPFLAGS'
5737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740
5741ac_ext=cpp
5742ac_cpp='$CXXCPP $CPPFLAGS'
5743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5746if test -z "$CXX"; then
5747 if test -n "$CCC"; then
5748 CXX=$CCC
5749 else
5750 if test -n "$ac_tool_prefix"; then
5751 for ac_prog in g++
5752 do
5753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757if test "${ac_cv_prog_CXX+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 if test -n "$CXX"; then
5761 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005770 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775done
5776IFS=$as_save_IFS
5777
5778fi
5779fi
5780CXX=$ac_cv_prog_CXX
5781if test -n "$CXX"; then
5782 { echo "$as_me:$LINENO: result: $CXX" >&5
5783echo "${ECHO_T}$CXX" >&6; }
5784else
5785 { echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6; }
5787fi
5788
5789
5790 test -n "$CXX" && break
5791 done
5792fi
5793if test -z "$CXX"; then
5794 ac_ct_CXX=$CXX
5795 for ac_prog in g++
5796do
5797 # Extract the first word of "$ac_prog", so it can be a program name with args.
5798set dummy $ac_prog; ac_word=$2
5799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 if test -n "$ac_ct_CXX"; then
5805 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005814 ac_cv_prog_ac_ct_CXX="$ac_prog"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5825if test -n "$ac_ct_CXX"; then
5826 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5827echo "${ECHO_T}$ac_ct_CXX" >&6; }
5828else
5829 { echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6; }
5831fi
5832
5833
5834 test -n "$ac_ct_CXX" && break
5835done
5836
5837 if test "x$ac_ct_CXX" = x; then
5838 CXX="g++"
5839 else
5840 case $cross_compiling:$ac_tool_warned in
5841yes:)
5842{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5843whose name does not start with the host triplet. If you think this
5844configuration is useful to you, please write to autoconf@gnu.org." >&5
5845echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5846whose name does not start with the host triplet. If you think this
5847configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5848ac_tool_warned=yes ;;
5849esac
5850 CXX=$ac_ct_CXX
5851 fi
5852fi
5853
5854 fi
5855fi
5856# Provide some information about the compiler.
5857echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5858ac_compiler=`set X $ac_compile; echo $2`
5859{ (ac_try="$ac_compiler --version >&5"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compiler --version >&5") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }
5869{ (ac_try="$ac_compiler -v >&5"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compiler -v >&5") 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5879{ (ac_try="$ac_compiler -V >&5"
5880case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883esac
5884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compiler -V >&5") 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }
5889
5890{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5891echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5892if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895 cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901
5902int
5903main ()
5904{
5905#ifndef __GNUC__
5906 choke me
5907#endif
5908
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913rm -f conftest.$ac_objext
5914if { (ac_try="$ac_compile"
5915case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918esac
5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compile") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005947 ac_compiler_gnu=yes
5948else
5949 echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_compiler_gnu=no
5953fi
5954
5955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5957
5958fi
5959{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5960echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5961GXX=`test $ac_compiler_gnu = yes && echo yes`
5962ac_test_CXXFLAGS=${CXXFLAGS+set}
5963ac_save_CXXFLAGS=$CXXFLAGS
5964{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5965echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5966if test "${ac_cv_prog_cxx_g+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5970 ac_cxx_werror_flag=yes
5971 ac_cv_prog_cxx_g=no
5972 CXXFLAGS="-g"
5973 cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h. */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
5978/* end confdefs.h. */
5979
5980int
5981main ()
5982{
5983
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988rm -f conftest.$ac_objext
5989if { (ac_try="$ac_compile"
5990case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993esac
5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_compile") 2>conftest.er1
5996 ac_status=$?
5997 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016esac
6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006022 ac_cv_prog_cxx_g=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 CXXFLAGS=""
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034
6035int
6036main ()
6037{
6038
6039 ;
6040 return 0;
6041}
6042_ACEOF
6043rm -f conftest.$ac_objext
6044if { (ac_try="$ac_compile"
6045case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048esac
6049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6058 { (case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_try") 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071esac
6072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_try") 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006077 :
6078else
6079 echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6083 CXXFLAGS="-g"
6084 cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
6089/* end confdefs.h. */
6090
6091int
6092main ()
6093{
6094
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099rm -f conftest.$ac_objext
6100if { (ac_try="$ac_compile"
6101case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006133 ac_cv_prog_cxx_g=yes
6134else
6135 echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138
6139fi
6140
6141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6149fi
6150{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6151echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6152if test "$ac_test_CXXFLAGS" = set; then
6153 CXXFLAGS=$ac_save_CXXFLAGS
6154elif test $ac_cv_prog_cxx_g = yes; then
6155 if test "$GXX" = yes; then
6156 CXXFLAGS="-g -O2"
6157 else
6158 CXXFLAGS="-g"
6159 fi
6160else
6161 if test "$GXX" = yes; then
6162 CXXFLAGS="-O2"
6163 else
6164 CXXFLAGS=
6165 fi
6166fi
6167ac_ext=c
6168ac_cpp='$CPP $CPPFLAGS'
6169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172
6173{ echo "$as_me:$LINENO: checking " >&5
6174echo $ECHO_N "checking ... $ECHO_C" >&6; }
6175if test "${ac_cv_has_flex+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178 for ac_prog in flex lex
6179do
6180 # Extract the first word of "$ac_prog", so it can be a program name with args.
6181set dummy $ac_prog; ac_word=$2
6182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184if test "${ac_cv_prog_LEX+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187 if test -n "$LEX"; then
6188 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006197 ac_cv_prog_LEX="$ac_prog"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201done
6202done
6203IFS=$as_save_IFS
6204
6205fi
6206fi
6207LEX=$ac_cv_prog_LEX
6208if test -n "$LEX"; then
6209 { echo "$as_me:$LINENO: result: $LEX" >&5
6210echo "${ECHO_T}$LEX" >&6; }
6211else
6212 { echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6; }
6214fi
6215
6216
6217 test -n "$LEX" && break
6218done
6219test -n "$LEX" || LEX=":"
6220
Tanya Lattnercf067672008-01-17 05:57:22 +00006221if test -z "$LEXLIB"
6222then
6223 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6224echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6225if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228 ac_check_lib_save_LIBS=$LIBS
6229LIBS="-lfl $LIBS"
6230cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h. */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
6235/* end confdefs.h. */
6236
6237/* Override any GCC internal prototype to avoid an error.
6238 Use char because int might match the return type of a GCC
6239 builtin and then its argument prototype would still apply. */
6240#ifdef __cplusplus
6241extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006242#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006243char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006244int
Tanya Lattnercf067672008-01-17 05:57:22 +00006245main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006246{
Tanya Lattnercf067672008-01-17 05:57:22 +00006247return yywrap ();
6248 ;
6249 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006250}
Reid Spencera773bd52006-08-04 18:18:08 +00006251_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006252rm -f conftest.$ac_objext conftest$ac_exeext
6253if { (ac_try="$ac_link"
6254case "(($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_link") 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try='test -s conftest$ac_exeext'
6277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_lib_fl_yywrap=yes
6287else
6288 echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_lib_fl_yywrap=no
6292fi
6293
6294rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext
6296LIBS=$ac_check_lib_save_LIBS
6297fi
6298{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6299echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6300if test $ac_cv_lib_fl_yywrap = yes; then
6301 LEXLIB="-lfl"
6302else
6303 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6304echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6305if test "${ac_cv_lib_l_yywrap+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308 ac_check_lib_save_LIBS=$LIBS
6309LIBS="-ll $LIBS"
6310cat >conftest.$ac_ext <<_ACEOF
6311/* confdefs.h. */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
6315/* end confdefs.h. */
6316
6317/* Override any GCC internal prototype to avoid an error.
6318 Use char because int might match the return type of a GCC
6319 builtin and then its argument prototype would still apply. */
6320#ifdef __cplusplus
6321extern "C"
6322#endif
6323char yywrap ();
6324int
6325main ()
6326{
6327return yywrap ();
6328 ;
6329 return 0;
6330}
6331_ACEOF
6332rm -f conftest.$ac_objext conftest$ac_exeext
6333if { (ac_try="$ac_link"
6334case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
6338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_link") 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest$ac_exeext'
6357 { (case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6360esac
6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_try") 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 ac_cv_lib_l_yywrap=yes
6367else
6368 echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 ac_cv_lib_l_yywrap=no
6372fi
6373
6374rm -f core conftest.err conftest.$ac_objext \
6375 conftest$ac_exeext conftest.$ac_ext
6376LIBS=$ac_check_lib_save_LIBS
6377fi
6378{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6379echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6380if test $ac_cv_lib_l_yywrap = yes; then
6381 LEXLIB="-ll"
6382fi
6383
6384fi
6385
6386fi
6387
6388if test "x$LEX" != "x:"; then
6389 { echo "$as_me:$LINENO: checking lex output file root" >&5
6390echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6391if test "${ac_cv_prog_lex_root+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394 # The minimal lex program is just a single line: %%. But some broken lexes
6395# (Solaris, I think it was) want two %% lines, so accommodate them.
6396cat >conftest.l <<_ACEOF
6397%%
6398%%
6399_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006400{ (ac_try="$LEX conftest.l"
6401case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$LEX conftest.l") 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }
6410if test -f lex.yy.c; then
6411 ac_cv_prog_lex_root=lex.yy
6412elif test -f lexyy.c; then
6413 ac_cv_prog_lex_root=lexyy
6414else
6415 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6416echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6417 { (exit 1); exit 1; }; }
6418fi
6419fi
6420{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6421echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006422rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006423LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6424
Scott Michel96dcd2b2007-12-05 21:24:02 +00006425{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6426echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6427if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006431# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006432# not all implementations provide the %pointer and %array declarations.
6433ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006434echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006435ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006436LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006437cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006438`cat $LEX_OUTPUT_ROOT.c`
6439_ACEOF
6440rm -f conftest.$ac_objext conftest$ac_exeext
6441if { (ac_try="$ac_link"
6442case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445esac
6446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006447 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006448 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006453 (exit $ac_status); } &&
6454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_try") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006474 ac_cv_prog_lex_yytext_pointer=yes
6475else
6476 echo "$as_me: failed program was:" >&5
6477sed 's/^/| /' conftest.$ac_ext >&5
6478
6479
6480fi
6481
Tanya Lattnercf067672008-01-17 05:57:22 +00006482rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006483 conftest$ac_exeext conftest.$ac_ext
6484LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006485rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006486
6487fi
6488{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6489echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6490if test $ac_cv_prog_lex_yytext_pointer = yes; then
6491
6492cat >>confdefs.h <<\_ACEOF
6493#define YYTEXT_POINTER 1
6494_ACEOF
6495
6496fi
6497
6498fi
6499
6500fi
6501{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6502echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6503if test "$LEX" != "flex"; then
6504 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6505echo "$as_me: error: flex not found but required" >&2;}
6506 { (exit 1); exit 1; }; }
6507else
6508 FLEX=flex
6509
6510fi
6511
6512{ echo "$as_me:$LINENO: checking " >&5
6513echo $ECHO_N "checking ... $ECHO_C" >&6; }
6514if test "${llvm_cv_has_bison+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517 for ac_prog in 'bison -y' byacc
6518do
6519 # Extract the first word of "$ac_prog", so it can be a program name with args.
6520set dummy $ac_prog; ac_word=$2
6521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523if test "${ac_cv_prog_YACC+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526 if test -n "$YACC"; then
6527 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6528else
6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006536 ac_cv_prog_YACC="$ac_prog"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540done
6541done
6542IFS=$as_save_IFS
6543
6544fi
6545fi
6546YACC=$ac_cv_prog_YACC
6547if test -n "$YACC"; then
6548 { echo "$as_me:$LINENO: result: $YACC" >&5
6549echo "${ECHO_T}$YACC" >&6; }
6550else
6551 { echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6; }
6553fi
6554
6555
6556 test -n "$YACC" && break
6557done
6558test -n "$YACC" || YACC="yacc"
6559
6560fi
6561{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6562echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6563if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006564
6565 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6566echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006567else
6568 BISON=bison
6569
6570fi
6571
6572{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6573echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6574if test "${lt_cv_path_NM+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577 if test -n "$NM"; then
6578 # Let the user override the test.
6579 lt_cv_path_NM="$NM"
6580else
6581 lt_nm_to_check="${ac_tool_prefix}nm"
6582 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6583 lt_nm_to_check="$lt_nm_to_check nm"
6584 fi
6585 for lt_tmp_nm in $lt_nm_to_check; do
6586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6587 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6588 IFS="$lt_save_ifs"
6589 test -z "$ac_dir" && ac_dir=.
6590 tmp_nm="$ac_dir/$lt_tmp_nm"
6591 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6592 # Check to see if the nm accepts a BSD-compat flag.
6593 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6594 # nm: unknown option "B" ignored
6595 # Tru64's nm complains that /dev/null is an invalid object file
6596 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6597 */dev/null* | *'Invalid file or object type'*)
6598 lt_cv_path_NM="$tmp_nm -B"
6599 break
6600 ;;
6601 *)
6602 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6603 */dev/null*)
6604 lt_cv_path_NM="$tmp_nm -p"
6605 break
6606 ;;
6607 *)
6608 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6609 continue # so that we can try to find one that supports BSD flags
6610 ;;
6611 esac
6612 ;;
6613 esac
6614 fi
6615 done
6616 IFS="$lt_save_ifs"
6617 done
6618 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6619fi
6620fi
6621{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6622echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6623NM="$lt_cv_path_NM"
6624
6625
6626
6627{ echo "$as_me:$LINENO: checking for GNU make" >&5
6628echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6629if test "${llvm_cv_gnu_make_command+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632 llvm_cv_gnu_make_command=''
6633 for a in "$MAKE" make gmake gnumake ; do
6634 if test -z "$a" ; then continue ; fi ;
6635 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6636 then
6637 llvm_cv_gnu_make_command=$a ;
6638 break;
6639 fi
6640 done
6641fi
6642{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6643echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6644 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6645 ifGNUmake='' ;
6646 else
6647 ifGNUmake='#' ;
6648 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6649echo "${ECHO_T}\"Not found\"" >&6; };
6650 fi
6651
6652
6653{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6654echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6655LN_S=$as_ln_s
6656if test "$LN_S" = "ln -s"; then
6657 { echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6; }
6659else
6660 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6661echo "${ECHO_T}no, using $LN_S" >&6; }
6662fi
6663
6664# Extract the first word of "cmp", so it can be a program name with args.
6665set dummy cmp; ac_word=$2
6666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668if test "${ac_cv_path_CMP+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671 case $CMP in
6672 [\\/]* | ?:[\\/]*)
6673 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6674 ;;
6675 *)
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006683 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687done
6688done
6689IFS=$as_save_IFS
6690
6691 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6692 ;;
6693esac
6694fi
6695CMP=$ac_cv_path_CMP
6696if test -n "$CMP"; then
6697 { echo "$as_me:$LINENO: result: $CMP" >&5
6698echo "${ECHO_T}$CMP" >&6; }
6699else
6700 { echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6; }
6702fi
6703
6704
6705# Extract the first word of "cp", so it can be a program name with args.
6706set dummy cp; ac_word=$2
6707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709if test "${ac_cv_path_CP+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712 case $CP in
6713 [\\/]* | ?:[\\/]*)
6714 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6715 ;;
6716 *)
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006724 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729done
6730IFS=$as_save_IFS
6731
6732 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6733 ;;
6734esac
6735fi
6736CP=$ac_cv_path_CP
6737if test -n "$CP"; then
6738 { echo "$as_me:$LINENO: result: $CP" >&5
6739echo "${ECHO_T}$CP" >&6; }
6740else
6741 { echo "$as_me:$LINENO: result: no" >&5
6742echo "${ECHO_T}no" >&6; }
6743fi
6744
6745
6746# Extract the first word of "date", so it can be a program name with args.
6747set dummy date; ac_word=$2
6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750if test "${ac_cv_path_DATE+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 case $DATE in
6754 [\\/]* | ?:[\\/]*)
6755 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6756 ;;
6757 *)
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006765 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770done
6771IFS=$as_save_IFS
6772
6773 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6774 ;;
6775esac
6776fi
6777DATE=$ac_cv_path_DATE
6778if test -n "$DATE"; then
6779 { echo "$as_me:$LINENO: result: $DATE" >&5
6780echo "${ECHO_T}$DATE" >&6; }
6781else
6782 { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
6784fi
6785
6786
6787# Extract the first word of "find", so it can be a program name with args.
6788set dummy find; ac_word=$2
6789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791if test "${ac_cv_path_FIND+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794 case $FIND in
6795 [\\/]* | ?:[\\/]*)
6796 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6797 ;;
6798 *)
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006806 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810done
6811done
6812IFS=$as_save_IFS
6813
6814 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6815 ;;
6816esac
6817fi
6818FIND=$ac_cv_path_FIND
6819if test -n "$FIND"; then
6820 { echo "$as_me:$LINENO: result: $FIND" >&5
6821echo "${ECHO_T}$FIND" >&6; }
6822else
6823 { echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6; }
6825fi
6826
6827
6828# Extract the first word of "grep", so it can be a program name with args.
6829set dummy grep; ac_word=$2
6830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832if test "${ac_cv_path_GREP+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 case $GREP in
6836 [\\/]* | ?:[\\/]*)
6837 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6838 ;;
6839 *)
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006847 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851done
6852done
6853IFS=$as_save_IFS
6854
6855 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6856 ;;
6857esac
6858fi
6859GREP=$ac_cv_path_GREP
6860if test -n "$GREP"; then
6861 { echo "$as_me:$LINENO: result: $GREP" >&5
6862echo "${ECHO_T}$GREP" >&6; }
6863else
6864 { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
6866fi
6867
6868
6869# Extract the first word of "mkdir", so it can be a program name with args.
6870set dummy mkdir; ac_word=$2
6871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873if test "${ac_cv_path_MKDIR+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875else
6876 case $MKDIR in
6877 [\\/]* | ?:[\\/]*)
6878 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6879 ;;
6880 *)
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006888 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892done
6893done
6894IFS=$as_save_IFS
6895
6896 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6897 ;;
6898esac
6899fi
6900MKDIR=$ac_cv_path_MKDIR
6901if test -n "$MKDIR"; then
6902 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6903echo "${ECHO_T}$MKDIR" >&6; }
6904else
6905 { echo "$as_me:$LINENO: result: no" >&5
6906echo "${ECHO_T}no" >&6; }
6907fi
6908
6909
6910# Extract the first word of "mv", so it can be a program name with args.
6911set dummy mv; ac_word=$2
6912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914if test "${ac_cv_path_MV+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916else
6917 case $MV in
6918 [\\/]* | ?:[\\/]*)
6919 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6920 ;;
6921 *)
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006929 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
6935IFS=$as_save_IFS
6936
6937 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6938 ;;
6939esac
6940fi
6941MV=$ac_cv_path_MV
6942if test -n "$MV"; then
6943 { echo "$as_me:$LINENO: result: $MV" >&5
6944echo "${ECHO_T}$MV" >&6; }
6945else
6946 { echo "$as_me:$LINENO: result: no" >&5
6947echo "${ECHO_T}no" >&6; }
6948fi
6949
6950
6951if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6953set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956if test "${ac_cv_prog_RANLIB+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959 if test -n "$RANLIB"; then
6960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979RANLIB=$ac_cv_prog_RANLIB
6980if test -n "$RANLIB"; then
6981 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6982echo "${ECHO_T}$RANLIB" >&6; }
6983else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
6986fi
6987
6988
6989fi
6990if test -z "$ac_cv_prog_RANLIB"; then
6991 ac_ct_RANLIB=$RANLIB
6992 # Extract the first word of "ranlib", so it can be a program name with args.
6993set dummy ranlib; ac_word=$2
6994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999 if test -n "$ac_ct_RANLIB"; then
7000 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007009 ac_cv_prog_ac_ct_RANLIB="ranlib"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7020if test -n "$ac_ct_RANLIB"; then
7021 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7022echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7023else
7024 { echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6; }
7026fi
7027
7028 if test "x$ac_ct_RANLIB" = x; then
7029 RANLIB=":"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032yes:)
7033{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7034whose name does not start with the host triplet. If you think this
7035configuration is useful to you, please write to autoconf@gnu.org." >&5
7036echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7037whose name does not start with the host triplet. If you think this
7038configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7039ac_tool_warned=yes ;;
7040esac
7041 RANLIB=$ac_ct_RANLIB
7042 fi
7043else
7044 RANLIB="$ac_cv_prog_RANLIB"
7045fi
7046
7047# Extract the first word of "rm", so it can be a program name with args.
7048set dummy rm; ac_word=$2
7049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051if test "${ac_cv_path_RM+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 case $RM in
7055 [\\/]* | ?:[\\/]*)
7056 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7057 ;;
7058 *)
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007066 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7069 fi
7070done
7071done
7072IFS=$as_save_IFS
7073
7074 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7075 ;;
7076esac
7077fi
7078RM=$ac_cv_path_RM
7079if test -n "$RM"; then
7080 { echo "$as_me:$LINENO: result: $RM" >&5
7081echo "${ECHO_T}$RM" >&6; }
7082else
7083 { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
7085fi
7086
7087
7088# Extract the first word of "sed", so it can be a program name with args.
7089set dummy sed; ac_word=$2
7090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_path_SED+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095 case $SED in
7096 [\\/]* | ?:[\\/]*)
7097 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7098 ;;
7099 *)
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007107 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111done
7112done
7113IFS=$as_save_IFS
7114
7115 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7116 ;;
7117esac
7118fi
7119SED=$ac_cv_path_SED
7120if test -n "$SED"; then
7121 { echo "$as_me:$LINENO: result: $SED" >&5
7122echo "${ECHO_T}$SED" >&6; }
7123else
7124 { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
7126fi
7127
7128
7129# Extract the first word of "tar", so it can be a program name with args.
7130set dummy tar; ac_word=$2
7131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133if test "${ac_cv_path_TAR+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136 case $TAR in
7137 [\\/]* | ?:[\\/]*)
7138 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7139 ;;
7140 *)
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007148 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152done
7153done
7154IFS=$as_save_IFS
7155
7156 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7157 ;;
7158esac
7159fi
7160TAR=$ac_cv_path_TAR
7161if test -n "$TAR"; then
7162 { echo "$as_me:$LINENO: result: $TAR" >&5
7163echo "${ECHO_T}$TAR" >&6; }
7164else
7165 { echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6; }
7167fi
7168
7169
7170# Extract the first word of "pwd", so it can be a program name with args.
7171set dummy pwd; ac_word=$2
7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_path_BINPWD+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 case $BINPWD in
7178 [\\/]* | ?:[\\/]*)
7179 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7180 ;;
7181 *)
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007189 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193done
7194done
7195IFS=$as_save_IFS
7196
7197 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7198 ;;
7199esac
7200fi
7201BINPWD=$ac_cv_path_BINPWD
7202if test -n "$BINPWD"; then
7203 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7204echo "${ECHO_T}$BINPWD" >&6; }
7205else
7206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208fi
7209
7210
7211
7212# Extract the first word of "Graphviz", so it can be a program name with args.
7213set dummy Graphviz; ac_word=$2
7214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 case $GRAPHVIZ in
7220 [\\/]* | ?:[\\/]*)
7221 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7222 ;;
7223 *)
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007231 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 break 2
7234 fi
7235done
7236done
7237IFS=$as_save_IFS
7238
7239 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7240 ;;
7241esac
7242fi
7243GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7244if test -n "$GRAPHVIZ"; then
7245 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7246echo "${ECHO_T}$GRAPHVIZ" >&6; }
7247else
7248 { echo "$as_me:$LINENO: result: no" >&5
7249echo "${ECHO_T}no" >&6; }
7250fi
7251
7252
7253if test "$GRAPHVIZ" != "echo Graphviz" ; then
7254
7255cat >>confdefs.h <<\_ACEOF
7256#define HAVE_GRAPHVIZ 1
7257_ACEOF
7258
Jeff Cohen28783c32007-01-12 18:22:38 +00007259 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007260 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7261 fi
7262
7263cat >>confdefs.h <<_ACEOF
7264#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7265_ACEOF
7266
7267fi
7268# Extract the first word of "dot", so it can be a program name with args.
7269set dummy dot; ac_word=$2
7270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272if test "${ac_cv_path_DOT+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275 case $DOT in
7276 [\\/]* | ?:[\\/]*)
7277 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7278 ;;
7279 *)
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007287 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291done
7292done
7293IFS=$as_save_IFS
7294
7295 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7296 ;;
7297esac
7298fi
7299DOT=$ac_cv_path_DOT
7300if test -n "$DOT"; then
7301 { echo "$as_me:$LINENO: result: $DOT" >&5
7302echo "${ECHO_T}$DOT" >&6; }
7303else
7304 { echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6; }
7306fi
7307
7308
7309if test "$DOT" != "echo dot" ; then
7310
7311cat >>confdefs.h <<\_ACEOF
7312#define HAVE_DOT 1
7313_ACEOF
7314
Jeff Cohen28783c32007-01-12 18:22:38 +00007315 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007316 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7317 fi
7318
7319cat >>confdefs.h <<_ACEOF
7320#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7321_ACEOF
7322
7323fi
7324for ac_prog in gv gsview32
7325do
7326 # Extract the first word of "$ac_prog", so it can be a program name with args.
7327set dummy $ac_prog; ac_word=$2
7328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_path_GV+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 case $GV in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007345 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349done
7350done
7351IFS=$as_save_IFS
7352
7353 ;;
7354esac
7355fi
7356GV=$ac_cv_path_GV
7357if test -n "$GV"; then
7358 { echo "$as_me:$LINENO: result: $GV" >&5
7359echo "${ECHO_T}$GV" >&6; }
7360else
7361 { echo "$as_me:$LINENO: result: no" >&5
7362echo "${ECHO_T}no" >&6; }
7363fi
7364
7365
7366 test -n "$GV" && break
7367done
7368test -n "$GV" || GV="echo gv"
7369
7370if test "$GV" != "echo gv" ; then
7371
7372cat >>confdefs.h <<\_ACEOF
7373#define HAVE_GV 1
7374_ACEOF
7375
Jeff Cohen28783c32007-01-12 18:22:38 +00007376 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007377 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7378 fi
7379
7380cat >>confdefs.h <<_ACEOF
7381#define LLVM_PATH_GV "$GV${EXEEXT}"
7382_ACEOF
7383
7384fi
7385# Extract the first word of "dotty", so it can be a program name with args.
7386set dummy dotty; ac_word=$2
7387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389if test "${ac_cv_path_DOTTY+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392 case $DOTTY in
7393 [\\/]* | ?:[\\/]*)
7394 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7395 ;;
7396 *)
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007404 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409done
7410IFS=$as_save_IFS
7411
7412 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7413 ;;
7414esac
7415fi
7416DOTTY=$ac_cv_path_DOTTY
7417if test -n "$DOTTY"; then
7418 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7419echo "${ECHO_T}$DOTTY" >&6; }
7420else
7421 { echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6; }
7423fi
7424
7425
7426if test "$DOTTY" != "echo dotty" ; then
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define HAVE_DOTTY 1
7430_ACEOF
7431
Jeff Cohen28783c32007-01-12 18:22:38 +00007432 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007433 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7434 fi
7435
7436cat >>confdefs.h <<_ACEOF
7437#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7438_ACEOF
7439
7440fi
7441
7442
7443# Extract the first word of "perl", so it can be a program name with args.
7444set dummy perl; ac_word=$2
7445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7447if test "${ac_cv_path_PERL+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449else
7450 case $PERL in
7451 [\\/]* | ?:[\\/]*)
7452 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7453 ;;
7454 *)
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007462 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466done
7467done
7468IFS=$as_save_IFS
7469
7470 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7471 ;;
7472esac
7473fi
7474PERL=$ac_cv_path_PERL
7475if test -n "$PERL"; then
7476 { echo "$as_me:$LINENO: result: $PERL" >&5
7477echo "${ECHO_T}$PERL" >&6; }
7478else
7479 { echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6; }
7481fi
7482
7483
7484if test "$PERL" != "none"; then
7485 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7486echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7487 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7488 { echo "$as_me:$LINENO: result: yes" >&5
7489echo "${ECHO_T}yes" >&6; }
7490 else
7491 PERL=none
7492 { echo "$as_me:$LINENO: result: not found" >&5
7493echo "${ECHO_T}not found" >&6; }
7494 fi
7495fi
7496
7497
7498if test x"$PERL" = xnone; then
7499 HAVE_PERL=0
7500
Reid Spencer59807fa2007-05-17 18:11:03 +00007501 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7502echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7503 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007504else
7505 HAVE_PERL=1
7506
7507fi
7508
7509# Find a good install program. We prefer a C program (faster),
7510# so one script is as good as another. But avoid the broken or
7511# incompatible versions:
7512# SysV /etc/install, /usr/sbin/install
7513# SunOS /usr/etc/install
7514# IRIX /sbin/install
7515# AIX /bin/install
7516# AmigaOS /C/install, which installs bootblocks on floppy discs
7517# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7518# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7519# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7520# OS/2's system install, which has a completely different semantic
7521# ./install, which can be erroneously created by make from ./install.sh.
7522{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7524if test -z "$INSTALL"; then
7525if test "${ac_cv_path_install+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 # Account for people who put trailing slashes in PATH elements.
7534case $as_dir/ in
7535 ./ | .// | /cC/* | \
7536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7538 /usr/ucb/* ) ;;
7539 *)
7540 # OSF1 and SCO ODT 3.0 have their own names for install.
7541 # Don't use installbsd from OSF since it installs stuff as root
7542 # by default.
7543 for ac_prog in ginstall scoinst install; do
7544 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007546 if test $ac_prog = install &&
7547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7548 # AIX install. It has an incompatible calling convention.
7549 :
7550 elif test $ac_prog = install &&
7551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7552 # program-specific install script used by HP pwplus--don't use.
7553 :
7554 else
7555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7556 break 3
7557 fi
7558 fi
7559 done
7560 done
7561 ;;
7562esac
7563done
7564IFS=$as_save_IFS
7565
7566
7567fi
7568 if test "${ac_cv_path_install+set}" = set; then
7569 INSTALL=$ac_cv_path_install
7570 else
7571 # As a last resort, use the slow shell script. Don't cache a
7572 # value for INSTALL within a source directory, because that will
7573 # break other packages using the cache if that directory is
7574 # removed, or if the value is a relative name.
7575 INSTALL=$ac_install_sh
7576 fi
7577fi
7578{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7579echo "${ECHO_T}$INSTALL" >&6; }
7580
7581# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7582# It thinks the first close brace ends the variable substitution.
7583test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7584
7585test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7586
7587test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7588
7589
7590# Extract the first word of "bzip2", so it can be a program name with args.
7591set dummy bzip2; ac_word=$2
7592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7594if test "${ac_cv_path_BZIP2+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597 case $BZIP2 in
7598 [\\/]* | ?:[\\/]*)
7599 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7600 ;;
7601 *)
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007609 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7612 fi
7613done
7614done
7615IFS=$as_save_IFS
7616
Reid Spencera773bd52006-08-04 18:18:08 +00007617 ;;
7618esac
7619fi
7620BZIP2=$ac_cv_path_BZIP2
7621if test -n "$BZIP2"; then
7622 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7623echo "${ECHO_T}$BZIP2" >&6; }
7624else
7625 { echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6; }
7627fi
7628
7629
7630# Extract the first word of "doxygen", so it can be a program name with args.
7631set dummy doxygen; ac_word=$2
7632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634if test "${ac_cv_path_DOXYGEN+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637 case $DOXYGEN in
7638 [\\/]* | ?:[\\/]*)
7639 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7640 ;;
7641 *)
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643for as_dir in $PATH
7644do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007649 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653done
7654done
7655IFS=$as_save_IFS
7656
Reid Spencera773bd52006-08-04 18:18:08 +00007657 ;;
7658esac
7659fi
7660DOXYGEN=$ac_cv_path_DOXYGEN
7661if test -n "$DOXYGEN"; then
7662 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7663echo "${ECHO_T}$DOXYGEN" >&6; }
7664else
7665 { echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6; }
7667fi
7668
7669
Reid Spencera773bd52006-08-04 18:18:08 +00007670# Extract the first word of "groff", so it can be a program name with args.
7671set dummy groff; ac_word=$2
7672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_GROFF+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 case $GROFF in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007689 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694done
7695IFS=$as_save_IFS
7696
Reid Spencera773bd52006-08-04 18:18:08 +00007697 ;;
7698esac
7699fi
7700GROFF=$ac_cv_path_GROFF
7701if test -n "$GROFF"; then
7702 { echo "$as_me:$LINENO: result: $GROFF" >&5
7703echo "${ECHO_T}$GROFF" >&6; }
7704else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
7707fi
7708
7709
7710# Extract the first word of "gzip", so it can be a program name with args.
7711set dummy gzip; ac_word=$2
7712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7714if test "${ac_cv_path_GZIP+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717 case $GZIP in
7718 [\\/]* | ?:[\\/]*)
7719 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7720 ;;
7721 *)
7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007729 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733done
7734done
7735IFS=$as_save_IFS
7736
Reid Spencera773bd52006-08-04 18:18:08 +00007737 ;;
7738esac
7739fi
7740GZIP=$ac_cv_path_GZIP
7741if test -n "$GZIP"; then
7742 { echo "$as_me:$LINENO: result: $GZIP" >&5
7743echo "${ECHO_T}$GZIP" >&6; }
7744else
7745 { echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6; }
7747fi
7748
7749
7750# Extract the first word of "pod2html", so it can be a program name with args.
7751set dummy pod2html; ac_word=$2
7752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754if test "${ac_cv_path_POD2HTML+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 case $POD2HTML in
7758 [\\/]* | ?:[\\/]*)
7759 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7760 ;;
7761 *)
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007769 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774done
7775IFS=$as_save_IFS
7776
Reid Spencera773bd52006-08-04 18:18:08 +00007777 ;;
7778esac
7779fi
7780POD2HTML=$ac_cv_path_POD2HTML
7781if test -n "$POD2HTML"; then
7782 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7783echo "${ECHO_T}$POD2HTML" >&6; }
7784else
7785 { echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6; }
7787fi
7788
7789
7790# Extract the first word of "pod2man", so it can be a program name with args.
7791set dummy pod2man; ac_word=$2
7792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794if test "${ac_cv_path_POD2MAN+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797 case $POD2MAN in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007809 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814done
7815IFS=$as_save_IFS
7816
Reid Spencera773bd52006-08-04 18:18:08 +00007817 ;;
7818esac
7819fi
7820POD2MAN=$ac_cv_path_POD2MAN
7821if test -n "$POD2MAN"; then
7822 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7823echo "${ECHO_T}$POD2MAN" >&6; }
7824else
7825 { echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6; }
7827fi
7828
7829
7830# Extract the first word of "runtest", so it can be a program name with args.
7831set dummy runtest; ac_word=$2
7832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834if test "${ac_cv_path_RUNTEST+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837 case $RUNTEST in
7838 [\\/]* | ?:[\\/]*)
7839 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7840 ;;
7841 *)
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007849 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853done
7854done
7855IFS=$as_save_IFS
7856
Reid Spencera773bd52006-08-04 18:18:08 +00007857 ;;
7858esac
7859fi
7860RUNTEST=$ac_cv_path_RUNTEST
7861if test -n "$RUNTEST"; then
7862 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7863echo "${ECHO_T}$RUNTEST" >&6; }
7864else
7865 { echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6; }
7867fi
7868
7869
7870
7871no_itcl=true
7872{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7873echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7874
7875# Check whether --with-tclinclude was given.
7876if test "${with_tclinclude+set}" = set; then
7877 withval=$with_tclinclude; with_tclinclude=${withval}
7878else
7879 with_tclinclude=''
7880fi
7881
7882if test "${ac_cv_path_tclsh+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885
7886if test x"${with_tclinclude}" != x ; then
7887 if test -f ${with_tclinclude}/tclsh ; then
7888 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7889 elif test -f ${with_tclinclude}/src/tclsh ; then
7890 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7891 else
7892 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7893echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7894 { (exit 1); exit 1; }; }
7895 fi
7896fi
7897
7898if test x"${ac_cv_path_tclsh}" = x ; then
7899 { echo "$as_me:$LINENO: result: none" >&5
7900echo "${ECHO_T}none" >&6; }
7901 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
7902do
7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
7904set dummy $ac_prog; ac_word=$2
7905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907if test "${ac_cv_path_TCLSH+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 case $TCLSH in
7911 [\\/]* | ?:[\\/]*)
7912 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7913 ;;
7914 *)
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007922 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926done
7927done
7928IFS=$as_save_IFS
7929
7930 ;;
7931esac
7932fi
7933TCLSH=$ac_cv_path_TCLSH
7934if test -n "$TCLSH"; then
7935 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7936echo "${ECHO_T}$TCLSH" >&6; }
7937else
7938 { echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6; }
7940fi
7941
7942
7943 test -n "$TCLSH" && break
7944done
7945
7946 if test x"${TCLSH}" = x ; then
7947 ac_cv_path_tclsh='';
7948 else
7949 ac_cv_path_tclsh="${TCLSH}";
7950 fi
7951else
7952 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7953echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7954 TCLSH="${ac_cv_path_tclsh}"
7955
7956fi
7957
7958fi
7959
7960# Extract the first word of "zip", so it can be a program name with args.
7961set dummy zip; ac_word=$2
7962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7964if test "${ac_cv_path_ZIP+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967 case $ZIP in
7968 [\\/]* | ?:[\\/]*)
7969 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7970 ;;
7971 *)
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007979 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983done
7984done
7985IFS=$as_save_IFS
7986
Reid Spencera773bd52006-08-04 18:18:08 +00007987 ;;
7988esac
7989fi
7990ZIP=$ac_cv_path_ZIP
7991if test -n "$ZIP"; then
7992 { echo "$as_me:$LINENO: result: $ZIP" >&5
7993echo "${ECHO_T}$ZIP" >&6; }
7994else
7995 { echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6; }
7997fi
7998
7999
Gordon Henriksene7072162008-03-07 18:20:01 +00008000for ac_prog in ocamlc.opt ocamlc
8001do
8002 # Extract the first word of "$ac_prog", so it can be a program name with args.
8003set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8006if test "${ac_cv_path_OCAMLC+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 case $OCAMLC in
8010 [\\/]* | ?:[\\/]*)
8011 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8012 ;;
8013 *)
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008021 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025done
8026done
8027IFS=$as_save_IFS
8028
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008029 ;;
8030esac
8031fi
8032OCAMLC=$ac_cv_path_OCAMLC
8033if test -n "$OCAMLC"; then
8034 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8035echo "${ECHO_T}$OCAMLC" >&6; }
8036else
8037 { echo "$as_me:$LINENO: result: no" >&5
8038echo "${ECHO_T}no" >&6; }
8039fi
8040
8041
Gordon Henriksene7072162008-03-07 18:20:01 +00008042 test -n "$OCAMLC" && break
8043done
8044
8045for ac_prog in ocamlopt.opt ocamlopt
8046do
8047 # Extract the first word of "$ac_prog", so it can be a program name with args.
8048set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 case $OCAMLOPT in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8057 ;;
8058 *)
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008066 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070done
8071done
8072IFS=$as_save_IFS
8073
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008074 ;;
8075esac
8076fi
8077OCAMLOPT=$ac_cv_path_OCAMLOPT
8078if test -n "$OCAMLOPT"; then
8079 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8080echo "${ECHO_T}$OCAMLOPT" >&6; }
8081else
8082 { echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6; }
8084fi
8085
8086
Gordon Henriksene7072162008-03-07 18:20:01 +00008087 test -n "$OCAMLOPT" && break
8088done
8089
8090for ac_prog in ocamldep.opt ocamldep
8091do
8092 # Extract the first word of "$ac_prog", so it can be a program name with args.
8093set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 case $OCAMLDEP in
8100 [\\/]* | ?:[\\/]*)
8101 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8102 ;;
8103 *)
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105for as_dir in $PATH
8106do
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008111 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115done
8116done
8117IFS=$as_save_IFS
8118
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008119 ;;
8120esac
8121fi
8122OCAMLDEP=$ac_cv_path_OCAMLDEP
8123if test -n "$OCAMLDEP"; then
8124 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8125echo "${ECHO_T}$OCAMLDEP" >&6; }
8126else
8127 { echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6; }
8129fi
8130
8131
Gordon Henriksene7072162008-03-07 18:20:01 +00008132 test -n "$OCAMLDEP" && break
8133done
8134
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008135for ac_prog in ocamldoc.opt ocamldoc
8136do
8137 # Extract the first word of "$ac_prog", so it can be a program name with args.
8138set dummy $ac_prog; ac_word=$2
8139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 case $OCAMLDOC in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8147 ;;
8148 *)
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161done
8162IFS=$as_save_IFS
8163
8164 ;;
8165esac
8166fi
8167OCAMLDOC=$ac_cv_path_OCAMLDOC
8168if test -n "$OCAMLDOC"; then
8169 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8170echo "${ECHO_T}$OCAMLDOC" >&6; }
8171else
8172 { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
8174fi
8175
8176
8177 test -n "$OCAMLDOC" && break
8178done
8179
Reid Spencera773bd52006-08-04 18:18:08 +00008180
8181{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8182echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8183if test "${llvm_cv_link_use_r+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 ac_ext=c
8187ac_cpp='$CPP $CPPFLAGS'
8188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190ac_compiler_gnu=$ac_cv_c_compiler_gnu
8191
8192 oldcflags="$CFLAGS"
8193 CFLAGS="$CFLAGS -Wl,-R."
8194 cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h. */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h. */
8200
8201int
8202main ()
8203{
8204int main() { return 0; }
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext conftest$ac_exeext
8210if { (ac_try="$ac_link"
8211case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_link") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008222 (exit $ac_status); } &&
8223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008243 llvm_cv_link_use_r=yes
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 llvm_cv_link_use_r=no
8249fi
8250
Tanya Lattnercf067672008-01-17 05:57:22 +00008251rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008252 conftest$ac_exeext conftest.$ac_ext
8253 CFLAGS="$oldcflags"
8254 ac_ext=c
8255ac_cpp='$CPP $CPPFLAGS'
8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259
8260
8261fi
8262{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8263echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8264if test "$llvm_cv_link_use_r" = yes ; then
8265
8266cat >>confdefs.h <<\_ACEOF
8267#define HAVE_LINK_R 1
8268_ACEOF
8269
8270 fi
8271
8272
8273
8274
8275{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8276echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8277if test "${ac_cv_c_const+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279else
8280 cat >conftest.$ac_ext <<_ACEOF
8281/* confdefs.h. */
8282_ACEOF
8283cat confdefs.h >>conftest.$ac_ext
8284cat >>conftest.$ac_ext <<_ACEOF
8285/* end confdefs.h. */
8286
8287int
8288main ()
8289{
8290/* FIXME: Include the comments suggested by Paul. */
8291#ifndef __cplusplus
8292 /* Ultrix mips cc rejects this. */
8293 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008294 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008295 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008296 char const *const *ccp;
8297 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008298 /* NEC SVR4.0.2 mips cc rejects this. */
8299 struct point {int x, y;};
8300 static struct point const zero = {0,0};
8301 /* AIX XL C 1.02.0.0 rejects this.
8302 It does not let you subtract one const X* pointer from another in
8303 an arm of an if-expression whose if-part is not a constant
8304 expression */
8305 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008306 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008307 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008308 ++ccp;
8309 p = (char**) ccp;
8310 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008311 { /* SCO 3.2v4 cc rejects this. */
8312 char *t;
8313 char const *s = 0 ? (char *) 0 : (char const *) 0;
8314
8315 *t++ = 0;
8316 if (s) return 0;
8317 }
8318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8319 int x[] = {25, 17};
8320 const int *foo = &x[0];
8321 ++foo;
8322 }
8323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8324 typedef const int *iptr;
8325 iptr p = 0;
8326 ++p;
8327 }
8328 { /* AIX XL C 1.02.0.0 rejects this saying
8329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8330 struct s { int j; const int *ap[3]; };
8331 struct s *b; b->j = 5;
8332 }
8333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8334 const int foo = 10;
8335 if (!foo) return 0;
8336 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008337 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008338#endif
8339
8340 ;
8341 return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (ac_try="$ac_compile"
8346case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($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_try") 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008378 ac_cv_c_const=yes
8379else
8380 echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_c_const=no
8384fi
8385
8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387fi
8388{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8389echo "${ECHO_T}$ac_cv_c_const" >&6; }
8390if test $ac_cv_c_const = no; then
8391
8392cat >>confdefs.h <<\_ACEOF
8393#define const
8394_ACEOF
8395
8396fi
8397
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008398
8399
8400
8401
8402
8403ac_header_dirent=no
8404for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8405 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008406{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8407echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410else
8411 cat >conftest.$ac_ext <<_ACEOF
8412/* confdefs.h. */
8413_ACEOF
8414cat confdefs.h >>conftest.$ac_ext
8415cat >>conftest.$ac_ext <<_ACEOF
8416/* end confdefs.h. */
8417#include <sys/types.h>
8418#include <$ac_hdr>
8419
8420int
8421main ()
8422{
8423if ((DIR *) 0)
8424return 0;
8425 ;
8426 return 0;
8427}
8428_ACEOF
8429rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008430if { (ac_try="$ac_compile"
8431case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434esac
8435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008442 (exit $ac_status); } &&
8443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8444 { (case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8447esac
8448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449 (eval "$ac_try") 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest.$ac_objext'
8454 { (case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457esac
8458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_try") 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008463 eval "$as_ac_Header=yes"
8464else
8465 echo "$as_me: failed program was:" >&5
8466sed 's/^/| /' conftest.$ac_ext >&5
8467
Reid Spencera773bd52006-08-04 18:18:08 +00008468 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008469fi
Reid Spencera773bd52006-08-04 18:18:08 +00008470
8471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008472fi
Reid Spencera773bd52006-08-04 18:18:08 +00008473ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008476if test `eval echo '${'$as_ac_Header'}'` = yes; then
8477 cat >>confdefs.h <<_ACEOF
8478#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8479_ACEOF
8480
8481ac_header_dirent=$ac_hdr; break
8482fi
8483
8484done
8485# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8486if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008487 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8488echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008489if test "${ac_cv_search_opendir+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491else
8492 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008493cat >conftest.$ac_ext <<_ACEOF
8494/* confdefs.h. */
8495_ACEOF
8496cat confdefs.h >>conftest.$ac_ext
8497cat >>conftest.$ac_ext <<_ACEOF
8498/* end confdefs.h. */
8499
Reid Spencera773bd52006-08-04 18:18:08 +00008500/* Override any GCC internal prototype to avoid an error.
8501 Use char because int might match the return type of a GCC
8502 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008503#ifdef __cplusplus
8504extern "C"
8505#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008506char opendir ();
8507int
8508main ()
8509{
Reid Spencera773bd52006-08-04 18:18:08 +00008510return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008511 ;
8512 return 0;
8513}
8514_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008515for ac_lib in '' dir; do
8516 if test -z "$ac_lib"; then
8517 ac_res="none required"
8518 else
8519 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008521 fi
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523if { (ac_try="$ac_link"
8524case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8527esac
8528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540esac
8541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest$ac_exeext'
8547 { (case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550esac
8551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_try") 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008556 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008557else
8558 echo "$as_me: failed program was:" >&5
8559sed 's/^/| /' conftest.$ac_ext >&5
8560
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008561
8562fi
8563
Tanya Lattnercf067672008-01-17 05:57:22 +00008564rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008565 conftest$ac_exeext
8566 if test "${ac_cv_search_opendir+set}" = set; then
8567 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008568fi
John Criswell7a73b802003-06-30 21:59:07 +00008569done
Reid Spencera773bd52006-08-04 18:18:08 +00008570if test "${ac_cv_search_opendir+set}" = set; then
8571 :
8572else
8573 ac_cv_search_opendir=no
8574fi
8575rm conftest.$ac_ext
8576LIBS=$ac_func_search_save_LIBS
8577fi
8578{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8579echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8580ac_res=$ac_cv_search_opendir
8581if test "$ac_res" != no; then
8582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008583
Reid Spencera773bd52006-08-04 18:18:08 +00008584fi
8585
8586else
8587 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8588echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8589if test "${ac_cv_search_opendir+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591else
8592 ac_func_search_save_LIBS=$LIBS
8593cat >conftest.$ac_ext <<_ACEOF
8594/* confdefs.h. */
8595_ACEOF
8596cat confdefs.h >>conftest.$ac_ext
8597cat >>conftest.$ac_ext <<_ACEOF
8598/* end confdefs.h. */
8599
8600/* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8603#ifdef __cplusplus
8604extern "C"
8605#endif
8606char opendir ();
8607int
8608main ()
8609{
8610return opendir ();
8611 ;
8612 return 0;
8613}
8614_ACEOF
8615for ac_lib in '' x; do
8616 if test -z "$ac_lib"; then
8617 ac_res="none required"
8618 else
8619 ac_res=-l$ac_lib
8620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 fi
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623if { (ac_try="$ac_link"
8624case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627esac
8628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_link") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
8651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008656 ac_cv_search_opendir=$ac_res
8657else
8658 echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
8661
8662fi
8663
Tanya Lattnercf067672008-01-17 05:57:22 +00008664rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008665 conftest$ac_exeext
8666 if test "${ac_cv_search_opendir+set}" = set; then
8667 break
8668fi
8669done
8670if test "${ac_cv_search_opendir+set}" = set; then
8671 :
8672else
8673 ac_cv_search_opendir=no
8674fi
8675rm conftest.$ac_ext
8676LIBS=$ac_func_search_save_LIBS
8677fi
8678{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8679echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8680ac_res=$ac_cv_search_opendir
8681if test "$ac_res" != no; then
8682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8683
8684fi
8685
8686fi
John Criswell7a73b802003-06-30 21:59:07 +00008687
8688
8689for ac_header in dlfcn.h
8690do
8691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008696 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008697fi
Reid Spencera773bd52006-08-04 18:18:08 +00008698ac_res=`eval echo '${'$as_ac_Header'}'`
8699 { echo "$as_me:$LINENO: result: $ac_res" >&5
8700echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008701else
Brian Gaeke0a621332004-09-08 20:38:05 +00008702 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008705cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008711$ac_includes_default
8712#include <$ac_header>
8713_ACEOF
8714rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008715if { (ac_try="$ac_compile"
8716case "(($ac_try" in
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8719esac
8720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8729 { (case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732esac
8733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 (eval "$ac_try") 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8742esac
8743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_try") 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008748 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008749else
8750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008751sed 's/^/| /' conftest.$ac_ext >&5
8752
Reid Spencera773bd52006-08-04 18:18:08 +00008753 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008754fi
Reid Spencera773bd52006-08-04 18:18:08 +00008755
8756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8758echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008759
8760# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008763cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008764/* confdefs.h. */
8765_ACEOF
8766cat confdefs.h >>conftest.$ac_ext
8767cat >>conftest.$ac_ext <<_ACEOF
8768/* end confdefs.h. */
8769#include <$ac_header>
8770_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008771if { (ac_try="$ac_cpp conftest.$ac_ext"
8772case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8775esac
8776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008783 (exit $ac_status); } >/dev/null; then
8784 if test -s conftest.err; then
8785 ac_cpp_err=$ac_c_preproc_warn_flag
8786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8787 else
8788 ac_cpp_err=
8789 fi
8790else
8791 ac_cpp_err=yes
8792fi
8793if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008794 ac_header_preproc=yes
8795else
8796 echo "$as_me: failed program was:" >&5
8797sed 's/^/| /' conftest.$ac_ext >&5
8798
8799 ac_header_preproc=no
8800fi
Reid Spencera773bd52006-08-04 18:18:08 +00008801
Brian Gaeke0a621332004-09-08 20:38:05 +00008802rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8804echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008805
8806# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8808 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8813 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008814 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008815 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8819echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8823echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008828 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008829## ----------------------------------- ##
8830## Report this to llvmbugs@cs.uiuc.edu ##
8831## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008832_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008833 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008834 ;;
8835esac
Reid Spencera773bd52006-08-04 18:18:08 +00008836{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008841 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008842fi
Reid Spencera773bd52006-08-04 18:18:08 +00008843ac_res=`eval echo '${'$as_ac_Header'}'`
8844 { echo "$as_me:$LINENO: result: $ac_res" >&5
8845echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008846
8847fi
John Criswell7a73b802003-06-30 21:59:07 +00008848if test `eval echo '${'$as_ac_Header'}'` = yes; then
8849 cat >>confdefs.h <<_ACEOF
8850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851_ACEOF
8852
8853fi
8854
8855done
8856
Reid Spencera773bd52006-08-04 18:18:08 +00008857# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008858if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008859 enableval=$enable_ltdl_install;
8860fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008861
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008862
Duncan Sands1eff7042007-12-10 17:43:13 +00008863
8864
8865if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008866 INSTALL_LTDL_TRUE=
8867 INSTALL_LTDL_FALSE='#'
8868else
8869 INSTALL_LTDL_TRUE='#'
8870 INSTALL_LTDL_FALSE=
8871fi
8872
Duncan Sands1eff7042007-12-10 17:43:13 +00008873
8874
8875if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008876 CONVENIENCE_LTDL_TRUE=
8877 CONVENIENCE_LTDL_FALSE='#'
8878else
8879 CONVENIENCE_LTDL_TRUE='#'
8880 CONVENIENCE_LTDL_FALSE=
8881fi
8882
8883
Reid Spencera773bd52006-08-04 18:18:08 +00008884{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8885echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008886library_names_spec=
8887libname_spec='lib$name'
8888soname_spec=
8889shrext_cmds=".so"
8890postinstall_cmds=
8891postuninstall_cmds=
8892finish_cmds=
8893finish_eval=
8894shlibpath_var=
8895shlibpath_overrides_runpath=unknown
8896version_type=none
8897dynamic_linker="$host_os ld.so"
8898sys_lib_dlsearch_path_spec="/lib /usr/lib"
8899if test "$GCC" = yes; then
8900 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8901 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8902 # if the path contains ";" then we assume it to be the separator
8903 # otherwise default to the standard path separator (i.e. ":") - it is
8904 # assumed that no part of a normal pathname contains ";" but that should
8905 # okay in the real world where ";" in dirpaths is itself problematic.
8906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8907 else
8908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8909 fi
8910else
8911 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8912fi
8913need_lib_prefix=unknown
8914hardcode_into_libs=no
8915
8916# when you set need_version to no, make sure it does not cause -set_version
8917# flags to be left without arguments
8918need_version=unknown
8919
8920case $host_os in
8921aix3*)
8922 version_type=linux
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8924 shlibpath_var=LIBPATH
8925
8926 # AIX 3 has no versioning support, so we append a major version to the name.
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 ;;
8929
8930aix4* | aix5*)
8931 version_type=linux
8932 need_lib_prefix=no
8933 need_version=no
8934 hardcode_into_libs=yes
8935 if test "$host_cpu" = ia64; then
8936 # AIX 5 supports IA64
8937 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 else
8940 # With GCC up to 2.95.x, collect2 would create an import file
8941 # for dependence libraries. The import file would start with
8942 # the line `#! .'. This would cause the generated library to
8943 # depend on `.', always an invalid library. This was fixed in
8944 # development snapshots of GCC prior to 3.0.
8945 case $host_os in
8946 aix4 | aix4.[01] | aix4.[01].*)
8947 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8948 echo ' yes '
8949 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8950 :
8951 else
8952 can_build_shared=no
8953 fi
8954 ;;
8955 esac
8956 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8957 # soname into executable. Probably we can add versioning support to
8958 # collect2, so additional links can be useful in future.
8959 if test "$aix_use_runtimelinking" = yes; then
8960 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8961 # instead of lib<name>.a to let people know that these are not
8962 # typical AIX shared libraries.
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 else
8965 # We preserve .a as extension for shared libraries through AIX4.2
8966 # and later when we are not doing run time linking.
8967 library_names_spec='${libname}${release}.a $libname.a'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 fi
8970 shlibpath_var=LIBPATH
8971 fi
8972 ;;
8973
8974amigaos*)
8975 library_names_spec='$libname.ixlibrary $libname.a'
8976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8977 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'
8978 ;;
8979
8980beos*)
8981 library_names_spec='${libname}${shared_ext}'
8982 dynamic_linker="$host_os ld.so"
8983 shlibpath_var=LIBRARY_PATH
8984 ;;
8985
8986bsdi[45]*)
8987 version_type=linux
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8994 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8995 # the default ld.so.conf also contains /usr/contrib/lib and
8996 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8997 # libtool to hard-code these into programs
8998 ;;
8999
9000cygwin* | mingw* | pw32*)
9001 version_type=windows
9002 shrext_cmds=".dll"
9003 need_version=no
9004 need_lib_prefix=no
9005
9006 case $GCC,$host_os in
9007 yes,cygwin* | yes,mingw* | yes,pw32*)
9008 library_names_spec='$libname.dll.a'
9009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9010 postinstall_cmds='base_file=`basename \${file}`~
9011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9012 dldir=$destdir/`dirname \$dlpath`~
9013 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009014 $install_prog $dir/$dlname \$dldir/$dlname~
9015 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9017 dlpath=$dir/\$dldll~
9018 $rm \$dlpath'
9019 shlibpath_overrides_runpath=yes
9020
9021 case $host_os in
9022 cygwin*)
9023 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9024 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9025 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9026 ;;
9027 mingw*)
9028 # MinGW DLLs use traditional 'lib' prefix
9029 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9031 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9032 # It is most probably a Windows format PATH printed by
9033 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9034 # path with ; separators, and with drive letters. We can handle the
9035 # drive letters (cygwin fileutils understands them), so leave them,
9036 # especially as we might pass files found there to a mingw objdump,
9037 # which wouldn't understand a cygwinified path. Ahh.
9038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9039 else
9040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9041 fi
9042 ;;
9043 pw32*)
9044 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009045 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 +00009046 ;;
9047 esac
9048 ;;
9049
9050 *)
9051 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9052 ;;
9053 esac
9054 dynamic_linker='Win32 ld.exe'
9055 # FIXME: first we should search . and the directory the executable is in
9056 shlibpath_var=PATH
9057 ;;
9058
9059darwin* | rhapsody*)
9060 dynamic_linker="$host_os dyld"
9061 version_type=darwin
9062 need_lib_prefix=no
9063 need_version=no
9064 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9065 soname_spec='${libname}${release}${major}$shared_ext'
9066 shlibpath_overrides_runpath=yes
9067 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009068 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009069 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9070 if test "$GCC" = yes; then
9071 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"`
9072 else
9073 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9074 fi
9075 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9076 ;;
9077
9078dgux*)
9079 version_type=linux
9080 need_lib_prefix=no
9081 need_version=no
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 ;;
9086
9087freebsd1*)
9088 dynamic_linker=no
9089 ;;
9090
9091kfreebsd*-gnu)
9092 version_type=linux
9093 need_lib_prefix=no
9094 need_version=no
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9100 dynamic_linker='GNU ld.so'
9101 ;;
9102
Reid Spencera773bd52006-08-04 18:18:08 +00009103freebsd* | dragonfly*)
9104 # DragonFly does not have aout. When/if they implement a new
9105 # versioning mechanism, adjust this.
9106 if test -x /usr/bin/objformat; then
9107 objformat=`/usr/bin/objformat`
9108 else
9109 case $host_os in
9110 freebsd[123]*) objformat=aout ;;
9111 *) objformat=elf ;;
9112 esac
9113 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009114 version_type=freebsd-$objformat
9115 case $version_type in
9116 freebsd-elf*)
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9118 need_version=no
9119 need_lib_prefix=no
9120 ;;
9121 freebsd-*)
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9123 need_version=yes
9124 ;;
9125 esac
9126 shlibpath_var=LD_LIBRARY_PATH
9127 case $host_os in
9128 freebsd2*)
9129 shlibpath_overrides_runpath=yes
9130 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009131 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009132 shlibpath_overrides_runpath=yes
9133 hardcode_into_libs=yes
9134 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009137 shlibpath_overrides_runpath=no
9138 hardcode_into_libs=yes
9139 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009140 freebsd*) # from 4.6 on
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9143 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009144 esac
9145 ;;
9146
9147gnu*)
9148 version_type=linux
9149 need_lib_prefix=no
9150 need_version=no
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 hardcode_into_libs=yes
9155 ;;
9156
9157hpux9* | hpux10* | hpux11*)
9158 # Give a soname corresponding to the major version so that dld.sl refuses to
9159 # link against other versions.
9160 version_type=sunos
9161 need_lib_prefix=no
9162 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009163 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164 ia64*)
9165 shrext_cmds='.so'
9166 hardcode_into_libs=yes
9167 dynamic_linker="$host_os dld.so"
9168 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 if test "X$HPUX_IA64_MODE" = X32; then
9173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9174 else
9175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9176 fi
9177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9178 ;;
9179 hppa*64*)
9180 shrext_cmds='.sl'
9181 hardcode_into_libs=yes
9182 dynamic_linker="$host_os dld.sl"
9183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9189 ;;
9190 *)
9191 shrext_cmds='.sl'
9192 dynamic_linker="$host_os dld.sl"
9193 shlibpath_var=SHLIB_PATH
9194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 ;;
9198 esac
9199 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9200 postinstall_cmds='chmod 555 $lib'
9201 ;;
9202
Reid Spencera773bd52006-08-04 18:18:08 +00009203interix3*)
9204 version_type=linux
9205 need_lib_prefix=no
9206 need_version=no
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=no
9212 hardcode_into_libs=yes
9213 ;;
9214
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215irix5* | irix6* | nonstopux*)
9216 case $host_os in
9217 nonstopux*) version_type=nonstopux ;;
9218 *)
9219 if test "$lt_cv_prog_gnu_ld" = yes; then
9220 version_type=linux
9221 else
9222 version_type=irix
9223 fi ;;
9224 esac
9225 need_lib_prefix=no
9226 need_version=no
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9229 case $host_os in
9230 irix5* | nonstopux*)
9231 libsuff= shlibsuff=
9232 ;;
9233 *)
9234 case $LD in # libtool.m4 will add one of these switches to LD
9235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9236 libsuff= shlibsuff= libmagic=32-bit;;
9237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9238 libsuff=32 shlibsuff=N32 libmagic=N32;;
9239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9241 *) libsuff= shlibsuff= libmagic=never-match;;
9242 esac
9243 ;;
9244 esac
9245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9246 shlibpath_overrides_runpath=no
9247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9249 hardcode_into_libs=yes
9250 ;;
9251
9252# No shared lib support for Linux oldld, aout, or coff.
9253linux*oldld* | linux*aout* | linux*coff*)
9254 dynamic_linker=no
9255 ;;
9256
9257# This must be Linux ELF.
9258linux*)
9259 version_type=linux
9260 need_lib_prefix=no
9261 need_version=no
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 soname_spec='${libname}${release}${shared_ext}$major'
9264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=no
9267 # This implies no fast_install, which is unacceptable.
9268 # Some rework will be needed to allow for fast_install
9269 # before this can be enabled.
9270 hardcode_into_libs=yes
9271
9272 # Append ld.so.conf contents to the search path
9273 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009274 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 +00009275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9276 fi
9277
9278 # We used to test for /lib/ld.so.1 and disable shared libraries on
9279 # powerpc, because MkLinux only supported shared libraries with the
9280 # GNU dynamic linker. Since this was broken with cross compilers,
9281 # most powerpc-linux boxes support dynamic linking these days and
9282 # people can always --disable-shared, the test was removed, and we
9283 # assume the GNU/Linux dynamic linker is in use.
9284 dynamic_linker='GNU/Linux ld.so'
9285 ;;
9286
9287knetbsd*-gnu)
9288 version_type=linux
9289 need_lib_prefix=no
9290 need_version=no
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9292 soname_spec='${libname}${release}${shared_ext}$major'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 shlibpath_overrides_runpath=no
9295 hardcode_into_libs=yes
9296 dynamic_linker='GNU ld.so'
9297 ;;
9298
9299netbsd*)
9300 version_type=sunos
9301 need_lib_prefix=no
9302 need_version=no
9303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9306 dynamic_linker='NetBSD (a.out) ld.so'
9307 else
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 dynamic_linker='NetBSD ld.elf_so'
9311 fi
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9315 ;;
9316
9317newsos6)
9318 version_type=linux
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=yes
9322 ;;
9323
9324nto-qnx*)
9325 version_type=linux
9326 need_lib_prefix=no
9327 need_version=no
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 shlibpath_overrides_runpath=yes
9332 ;;
9333
9334openbsd*)
9335 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009336 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009338 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9339 case $host_os in
9340 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9341 *) need_version=no ;;
9342 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9347 case $host_os in
9348 openbsd2.[89] | openbsd2.[89].*)
9349 shlibpath_overrides_runpath=no
9350 ;;
9351 *)
9352 shlibpath_overrides_runpath=yes
9353 ;;
9354 esac
9355 else
9356 shlibpath_overrides_runpath=yes
9357 fi
9358 ;;
9359
9360os2*)
9361 libname_spec='$name'
9362 shrext_cmds=".dll"
9363 need_lib_prefix=no
9364 library_names_spec='$libname${shared_ext} $libname.a'
9365 dynamic_linker='OS/2 ld.exe'
9366 shlibpath_var=LIBPATH
9367 ;;
9368
9369osf3* | osf4* | osf5*)
9370 version_type=osf
9371 need_lib_prefix=no
9372 need_version=no
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9378 ;;
9379
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009380solaris*)
9381 version_type=linux
9382 need_lib_prefix=no
9383 need_version=no
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 shlibpath_overrides_runpath=yes
9388 hardcode_into_libs=yes
9389 # ldd complains unless libraries are executable
9390 postinstall_cmds='chmod +x $lib'
9391 ;;
9392
9393sunos4*)
9394 version_type=sunos
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9396 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9397 shlibpath_var=LD_LIBRARY_PATH
9398 shlibpath_overrides_runpath=yes
9399 if test "$with_gnu_ld" = yes; then
9400 need_lib_prefix=no
9401 fi
9402 need_version=yes
9403 ;;
9404
Reid Spencera773bd52006-08-04 18:18:08 +00009405sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406 version_type=linux
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 case $host_vendor in
9411 sni)
9412 shlibpath_overrides_runpath=no
9413 need_lib_prefix=no
9414 export_dynamic_flag_spec='${wl}-Blargedynsym'
9415 runpath_var=LD_RUN_PATH
9416 ;;
9417 siemens)
9418 need_lib_prefix=no
9419 ;;
9420 motorola)
9421 need_lib_prefix=no
9422 need_version=no
9423 shlibpath_overrides_runpath=no
9424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9425 ;;
9426 esac
9427 ;;
9428
9429sysv4*MP*)
9430 if test -d /usr/nec ;then
9431 version_type=linux
9432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9433 soname_spec='$libname${shared_ext}.$major'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 fi
9436 ;;
9437
Reid Spencera773bd52006-08-04 18:18:08 +00009438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9439 version_type=freebsd-elf
9440 need_lib_prefix=no
9441 need_version=no
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 shlibpath_var=LD_LIBRARY_PATH
9445 hardcode_into_libs=yes
9446 if test "$with_gnu_ld" = yes; then
9447 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9448 shlibpath_overrides_runpath=no
9449 else
9450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9451 shlibpath_overrides_runpath=yes
9452 case $host_os in
9453 sco3.2v5*)
9454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9455 ;;
9456 esac
9457 fi
9458 sys_lib_dlsearch_path_spec='/usr/lib'
9459 ;;
9460
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009461uts4*)
9462 version_type=linux
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 ;;
9467
9468*)
9469 dynamic_linker=no
9470 ;;
9471esac
Reid Spencera773bd52006-08-04 18:18:08 +00009472{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9473echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474test "$dynamic_linker" = no && can_build_shared=no
9475
Reid Spencera773bd52006-08-04 18:18:08 +00009476variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9477if test "$GCC" = yes; then
9478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9479fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009480
Reid Spencera773bd52006-08-04 18:18:08 +00009481
9482{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9483echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484if test "${libltdl_cv_shlibext+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487
9488module=yes
9489eval libltdl_cv_shlibext=$shrext_cmds
9490
9491fi
Reid Spencera773bd52006-08-04 18:18:08 +00009492{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9493echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494if test -n "$libltdl_cv_shlibext"; then
9495
9496cat >>confdefs.h <<_ACEOF
9497#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9498_ACEOF
9499
9500fi
9501
9502
Reid Spencera773bd52006-08-04 18:18:08 +00009503{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9504echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009505if test "${libltdl_cv_shlibpath_var+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507else
9508 libltdl_cv_shlibpath_var="$shlibpath_var"
9509fi
Reid Spencera773bd52006-08-04 18:18:08 +00009510{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9511echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512if test -n "$libltdl_cv_shlibpath_var"; then
9513
9514cat >>confdefs.h <<_ACEOF
9515#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9516_ACEOF
9517
9518fi
9519
9520
Reid Spencera773bd52006-08-04 18:18:08 +00009521{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9522echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009523if test "${libltdl_cv_sys_search_path+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525else
9526 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9527fi
Reid Spencera773bd52006-08-04 18:18:08 +00009528{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9529echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530if test -n "$libltdl_cv_sys_search_path"; then
9531 sys_search_path=
9532 for dir in $libltdl_cv_sys_search_path; do
9533 if test -z "$sys_search_path"; then
9534 sys_search_path="$dir"
9535 else
9536 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9537 fi
9538 done
9539
9540cat >>confdefs.h <<_ACEOF
9541#define LTDL_SYSSEARCHPATH "$sys_search_path"
9542_ACEOF
9543
9544fi
9545
Reid Spencera773bd52006-08-04 18:18:08 +00009546{ echo "$as_me:$LINENO: checking for objdir" >&5
9547echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548if test "${libltdl_cv_objdir+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550else
9551 libltdl_cv_objdir="$objdir"
9552 if test -n "$objdir"; then
9553 :
9554 else
9555 rm -f .libs 2>/dev/null
9556 mkdir .libs 2>/dev/null
9557 if test -d .libs; then
9558 libltdl_cv_objdir=.libs
9559 else
9560 # MS-DOS does not allow filenames that begin with a dot.
9561 libltdl_cv_objdir=_libs
9562 fi
9563 rmdir .libs 2>/dev/null
9564 fi
9565
9566fi
Reid Spencera773bd52006-08-04 18:18:08 +00009567{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9568echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009569
9570cat >>confdefs.h <<_ACEOF
9571#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9572_ACEOF
9573
9574
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009575
9576
9577
9578
9579# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009580{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9581echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009582if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584else
9585
9586# These are sane defaults that work on at least a few old systems.
9587# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9588
9589# Character class describing NM global symbol codes.
9590symcode='[BCDEGRST]'
9591
9592# Regexp to match symbols that can be accessed directly from C.
9593sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9594
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595# Transform an extracted symbol line into a proper C declaration
9596lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9597
9598# Transform an extracted symbol line into symbol name and symbol address
9599lt_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'"
9600
9601# Define system-specific variables.
9602case $host_os in
9603aix*)
9604 symcode='[BCDT]'
9605 ;;
9606cygwin* | mingw* | pw32*)
9607 symcode='[ABCDGISTW]'
9608 ;;
9609hpux*) # Its linker distinguishes data from code symbols
9610 if test "$host_cpu" = ia64; then
9611 symcode='[ABCDEGRST]'
9612 fi
9613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9614 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'"
9615 ;;
9616linux*)
9617 if test "$host_cpu" = ia64; then
9618 symcode='[ABCDGIRSTW]'
9619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9620 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'"
9621 fi
9622 ;;
9623irix* | nonstopux*)
9624 symcode='[BCDEGRST]'
9625 ;;
9626osf*)
9627 symcode='[BCDEGQRST]'
9628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009629solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630 symcode='[BDRT]'
9631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009632sco3.2v5*)
9633 symcode='[DT]'
9634 ;;
9635sysv4.2uw2*)
9636 symcode='[DT]'
9637 ;;
9638sysv5* | sco5v6* | unixware* | OpenUNIX*)
9639 symcode='[ABDT]'
9640 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641sysv4)
9642 symcode='[DFNSTU]'
9643 ;;
9644esac
9645
9646# Handle CRLF in mingw tool chain
9647opt_cr=
9648case $build_os in
9649mingw*)
9650 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9651 ;;
9652esac
9653
9654# If we're using GNU nm, then use its standard symbol codes.
9655case `$NM -V 2>&1` in
9656*GNU* | *'with BFD'*)
9657 symcode='[ABCDGIRSTW]' ;;
9658esac
9659
9660# Try without a prefix undercore, then with it.
9661for ac_symprfx in "" "_"; do
9662
Reid Spencera773bd52006-08-04 18:18:08 +00009663 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9664 symxfrm="\\1 $ac_symprfx\\2 \\2"
9665
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009667 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 +00009668
9669 # Check to see that the pipe works correctly.
9670 pipe_works=no
9671
9672 rm -f conftest*
9673 cat > conftest.$ac_ext <<EOF
9674#ifdef __cplusplus
9675extern "C" {
9676#endif
9677char nm_test_var;
9678void nm_test_func(){}
9679#ifdef __cplusplus
9680}
9681#endif
9682int main(){nm_test_var='a';nm_test_func();return(0);}
9683EOF
9684
9685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9686 (eval $ac_compile) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; then
9690 # Now try to grab the symbols.
9691 nlist=conftest.nm
9692 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9693 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && test -s "$nlist"; then
9697 # Try sorting and uniquifying the output.
9698 if sort "$nlist" | uniq > "$nlist"T; then
9699 mv -f "$nlist"T "$nlist"
9700 else
9701 rm -f "$nlist"T
9702 fi
9703
9704 # Make sure that we snagged all the symbols we need.
9705 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9706 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9707 cat <<EOF > conftest.$ac_ext
9708#ifdef __cplusplus
9709extern "C" {
9710#endif
9711
9712EOF
9713 # Now generate the symbol file.
9714 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9715
9716 cat <<EOF >> conftest.$ac_ext
9717#if defined (__STDC__) && __STDC__
9718# define lt_ptr_t void *
9719#else
9720# define lt_ptr_t char *
9721# define const
9722#endif
9723
9724/* The mapping between symbol names and symbols. */
9725const struct {
9726 const char *name;
9727 lt_ptr_t address;
9728}
9729lt_preloaded_symbols[] =
9730{
9731EOF
9732 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9733 cat <<\EOF >> conftest.$ac_ext
9734 {0, (lt_ptr_t) 0}
9735};
9736
9737#ifdef __cplusplus
9738}
9739#endif
9740EOF
9741 # Now try linking the two files.
9742 mv conftest.$ac_objext conftstm.$ac_objext
9743 lt_save_LIBS="$LIBS"
9744 lt_save_CFLAGS="$CFLAGS"
9745 LIBS="conftstm.$ac_objext"
9746 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9752 pipe_works=yes
9753 fi
9754 LIBS="$lt_save_LIBS"
9755 CFLAGS="$lt_save_CFLAGS"
9756 else
9757 echo "cannot find nm_test_func in $nlist" >&5
9758 fi
9759 else
9760 echo "cannot find nm_test_var in $nlist" >&5
9761 fi
9762 else
9763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9764 fi
9765 else
9766 echo "$progname: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 fi
9769 rm -f conftest* conftst*
9770
9771 # Do not use the global_symbol_pipe unless it works.
9772 if test "$pipe_works" = yes; then
9773 break
9774 else
9775 lt_cv_sys_global_symbol_pipe=
9776 fi
9777done
9778
9779fi
9780
9781if test -z "$lt_cv_sys_global_symbol_pipe"; then
9782 lt_cv_sys_global_symbol_to_cdecl=
9783fi
9784if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009785 { echo "$as_me:$LINENO: result: failed" >&5
9786echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787else
Reid Spencera773bd52006-08-04 18:18:08 +00009788 { echo "$as_me:$LINENO: result: ok" >&5
9789echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790fi
9791
9792
Reid Spencera773bd52006-08-04 18:18:08 +00009793{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9794echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9799 libltdl_cv_preloaded_symbols=yes
9800 else
9801 libltdl_cv_preloaded_symbols=no
9802 fi
9803
9804fi
Reid Spencera773bd52006-08-04 18:18:08 +00009805{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9806echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009807if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9808
9809cat >>confdefs.h <<\_ACEOF
9810#define HAVE_PRELOADED_SYMBOLS 1
9811_ACEOF
9812
9813fi
9814
9815LIBADD_DL=
9816
9817ac_ext=c
9818ac_cpp='$CPP $CPPFLAGS'
9819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9821ac_compiler_gnu=$ac_cv_c_compiler_gnu
9822
9823
Reid Spencera773bd52006-08-04 18:18:08 +00009824{ echo "$as_me:$LINENO: checking for shl_load" >&5
9825echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826if test "${ac_cv_func_shl_load+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829 cat >conftest.$ac_ext <<_ACEOF
9830/* confdefs.h. */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h. */
9835/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9837#define shl_load innocuous_shl_load
9838
9839/* System header to define __stub macros and hopefully few prototypes,
9840 which can conflict with char shl_load (); below.
9841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9842 <limits.h> exists even on freestanding compilers. */
9843
9844#ifdef __STDC__
9845# include <limits.h>
9846#else
9847# include <assert.h>
9848#endif
9849
9850#undef shl_load
9851
Reid Spencera773bd52006-08-04 18:18:08 +00009852/* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855#ifdef __cplusplus
9856extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858char shl_load ();
9859/* The GNU C library defines this for functions which it implements
9860 to always fail with ENOSYS. Some functions are actually named
9861 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009862#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864#endif
9865
9866int
9867main ()
9868{
Reid Spencera773bd52006-08-04 18:18:08 +00009869return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870 ;
9871 return 0;
9872}
9873_ACEOF
9874rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009875if { (ac_try="$ac_link"
9876case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009887 (exit $ac_status); } &&
9888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9889 { (case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_try") 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest$ac_exeext'
9899 { (case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_try") 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908 ac_cv_func_shl_load=yes
9909else
9910 echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
Reid Spencera773bd52006-08-04 18:18:08 +00009913 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914fi
Reid Spencera773bd52006-08-04 18:18:08 +00009915
Tanya Lattnercf067672008-01-17 05:57:22 +00009916rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917 conftest$ac_exeext conftest.$ac_ext
9918fi
Reid Spencera773bd52006-08-04 18:18:08 +00009919{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9920echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921if test $ac_cv_func_shl_load = yes; then
9922
9923cat >>confdefs.h <<\_ACEOF
9924#define HAVE_SHL_LOAD 1
9925_ACEOF
9926
9927else
Reid Spencera773bd52006-08-04 18:18:08 +00009928 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9929echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933 ac_check_lib_save_LIBS=$LIBS
9934LIBS="-ldld $LIBS"
9935cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
9941
Reid Spencera773bd52006-08-04 18:18:08 +00009942/* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945#ifdef __cplusplus
9946extern "C"
9947#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009948char shl_load ();
9949int
9950main ()
9951{
Reid Spencera773bd52006-08-04 18:18:08 +00009952return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953 ;
9954 return 0;
9955}
9956_ACEOF
9957rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009958if { (ac_try="$ac_link"
9959case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9962esac
9963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975esac
9976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985esac
9986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_try") 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 ac_cv_lib_dld_shl_load=yes
9992else
9993 echo "$as_me: failed program was:" >&5
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
Reid Spencera773bd52006-08-04 18:18:08 +00009996 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997fi
Reid Spencera773bd52006-08-04 18:18:08 +00009998
Tanya Lattnercf067672008-01-17 05:57:22 +00009999rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000 conftest$ac_exeext conftest.$ac_ext
10001LIBS=$ac_check_lib_save_LIBS
10002fi
Reid Spencera773bd52006-08-04 18:18:08 +000010003{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10004echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005if test $ac_cv_lib_dld_shl_load = yes; then
10006
10007cat >>confdefs.h <<\_ACEOF
10008#define HAVE_SHL_LOAD 1
10009_ACEOF
10010
10011 LIBADD_DL="$LIBADD_DL -ldld"
10012else
Reid Spencera773bd52006-08-04 18:18:08 +000010013 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10014echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010015if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017else
10018 ac_check_lib_save_LIBS=$LIBS
10019LIBS="-ldl $LIBS"
10020cat >conftest.$ac_ext <<_ACEOF
10021/* confdefs.h. */
10022_ACEOF
10023cat confdefs.h >>conftest.$ac_ext
10024cat >>conftest.$ac_ext <<_ACEOF
10025/* end confdefs.h. */
10026
Reid Spencera773bd52006-08-04 18:18:08 +000010027/* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030#ifdef __cplusplus
10031extern "C"
10032#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010033char dlopen ();
10034int
10035main ()
10036{
Reid Spencera773bd52006-08-04 18:18:08 +000010037return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010038 ;
10039 return 0;
10040}
10041_ACEOF
10042rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010043if { (ac_try="$ac_link"
10044case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047esac
10048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060esac
10061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070esac
10071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076 ac_cv_lib_dl_dlopen=yes
10077else
10078 echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
Reid Spencera773bd52006-08-04 18:18:08 +000010081 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082fi
Reid Spencera773bd52006-08-04 18:18:08 +000010083
Tanya Lattnercf067672008-01-17 05:57:22 +000010084rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085 conftest$ac_exeext conftest.$ac_ext
10086LIBS=$ac_check_lib_save_LIBS
10087fi
Reid Spencera773bd52006-08-04 18:18:08 +000010088{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10089echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090if test $ac_cv_lib_dl_dlopen = yes; then
10091
10092cat >>confdefs.h <<\_ACEOF
10093#define HAVE_LIBDL 1
10094_ACEOF
10095
10096 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10097else
10098 cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h. */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104#if HAVE_DLFCN_H
10105# include <dlfcn.h>
10106#endif
10107
10108int
10109main ()
10110{
10111dlopen(0, 0);
10112 ;
10113 return 0;
10114}
10115_ACEOF
10116rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010117if { (ac_try="$ac_link"
10118case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10121esac
10122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134esac
10135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; } &&
10140 { ac_try='test -s conftest$ac_exeext'
10141 { (case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_try") 2>&5
10147 ac_status=$?
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150
10151cat >>confdefs.h <<\_ACEOF
10152#define HAVE_LIBDL 1
10153_ACEOF
10154 libltdl_cv_func_dlopen="yes"
10155else
10156 echo "$as_me: failed program was:" >&5
10157sed 's/^/| /' conftest.$ac_ext >&5
10158
Reid Spencera773bd52006-08-04 18:18:08 +000010159 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10160echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163else
10164 ac_check_lib_save_LIBS=$LIBS
10165LIBS="-lsvld $LIBS"
10166cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h. */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h. */
10172
Reid Spencera773bd52006-08-04 18:18:08 +000010173/* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176#ifdef __cplusplus
10177extern "C"
10178#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179char dlopen ();
10180int
10181main ()
10182{
Reid Spencera773bd52006-08-04 18:18:08 +000010183return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184 ;
10185 return 0;
10186}
10187_ACEOF
10188rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010189if { (ac_try="$ac_link"
10190case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193esac
10194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 ac_cv_lib_svld_dlopen=yes
10223else
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
Reid Spencera773bd52006-08-04 18:18:08 +000010227 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228fi
Reid Spencera773bd52006-08-04 18:18:08 +000010229
Tanya Lattnercf067672008-01-17 05:57:22 +000010230rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231 conftest$ac_exeext conftest.$ac_ext
10232LIBS=$ac_check_lib_save_LIBS
10233fi
Reid Spencera773bd52006-08-04 18:18:08 +000010234{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10235echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236if test $ac_cv_lib_svld_dlopen = yes; then
10237
10238cat >>confdefs.h <<\_ACEOF
10239#define HAVE_LIBDL 1
10240_ACEOF
10241
10242 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10243else
Reid Spencera773bd52006-08-04 18:18:08 +000010244 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10245echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248else
10249 ac_check_lib_save_LIBS=$LIBS
10250LIBS="-ldld $LIBS"
10251cat >conftest.$ac_ext <<_ACEOF
10252/* confdefs.h. */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h. */
10257
Reid Spencera773bd52006-08-04 18:18:08 +000010258/* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261#ifdef __cplusplus
10262extern "C"
10263#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264char dld_link ();
10265int
10266main ()
10267{
Reid Spencera773bd52006-08-04 18:18:08 +000010268return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269 ;
10270 return 0;
10271}
10272_ACEOF
10273rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010274if { (ac_try="$ac_link"
10275case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278esac
10279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010281 ac_status=$?
10282 grep -v '^ *+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010286 (exit $ac_status); } &&
10287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10288 { (case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291esac
10292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_try") 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10301esac
10302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_try") 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307 ac_cv_lib_dld_dld_link=yes
10308else
10309 echo "$as_me: failed program was:" >&5
10310sed 's/^/| /' conftest.$ac_ext >&5
10311
Reid Spencera773bd52006-08-04 18:18:08 +000010312 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313fi
Reid Spencera773bd52006-08-04 18:18:08 +000010314
Tanya Lattnercf067672008-01-17 05:57:22 +000010315rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316 conftest$ac_exeext conftest.$ac_ext
10317LIBS=$ac_check_lib_save_LIBS
10318fi
Reid Spencera773bd52006-08-04 18:18:08 +000010319{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10320echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321if test $ac_cv_lib_dld_dld_link = yes; then
10322
10323cat >>confdefs.h <<\_ACEOF
10324#define HAVE_DLD 1
10325_ACEOF
10326
10327 LIBADD_DL="$LIBADD_DL -ldld"
10328else
Reid Spencera773bd52006-08-04 18:18:08 +000010329 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10330echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334 cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h. */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h. */
10340/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10342#define _dyld_func_lookup innocuous__dyld_func_lookup
10343
10344/* System header to define __stub macros and hopefully few prototypes,
10345 which can conflict with char _dyld_func_lookup (); below.
10346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10347 <limits.h> exists even on freestanding compilers. */
10348
10349#ifdef __STDC__
10350# include <limits.h>
10351#else
10352# include <assert.h>
10353#endif
10354
10355#undef _dyld_func_lookup
10356
Reid Spencera773bd52006-08-04 18:18:08 +000010357/* Override any GCC internal prototype to avoid an error.
10358 Use char because int might match the return type of a GCC
10359 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360#ifdef __cplusplus
10361extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363char _dyld_func_lookup ();
10364/* The GNU C library defines this for functions which it implements
10365 to always fail with ENOSYS. Some functions are actually named
10366 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010367#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369#endif
10370
10371int
10372main ()
10373{
Reid Spencera773bd52006-08-04 18:18:08 +000010374return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375 ;
10376 return 0;
10377}
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010380if { (ac_try="$ac_link"
10381case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10384esac
10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10394 { (case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_try") 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_try") 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413 ac_cv_func__dyld_func_lookup=yes
10414else
10415 echo "$as_me: failed program was:" >&5
10416sed 's/^/| /' conftest.$ac_ext >&5
10417
Reid Spencera773bd52006-08-04 18:18:08 +000010418 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419fi
Reid Spencera773bd52006-08-04 18:18:08 +000010420
Tanya Lattnercf067672008-01-17 05:57:22 +000010421rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422 conftest$ac_exeext conftest.$ac_ext
10423fi
Reid Spencera773bd52006-08-04 18:18:08 +000010424{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10425echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426if test $ac_cv_func__dyld_func_lookup = yes; then
10427
10428cat >>confdefs.h <<\_ACEOF
10429#define HAVE_DYLD 1
10430_ACEOF
10431
10432fi
10433
10434
10435fi
10436
10437
10438fi
10439
10440
10441fi
Reid Spencera773bd52006-08-04 18:18:08 +000010442
Tanya Lattnercf067672008-01-17 05:57:22 +000010443rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444 conftest$ac_exeext conftest.$ac_ext
10445
10446fi
10447
10448
10449fi
10450
10451
10452fi
10453
10454
10455if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10456then
10457 lt_save_LIBS="$LIBS"
10458 LIBS="$LIBS $LIBADD_DL"
10459
10460for ac_func in dlerror
10461do
10462as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010463{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10464echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10465if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468 cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h. */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h. */
10474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10476#define $ac_func innocuous_$ac_func
10477
10478/* System header to define __stub macros and hopefully few prototypes,
10479 which can conflict with char $ac_func (); below.
10480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10481 <limits.h> exists even on freestanding compilers. */
10482
10483#ifdef __STDC__
10484# include <limits.h>
10485#else
10486# include <assert.h>
10487#endif
10488
10489#undef $ac_func
10490
Reid Spencera773bd52006-08-04 18:18:08 +000010491/* Override any GCC internal prototype to avoid an error.
10492 Use char because int might match the return type of a GCC
10493 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494#ifdef __cplusplus
10495extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497char $ac_func ();
10498/* The GNU C library defines this for functions which it implements
10499 to always fail with ENOSYS. Some functions are actually named
10500 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010501#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503#endif
10504
10505int
10506main ()
10507{
Reid Spencera773bd52006-08-04 18:18:08 +000010508return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509 ;
10510 return 0;
10511}
10512_ACEOF
10513rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010514if { (ac_try="$ac_link"
10515case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518esac
10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521 ac_status=$?
10522 grep -v '^ *+' conftest.er1 >conftest.err
10523 rm -f conftest.er1
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531esac
10532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547 eval "$as_ac_var=yes"
10548else
10549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
Reid Spencera773bd52006-08-04 18:18:08 +000010552 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553fi
Reid Spencera773bd52006-08-04 18:18:08 +000010554
Tanya Lattnercf067672008-01-17 05:57:22 +000010555rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556 conftest$ac_exeext conftest.$ac_ext
10557fi
Reid Spencera773bd52006-08-04 18:18:08 +000010558ac_res=`eval echo '${'$as_ac_var'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561if test `eval echo '${'$as_ac_var'}'` = yes; then
10562 cat >>confdefs.h <<_ACEOF
10563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10564_ACEOF
10565
10566fi
10567done
10568
10569 LIBS="$lt_save_LIBS"
10570fi
10571ac_ext=c
10572ac_cpp='$CPP $CPPFLAGS'
10573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576
10577
10578
Reid Spencera773bd52006-08-04 18:18:08 +000010579{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10580echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583else
10584 ac_cv_sys_symbol_underscore=no
10585 cat > conftest.$ac_ext <<EOF
10586void nm_test_func(){}
10587int main(){nm_test_func;return 0;}
10588EOF
10589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10590 (eval $ac_compile) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; then
10594 # Now try to grab the symbols.
10595 ac_nlist=conftest.nm
10596 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10597 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && test -s "$ac_nlist"; then
10601 # See whether the symbols have a leading underscore.
10602 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10603 ac_cv_sys_symbol_underscore=yes
10604 else
10605 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10606 :
10607 else
10608 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10609 fi
10610 fi
10611 else
10612 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10613 fi
10614 else
10615 echo "configure: failed program was:" >&5
10616 cat conftest.c >&5
10617 fi
10618 rm -rf conftest*
10619
10620fi
Reid Spencera773bd52006-08-04 18:18:08 +000010621{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10622echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010623
10624
10625if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10626 if test x"$libltdl_cv_func_dlopen" = xyes ||
10627 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010628 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10629echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630if test "${libltdl_cv_need_uscore+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633 libltdl_cv_need_uscore=unknown
10634 save_LIBS="$LIBS"
10635 LIBS="$LIBS $LIBADD_DL"
10636 if test "$cross_compiling" = yes; then :
10637 libltdl_cv_need_uscore=cross
10638else
10639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10640 lt_status=$lt_dlunknown
10641 cat > conftest.$ac_ext <<EOF
Sanjiv Guptae3f34282008-05-14 08:03:23 +000010642#line 10639 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643#include "confdefs.h"
10644
10645#if HAVE_DLFCN_H
10646#include <dlfcn.h>
10647#endif
10648
10649#include <stdio.h>
10650
10651#ifdef RTLD_GLOBAL
10652# define LT_DLGLOBAL RTLD_GLOBAL
10653#else
10654# ifdef DL_GLOBAL
10655# define LT_DLGLOBAL DL_GLOBAL
10656# else
10657# define LT_DLGLOBAL 0
10658# endif
10659#endif
10660
10661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10662 find out it does not work in some platform. */
10663#ifndef LT_DLLAZY_OR_NOW
10664# ifdef RTLD_LAZY
10665# define LT_DLLAZY_OR_NOW RTLD_LAZY
10666# else
10667# ifdef DL_LAZY
10668# define LT_DLLAZY_OR_NOW DL_LAZY
10669# else
10670# ifdef RTLD_NOW
10671# define LT_DLLAZY_OR_NOW RTLD_NOW
10672# else
10673# ifdef DL_NOW
10674# define LT_DLLAZY_OR_NOW DL_NOW
10675# else
10676# define LT_DLLAZY_OR_NOW 0
10677# endif
10678# endif
10679# endif
10680# endif
10681#endif
10682
10683#ifdef __cplusplus
10684extern "C" void exit (int);
10685#endif
10686
10687void fnord() { int i=42;}
10688int main ()
10689{
10690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10691 int status = $lt_dlunknown;
10692
10693 if (self)
10694 {
10695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10697 /* dlclose (self); */
10698 }
Reid Spencera773bd52006-08-04 18:18:08 +000010699 else
10700 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010701
10702 exit (status);
10703}
10704EOF
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010710 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711 lt_status=$?
10712 case x$lt_status in
10713 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10714 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010715 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010716 esac
10717 else :
10718 # compilation failed
10719
10720 fi
10721fi
10722rm -fr conftest*
10723
10724 LIBS="$save_LIBS"
10725
10726fi
Reid Spencera773bd52006-08-04 18:18:08 +000010727{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10728echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729 fi
10730fi
10731
10732if test x"$libltdl_cv_need_uscore" = xyes; then
10733
10734cat >>confdefs.h <<\_ACEOF
10735#define NEED_USCORE 1
10736_ACEOF
10737
10738fi
10739
10740
Reid Spencera773bd52006-08-04 18:18:08 +000010741{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10742echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010743if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746 # PORTME does your system automatically load deplibs for dlopen?
10747 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10748 # For now, we just catch OSes we know something about -- in the
10749 # future, we'll try test this programmatically.
10750 libltdl_cv_sys_dlopen_deplibs=unknown
10751 case "$host_os" in
10752 aix3*|aix4.1.*|aix4.2.*)
10753 # Unknown whether this is true for these versions of AIX, but
10754 # we want this `case' here to explicitly catch those versions.
10755 libltdl_cv_sys_dlopen_deplibs=unknown
10756 ;;
10757 aix[45]*)
10758 libltdl_cv_sys_dlopen_deplibs=yes
10759 ;;
10760 darwin*)
10761 # Assuming the user has installed a libdl from somewhere, this is true
10762 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10763 libltdl_cv_sys_dlopen_deplibs=yes
10764 ;;
10765 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10766 # GNU and its variants, using gnu ld.so (Glibc)
10767 libltdl_cv_sys_dlopen_deplibs=yes
10768 ;;
10769 hpux10*|hpux11*)
10770 libltdl_cv_sys_dlopen_deplibs=yes
10771 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010772 interix*)
10773 libltdl_cv_sys_dlopen_deplibs=yes
10774 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775 irix[12345]*|irix6.[01]*)
10776 # Catch all versions of IRIX before 6.2, and indicate that we don't
10777 # know how it worked for any of those versions.
10778 libltdl_cv_sys_dlopen_deplibs=unknown
10779 ;;
10780 irix*)
10781 # The case above catches anything before 6.2, and it's known that
10782 # at 6.2 and later dlopen does load deplibs.
10783 libltdl_cv_sys_dlopen_deplibs=yes
10784 ;;
10785 netbsd*)
10786 libltdl_cv_sys_dlopen_deplibs=yes
10787 ;;
10788 openbsd*)
10789 libltdl_cv_sys_dlopen_deplibs=yes
10790 ;;
10791 osf[1234]*)
10792 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10793 # it did *not* use an RPATH in a shared library to find objects the
10794 # library depends on, so we explictly say `no'.
10795 libltdl_cv_sys_dlopen_deplibs=no
10796 ;;
10797 osf5.0|osf5.0a|osf5.1)
10798 # dlopen *does* load deplibs and with the right loader patch applied
10799 # it even uses RPATH in a shared library to search for shared objects
10800 # that the library depends on, but there's no easy way to know if that
10801 # patch is installed. Since this is the case, all we can really
10802 # say is unknown -- it depends on the patch being installed. If
10803 # it is, this changes to `yes'. Without it, it would be `no'.
10804 libltdl_cv_sys_dlopen_deplibs=unknown
10805 ;;
10806 osf*)
10807 # the two cases above should catch all versions of osf <= 5.1. Read
10808 # the comments above for what we know about them.
10809 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10810 # is used to find them so we can finally say `yes'.
10811 libltdl_cv_sys_dlopen_deplibs=yes
10812 ;;
10813 solaris*)
10814 libltdl_cv_sys_dlopen_deplibs=yes
10815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10817 libltdl_cv_sys_dlopen_deplibs=yes
10818 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 esac
10820
10821fi
Reid Spencera773bd52006-08-04 18:18:08 +000010822{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10823echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010824if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10825
10826cat >>confdefs.h <<\_ACEOF
10827#define LTDL_DLOPEN_DEPLIBS 1
10828_ACEOF
10829
10830fi
10831
10832
10833for ac_header in argz.h
10834do
10835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841fi
Reid Spencera773bd52006-08-04 18:18:08 +000010842ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845else
10846 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010847{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
10855$ac_includes_default
10856#include <$ac_header>
10857_ACEOF
10858rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010859if { (ac_try="$ac_compile"
10860case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863esac
10864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010871 (exit $ac_status); } &&
10872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; } &&
10882 { ac_try='test -s conftest.$ac_objext'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892 ac_header_compiler=yes
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
Reid Spencera773bd52006-08-04 18:18:08 +000010897 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898fi
Reid Spencera773bd52006-08-04 18:18:08 +000010899
10900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903
10904# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010905{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010907cat >conftest.$ac_ext <<_ACEOF
10908/* confdefs.h. */
10909_ACEOF
10910cat confdefs.h >>conftest.$ac_ext
10911cat >>conftest.$ac_ext <<_ACEOF
10912/* end confdefs.h. */
10913#include <$ac_header>
10914_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010915if { (ac_try="$ac_cpp conftest.$ac_ext"
10916case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10919esac
10920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010927 (exit $ac_status); } >/dev/null; then
10928 if test -s conftest.err; then
10929 ac_cpp_err=$ac_c_preproc_warn_flag
10930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10931 else
10932 ac_cpp_err=
10933 fi
10934else
10935 ac_cpp_err=yes
10936fi
10937if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938 ac_header_preproc=yes
10939else
10940 echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 ac_header_preproc=no
10944fi
Reid Spencera773bd52006-08-04 18:18:08 +000010945
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10948echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949
10950# So? What about this header?
10951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10952 yes:no: )
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10957 ac_header_preproc=yes
10958 ;;
10959 no:yes:* )
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010972 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010973## ----------------------------------- ##
10974## Report this to llvmbugs@cs.uiuc.edu ##
10975## ----------------------------------- ##
10976_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010977 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978 ;;
10979esac
Reid Spencera773bd52006-08-04 18:18:08 +000010980{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 eval "$as_ac_Header=\$ac_header_preproc"
10986fi
Reid Spencera773bd52006-08-04 18:18:08 +000010987ac_res=`eval echo '${'$as_ac_Header'}'`
10988 { echo "$as_me:$LINENO: result: $ac_res" >&5
10989echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990
10991fi
10992if test `eval echo '${'$as_ac_Header'}'` = yes; then
10993 cat >>confdefs.h <<_ACEOF
10994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10995_ACEOF
10996
10997fi
10998
10999done
11000
11001
Reid Spencera773bd52006-08-04 18:18:08 +000011002{ echo "$as_me:$LINENO: checking for error_t" >&5
11003echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004if test "${ac_cv_type_error_t+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006else
11007 cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h. */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h. */
11013#if HAVE_ARGZ_H
11014# include <argz.h>
11015#endif
11016
Reid Spencera773bd52006-08-04 18:18:08 +000011017typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011018int
11019main ()
11020{
Reid Spencera773bd52006-08-04 18:18:08 +000011021if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011023if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011024 return 0;
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011030if { (ac_try="$ac_compile"
11031case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037 ac_status=$?
11038 grep -v '^ *+' conftest.er1 >conftest.err
11039 rm -f conftest.er1
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011042 (exit $ac_status); } &&
11043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11044 { (case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047esac
11048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_try") 2>&5
11050 ac_status=$?
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; } &&
11053 { ac_try='test -s conftest.$ac_objext'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063 ac_cv_type_error_t=yes
11064else
11065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
Reid Spencera773bd52006-08-04 18:18:08 +000011068 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069fi
Reid Spencera773bd52006-08-04 18:18:08 +000011070
11071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072fi
Reid Spencera773bd52006-08-04 18:18:08 +000011073{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11074echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011075if test $ac_cv_type_error_t = yes; then
11076
11077cat >>confdefs.h <<_ACEOF
11078#define HAVE_ERROR_T 1
11079_ACEOF
11080
11081
11082else
11083
11084cat >>confdefs.h <<\_ACEOF
11085#define error_t int
11086_ACEOF
11087
11088fi
11089
11090
11091
11092
11093
11094
11095
11096for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11097do
11098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104 cat >conftest.$ac_ext <<_ACEOF
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11112#define $ac_func innocuous_$ac_func
11113
11114/* System header to define __stub macros and hopefully few prototypes,
11115 which can conflict with char $ac_func (); below.
11116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11117 <limits.h> exists even on freestanding compilers. */
11118
11119#ifdef __STDC__
11120# include <limits.h>
11121#else
11122# include <assert.h>
11123#endif
11124
11125#undef $ac_func
11126
Reid Spencera773bd52006-08-04 18:18:08 +000011127/* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130#ifdef __cplusplus
11131extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011132#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133char $ac_func ();
11134/* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011137#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139#endif
11140
11141int
11142main ()
11143{
Reid Spencera773bd52006-08-04 18:18:08 +000011144return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011145 ;
11146 return 0;
11147}
11148_ACEOF
11149rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011150if { (ac_try="$ac_link"
11151case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154esac
11155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_try") 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; } &&
11173 { ac_try='test -s conftest$ac_exeext'
11174 { (case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_try") 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183 eval "$as_ac_var=yes"
11184else
11185 echo "$as_me: failed program was:" >&5
11186sed 's/^/| /' conftest.$ac_ext >&5
11187
Reid Spencera773bd52006-08-04 18:18:08 +000011188 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189fi
Reid Spencera773bd52006-08-04 18:18:08 +000011190
Tanya Lattnercf067672008-01-17 05:57:22 +000011191rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192 conftest$ac_exeext conftest.$ac_ext
11193fi
Reid Spencera773bd52006-08-04 18:18:08 +000011194ac_res=`eval echo '${'$as_ac_var'}'`
11195 { echo "$as_me:$LINENO: result: $ac_res" >&5
11196echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197if test `eval echo '${'$as_ac_var'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200_ACEOF
11201
11202fi
11203done
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11233 stdio.h unistd.h
11234do
11235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241fi
Reid Spencera773bd52006-08-04 18:18:08 +000011242ac_res=`eval echo '${'$as_ac_Header'}'`
11243 { echo "$as_me:$LINENO: result: $ac_res" >&5
11244echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245else
11246 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h. */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h. */
11255$ac_includes_default
11256#include <$ac_header>
11257_ACEOF
11258rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011259if { (ac_try="$ac_compile"
11260case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263esac
11264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011271 (exit $ac_status); } &&
11272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273 { (case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_try") 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; } &&
11282 { ac_try='test -s conftest.$ac_objext'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286esac
11287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292 ac_header_compiler=yes
11293else
11294 echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
Reid Spencera773bd52006-08-04 18:18:08 +000011297 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298fi
Reid Spencera773bd52006-08-04 18:18:08 +000011299
11300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011303
11304# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011307cat >conftest.$ac_ext <<_ACEOF
11308/* confdefs.h. */
11309_ACEOF
11310cat confdefs.h >>conftest.$ac_ext
11311cat >>conftest.$ac_ext <<_ACEOF
11312/* end confdefs.h. */
11313#include <$ac_header>
11314_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011315if { (ac_try="$ac_cpp conftest.$ac_ext"
11316case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011327 (exit $ac_status); } >/dev/null; then
11328 if test -s conftest.err; then
11329 ac_cpp_err=$ac_c_preproc_warn_flag
11330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 else
11332 ac_cpp_err=
11333 fi
11334else
11335 ac_cpp_err=yes
11336fi
11337if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338 ac_header_preproc=yes
11339else
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ac_header_preproc=no
11344fi
Reid Spencera773bd52006-08-04 18:18:08 +000011345
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349
11350# So? What about this header?
11351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11352 yes:no: )
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11357 ac_header_preproc=yes
11358 ;;
11359 no:yes:* )
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011372 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373## ----------------------------------- ##
11374## Report this to llvmbugs@cs.uiuc.edu ##
11375## ----------------------------------- ##
11376_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011377 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011378 ;;
11379esac
Reid Spencera773bd52006-08-04 18:18:08 +000011380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384else
11385 eval "$as_ac_Header=\$ac_header_preproc"
11386fi
Reid Spencera773bd52006-08-04 18:18:08 +000011387ac_res=`eval echo '${'$as_ac_Header'}'`
11388 { echo "$as_me:$LINENO: result: $ac_res" >&5
11389echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390
11391fi
11392if test `eval echo '${'$as_ac_Header'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11395_ACEOF
11396
11397fi
11398
11399done
11400
11401
11402
11403
11404
11405for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11406do
11407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413fi
Reid Spencera773bd52006-08-04 18:18:08 +000011414ac_res=`eval echo '${'$as_ac_Header'}'`
11415 { echo "$as_me:$LINENO: result: $ac_res" >&5
11416echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011417else
11418 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011419{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421cat >conftest.$ac_ext <<_ACEOF
11422/* confdefs.h. */
11423_ACEOF
11424cat confdefs.h >>conftest.$ac_ext
11425cat >>conftest.$ac_ext <<_ACEOF
11426/* end confdefs.h. */
11427$ac_includes_default
11428#include <$ac_header>
11429_ACEOF
11430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011431if { (ac_try="$ac_compile"
11432case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435esac
11436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011443 (exit $ac_status); } &&
11444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11445 { (case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11448esac
11449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_try") 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try='test -s conftest.$ac_objext'
11455 { (case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458esac
11459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_try") 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 ac_header_compiler=yes
11465else
11466 echo "$as_me: failed program was:" >&5
11467sed 's/^/| /' conftest.$ac_ext >&5
11468
Reid Spencera773bd52006-08-04 18:18:08 +000011469 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470fi
Reid Spencera773bd52006-08-04 18:18:08 +000011471
11472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11473{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11474echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011475
11476# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011477{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011479cat >conftest.$ac_ext <<_ACEOF
11480/* confdefs.h. */
11481_ACEOF
11482cat confdefs.h >>conftest.$ac_ext
11483cat >>conftest.$ac_ext <<_ACEOF
11484/* end confdefs.h. */
11485#include <$ac_header>
11486_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011487if { (ac_try="$ac_cpp conftest.$ac_ext"
11488case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011499 (exit $ac_status); } >/dev/null; then
11500 if test -s conftest.err; then
11501 ac_cpp_err=$ac_c_preproc_warn_flag
11502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503 else
11504 ac_cpp_err=
11505 fi
11506else
11507 ac_cpp_err=yes
11508fi
11509if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510 ac_header_preproc=yes
11511else
11512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_header_preproc=no
11516fi
Reid Spencera773bd52006-08-04 18:18:08 +000011517
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011519{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11520echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521
11522# So? What about this header?
11523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11524 yes:no: )
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11529 ac_header_preproc=yes
11530 ;;
11531 no:yes:* )
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11535echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11539echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011544 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545## ----------------------------------- ##
11546## Report this to llvmbugs@cs.uiuc.edu ##
11547## ----------------------------------- ##
11548_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011549 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550 ;;
11551esac
Reid Spencera773bd52006-08-04 18:18:08 +000011552{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556else
11557 eval "$as_ac_Header=\$ac_header_preproc"
11558fi
Reid Spencera773bd52006-08-04 18:18:08 +000011559ac_res=`eval echo '${'$as_ac_Header'}'`
11560 { echo "$as_me:$LINENO: result: $ac_res" >&5
11561echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011562
11563fi
11564if test `eval echo '${'$as_ac_Header'}'` = yes; then
11565 cat >>confdefs.h <<_ACEOF
11566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567_ACEOF
11568
11569fi
11570
11571done
11572
11573
11574
11575for ac_header in string.h strings.h
11576do
11577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583fi
Reid Spencera773bd52006-08-04 18:18:08 +000011584ac_res=`eval echo '${'$as_ac_Header'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587else
11588 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011589{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
11597$ac_includes_default
11598#include <$ac_header>
11599_ACEOF
11600rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011601if { (ac_try="$ac_compile"
11602case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605esac
11606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634 ac_header_compiler=yes
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
Reid Spencera773bd52006-08-04 18:18:08 +000011639 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640fi
Reid Spencera773bd52006-08-04 18:18:08 +000011641
11642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645
11646# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011647{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011649cat >conftest.$ac_ext <<_ACEOF
11650/* confdefs.h. */
11651_ACEOF
11652cat confdefs.h >>conftest.$ac_ext
11653cat >>conftest.$ac_ext <<_ACEOF
11654/* end confdefs.h. */
11655#include <$ac_header>
11656_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011657if { (ac_try="$ac_cpp conftest.$ac_ext"
11658case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661esac
11662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011669 (exit $ac_status); } >/dev/null; then
11670 if test -s conftest.err; then
11671 ac_cpp_err=$ac_c_preproc_warn_flag
11672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11673 else
11674 ac_cpp_err=
11675 fi
11676else
11677 ac_cpp_err=yes
11678fi
11679if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680 ac_header_preproc=yes
11681else
11682 echo "$as_me: failed program was:" >&5
11683sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_header_preproc=no
11686fi
Reid Spencera773bd52006-08-04 18:18:08 +000011687
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11690echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691
11692# So? What about this header?
11693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11694 yes:no: )
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11699 ac_header_preproc=yes
11700 ;;
11701 no:yes:* )
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011714 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011715## ----------------------------------- ##
11716## Report this to llvmbugs@cs.uiuc.edu ##
11717## ----------------------------------- ##
11718_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011719 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720 ;;
11721esac
Reid Spencera773bd52006-08-04 18:18:08 +000011722{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726else
11727 eval "$as_ac_Header=\$ac_header_preproc"
11728fi
Reid Spencera773bd52006-08-04 18:18:08 +000011729ac_res=`eval echo '${'$as_ac_Header'}'`
11730 { echo "$as_me:$LINENO: result: $ac_res" >&5
11731echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732
11733fi
11734if test `eval echo '${'$as_ac_Header'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11737_ACEOF
11738 break
11739fi
11740
11741done
11742
11743
11744
11745
11746for ac_func in strchr index
11747do
11748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11762#define $ac_func innocuous_$ac_func
11763
11764/* System header to define __stub macros and hopefully few prototypes,
11765 which can conflict with char $ac_func (); below.
11766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11767 <limits.h> exists even on freestanding compilers. */
11768
11769#ifdef __STDC__
11770# include <limits.h>
11771#else
11772# include <assert.h>
11773#endif
11774
11775#undef $ac_func
11776
Reid Spencera773bd52006-08-04 18:18:08 +000011777/* Override any GCC internal prototype to avoid an error.
11778 Use char because int might match the return type of a GCC
11779 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780#ifdef __cplusplus
11781extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783char $ac_func ();
11784/* The GNU C library defines this for functions which it implements
11785 to always fail with ENOSYS. Some functions are actually named
11786 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011787#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789#endif
11790
11791int
11792main ()
11793{
Reid Spencera773bd52006-08-04 18:18:08 +000011794return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795 ;
11796 return 0;
11797}
11798_ACEOF
11799rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011800if { (ac_try="$ac_link"
11801case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804esac
11805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817esac
11818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest$ac_exeext'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827esac
11828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833 eval "$as_ac_var=yes"
11834else
11835 echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
Reid Spencera773bd52006-08-04 18:18:08 +000011838 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839fi
Reid Spencera773bd52006-08-04 18:18:08 +000011840
Tanya Lattnercf067672008-01-17 05:57:22 +000011841rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842 conftest$ac_exeext conftest.$ac_ext
11843fi
Reid Spencera773bd52006-08-04 18:18:08 +000011844ac_res=`eval echo '${'$as_ac_var'}'`
11845 { echo "$as_me:$LINENO: result: $ac_res" >&5
11846echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011847if test `eval echo '${'$as_ac_var'}'` = yes; then
11848 cat >>confdefs.h <<_ACEOF
11849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850_ACEOF
11851 break
11852fi
11853done
11854
11855
11856
11857for ac_func in strrchr rindex
11858do
11859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011860{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865 cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
11871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11873#define $ac_func innocuous_$ac_func
11874
11875/* System header to define __stub macros and hopefully few prototypes,
11876 which can conflict with char $ac_func (); below.
11877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878 <limits.h> exists even on freestanding compilers. */
11879
11880#ifdef __STDC__
11881# include <limits.h>
11882#else
11883# include <assert.h>
11884#endif
11885
11886#undef $ac_func
11887
Reid Spencera773bd52006-08-04 18:18:08 +000011888/* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891#ifdef __cplusplus
11892extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894char $ac_func ();
11895/* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011898#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900#endif
11901
11902int
11903main ()
11904{
Reid Spencera773bd52006-08-04 18:18:08 +000011905return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011906 ;
11907 return 0;
11908}
11909_ACEOF
11910rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011911if { (ac_try="$ac_link"
11912case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915esac
11916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925 { (case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11928esac
11929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_try") 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11938esac
11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944 eval "$as_ac_var=yes"
11945else
11946 echo "$as_me: failed program was:" >&5
11947sed 's/^/| /' conftest.$ac_ext >&5
11948
Reid Spencera773bd52006-08-04 18:18:08 +000011949 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950fi
Reid Spencera773bd52006-08-04 18:18:08 +000011951
Tanya Lattnercf067672008-01-17 05:57:22 +000011952rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 conftest$ac_exeext conftest.$ac_ext
11954fi
Reid Spencera773bd52006-08-04 18:18:08 +000011955ac_res=`eval echo '${'$as_ac_var'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958if test `eval echo '${'$as_ac_var'}'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961_ACEOF
11962 break
11963fi
11964done
11965
11966
11967
11968for ac_func in memcpy bcopy
11969do
11970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011971{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11973if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974 echo $ECHO_N "(cached) $ECHO_C" >&6
11975else
11976 cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h. */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h. */
11982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11984#define $ac_func innocuous_$ac_func
11985
11986/* System header to define __stub macros and hopefully few prototypes,
11987 which can conflict with char $ac_func (); below.
11988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989 <limits.h> exists even on freestanding compilers. */
11990
11991#ifdef __STDC__
11992# include <limits.h>
11993#else
11994# include <assert.h>
11995#endif
11996
11997#undef $ac_func
11998
Reid Spencera773bd52006-08-04 18:18:08 +000011999/* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002#ifdef __cplusplus
12003extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005char $ac_func ();
12006/* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012009#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011#endif
12012
12013int
12014main ()
12015{
Reid Spencera773bd52006-08-04 18:18:08 +000012016return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012022if { (ac_try="$ac_link"
12023case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039esac
12040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049esac
12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_try") 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055 eval "$as_ac_var=yes"
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
Reid Spencera773bd52006-08-04 18:18:08 +000012060 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061fi
Reid Spencera773bd52006-08-04 18:18:08 +000012062
Tanya Lattnercf067672008-01-17 05:57:22 +000012063rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012064 conftest$ac_exeext conftest.$ac_ext
12065fi
Reid Spencera773bd52006-08-04 18:18:08 +000012066ac_res=`eval echo '${'$as_ac_var'}'`
12067 { echo "$as_me:$LINENO: result: $ac_res" >&5
12068echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069if test `eval echo '${'$as_ac_var'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072_ACEOF
12073 break
12074fi
12075done
12076
12077
12078
12079for ac_func in memmove strcmp
12080do
12081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012082{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087 cat >conftest.$ac_ext <<_ACEOF
12088/* confdefs.h. */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h. */
12093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095#define $ac_func innocuous_$ac_func
12096
12097/* System header to define __stub macros and hopefully few prototypes,
12098 which can conflict with char $ac_func (); below.
12099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 <limits.h> exists even on freestanding compilers. */
12101
12102#ifdef __STDC__
12103# include <limits.h>
12104#else
12105# include <assert.h>
12106#endif
12107
12108#undef $ac_func
12109
Reid Spencera773bd52006-08-04 18:18:08 +000012110/* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113#ifdef __cplusplus
12114extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116char $ac_func ();
12117/* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012120#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122#endif
12123
12124int
12125main ()
12126{
Reid Spencera773bd52006-08-04 18:18:08 +000012127return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128 ;
12129 return 0;
12130}
12131_ACEOF
12132rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012133if { (ac_try="$ac_link"
12134case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137esac
12138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160esac
12161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166 eval "$as_ac_var=yes"
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
Reid Spencera773bd52006-08-04 18:18:08 +000012171 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172fi
Reid Spencera773bd52006-08-04 18:18:08 +000012173
Tanya Lattnercf067672008-01-17 05:57:22 +000012174rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012175 conftest$ac_exeext conftest.$ac_ext
12176fi
Reid Spencera773bd52006-08-04 18:18:08 +000012177ac_res=`eval echo '${'$as_ac_var'}'`
12178 { echo "$as_me:$LINENO: result: $ac_res" >&5
12179echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180if test `eval echo '${'$as_ac_var'}'` = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183_ACEOF
12184
12185fi
12186done
12187
12188
12189
12190
12191for ac_func in closedir opendir readdir
12192do
12193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012194{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12196if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198else
12199 cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h. */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h. */
12205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12207#define $ac_func innocuous_$ac_func
12208
12209/* System header to define __stub macros and hopefully few prototypes,
12210 which can conflict with char $ac_func (); below.
12211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212 <limits.h> exists even on freestanding compilers. */
12213
12214#ifdef __STDC__
12215# include <limits.h>
12216#else
12217# include <assert.h>
12218#endif
12219
12220#undef $ac_func
12221
Reid Spencera773bd52006-08-04 18:18:08 +000012222/* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012225#ifdef __cplusplus
12226extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012228char $ac_func ();
12229/* The GNU C library defines this for functions which it implements
12230 to always fail with ENOSYS. Some functions are actually named
12231 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012232#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234#endif
12235
12236int
12237main ()
12238{
Reid Spencera773bd52006-08-04 18:18:08 +000012239return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240 ;
12241 return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012245if { (ac_try="$ac_link"
12246case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249esac
12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012257 (exit $ac_status); } &&
12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262esac
12263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272esac
12273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278 eval "$as_ac_var=yes"
12279else
12280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
Reid Spencera773bd52006-08-04 18:18:08 +000012283 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012284fi
Reid Spencera773bd52006-08-04 18:18:08 +000012285
Tanya Lattnercf067672008-01-17 05:57:22 +000012286rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012287 conftest$ac_exeext conftest.$ac_ext
12288fi
Reid Spencera773bd52006-08-04 18:18:08 +000012289ac_res=`eval echo '${'$as_ac_var'}'`
12290 { echo "$as_me:$LINENO: result: $ac_res" >&5
12291echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292if test `eval echo '${'$as_ac_var'}'` = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295_ACEOF
12296
12297fi
12298done
12299
12300
Reid Spencera773bd52006-08-04 18:18:08 +000012301# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012302if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012303 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304 case $enableval in
12305 yes) enable_shared=yes ;;
12306 no) enable_shared=no ;;
12307 *)
12308 enable_shared=no
12309 # Look at the argument we got. We use all the common list separators.
12310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12311 for pkg in $enableval; do
12312 IFS="$lt_save_ifs"
12313 if test "X$pkg" = "X$p"; then
12314 enable_shared=yes
12315 fi
12316 done
12317 IFS="$lt_save_ifs"
12318 ;;
12319 esac
12320else
12321 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012322fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012323
Reid Spencera773bd52006-08-04 18:18:08 +000012324
12325# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012326if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012327 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012328 case $enableval in
12329 yes) enable_static=yes ;;
12330 no) enable_static=no ;;
12331 *)
12332 enable_static=no
12333 # Look at the argument we got. We use all the common list separators.
12334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12335 for pkg in $enableval; do
12336 IFS="$lt_save_ifs"
12337 if test "X$pkg" = "X$p"; then
12338 enable_static=yes
12339 fi
12340 done
12341 IFS="$lt_save_ifs"
12342 ;;
12343 esac
12344else
12345 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012346fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012347
Reid Spencera773bd52006-08-04 18:18:08 +000012348
12349# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012351 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012352 case $enableval in
12353 yes) enable_fast_install=yes ;;
12354 no) enable_fast_install=no ;;
12355 *)
12356 enable_fast_install=no
12357 # Look at the argument we got. We use all the common list separators.
12358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12359 for pkg in $enableval; do
12360 IFS="$lt_save_ifs"
12361 if test "X$pkg" = "X$p"; then
12362 enable_fast_install=yes
12363 fi
12364 done
12365 IFS="$lt_save_ifs"
12366 ;;
12367 esac
12368else
12369 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012370fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371
Reid Spencera773bd52006-08-04 18:18:08 +000012372
12373{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12374echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375if test "${lt_cv_path_SED+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378 # Loop through the user's path and test for sed and gsed.
12379# Then use that list of sed's as ones to test for truncation.
12380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381for as_dir in $PATH
12382do
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for lt_ac_prog in sed gsed; do
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12388 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12389 fi
12390 done
12391 done
12392done
12393lt_ac_max=0
12394lt_ac_count=0
12395# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12396# along with /bin/sed that truncates output.
12397for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012398 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012399 cat /dev/null > conftest.in
12400 lt_ac_count=0
12401 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12402 # Check for GNU sed and select it if it is found.
12403 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12404 lt_cv_path_SED=$lt_ac_sed
12405 break
12406 fi
12407 while true; do
12408 cat conftest.in conftest.in >conftest.tmp
12409 mv conftest.tmp conftest.in
12410 cp conftest.in conftest.nl
12411 echo >>conftest.nl
12412 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12413 cmp -s conftest.out conftest.nl || break
12414 # 10000 chars as input seems more than enough
12415 test $lt_ac_count -gt 10 && break
12416 lt_ac_count=`expr $lt_ac_count + 1`
12417 if test $lt_ac_count -gt $lt_ac_max; then
12418 lt_ac_max=$lt_ac_count
12419 lt_cv_path_SED=$lt_ac_sed
12420 fi
12421 done
12422done
12423
12424fi
12425
12426SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012427{ echo "$as_me:$LINENO: result: $SED" >&5
12428echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429
12430
Reid Spencera773bd52006-08-04 18:18:08 +000012431# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012432if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434else
12435 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012436fi
12437
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012438ac_prog=ld
12439if test "$GCC" = yes; then
12440 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012441 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12442echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443 case $host in
12444 *-*-mingw*)
12445 # gcc leaves a trailing carriage return which upsets mingw
12446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12447 *)
12448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12449 esac
12450 case $ac_prog in
12451 # Accept absolute paths.
12452 [\\/]* | ?:[\\/]*)
12453 re_direlt='/[^/][^/]*/\.\./'
12454 # Canonicalize the pathname of ld
12455 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12457 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12458 done
12459 test -z "$LD" && LD="$ac_prog"
12460 ;;
12461 "")
12462 # If it fails, then pretend we aren't using GCC.
12463 ac_prog=ld
12464 ;;
12465 *)
12466 # If it is relative, then search for the first ld in PATH.
12467 with_gnu_ld=unknown
12468 ;;
12469 esac
12470elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012471 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12472echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012473else
Reid Spencera773bd52006-08-04 18:18:08 +000012474 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12475echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012476fi
12477if test "${lt_cv_path_LD+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480 if test -z "$LD"; then
12481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12482 for ac_dir in $PATH; do
12483 IFS="$lt_save_ifs"
12484 test -z "$ac_dir" && ac_dir=.
12485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12486 lt_cv_path_LD="$ac_dir/$ac_prog"
12487 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012488 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489 # Break only if it was the GNU/non-GNU ld that we prefer.
12490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12491 *GNU* | *'with BFD'*)
12492 test "$with_gnu_ld" != no && break
12493 ;;
12494 *)
12495 test "$with_gnu_ld" != yes && break
12496 ;;
12497 esac
12498 fi
12499 done
12500 IFS="$lt_save_ifs"
12501else
12502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12503fi
12504fi
12505
12506LD="$lt_cv_path_LD"
12507if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012508 { echo "$as_me:$LINENO: result: $LD" >&5
12509echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012510else
Reid Spencera773bd52006-08-04 18:18:08 +000012511 { echo "$as_me:$LINENO: result: no" >&5
12512echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513fi
12514test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12515echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12516 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012517{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12518echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012519if test "${lt_cv_prog_gnu_ld+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521else
Reid Spencera773bd52006-08-04 18:18:08 +000012522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012523case `$LD -v 2>&1 </dev/null` in
12524*GNU* | *'with BFD'*)
12525 lt_cv_prog_gnu_ld=yes
12526 ;;
12527*)
12528 lt_cv_prog_gnu_ld=no
12529 ;;
12530esac
12531fi
Reid Spencera773bd52006-08-04 18:18:08 +000012532{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12533echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012534with_gnu_ld=$lt_cv_prog_gnu_ld
12535
12536
Reid Spencera773bd52006-08-04 18:18:08 +000012537{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12538echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012539if test "${lt_cv_ld_reload_flag+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541else
12542 lt_cv_ld_reload_flag='-r'
12543fi
Reid Spencera773bd52006-08-04 18:18:08 +000012544{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12545echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546reload_flag=$lt_cv_ld_reload_flag
12547case $reload_flag in
12548"" | " "*) ;;
12549*) reload_flag=" $reload_flag" ;;
12550esac
12551reload_cmds='$LD$reload_flag -o $output$reload_objs'
12552case $host_os in
12553 darwin*)
12554 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012555 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012556 else
12557 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12558 fi
12559 ;;
12560esac
12561
Reid Spencera773bd52006-08-04 18:18:08 +000012562{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12563echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564if test "${lt_cv_deplibs_check_method+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12566else
12567 lt_cv_file_magic_cmd='$MAGIC_CMD'
12568lt_cv_file_magic_test_file=
12569lt_cv_deplibs_check_method='unknown'
12570# Need to set the preceding variable on all platforms that support
12571# interlibrary dependencies.
12572# 'none' -- dependencies not supported.
12573# `unknown' -- same as none, but documents that we really don't know.
12574# 'pass_all' -- all dependencies passed with no checks.
12575# 'test_compile' -- check by making test program.
12576# 'file_magic [[regex]]' -- check by looking for files in library path
12577# which responds to the $file_magic_cmd with a given extended regex.
12578# If you have `file' or equivalent on your system and you're not sure
12579# whether `pass_all' will *always* work, you probably want this one.
12580
12581case $host_os in
12582aix4* | aix5*)
12583 lt_cv_deplibs_check_method=pass_all
12584 ;;
12585
12586beos*)
12587 lt_cv_deplibs_check_method=pass_all
12588 ;;
12589
12590bsdi[45]*)
12591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12592 lt_cv_file_magic_cmd='/usr/bin/file -L'
12593 lt_cv_file_magic_test_file=/shlib/libc.so
12594 ;;
12595
12596cygwin*)
12597 # func_win32_libid is a shell function defined in ltmain.sh
12598 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12599 lt_cv_file_magic_cmd='func_win32_libid'
12600 ;;
12601
12602mingw* | pw32*)
12603 # Base MSYS/MinGW do not provide the 'file' command needed by
12604 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12605 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12606 lt_cv_file_magic_cmd='$OBJDUMP -f'
12607 ;;
12608
12609darwin* | rhapsody*)
12610 lt_cv_deplibs_check_method=pass_all
12611 ;;
12612
Reid Spencera773bd52006-08-04 18:18:08 +000012613freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012614 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12615 case $host_cpu in
12616 i*86 )
12617 # Not sure whether the presence of OpenBSD here was a mistake.
12618 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012619 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 +000012620 lt_cv_file_magic_cmd=/usr/bin/file
12621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12622 ;;
12623 esac
12624 else
12625 lt_cv_deplibs_check_method=pass_all
12626 fi
12627 ;;
12628
12629gnu*)
12630 lt_cv_deplibs_check_method=pass_all
12631 ;;
12632
12633hpux10.20* | hpux11*)
12634 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012635 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012636 ia64*)
12637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12639 ;;
12640 hppa*64*)
12641 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]'
12642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12643 ;;
12644 *)
12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12646 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12647 ;;
12648 esac
12649 ;;
12650
Reid Spencera773bd52006-08-04 18:18:08 +000012651interix3*)
12652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12654 ;;
12655
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012656irix5* | irix6* | nonstopux*)
12657 case $LD in
12658 *-32|*"-32 ") libmagic=32-bit;;
12659 *-n32|*"-n32 ") libmagic=N32;;
12660 *-64|*"-64 ") libmagic=64-bit;;
12661 *) libmagic=never-match;;
12662 esac
12663 lt_cv_deplibs_check_method=pass_all
12664 ;;
12665
12666# This must be Linux ELF.
12667linux*)
12668 lt_cv_deplibs_check_method=pass_all
12669 ;;
12670
12671netbsd*)
12672 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12674 else
12675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12676 fi
12677 ;;
12678
12679newos6*)
12680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12681 lt_cv_file_magic_cmd=/usr/bin/file
12682 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12683 ;;
12684
12685nto-qnx*)
12686 lt_cv_deplibs_check_method=unknown
12687 ;;
12688
12689openbsd*)
12690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12692 else
12693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12694 fi
12695 ;;
12696
12697osf3* | osf4* | osf5*)
12698 lt_cv_deplibs_check_method=pass_all
12699 ;;
12700
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012701solaris*)
12702 lt_cv_deplibs_check_method=pass_all
12703 ;;
12704
Reid Spencera773bd52006-08-04 18:18:08 +000012705sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706 case $host_vendor in
12707 motorola)
12708 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]'
12709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12710 ;;
12711 ncr)
12712 lt_cv_deplibs_check_method=pass_all
12713 ;;
12714 sequent)
12715 lt_cv_file_magic_cmd='/bin/file'
12716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12717 ;;
12718 sni)
12719 lt_cv_file_magic_cmd='/bin/file'
12720 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12721 lt_cv_file_magic_test_file=/lib/libc.so
12722 ;;
12723 siemens)
12724 lt_cv_deplibs_check_method=pass_all
12725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012726 pc)
12727 lt_cv_deplibs_check_method=pass_all
12728 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012729 esac
12730 ;;
12731
Reid Spencera773bd52006-08-04 18:18:08 +000012732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733 lt_cv_deplibs_check_method=pass_all
12734 ;;
12735esac
12736
12737fi
Reid Spencera773bd52006-08-04 18:18:08 +000012738{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12739echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012740file_magic_cmd=$lt_cv_file_magic_cmd
12741deplibs_check_method=$lt_cv_deplibs_check_method
12742test -z "$deplibs_check_method" && deplibs_check_method=unknown
12743
12744
12745
12746# If no C compiler was specified, use CC.
12747LTCC=${LTCC-"$CC"}
12748
Reid Spencera773bd52006-08-04 18:18:08 +000012749# If no C compiler flags were specified, use CFLAGS.
12750LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12751
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012752# Allow CC to be a program name with arguments.
12753compiler=$CC
12754
Reid Spencera773bd52006-08-04 18:18:08 +000012755# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012756if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012757 enableval=$enable_libtool_lock;
12758fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012759
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012760test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12761
12762# Some flags need to be propagated to the compiler or linker for good
12763# libtool support.
12764case $host in
12765ia64-*-hpux*)
12766 # Find out which ABI we are using.
12767 echo 'int i;' > conftest.$ac_ext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769 (eval $ac_compile) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; then
12773 case `/usr/bin/file conftest.$ac_objext` in
12774 *ELF-32*)
12775 HPUX_IA64_MODE="32"
12776 ;;
12777 *ELF-64*)
12778 HPUX_IA64_MODE="64"
12779 ;;
12780 esac
12781 fi
12782 rm -rf conftest*
12783 ;;
12784*-*-irix6*)
12785 # Find out which ABI we are using.
Sanjiv Guptae3f34282008-05-14 08:03:23 +000012786 echo '#line 12783 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; then
12792 if test "$lt_cv_prog_gnu_ld" = yes; then
12793 case `/usr/bin/file conftest.$ac_objext` in
12794 *32-bit*)
12795 LD="${LD-ld} -melf32bsmip"
12796 ;;
12797 *N32*)
12798 LD="${LD-ld} -melf32bmipn32"
12799 ;;
12800 *64-bit*)
12801 LD="${LD-ld} -melf64bmip"
12802 ;;
12803 esac
12804 else
12805 case `/usr/bin/file conftest.$ac_objext` in
12806 *32-bit*)
12807 LD="${LD-ld} -32"
12808 ;;
12809 *N32*)
12810 LD="${LD-ld} -n32"
12811 ;;
12812 *64-bit*)
12813 LD="${LD-ld} -64"
12814 ;;
12815 esac
12816 fi
12817 fi
12818 rm -rf conftest*
12819 ;;
12820
12821x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12822 # Find out which ABI we are using.
12823 echo 'int i;' > conftest.$ac_ext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825 (eval $ac_compile) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012829 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012830 *32-bit*)
12831 case $host in
12832 x86_64-*linux*)
12833 LD="${LD-ld} -m elf_i386"
12834 ;;
12835 ppc64-*linux*|powerpc64-*linux*)
12836 LD="${LD-ld} -m elf32ppclinux"
12837 ;;
12838 s390x-*linux*)
12839 LD="${LD-ld} -m elf_s390"
12840 ;;
12841 sparc64-*linux*)
12842 LD="${LD-ld} -m elf32_sparc"
12843 ;;
12844 esac
12845 ;;
12846 *64-bit*)
12847 case $host in
12848 x86_64-*linux*)
12849 LD="${LD-ld} -m elf_x86_64"
12850 ;;
12851 ppc*-*linux*|powerpc*-*linux*)
12852 LD="${LD-ld} -m elf64ppc"
12853 ;;
12854 s390*-*linux*)
12855 LD="${LD-ld} -m elf64_s390"
12856 ;;
12857 sparc*-*linux*)
12858 LD="${LD-ld} -m elf64_sparc"
12859 ;;
12860 esac
12861 ;;
12862 esac
12863 fi
12864 rm -rf conftest*
12865 ;;
12866
12867*-*-sco3.2v5*)
12868 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12869 SAVE_CFLAGS="$CFLAGS"
12870 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012871 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12872echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012873if test "${lt_cv_cc_needs_belf+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875else
12876 ac_ext=c
12877ac_cpp='$CPP $CPPFLAGS'
12878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880ac_compiler_gnu=$ac_cv_c_compiler_gnu
12881
12882 cat >conftest.$ac_ext <<_ACEOF
12883/* confdefs.h. */
12884_ACEOF
12885cat confdefs.h >>conftest.$ac_ext
12886cat >>conftest.$ac_ext <<_ACEOF
12887/* end confdefs.h. */
12888
Reid Spencera773bd52006-08-04 18:18:08 +000012889int
12890main ()
12891{
12892
12893 ;
12894 return 0;
12895}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012896_ACEOF
12897rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012898if { (ac_try="$ac_link"
12899case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest$ac_exeext'
12922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925esac
12926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931 lt_cv_cc_needs_belf=yes
12932else
12933 echo "$as_me: failed program was:" >&5
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
Reid Spencera773bd52006-08-04 18:18:08 +000012936 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012937fi
Reid Spencera773bd52006-08-04 18:18:08 +000012938
Tanya Lattnercf067672008-01-17 05:57:22 +000012939rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012940 conftest$ac_exeext conftest.$ac_ext
12941 ac_ext=c
12942ac_cpp='$CPP $CPPFLAGS'
12943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945ac_compiler_gnu=$ac_cv_c_compiler_gnu
12946
12947fi
Reid Spencera773bd52006-08-04 18:18:08 +000012948{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12949echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012950 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12951 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12952 CFLAGS="$SAVE_CFLAGS"
12953 fi
12954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012955sparc*-*solaris*)
12956 # Find out which ABI we are using.
12957 echo 'int i;' > conftest.$ac_ext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; then
12963 case `/usr/bin/file conftest.o` in
12964 *64-bit*)
12965 case $lt_cv_prog_gnu_ld in
12966 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12967 *) LD="${LD-ld} -64" ;;
12968 esac
12969 ;;
12970 esac
12971 fi
12972 rm -rf conftest*
12973 ;;
12974
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012975
12976esac
12977
12978need_locks="$enable_libtool_lock"
12979
12980
Reid Spencer2706f8c2004-09-19 23:53:36 +000012981
12982
12983if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12984 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12985 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012986 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012987ac_cpp='$CXXCPP $CPPFLAGS'
12988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012991{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12992echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012993if test -z "$CXXCPP"; then
12994 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
John Criswell47fdd832003-07-14 16:52:07 +000012997 # Double quotes because CXXCPP needs to be expanded
12998 for CXXCPP in "$CXX -E" "/lib/cpp"
12999 do
13000 ac_preproc_ok=false
13001for ac_cxx_preproc_warn_flag in '' yes
13002do
13003 # Use a header file that comes with gcc, so configuring glibc
13004 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13006 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013007 # On the NeXT, cc -E runs the code through the compiler's parser,
13008 # not just through cpp. "Syntax error" is here to catch this case.
13009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013010/* confdefs.h. */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h. */
13015#ifdef __STDC__
13016# include <limits.h>
13017#else
13018# include <assert.h>
13019#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013020 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013021_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013022if { (ac_try="$ac_cpp conftest.$ac_ext"
13023case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13026esac
13027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013029 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013030 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013034 (exit $ac_status); } >/dev/null; then
13035 if test -s conftest.err; then
13036 ac_cpp_err=$ac_cxx_preproc_warn_flag
13037 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13038 else
13039 ac_cpp_err=
13040 fi
13041else
13042 ac_cpp_err=yes
13043fi
13044if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013045 :
13046else
13047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013048sed 's/^/| /' conftest.$ac_ext >&5
13049
John Criswell47fdd832003-07-14 16:52:07 +000013050 # Broken: fails on valid input.
13051continue
13052fi
Reid Spencera773bd52006-08-04 18:18:08 +000013053
John Criswell47fdd832003-07-14 16:52:07 +000013054rm -f conftest.err conftest.$ac_ext
13055
Reid Spencera773bd52006-08-04 18:18:08 +000013056 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013057 # can be detected and how.
13058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013064#include <ac_nonexistent.h>
13065_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013066if { (ac_try="$ac_cpp conftest.$ac_ext"
13067case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013073 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013074 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013078 (exit $ac_status); } >/dev/null; then
13079 if test -s conftest.err; then
13080 ac_cpp_err=$ac_cxx_preproc_warn_flag
13081 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13082 else
13083 ac_cpp_err=
13084 fi
13085else
13086 ac_cpp_err=yes
13087fi
13088if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013089 # Broken: success on invalid input.
13090continue
13091else
13092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013093sed 's/^/| /' conftest.$ac_ext >&5
13094
John Criswell47fdd832003-07-14 16:52:07 +000013095 # Passes both tests.
13096ac_preproc_ok=:
13097break
13098fi
Reid Spencera773bd52006-08-04 18:18:08 +000013099
John Criswell47fdd832003-07-14 16:52:07 +000013100rm -f conftest.err conftest.$ac_ext
13101
13102done
13103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13104rm -f conftest.err conftest.$ac_ext
13105if $ac_preproc_ok; then
13106 break
John Criswell7a73b802003-06-30 21:59:07 +000013107fi
13108
John Criswell47fdd832003-07-14 16:52:07 +000013109 done
13110 ac_cv_prog_CXXCPP=$CXXCPP
13111
13112fi
13113 CXXCPP=$ac_cv_prog_CXXCPP
13114else
13115 ac_cv_prog_CXXCPP=$CXXCPP
13116fi
Reid Spencera773bd52006-08-04 18:18:08 +000013117{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13118echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013119ac_preproc_ok=false
13120for ac_cxx_preproc_warn_flag in '' yes
13121do
13122 # Use a header file that comes with gcc, so configuring glibc
13123 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013126 # On the NeXT, cc -E runs the code through the compiler's parser,
13127 # not just through cpp. "Syntax error" is here to catch this case.
13128 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013129/* confdefs.h. */
13130_ACEOF
13131cat confdefs.h >>conftest.$ac_ext
13132cat >>conftest.$ac_ext <<_ACEOF
13133/* end confdefs.h. */
13134#ifdef __STDC__
13135# include <limits.h>
13136#else
13137# include <assert.h>
13138#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013139 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013140_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013141if { (ac_try="$ac_cpp conftest.$ac_ext"
13142case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013148 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013149 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013153 (exit $ac_status); } >/dev/null; then
13154 if test -s conftest.err; then
13155 ac_cpp_err=$ac_cxx_preproc_warn_flag
13156 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13157 else
13158 ac_cpp_err=
13159 fi
13160else
13161 ac_cpp_err=yes
13162fi
13163if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013164 :
13165else
13166 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013167sed 's/^/| /' conftest.$ac_ext >&5
13168
John Criswell47fdd832003-07-14 16:52:07 +000013169 # Broken: fails on valid input.
13170continue
13171fi
Reid Spencera773bd52006-08-04 18:18:08 +000013172
John Criswell47fdd832003-07-14 16:52:07 +000013173rm -f conftest.err conftest.$ac_ext
13174
Reid Spencera773bd52006-08-04 18:18:08 +000013175 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013176 # can be detected and how.
13177 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013178/* confdefs.h. */
13179_ACEOF
13180cat confdefs.h >>conftest.$ac_ext
13181cat >>conftest.$ac_ext <<_ACEOF
13182/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013183#include <ac_nonexistent.h>
13184_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013185if { (ac_try="$ac_cpp conftest.$ac_ext"
13186case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189esac
13190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013192 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013193 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013197 (exit $ac_status); } >/dev/null; then
13198 if test -s conftest.err; then
13199 ac_cpp_err=$ac_cxx_preproc_warn_flag
13200 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13201 else
13202 ac_cpp_err=
13203 fi
13204else
13205 ac_cpp_err=yes
13206fi
13207if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013208 # Broken: success on invalid input.
13209continue
13210else
13211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013212sed 's/^/| /' conftest.$ac_ext >&5
13213
John Criswell47fdd832003-07-14 16:52:07 +000013214 # Passes both tests.
13215ac_preproc_ok=:
13216break
13217fi
Reid Spencera773bd52006-08-04 18:18:08 +000013218
John Criswell47fdd832003-07-14 16:52:07 +000013219rm -f conftest.err conftest.$ac_ext
13220
13221done
13222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13223rm -f conftest.err conftest.$ac_ext
13224if $ac_preproc_ok; then
13225 :
13226else
John Criswell0c38eaf2003-09-10 15:17:25 +000013227 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13228See \`config.log' for more details." >&5
13229echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13230See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013231 { (exit 1); exit 1; }; }
13232fi
13233
Reid Spencera773bd52006-08-04 18:18:08 +000013234ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013235ac_cpp='$CXXCPP $CPPFLAGS'
13236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13239
Reid Spencer2706f8c2004-09-19 23:53:36 +000013240fi
13241
John Criswell47fdd832003-07-14 16:52:07 +000013242
13243ac_ext=f
13244ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13245ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13246ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13247if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013248 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 +000013249 do
13250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013254if test "${ac_cv_prog_F77+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256else
13257 if test -n "$F77"; then
13258 ac_cv_prog_F77="$F77" # Let the user override the test.
13259else
13260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013266 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 +000013267 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13270 fi
13271done
13272done
Reid Spencera773bd52006-08-04 18:18:08 +000013273IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013274
13275fi
13276fi
13277F77=$ac_cv_prog_F77
13278if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013279 { echo "$as_me:$LINENO: result: $F77" >&5
13280echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013281else
Reid Spencera773bd52006-08-04 18:18:08 +000013282 { echo "$as_me:$LINENO: result: no" >&5
13283echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013284fi
13285
Reid Spencera773bd52006-08-04 18:18:08 +000013286
John Criswell47fdd832003-07-14 16:52:07 +000013287 test -n "$F77" && break
13288 done
13289fi
13290if test -z "$F77"; then
13291 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013292 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 +000013293do
13294 # Extract the first word of "$ac_prog", so it can be a program name with args.
13295set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013298if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301 if test -n "$ac_ct_F77"; then
13302 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13303else
13304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305for as_dir in $PATH
13306do
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013310 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 +000013311 ac_cv_prog_ac_ct_F77="$ac_prog"
13312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 break 2
13314 fi
13315done
13316done
Reid Spencera773bd52006-08-04 18:18:08 +000013317IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013318
13319fi
13320fi
13321ac_ct_F77=$ac_cv_prog_ac_ct_F77
13322if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013323 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13324echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013325else
Reid Spencera773bd52006-08-04 18:18:08 +000013326 { echo "$as_me:$LINENO: result: no" >&5
13327echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013328fi
13329
Reid Spencera773bd52006-08-04 18:18:08 +000013330
John Criswell47fdd832003-07-14 16:52:07 +000013331 test -n "$ac_ct_F77" && break
13332done
13333
Reid Spencera773bd52006-08-04 18:18:08 +000013334 if test "x$ac_ct_F77" = x; then
13335 F77=""
13336 else
13337 case $cross_compiling:$ac_tool_warned in
13338yes:)
13339{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13340whose name does not start with the host triplet. If you think this
13341configuration is useful to you, please write to autoconf@gnu.org." >&5
13342echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13343whose name does not start with the host triplet. If you think this
13344configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13345ac_tool_warned=yes ;;
13346esac
13347 F77=$ac_ct_F77
13348 fi
John Criswell47fdd832003-07-14 16:52:07 +000013349fi
13350
13351
13352# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013353echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013354ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013355{ (ac_try="$ac_compiler --version >&5"
13356case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359esac
13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013365{ (ac_try="$ac_compiler -v >&5"
13366case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369esac
13370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013375{ (ac_try="$ac_compiler -V >&5"
13376case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13379esac
13380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013385rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013386
13387# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013388# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013389ac_save_ext=$ac_ext
13390ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013391{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13392echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013393if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395else
13396 cat >conftest.$ac_ext <<_ACEOF
13397 program main
13398#ifndef __GNUC__
13399 choke me
13400#endif
13401
13402 end
13403_ACEOF
13404rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013405if { (ac_try="$ac_compile"
13406case "(($ac_try" in
13407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13408 *) ac_try_echo=$ac_try;;
13409esac
13410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013417 (exit $ac_status); } &&
13418 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13419 { (case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_try") 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13432esac
13433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013438 ac_compiler_gnu=yes
13439else
13440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013441sed 's/^/| /' conftest.$ac_ext >&5
13442
Reid Spencera773bd52006-08-04 18:18:08 +000013443 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013444fi
Reid Spencera773bd52006-08-04 18:18:08 +000013445
13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013447ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13448
13449fi
Reid Spencera773bd52006-08-04 18:18:08 +000013450{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13451echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013452ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013453ac_test_FFLAGS=${FFLAGS+set}
13454ac_save_FFLAGS=$FFLAGS
13455FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013456{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13457echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013458if test "${ac_cv_prog_f77_g+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 FFLAGS=-g
13462cat >conftest.$ac_ext <<_ACEOF
13463 program main
13464
13465 end
13466_ACEOF
13467rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013468if { (ac_try="$ac_compile"
13469case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472esac
13473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13482 { (case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_try") 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest.$ac_objext'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013501 ac_cv_prog_f77_g=yes
13502else
13503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013504sed 's/^/| /' conftest.$ac_ext >&5
13505
Reid Spencera773bd52006-08-04 18:18:08 +000013506 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013507fi
Reid Spencera773bd52006-08-04 18:18:08 +000013508
13509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013510
13511fi
Reid Spencera773bd52006-08-04 18:18:08 +000013512{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13513echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013514if test "$ac_test_FFLAGS" = set; then
13515 FFLAGS=$ac_save_FFLAGS
13516elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013518 FFLAGS="-g -O2"
13519 else
13520 FFLAGS="-g"
13521 fi
13522else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013523 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013524 FFLAGS="-O2"
13525 else
13526 FFLAGS=
13527 fi
13528fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013529
13530G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013531ac_ext=c
13532ac_cpp='$CPP $CPPFLAGS'
13533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535ac_compiler_gnu=$ac_cv_c_compiler_gnu
13536
13537
13538
13539# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13540
13541# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013542{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13543echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013544if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013548 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013549
13550 case $build_os in
13551 msdosdjgpp*)
13552 # On DJGPP, this test can blow up pretty badly due to problems in libc
13553 # (any single argument exceeding 2000 bytes causes a buffer overrun
13554 # during glob expansion). Even if it were fixed, the result of this
13555 # check would be larger than it should be.
13556 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13557 ;;
13558
13559 gnu*)
13560 # Under GNU Hurd, this test is not required because there is
13561 # no limit to the length of command line arguments.
13562 # Libtool will interpret -1 as no limit whatsoever
13563 lt_cv_sys_max_cmd_len=-1;
13564 ;;
13565
13566 cygwin* | mingw*)
13567 # On Win9x/ME, this test blows up -- it succeeds, but takes
13568 # about 5 minutes as the teststring grows exponentially.
13569 # Worse, since 9x/ME are not pre-emptively multitasking,
13570 # you end up with a "frozen" computer, even though with patience
13571 # the test eventually succeeds (with a max line length of 256k).
13572 # Instead, let's just punt: use the minimum linelength reported by
13573 # all of the supported platforms: 8192 (on NT/2K/XP).
13574 lt_cv_sys_max_cmd_len=8192;
13575 ;;
13576
Reid Spencer2706f8c2004-09-19 23:53:36 +000013577 amigaos*)
13578 # On AmigaOS with pdksh, this test takes hours, literally.
13579 # So we just punt and use a minimum line length of 8192.
13580 lt_cv_sys_max_cmd_len=8192;
13581 ;;
13582
Reid Spencera773bd52006-08-04 18:18:08 +000013583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013584 # This has been around since 386BSD, at least. Likely further.
13585 if test -x /sbin/sysctl; then
13586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13587 elif test -x /usr/sbin/sysctl; then
13588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13589 else
Reid Spencera773bd52006-08-04 18:18:08 +000013590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013591 fi
13592 # And add a safety zone
13593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013595 ;;
13596
Reid Spencera773bd52006-08-04 18:18:08 +000013597 interix*)
13598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13599 lt_cv_sys_max_cmd_len=196608
13600 ;;
13601
13602 osf*)
13603 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13604 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13605 # nice to cause kernel panics so lets avoid the loop below.
13606 # First set a reasonable default.
13607 lt_cv_sys_max_cmd_len=16384
13608 #
13609 if test -x /sbin/sysconfig; then
13610 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13611 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13612 esac
13613 fi
13614 ;;
13615 sco3.2v5*)
13616 lt_cv_sys_max_cmd_len=102400
13617 ;;
13618 sysv5* | sco5v6* | sysv4.2uw2*)
13619 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13620 if test -n "$kargmax"; then
13621 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13622 else
13623 lt_cv_sys_max_cmd_len=32768
13624 fi
13625 ;;
13626 *)
John Criswell47fdd832003-07-14 16:52:07 +000013627 # If test is not a shell built-in, we'll probably end up computing a
13628 # maximum length that is only half of the actual maximum length, but
13629 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13631 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13632 = "XX$teststring") >/dev/null 2>&1 &&
13633 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013634 lt_cv_sys_max_cmd_len=$new_result &&
13635 test $i != 17 # 1/2 MB should be enough
13636 do
13637 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013638 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013639 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013640 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013641 # Add a significant safety factor because C++ compilers can tack on massive
13642 # amounts of additional arguments before passing them to the linker.
13643 # It appears as though 1/2 is a usable value.
13644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13645 ;;
13646 esac
13647
13648fi
13649
13650if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013651 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13652echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013653else
Reid Spencera773bd52006-08-04 18:18:08 +000013654 { echo "$as_me:$LINENO: result: none" >&5
13655echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013656fi
13657
13658
13659
13660
13661# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013662{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13663echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013664if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666else
13667
13668# These are sane defaults that work on at least a few old systems.
13669# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13670
13671# Character class describing NM global symbol codes.
13672symcode='[BCDEGRST]'
13673
13674# Regexp to match symbols that can be accessed directly from C.
13675sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13676
John Criswell47fdd832003-07-14 16:52:07 +000013677# Transform an extracted symbol line into a proper C declaration
13678lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13679
13680# Transform an extracted symbol line into symbol name and symbol address
13681lt_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'"
13682
13683# Define system-specific variables.
13684case $host_os in
13685aix*)
13686 symcode='[BCDT]'
13687 ;;
13688cygwin* | mingw* | pw32*)
13689 symcode='[ABCDGISTW]'
13690 ;;
13691hpux*) # Its linker distinguishes data from code symbols
13692 if test "$host_cpu" = ia64; then
13693 symcode='[ABCDEGRST]'
13694 fi
13695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13696 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'"
13697 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013698linux*)
13699 if test "$host_cpu" = ia64; then
13700 symcode='[ABCDGIRSTW]'
13701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13702 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'"
13703 fi
13704 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013705irix* | nonstopux*)
13706 symcode='[BCDEGRST]'
13707 ;;
13708osf*)
13709 symcode='[BCDEGQRST]'
13710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013711solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013712 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013713 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013714sco3.2v5*)
13715 symcode='[DT]'
13716 ;;
13717sysv4.2uw2*)
13718 symcode='[DT]'
13719 ;;
13720sysv5* | sco5v6* | unixware* | OpenUNIX*)
13721 symcode='[ABDT]'
13722 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013723sysv4)
13724 symcode='[DFNSTU]'
13725 ;;
13726esac
13727
13728# Handle CRLF in mingw tool chain
13729opt_cr=
13730case $build_os in
13731mingw*)
13732 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13733 ;;
13734esac
13735
13736# If we're using GNU nm, then use its standard symbol codes.
13737case `$NM -V 2>&1` in
13738*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013739 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013740esac
13741
13742# Try without a prefix undercore, then with it.
13743for ac_symprfx in "" "_"; do
13744
Reid Spencera773bd52006-08-04 18:18:08 +000013745 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13746 symxfrm="\\1 $ac_symprfx\\2 \\2"
13747
John Criswell47fdd832003-07-14 16:52:07 +000013748 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013749 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 +000013750
13751 # Check to see that the pipe works correctly.
13752 pipe_works=no
13753
13754 rm -f conftest*
13755 cat > conftest.$ac_ext <<EOF
13756#ifdef __cplusplus
13757extern "C" {
13758#endif
13759char nm_test_var;
13760void nm_test_func(){}
13761#ifdef __cplusplus
13762}
13763#endif
13764int main(){nm_test_var='a';nm_test_func();return(0);}
13765EOF
13766
13767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13768 (eval $ac_compile) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; then
13772 # Now try to grab the symbols.
13773 nlist=conftest.nm
13774 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13775 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && test -s "$nlist"; then
13779 # Try sorting and uniquifying the output.
13780 if sort "$nlist" | uniq > "$nlist"T; then
13781 mv -f "$nlist"T "$nlist"
13782 else
13783 rm -f "$nlist"T
13784 fi
13785
13786 # Make sure that we snagged all the symbols we need.
13787 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13788 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13789 cat <<EOF > conftest.$ac_ext
13790#ifdef __cplusplus
13791extern "C" {
13792#endif
13793
13794EOF
13795 # Now generate the symbol file.
13796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13797
13798 cat <<EOF >> conftest.$ac_ext
13799#if defined (__STDC__) && __STDC__
13800# define lt_ptr_t void *
13801#else
13802# define lt_ptr_t char *
13803# define const
13804#endif
13805
13806/* The mapping between symbol names and symbols. */
13807const struct {
13808 const char *name;
13809 lt_ptr_t address;
13810}
13811lt_preloaded_symbols[] =
13812{
13813EOF
13814 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13815 cat <<\EOF >> conftest.$ac_ext
13816 {0, (lt_ptr_t) 0}
13817};
13818
13819#ifdef __cplusplus
13820}
13821#endif
13822EOF
13823 # Now try linking the two files.
13824 mv conftest.$ac_objext conftstm.$ac_objext
13825 lt_save_LIBS="$LIBS"
13826 lt_save_CFLAGS="$CFLAGS"
13827 LIBS="conftstm.$ac_objext"
13828 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13834 pipe_works=yes
13835 fi
13836 LIBS="$lt_save_LIBS"
13837 CFLAGS="$lt_save_CFLAGS"
13838 else
13839 echo "cannot find nm_test_func in $nlist" >&5
13840 fi
13841 else
13842 echo "cannot find nm_test_var in $nlist" >&5
13843 fi
13844 else
13845 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13846 fi
13847 else
13848 echo "$progname: failed program was:" >&5
13849 cat conftest.$ac_ext >&5
13850 fi
13851 rm -f conftest* conftst*
13852
13853 # Do not use the global_symbol_pipe unless it works.
13854 if test "$pipe_works" = yes; then
13855 break
13856 else
13857 lt_cv_sys_global_symbol_pipe=
13858 fi
13859done
13860
13861fi
13862
13863if test -z "$lt_cv_sys_global_symbol_pipe"; then
13864 lt_cv_sys_global_symbol_to_cdecl=
13865fi
13866if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013867 { echo "$as_me:$LINENO: result: failed" >&5
13868echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013869else
Reid Spencera773bd52006-08-04 18:18:08 +000013870 { echo "$as_me:$LINENO: result: ok" >&5
13871echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013872fi
13873
Reid Spencera773bd52006-08-04 18:18:08 +000013874{ echo "$as_me:$LINENO: checking for objdir" >&5
13875echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013876if test "${lt_cv_objdir+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878else
13879 rm -f .libs 2>/dev/null
13880mkdir .libs 2>/dev/null
13881if test -d .libs; then
13882 lt_cv_objdir=.libs
13883else
13884 # MS-DOS does not allow filenames that begin with a dot.
13885 lt_cv_objdir=_libs
13886fi
13887rmdir .libs 2>/dev/null
13888fi
Reid Spencera773bd52006-08-04 18:18:08 +000013889{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13890echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013891objdir=$lt_cv_objdir
13892
13893
13894
13895
13896
13897case $host_os in
13898aix3*)
13899 # AIX sometimes has problems with the GCC collect2 program. For some
13900 # reason, if we set the COLLECT_NAMES environment variable, the problems
13901 # vanish in a puff of smoke.
13902 if test "X${COLLECT_NAMES+set}" != Xset; then
13903 COLLECT_NAMES=
13904 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013905 fi
13906 ;;
13907esac
13908
John Criswell47fdd832003-07-14 16:52:07 +000013909# Sed substitution that helps us do robust quoting. It backslashifies
13910# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013911Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013912sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13913
13914# Same as above, but do not quote variable references.
13915double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13916
13917# Sed substitution to delay expansion of an escaped shell variable in a
13918# double_quote_subst'ed string.
13919delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13920
13921# Sed substitution to avoid accidental globbing in evaled expressions
13922no_glob_subst='s/\*/\\\*/g'
13923
13924# Constants:
13925rm="rm -f"
13926
13927# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013928default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013929can_build_shared=yes
13930
Reid Spencera773bd52006-08-04 18:18:08 +000013931# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013932# which needs '.lib').
13933libext=a
13934ltmain="$ac_aux_dir/ltmain.sh"
13935ofile="$default_ofile"
13936with_gnu_ld="$lt_cv_prog_gnu_ld"
13937
13938if test -n "$ac_tool_prefix"; then
13939 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13940set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013943if test "${ac_cv_prog_AR+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945else
13946 if test -n "$AR"; then
13947 ac_cv_prog_AR="$AR" # Let the user override the test.
13948else
13949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950for as_dir in $PATH
13951do
13952 IFS=$as_save_IFS
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013955 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 +000013956 ac_cv_prog_AR="${ac_tool_prefix}ar"
13957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13958 break 2
13959 fi
13960done
13961done
Reid Spencera773bd52006-08-04 18:18:08 +000013962IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013963
13964fi
13965fi
13966AR=$ac_cv_prog_AR
13967if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013968 { echo "$as_me:$LINENO: result: $AR" >&5
13969echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013970else
Reid Spencera773bd52006-08-04 18:18:08 +000013971 { echo "$as_me:$LINENO: result: no" >&5
13972echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013973fi
13974
Reid Spencera773bd52006-08-04 18:18:08 +000013975
John Criswell47fdd832003-07-14 16:52:07 +000013976fi
13977if test -z "$ac_cv_prog_AR"; then
13978 ac_ct_AR=$AR
13979 # Extract the first word of "ar", so it can be a program name with args.
13980set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013983if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985else
13986 if test -n "$ac_ct_AR"; then
13987 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13988else
13989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990for as_dir in $PATH
13991do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013995 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 +000013996 ac_cv_prog_ac_ct_AR="ar"
13997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 break 2
13999 fi
14000done
14001done
Reid Spencera773bd52006-08-04 18:18:08 +000014002IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014003
John Criswell47fdd832003-07-14 16:52:07 +000014004fi
14005fi
14006ac_ct_AR=$ac_cv_prog_ac_ct_AR
14007if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014008 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14009echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014010else
Reid Spencera773bd52006-08-04 18:18:08 +000014011 { echo "$as_me:$LINENO: result: no" >&5
14012echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014013fi
14014
Reid Spencera773bd52006-08-04 18:18:08 +000014015 if test "x$ac_ct_AR" = x; then
14016 AR="false"
14017 else
14018 case $cross_compiling:$ac_tool_warned in
14019yes:)
14020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14021whose name does not start with the host triplet. If you think this
14022configuration is useful to you, please write to autoconf@gnu.org." >&5
14023echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14024whose name does not start with the host triplet. If you think this
14025configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14026ac_tool_warned=yes ;;
14027esac
14028 AR=$ac_ct_AR
14029 fi
John Criswell47fdd832003-07-14 16:52:07 +000014030else
14031 AR="$ac_cv_prog_AR"
14032fi
14033
John Criswell7a73b802003-06-30 21:59:07 +000014034if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14036set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014039if test "${ac_cv_prog_RANLIB+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042 if test -n "$RANLIB"; then
14043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14044else
14045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046for as_dir in $PATH
14047do
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014051 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 +000014052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 break 2
14055 fi
14056done
14057done
Reid Spencera773bd52006-08-04 18:18:08 +000014058IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014059
14060fi
14061fi
14062RANLIB=$ac_cv_prog_RANLIB
14063if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014064 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14065echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014066else
Reid Spencera773bd52006-08-04 18:18:08 +000014067 { echo "$as_me:$LINENO: result: no" >&5
14068echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014069fi
14070
Reid Spencera773bd52006-08-04 18:18:08 +000014071
John Criswell7a73b802003-06-30 21:59:07 +000014072fi
14073if test -z "$ac_cv_prog_RANLIB"; then
14074 ac_ct_RANLIB=$RANLIB
14075 # Extract the first word of "ranlib", so it can be a program name with args.
14076set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014079if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 if test -n "$ac_ct_RANLIB"; then
14083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14084else
14085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086for as_dir in $PATH
14087do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014091 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 +000014092 ac_cv_prog_ac_ct_RANLIB="ranlib"
14093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14095 fi
14096done
14097done
Reid Spencera773bd52006-08-04 18:18:08 +000014098IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014099
John Criswell7a73b802003-06-30 21:59:07 +000014100fi
14101fi
14102ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14103if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014104 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14105echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014106else
Reid Spencera773bd52006-08-04 18:18:08 +000014107 { echo "$as_me:$LINENO: result: no" >&5
14108echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014109fi
14110
Reid Spencera773bd52006-08-04 18:18:08 +000014111 if test "x$ac_ct_RANLIB" = x; then
14112 RANLIB=":"
14113 else
14114 case $cross_compiling:$ac_tool_warned in
14115yes:)
14116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14117whose name does not start with the host triplet. If you think this
14118configuration is useful to you, please write to autoconf@gnu.org." >&5
14119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14120whose name does not start with the host triplet. If you think this
14121configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14122ac_tool_warned=yes ;;
14123esac
14124 RANLIB=$ac_ct_RANLIB
14125 fi
John Criswell7a73b802003-06-30 21:59:07 +000014126else
14127 RANLIB="$ac_cv_prog_RANLIB"
14128fi
14129
14130if test -n "$ac_tool_prefix"; then
14131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14132set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014135if test "${ac_cv_prog_STRIP+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14137else
14138 if test -n "$STRIP"; then
14139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14140else
14141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142for as_dir in $PATH
14143do
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014147 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 +000014148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14151 fi
14152done
14153done
Reid Spencera773bd52006-08-04 18:18:08 +000014154IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014155
14156fi
14157fi
14158STRIP=$ac_cv_prog_STRIP
14159if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014160 { echo "$as_me:$LINENO: result: $STRIP" >&5
14161echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014162else
Reid Spencera773bd52006-08-04 18:18:08 +000014163 { echo "$as_me:$LINENO: result: no" >&5
14164echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014165fi
14166
Reid Spencera773bd52006-08-04 18:18:08 +000014167
John Criswell7a73b802003-06-30 21:59:07 +000014168fi
14169if test -z "$ac_cv_prog_STRIP"; then
14170 ac_ct_STRIP=$STRIP
14171 # Extract the first word of "strip", so it can be a program name with args.
14172set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014175if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14177else
14178 if test -n "$ac_ct_STRIP"; then
14179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14180else
14181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182for as_dir in $PATH
14183do
14184 IFS=$as_save_IFS
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014187 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 +000014188 ac_cv_prog_ac_ct_STRIP="strip"
14189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 break 2
14191 fi
14192done
14193done
Reid Spencera773bd52006-08-04 18:18:08 +000014194IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014195
John Criswell7a73b802003-06-30 21:59:07 +000014196fi
14197fi
14198ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14199if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014200 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14201echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014202else
Reid Spencera773bd52006-08-04 18:18:08 +000014203 { echo "$as_me:$LINENO: result: no" >&5
14204echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014205fi
14206
Reid Spencera773bd52006-08-04 18:18:08 +000014207 if test "x$ac_ct_STRIP" = x; then
14208 STRIP=":"
14209 else
14210 case $cross_compiling:$ac_tool_warned in
14211yes:)
14212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14213whose name does not start with the host triplet. If you think this
14214configuration is useful to you, please write to autoconf@gnu.org." >&5
14215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14216whose name does not start with the host triplet. If you think this
14217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14218ac_tool_warned=yes ;;
14219esac
14220 STRIP=$ac_ct_STRIP
14221 fi
John Criswell7a73b802003-06-30 21:59:07 +000014222else
14223 STRIP="$ac_cv_prog_STRIP"
14224fi
14225
14226
John Criswell7a73b802003-06-30 21:59:07 +000014227old_CC="$CC"
14228old_CFLAGS="$CFLAGS"
14229
14230# Set sane defaults for various variables
14231test -z "$AR" && AR=ar
14232test -z "$AR_FLAGS" && AR_FLAGS=cru
14233test -z "$AS" && AS=as
14234test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014235test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014236test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014237test -z "$DLLTOOL" && DLLTOOL=dlltool
14238test -z "$LD" && LD=ld
14239test -z "$LN_S" && LN_S="ln -s"
14240test -z "$MAGIC_CMD" && MAGIC_CMD=file
14241test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014242test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014243test -z "$OBJDUMP" && OBJDUMP=objdump
14244test -z "$RANLIB" && RANLIB=:
14245test -z "$STRIP" && STRIP=:
14246test -z "$ac_objext" && ac_objext=o
14247
John Criswell7a73b802003-06-30 21:59:07 +000014248# Determine commands to create old-style static archives.
14249old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14250old_postinstall_cmds='chmod 644 $oldlib'
14251old_postuninstall_cmds=
14252
14253if test -n "$RANLIB"; then
14254 case $host_os in
14255 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014257 ;;
14258 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014259 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014260 ;;
14261 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014262 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014263fi
14264
Reid Spencera773bd52006-08-04 18:18:08 +000014265for cc_temp in $compiler""; do
14266 case $cc_temp in
14267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14269 \-*) ;;
14270 *) break;;
14271 esac
14272done
14273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14274
Reid Spencer2706f8c2004-09-19 23:53:36 +000014275
John Criswell47fdd832003-07-14 16:52:07 +000014276# Only perform the check for file, if the check method requires it
14277case $deplibs_check_method in
14278file_magic*)
14279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014280 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14281echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014282if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014284else
John Criswell47fdd832003-07-14 16:52:07 +000014285 case $MAGIC_CMD in
14286[\\/*] | ?:[\\/]*)
14287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14288 ;;
14289*)
14290 lt_save_MAGIC_CMD="$MAGIC_CMD"
14291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14293 for ac_dir in $ac_dummy; do
14294 IFS="$lt_save_ifs"
14295 test -z "$ac_dir" && ac_dir=.
14296 if test -f $ac_dir/${ac_tool_prefix}file; then
14297 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14298 if test -n "$file_magic_test_file"; then
14299 case $deplibs_check_method in
14300 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14304 $EGREP "$file_magic_regex" > /dev/null; then
14305 :
14306 else
14307 cat <<EOF 1>&2
14308
14309*** Warning: the command libtool uses to detect shared libraries,
14310*** $file_magic_cmd, produces output that libtool cannot recognize.
14311*** The result is that libtool may fail to recognize shared libraries
14312*** as such. This will affect the creation of libtool libraries that
14313*** depend on shared libraries, but programs linked with such libtool
14314*** libraries will work regardless of this problem. Nevertheless, you
14315*** may want to report the problem to your system manager and/or to
14316*** bug-libtool@gnu.org
14317
14318EOF
14319 fi ;;
14320 esac
14321 fi
14322 break
14323 fi
14324 done
14325 IFS="$lt_save_ifs"
14326 MAGIC_CMD="$lt_save_MAGIC_CMD"
14327 ;;
14328esac
John Criswell7a73b802003-06-30 21:59:07 +000014329fi
John Criswell7a73b802003-06-30 21:59:07 +000014330
John Criswell47fdd832003-07-14 16:52:07 +000014331MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14332if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014333 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14334echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014335else
Reid Spencera773bd52006-08-04 18:18:08 +000014336 { echo "$as_me:$LINENO: result: no" >&5
14337echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014338fi
John Criswell7a73b802003-06-30 21:59:07 +000014339
John Criswell47fdd832003-07-14 16:52:07 +000014340if test -z "$lt_cv_path_MAGIC_CMD"; then
14341 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014342 { echo "$as_me:$LINENO: checking for file" >&5
14343echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014344if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346else
14347 case $MAGIC_CMD in
14348[\\/*] | ?:[\\/]*)
14349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14350 ;;
14351*)
14352 lt_save_MAGIC_CMD="$MAGIC_CMD"
14353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14355 for ac_dir in $ac_dummy; do
14356 IFS="$lt_save_ifs"
14357 test -z "$ac_dir" && ac_dir=.
14358 if test -f $ac_dir/file; then
14359 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14360 if test -n "$file_magic_test_file"; then
14361 case $deplibs_check_method in
14362 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14366 $EGREP "$file_magic_regex" > /dev/null; then
14367 :
14368 else
14369 cat <<EOF 1>&2
14370
14371*** Warning: the command libtool uses to detect shared libraries,
14372*** $file_magic_cmd, produces output that libtool cannot recognize.
14373*** The result is that libtool may fail to recognize shared libraries
14374*** as such. This will affect the creation of libtool libraries that
14375*** depend on shared libraries, but programs linked with such libtool
14376*** libraries will work regardless of this problem. Nevertheless, you
14377*** may want to report the problem to your system manager and/or to
14378*** bug-libtool@gnu.org
14379
14380EOF
14381 fi ;;
14382 esac
14383 fi
14384 break
14385 fi
14386 done
14387 IFS="$lt_save_ifs"
14388 MAGIC_CMD="$lt_save_MAGIC_CMD"
14389 ;;
14390esac
14391fi
14392
14393MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14394if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014395 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14396echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014397else
Reid Spencera773bd52006-08-04 18:18:08 +000014398 { echo "$as_me:$LINENO: result: no" >&5
14399echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014400fi
14401
14402 else
14403 MAGIC_CMD=:
14404 fi
14405fi
14406
14407 fi
14408 ;;
14409esac
14410
Reid Spencer17795972004-11-18 09:47:37 +000014411enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014412enable_win32_dll=no
14413
Reid Spencera773bd52006-08-04 18:18:08 +000014414# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014415if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014416 enableval=$enable_libtool_lock;
14417fi
John Criswell47fdd832003-07-14 16:52:07 +000014418
John Criswell47fdd832003-07-14 16:52:07 +000014419test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14420
John Criswell7a73b802003-06-30 21:59:07 +000014421
Reid Spencera773bd52006-08-04 18:18:08 +000014422# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014423if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014424 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014425else
14426 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014427fi
14428
John Criswell7a73b802003-06-30 21:59:07 +000014429test -z "$pic_mode" && pic_mode=default
14430
John Criswell47fdd832003-07-14 16:52:07 +000014431# Use C for the default configuration in the libtool script
14432tagname=
14433lt_save_CC="$CC"
14434ac_ext=c
14435ac_cpp='$CPP $CPPFLAGS'
14436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438ac_compiler_gnu=$ac_cv_c_compiler_gnu
14439
14440
14441# Source file extension for C test sources.
14442ac_ext=c
14443
14444# Object file extension for compiled C test sources.
14445objext=o
14446objext=$objext
14447
14448# Code to be used in simple compile tests
14449lt_simple_compile_test_code="int some_variable = 0;\n"
14450
14451# Code to be used in simple link tests
14452lt_simple_link_test_code='int main(){return(0);}\n'
14453
14454
14455# If no C compiler was specified, use CC.
14456LTCC=${LTCC-"$CC"}
14457
Reid Spencera773bd52006-08-04 18:18:08 +000014458# If no C compiler flags were specified, use CFLAGS.
14459LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14460
John Criswell47fdd832003-07-14 16:52:07 +000014461# Allow CC to be a program name with arguments.
14462compiler=$CC
14463
14464
Reid Spencera773bd52006-08-04 18:18:08 +000014465# save warnings/boilerplate of simple test code
14466ac_outfile=conftest.$ac_objext
14467printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14468eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469_lt_compiler_boilerplate=`cat conftest.err`
14470$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014471
Reid Spencera773bd52006-08-04 18:18:08 +000014472ac_outfile=conftest.$ac_objext
14473printf "$lt_simple_link_test_code" >conftest.$ac_ext
14474eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14475_lt_linker_boilerplate=`cat conftest.err`
14476$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014477
14478
John Criswell47fdd832003-07-14 16:52:07 +000014479
14480lt_prog_compiler_no_builtin_flag=
14481
14482if test "$GCC" = yes; then
14483 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14484
Reid Spencer2706f8c2004-09-19 23:53:36 +000014485
Reid Spencera773bd52006-08-04 18:18:08 +000014486{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14487echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014488if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14490else
14491 lt_cv_prog_compiler_rtti_exceptions=no
14492 ac_outfile=conftest.$ac_objext
14493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14494 lt_compiler_flag="-fno-rtti -fno-exceptions"
14495 # Insert the option either (1) after the last *FLAGS variable, or
14496 # (2) before a word containing "conftest.", or (3) at the end.
14497 # Note that $ac_compile itself does not contain backslashes and begins
14498 # with a dollar sign (not a hyphen), so the echo should work correctly.
14499 # The option is referenced via a variable to avoid confusing sed.
14500 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14503 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000014504 (eval echo "\"\$as_me:14501: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014505 (eval "$lt_compile" 2>conftest.err)
14506 ac_status=$?
14507 cat conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000014508 echo "$as_me:14505: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014509 if (exit $ac_status) && test -s "$ac_outfile"; then
14510 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014511 # So say no if there are warnings other than the usual output.
14512 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014515 lt_cv_prog_compiler_rtti_exceptions=yes
14516 fi
14517 fi
14518 $rm conftest*
14519
14520fi
Reid Spencera773bd52006-08-04 18:18:08 +000014521{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14522echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014523
14524if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14526else
14527 :
14528fi
14529
14530fi
14531
14532lt_prog_compiler_wl=
14533lt_prog_compiler_pic=
14534lt_prog_compiler_static=
14535
Reid Spencera773bd52006-08-04 18:18:08 +000014536{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14537echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014538
14539 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014540 lt_prog_compiler_wl='-Wl,'
14541 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014542
14543 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014544 aix*)
14545 # All AIX code is PIC.
14546 if test "$host_cpu" = ia64; then
14547 # AIX 5 now supports IA64 processor
14548 lt_prog_compiler_static='-Bstatic'
14549 fi
John Criswell7a73b802003-06-30 21:59:07 +000014550 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014551
John Criswell7a73b802003-06-30 21:59:07 +000014552 amigaos*)
14553 # FIXME: we need at least 68020 code to build shared libraries, but
14554 # adding the `-m68020' flag to GCC prevents building anything better,
14555 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014556 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014557 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014558
14559 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014560 # PIC is the default for these OSes.
14561 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014562
14563 mingw* | pw32* | os2*)
14564 # This hack is so that the source file can tell whether it is being
14565 # built for inclusion in a dll (and should export symbols for example).
14566 lt_prog_compiler_pic='-DDLL_EXPORT'
14567 ;;
14568
John Criswell7a73b802003-06-30 21:59:07 +000014569 darwin* | rhapsody*)
14570 # PIC is the default on this platform
14571 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014572 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014573 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014574
Reid Spencera773bd52006-08-04 18:18:08 +000014575 interix3*)
14576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14577 # Instead, we relocate shared libraries at runtime.
14578 ;;
14579
John Criswell47fdd832003-07-14 16:52:07 +000014580 msdosdjgpp*)
14581 # Just because we use GCC doesn't mean we suddenly get shared libraries
14582 # on systems that don't support them.
14583 lt_prog_compiler_can_build_shared=no
14584 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014585 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014586
John Criswell7a73b802003-06-30 21:59:07 +000014587 sysv4*MP*)
14588 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014589 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014590 fi
14591 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014592
14593 hpux*)
14594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14595 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014596 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014597 hppa*64*|ia64*)
14598 # +Z the default
14599 ;;
14600 *)
14601 lt_prog_compiler_pic='-fPIC'
14602 ;;
14603 esac
14604 ;;
14605
John Criswell7a73b802003-06-30 21:59:07 +000014606 *)
John Criswell47fdd832003-07-14 16:52:07 +000014607 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014608 ;;
14609 esac
14610 else
John Criswell47fdd832003-07-14 16:52:07 +000014611 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014612 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014613 aix*)
14614 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014615 if test "$host_cpu" = ia64; then
14616 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014617 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014618 else
John Criswell47fdd832003-07-14 16:52:07 +000014619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014620 fi
14621 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014622 darwin*)
14623 # PIC is the default on this platform
14624 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014625 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014626 xlc*)
14627 lt_prog_compiler_pic='-qnocommon'
14628 lt_prog_compiler_wl='-Wl,'
14629 ;;
14630 esac
14631 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014632
John Criswell47fdd832003-07-14 16:52:07 +000014633 mingw* | pw32* | os2*)
14634 # This hack is so that the source file can tell whether it is being
14635 # built for inclusion in a dll (and should export symbols for example).
14636 lt_prog_compiler_pic='-DDLL_EXPORT'
14637 ;;
14638
John Criswell7a73b802003-06-30 21:59:07 +000014639 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014640 lt_prog_compiler_wl='-Wl,'
14641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14642 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014643 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014644 hppa*64*|ia64*)
14645 # +Z the default
14646 ;;
14647 *)
14648 lt_prog_compiler_pic='+Z'
14649 ;;
14650 esac
14651 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14652 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014653 ;;
14654
John Criswell47fdd832003-07-14 16:52:07 +000014655 irix5* | irix6* | nonstopux*)
14656 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014657 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014658 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014659 ;;
14660
14661 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014662 lt_prog_compiler_pic='-KPIC'
14663 lt_prog_compiler_static='-Bstatic'
14664 ;;
14665
14666 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014667 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014668 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014669 lt_prog_compiler_wl='-Wl,'
14670 lt_prog_compiler_pic='-KPIC'
14671 lt_prog_compiler_static='-static'
14672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014673 pgcc* | pgf77* | pgf90* | pgf95*)
14674 # Portland Group compilers (*not* the Pentium gcc compiler,
14675 # which looks to be a dead project)
14676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_pic='-fpic'
14678 lt_prog_compiler_static='-Bstatic'
14679 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014680 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014681 lt_prog_compiler_wl='-Wl,'
14682 # All Alpha code is PIC.
14683 lt_prog_compiler_static='-non_shared'
14684 ;;
14685 esac
John Criswell7a73b802003-06-30 21:59:07 +000014686 ;;
14687
14688 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014689 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014690 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014691 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014692 ;;
14693
John Criswell7a73b802003-06-30 21:59:07 +000014694 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014695 lt_prog_compiler_pic='-KPIC'
14696 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014697 case $cc_basename in
14698 f77* | f90* | f95*)
14699 lt_prog_compiler_wl='-Qoption ld ';;
14700 *)
14701 lt_prog_compiler_wl='-Wl,';;
14702 esac
John Criswell7a73b802003-06-30 21:59:07 +000014703 ;;
14704
14705 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014706 lt_prog_compiler_wl='-Qoption ld '
14707 lt_prog_compiler_pic='-PIC'
14708 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014709 ;;
14710
Reid Spencera773bd52006-08-04 18:18:08 +000014711 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014712 lt_prog_compiler_wl='-Wl,'
14713 lt_prog_compiler_pic='-KPIC'
14714 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014715 ;;
14716
14717 sysv4*MP*)
14718 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014719 lt_prog_compiler_pic='-Kconform_pic'
14720 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014721 fi
14722 ;;
14723
Reid Spencera773bd52006-08-04 18:18:08 +000014724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_pic='-KPIC'
14727 lt_prog_compiler_static='-Bstatic'
14728 ;;
14729
14730 unicos*)
14731 lt_prog_compiler_wl='-Wl,'
14732 lt_prog_compiler_can_build_shared=no
14733 ;;
14734
John Criswell47fdd832003-07-14 16:52:07 +000014735 uts4*)
14736 lt_prog_compiler_pic='-pic'
14737 lt_prog_compiler_static='-Bstatic'
14738 ;;
14739
John Criswell7a73b802003-06-30 21:59:07 +000014740 *)
John Criswell47fdd832003-07-14 16:52:07 +000014741 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014742 ;;
14743 esac
14744 fi
14745
Reid Spencera773bd52006-08-04 18:18:08 +000014746{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14747echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014748
John Criswell47fdd832003-07-14 16:52:07 +000014749#
14750# Check to make sure the PIC flag actually works.
14751#
14752if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014753
Reid Spencera773bd52006-08-04 18:18:08 +000014754{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14755echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014756if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758else
John Criswell47fdd832003-07-14 16:52:07 +000014759 lt_prog_compiler_pic_works=no
14760 ac_outfile=conftest.$ac_objext
14761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14763 # Insert the option either (1) after the last *FLAGS variable, or
14764 # (2) before a word containing "conftest.", or (3) at the end.
14765 # Note that $ac_compile itself does not contain backslashes and begins
14766 # with a dollar sign (not a hyphen), so the echo should work correctly.
14767 # The option is referenced via a variable to avoid confusing sed.
14768 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14771 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000014772 (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014773 (eval "$lt_compile" 2>conftest.err)
14774 ac_status=$?
14775 cat conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000014776 echo "$as_me:14773: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014777 if (exit $ac_status) && test -s "$ac_outfile"; then
14778 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014779 # So say no if there are warnings other than the usual output.
14780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014783 lt_prog_compiler_pic_works=yes
14784 fi
14785 fi
14786 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014787
John Criswell47fdd832003-07-14 16:52:07 +000014788fi
Reid Spencera773bd52006-08-04 18:18:08 +000014789{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14790echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014791
John Criswell47fdd832003-07-14 16:52:07 +000014792if test x"$lt_prog_compiler_pic_works" = xyes; then
14793 case $lt_prog_compiler_pic in
14794 "" | " "*) ;;
14795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14796 esac
John Criswell7a73b802003-06-30 21:59:07 +000014797else
John Criswell47fdd832003-07-14 16:52:07 +000014798 lt_prog_compiler_pic=
14799 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014800fi
14801
John Criswell7a73b802003-06-30 21:59:07 +000014802fi
Reid Spencera773bd52006-08-04 18:18:08 +000014803case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014804 # For platforms which do not support PIC, -DPIC is meaningless:
14805 *djgpp*)
14806 lt_prog_compiler_pic=
14807 ;;
14808 *)
14809 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14810 ;;
14811esac
John Criswell7a73b802003-06-30 21:59:07 +000014812
Reid Spencera773bd52006-08-04 18:18:08 +000014813#
14814# Check to make sure the static flag actually works.
14815#
14816wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14817{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14818echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14819if test "${lt_prog_compiler_static_works+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821else
14822 lt_prog_compiler_static_works=no
14823 save_LDFLAGS="$LDFLAGS"
14824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14825 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14827 # The linker can only warn and ignore the option if not recognized
14828 # So say no if there are warnings
14829 if test -s conftest.err; then
14830 # Append any errors to the config.log.
14831 cat conftest.err 1>&5
14832 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834 if diff conftest.exp conftest.er2 >/dev/null; then
14835 lt_prog_compiler_static_works=yes
14836 fi
14837 else
14838 lt_prog_compiler_static_works=yes
14839 fi
14840 fi
14841 $rm conftest*
14842 LDFLAGS="$save_LDFLAGS"
14843
14844fi
14845{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14846echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14847
14848if test x"$lt_prog_compiler_static_works" = xyes; then
14849 :
14850else
14851 lt_prog_compiler_static=
14852fi
14853
14854
14855{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14856echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014857if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014858 echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
John Criswell47fdd832003-07-14 16:52:07 +000014860 lt_cv_prog_compiler_c_o=no
14861 $rm -r conftest 2>/dev/null
14862 mkdir conftest
14863 cd conftest
14864 mkdir out
14865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014866
John Criswell47fdd832003-07-14 16:52:07 +000014867 lt_compiler_flag="-o out/conftest2.$ac_objext"
14868 # Insert the option either (1) after the last *FLAGS variable, or
14869 # (2) before a word containing "conftest.", or (3) at the end.
14870 # Note that $ac_compile itself does not contain backslashes and begins
14871 # with a dollar sign (not a hyphen), so the echo should work correctly.
14872 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14875 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000014876 (eval echo "\"\$as_me:14873: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014877 (eval "$lt_compile" 2>out/conftest.err)
14878 ac_status=$?
14879 cat out/conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000014880 echo "$as_me:14877: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14882 then
14883 # The compiler can only warn and ignore the option if not recognized
14884 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014888 lt_cv_prog_compiler_c_o=yes
14889 fi
14890 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014891 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014892 $rm conftest*
14893 # SGI C++ compiler will create directory out/ii_files/ for
14894 # template instantiation
14895 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14896 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014897 cd ..
14898 rmdir conftest
14899 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014900
14901fi
Reid Spencera773bd52006-08-04 18:18:08 +000014902{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14903echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014904
John Criswell7a73b802003-06-30 21:59:07 +000014905
John Criswell7a73b802003-06-30 21:59:07 +000014906hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014907if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014908 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014909 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14910echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014911 hard_links=yes
14912 $rm conftest*
14913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14914 touch conftest.a
14915 ln conftest.a conftest.b 2>&5 || hard_links=no
14916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014917 { echo "$as_me:$LINENO: result: $hard_links" >&5
14918echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014919 if test "$hard_links" = no; then
14920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14921echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14922 need_locks=warn
14923 fi
14924else
14925 need_locks=no
14926fi
John Criswell7a73b802003-06-30 21:59:07 +000014927
Reid Spencera773bd52006-08-04 18:18:08 +000014928{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14929echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014930
14931 runpath_var=
14932 allow_undefined_flag=
14933 enable_shared_with_static_runtimes=no
14934 archive_cmds=
14935 archive_expsym_cmds=
14936 old_archive_From_new_cmds=
14937 old_archive_from_expsyms_cmds=
14938 export_dynamic_flag_spec=
14939 whole_archive_flag_spec=
14940 thread_safe_flag_spec=
14941 hardcode_libdir_flag_spec=
14942 hardcode_libdir_flag_spec_ld=
14943 hardcode_libdir_separator=
14944 hardcode_direct=no
14945 hardcode_minus_L=no
14946 hardcode_shlibpath_var=unsupported
14947 link_all_deplibs=unknown
14948 hardcode_automatic=no
14949 module_cmds=
14950 module_expsym_cmds=
14951 always_export_symbols=no
14952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14953 # include_expsyms should be a list of space-separated symbols to be *always*
14954 # included in the symbol list
14955 include_expsyms=
14956 # exclude_expsyms can be an extended regexp of symbols to exclude
14957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14959 # as well as any symbol that contains `d'.
14960 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14962 # platforms (ab)use it in PIC code, but their linkers get confused if
14963 # the symbol is explicitly referenced. Since portable code cannot
14964 # rely on this symbol name, it's probably fine to never include it in
14965 # preloaded symbol tables.
14966 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014967 # Just being paranoid about ensuring that cc_basename is set.
14968 for cc_temp in $compiler""; do
14969 case $cc_temp in
14970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14972 \-*) ;;
14973 *) break;;
14974 esac
14975done
14976cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014977
14978 case $host_os in
14979 cygwin* | mingw* | pw32*)
14980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14981 # When not using gcc, we currently assume that we are using
14982 # Microsoft Visual C++.
14983 if test "$GCC" != yes; then
14984 with_gnu_ld=no
14985 fi
14986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014987 interix*)
14988 # we just hope/assume this is gcc and not c89 (= MSVC++)
14989 with_gnu_ld=yes
14990 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014991 openbsd*)
14992 with_gnu_ld=no
14993 ;;
14994 esac
14995
14996 ld_shlibs=yes
14997 if test "$with_gnu_ld" = yes; then
14998 # If archive_cmds runs LD, not CC, wlarc should be empty
14999 wlarc='${wl}'
15000
Reid Spencera773bd52006-08-04 18:18:08 +000015001 # Set some defaults for GNU ld with shared library support. These
15002 # are reset later if shared libraries are not supported. Putting them
15003 # here allows them to be overridden if necessary.
15004 runpath_var=LD_RUN_PATH
15005 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15006 export_dynamic_flag_spec='${wl}--export-dynamic'
15007 # ancient GNU ld didn't support --whole-archive et. al.
15008 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15010 else
15011 whole_archive_flag_spec=
15012 fi
15013 supports_anon_versioning=no
15014 case `$LD -v 2>/dev/null` in
15015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15018 *\ 2.11.*) ;; # other 2.11 versions
15019 *) supports_anon_versioning=yes ;;
15020 esac
15021
John Criswell47fdd832003-07-14 16:52:07 +000015022 # See if GNU ld supports shared libraries.
15023 case $host_os in
15024 aix3* | aix4* | aix5*)
15025 # On AIX/PPC, the GNU linker is very broken
15026 if test "$host_cpu" != ia64; then
15027 ld_shlibs=no
15028 cat <<EOF 1>&2
15029
15030*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15031*** to be unable to reliably create shared libraries on AIX.
15032*** Therefore, libtool is disabling shared libraries support. If you
15033*** really care for shared libraries, you may want to modify your PATH
15034*** so that a non-GNU linker is found, and then restart.
15035
15036EOF
15037 fi
15038 ;;
15039
15040 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015041 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 +000015042 hardcode_libdir_flag_spec='-L$libdir'
15043 hardcode_minus_L=yes
15044
15045 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15046 # that the semantics of dynamic libraries on AmigaOS, at least up
15047 # to version 4, is to share data among multiple programs linked
15048 # with the same dynamic library. Since this doesn't match the
15049 # behavior of shared libraries on other platforms, we can't use
15050 # them.
15051 ld_shlibs=no
15052 ;;
15053
15054 beos*)
15055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15056 allow_undefined_flag=unsupported
15057 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15058 # support --undefined. This deserves some investigation. FIXME
15059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15060 else
15061 ld_shlibs=no
15062 fi
15063 ;;
15064
15065 cygwin* | mingw* | pw32*)
15066 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15067 # as there is no search path for DLLs.
15068 hardcode_libdir_flag_spec='-L$libdir'
15069 allow_undefined_flag=unsupported
15070 always_export_symbols=no
15071 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015072 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 +000015073
15074 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015075 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 +000015076 # If the export-symbols file already is a .def file (1st line
15077 # is EXPORTS), use it as is; otherwise, prepend...
15078 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15079 cp $export_symbols $output_objdir/$soname.def;
15080 else
15081 echo EXPORTS > $output_objdir/$soname.def;
15082 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015083 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015084 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15085 else
15086 ld_shlibs=no
15087 fi
15088 ;;
15089
15090 interix3*)
15091 hardcode_direct=no
15092 hardcode_shlibpath_var=no
15093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15094 export_dynamic_flag_spec='${wl}-E'
15095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15096 # Instead, shared libraries are loaded at an image base (0x10000000 by
15097 # default) and relocated if they conflict, which is a slow very memory
15098 # consuming and fragmenting process. To avoid this, we pick a random,
15099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15100 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15102 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'
15103 ;;
15104
15105 linux*)
15106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107 tmp_addflag=
15108 case $cc_basename,$host_cpu in
15109 pgcc*) # Portland Group C compiler
15110 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'
15111 tmp_addflag=' $pic_flag'
15112 ;;
15113 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15114 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'
15115 tmp_addflag=' $pic_flag -Mnomain' ;;
15116 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15117 tmp_addflag=' -i_dynamic' ;;
15118 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15119 tmp_addflag=' -i_dynamic -nofor_main' ;;
15120 ifc* | ifort*) # Intel Fortran compiler
15121 tmp_addflag=' -nofor_main' ;;
15122 esac
15123 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124
15125 if test $supports_anon_versioning = yes; then
15126 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15128 $echo "local: *; };" >> $output_objdir/$libname.ver~
15129 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15130 fi
John Criswell47fdd832003-07-14 16:52:07 +000015131 else
15132 ld_shlibs=no
15133 fi
15134 ;;
15135
15136 netbsd*)
15137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15138 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15139 wlarc=
15140 else
15141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143 fi
15144 ;;
15145
Reid Spencera773bd52006-08-04 18:18:08 +000015146 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15148 ld_shlibs=no
15149 cat <<EOF 1>&2
15150
15151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152*** create shared libraries on Solaris systems. Therefore, libtool
15153*** is disabling shared libraries support. We urge you to upgrade GNU
15154*** binutils to release 2.9.1 or newer. Another option is to modify
15155*** your PATH or compiler configuration so that the native linker is
15156*** used, and then restart.
15157
15158EOF
15159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15162 else
15163 ld_shlibs=no
15164 fi
15165 ;;
15166
Reid Spencera773bd52006-08-04 18:18:08 +000015167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15168 case `$LD -v 2>&1` in
15169 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15170 ld_shlibs=no
15171 cat <<_LT_EOF 1>&2
15172
15173*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15174*** reliably create shared libraries on SCO systems. Therefore, libtool
15175*** is disabling shared libraries support. We urge you to upgrade GNU
15176*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15177*** your PATH or compiler configuration so that the native linker is
15178*** used, and then restart.
15179
15180_LT_EOF
15181 ;;
15182 *)
15183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15184 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15187 else
15188 ld_shlibs=no
15189 fi
15190 ;;
15191 esac
15192 ;;
15193
John Criswell47fdd832003-07-14 16:52:07 +000015194 sunos4*)
15195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196 wlarc=
15197 hardcode_direct=yes
15198 hardcode_shlibpath_var=no
15199 ;;
15200
15201 *)
15202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15205 else
15206 ld_shlibs=no
15207 fi
15208 ;;
15209 esac
15210
Reid Spencera773bd52006-08-04 18:18:08 +000015211 if test "$ld_shlibs" = no; then
15212 runpath_var=
15213 hardcode_libdir_flag_spec=
15214 export_dynamic_flag_spec=
15215 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015216 fi
15217 else
15218 # PORTME fill in a description of your system's linker (not GNU ld)
15219 case $host_os in
15220 aix3*)
15221 allow_undefined_flag=unsupported
15222 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015223 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 +000015224 # Note: this linker hardcodes the directories in LIBPATH if there
15225 # are no directories specified by -L.
15226 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015228 # Neither direct hardcoding nor static linking is supported with a
15229 # broken collect2.
15230 hardcode_direct=unsupported
15231 fi
15232 ;;
15233
15234 aix4* | aix5*)
15235 if test "$host_cpu" = ia64; then
15236 # On IA64, the linker does run time linking by default, so we don't
15237 # have to do anything special.
15238 aix_use_runtimelinking=no
15239 exp_sym_flag='-Bexport'
15240 no_entry_flag=""
15241 else
15242 # If we're using GNU nm, then we don't want the "-C" option.
15243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15245 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'
15246 else
15247 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'
15248 fi
15249 aix_use_runtimelinking=no
15250
15251 # Test if we are trying to use run time linking or normal
15252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15253 # need to do runtime linking.
15254 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15255 for ld_flag in $LDFLAGS; do
15256 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15257 aix_use_runtimelinking=yes
15258 break
15259 fi
15260 done
Reid Spencera773bd52006-08-04 18:18:08 +000015261 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015262 esac
15263
15264 exp_sym_flag='-bexport'
15265 no_entry_flag='-bnoentry'
15266 fi
15267
15268 # When large executables or shared objects are built, AIX ld can
15269 # have problems creating the table of contents. If linking a library
15270 # or program results in "error TOC overflow" add -mminimal-toc to
15271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15273
15274 archive_cmds=''
15275 hardcode_direct=yes
15276 hardcode_libdir_separator=':'
15277 link_all_deplibs=yes
15278
15279 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015280 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015281 # We only want to do this on AIX 4.2 and lower, the check
15282 # below for broken collect2 doesn't work under 4.3+
15283 collect2name=`${CC} -print-prog-name=collect2`
15284 if test -f "$collect2name" && \
15285 strings "$collect2name" | grep resolve_lib_name >/dev/null
15286 then
15287 # We have reworked collect2
15288 hardcode_direct=yes
15289 else
15290 # We have old collect2
15291 hardcode_direct=unsupported
15292 # It fails to find uninstalled libraries when the uninstalled
15293 # path is not listed in the libpath. Setting hardcode_minus_L
15294 # to unsupported forces relinking
15295 hardcode_minus_L=yes
15296 hardcode_libdir_flag_spec='-L$libdir'
15297 hardcode_libdir_separator=
15298 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015299 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015300 esac
15301 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015302 if test "$aix_use_runtimelinking" = yes; then
15303 shared_flag="$shared_flag "'${wl}-G'
15304 fi
John Criswell47fdd832003-07-14 16:52:07 +000015305 else
15306 # not using gcc
15307 if test "$host_cpu" = ia64; then
15308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15309 # chokes on -Wl,-G. The following line is correct:
15310 shared_flag='-G'
15311 else
Reid Spencera773bd52006-08-04 18:18:08 +000015312 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015313 shared_flag='${wl}-G'
15314 else
15315 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015316 fi
John Criswell47fdd832003-07-14 16:52:07 +000015317 fi
15318 fi
15319
15320 # It seems that -bexpall does not export symbols beginning with
15321 # underscore (_), so it is better to generate a list of symbols to export.
15322 always_export_symbols=yes
15323 if test "$aix_use_runtimelinking" = yes; then
15324 # Warning - without using the other runtime loading flags (-brtl),
15325 # -berok will link without error, but may produce a broken library.
15326 allow_undefined_flag='-berok'
15327 # Determine the default libpath from the value encoded in an empty executable.
15328 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015329/* confdefs.h. */
15330_ACEOF
15331cat confdefs.h >>conftest.$ac_ext
15332cat >>conftest.$ac_ext <<_ACEOF
15333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015334
John Criswell7a73b802003-06-30 21:59:07 +000015335int
15336main ()
15337{
John Criswell47fdd832003-07-14 16:52:07 +000015338
John Criswell7a73b802003-06-30 21:59:07 +000015339 ;
15340 return 0;
15341}
15342_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015343rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015344if { (ac_try="$ac_link"
15345case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348esac
15349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15358 { (case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15361esac
15362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_try") 2>&5
15364 ac_status=$?
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; } &&
15367 { ac_try='test -s conftest$ac_exeext'
15368 { (case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371esac
15372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_try") 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015377
John Criswell47fdd832003-07-14 16:52:07 +000015378aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15379}'`
15380# Check for a 64-bit object if we didn't find anything.
15381if 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; }
15382}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015383else
15384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015385sed 's/^/| /' conftest.$ac_ext >&5
15386
Reid Spencera773bd52006-08-04 18:18:08 +000015387
John Criswell7a73b802003-06-30 21:59:07 +000015388fi
Reid Spencera773bd52006-08-04 18:18:08 +000015389
Tanya Lattnercf067672008-01-17 05:57:22 +000015390rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015391 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015393
John Criswell47fdd832003-07-14 16:52:07 +000015394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015395 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 +000015396 else
15397 if test "$host_cpu" = ia64; then
15398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15399 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015400 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 +000015401 else
15402 # Determine the default libpath from the value encoded in an empty executable.
15403 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015404/* confdefs.h. */
15405_ACEOF
15406cat confdefs.h >>conftest.$ac_ext
15407cat >>conftest.$ac_ext <<_ACEOF
15408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015409
John Criswell47fdd832003-07-14 16:52:07 +000015410int
15411main ()
15412{
John Criswell7a73b802003-06-30 21:59:07 +000015413
John Criswell47fdd832003-07-14 16:52:07 +000015414 ;
15415 return 0;
15416}
15417_ACEOF
15418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015419if { (ac_try="$ac_link"
15420case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15423esac
15424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15433 { (case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15436esac
15437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_try") 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; } &&
15442 { ac_try='test -s conftest$ac_exeext'
15443 { (case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446esac
15447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_try") 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015452
John Criswell47fdd832003-07-14 16:52:07 +000015453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15454}'`
15455# Check for a 64-bit object if we didn't find anything.
15456if 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; }
15457}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015458else
John Criswell47fdd832003-07-14 16:52:07 +000015459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015460sed 's/^/| /' conftest.$ac_ext >&5
15461
Reid Spencera773bd52006-08-04 18:18:08 +000015462
John Criswell47fdd832003-07-14 16:52:07 +000015463fi
Reid Spencera773bd52006-08-04 18:18:08 +000015464
Tanya Lattnercf067672008-01-17 05:57:22 +000015465rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015466 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015467if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015468
John Criswell47fdd832003-07-14 16:52:07 +000015469 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15470 # Warning - without using the other run time loading flags,
15471 # -berok will link without error, but may produce a broken library.
15472 no_undefined_flag=' ${wl}-bernotok'
15473 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015474 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015475 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015476 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015477 # This is similar to how AIX traditionally builds its shared libraries.
15478 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 +000015479 fi
15480 fi
John Criswell7a73b802003-06-30 21:59:07 +000015481 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015482
15483 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015484 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 +000015485 hardcode_libdir_flag_spec='-L$libdir'
15486 hardcode_minus_L=yes
15487 # see comment about different semantics on the GNU ld section
15488 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015489 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015490
Reid Spencer2706f8c2004-09-19 23:53:36 +000015491 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015492 export_dynamic_flag_spec=-rdynamic
15493 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015494
John Criswell47fdd832003-07-14 16:52:07 +000015495 cygwin* | mingw* | pw32*)
15496 # When not using gcc, we currently assume that we are using
15497 # Microsoft Visual C++.
15498 # hardcode_libdir_flag_spec is actually meaningless, as there is
15499 # no search path for DLLs.
15500 hardcode_libdir_flag_spec=' '
15501 allow_undefined_flag=unsupported
15502 # Tell ltmain to make .lib files, not .a files.
15503 libext=lib
15504 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015505 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015506 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015507 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015508 # The linker will automatically build a .lib file if we build a DLL.
15509 old_archive_From_new_cmds='true'
15510 # FIXME: Should let the user specify the lib program.
15511 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15512 fix_srcfile_path='`cygpath -w "$srcfile"`'
15513 enable_shared_with_static_runtimes=yes
15514 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015515
John Criswell47fdd832003-07-14 16:52:07 +000015516 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015517 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015518 rhapsody* | darwin1.[012])
15519 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15520 ;;
15521 *) # Darwin 1.3 on
15522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15523 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15524 else
15525 case ${MACOSX_DEPLOYMENT_TARGET} in
15526 10.[012])
15527 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15528 ;;
15529 10.*)
15530 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15531 ;;
15532 esac
15533 fi
15534 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015535 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015536 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015537 hardcode_direct=no
15538 hardcode_automatic=yes
15539 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015540 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015541 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015542 if test "$GCC" = yes ; then
15543 output_verbose_link_cmd='echo'
15544 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015546 # 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 +000015547 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}'
15548 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 +000015549 else
Reid Spencera773bd52006-08-04 18:18:08 +000015550 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015551 xlc*)
15552 output_verbose_link_cmd='echo'
15553 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15554 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015555 # 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 +000015556 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}'
15557 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 +000015558 ;;
15559 *)
15560 ld_shlibs=no
15561 ;;
15562 esac
John Criswell7a73b802003-06-30 21:59:07 +000015563 fi
John Criswell47fdd832003-07-14 16:52:07 +000015564 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015565
John Criswell47fdd832003-07-14 16:52:07 +000015566 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015568 hardcode_libdir_flag_spec='-L$libdir'
15569 hardcode_shlibpath_var=no
15570 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015571
John Criswell47fdd832003-07-14 16:52:07 +000015572 freebsd1*)
15573 ld_shlibs=no
15574 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015575
John Criswell47fdd832003-07-14 16:52:07 +000015576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15577 # support. Future versions do this automatically, but an explicit c++rt0.o
15578 # does not break anything, and helps significantly (at the cost of a little
15579 # extra space).
15580 freebsd2.2*)
15581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15582 hardcode_libdir_flag_spec='-R$libdir'
15583 hardcode_direct=yes
15584 hardcode_shlibpath_var=no
15585 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015586
John Criswell47fdd832003-07-14 16:52:07 +000015587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15588 freebsd2*)
15589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15590 hardcode_direct=yes
15591 hardcode_minus_L=yes
15592 hardcode_shlibpath_var=no
15593 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015594
John Criswell47fdd832003-07-14 16:52:07 +000015595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015596 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015597 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15598 hardcode_libdir_flag_spec='-R$libdir'
15599 hardcode_direct=yes
15600 hardcode_shlibpath_var=no
15601 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015602
John Criswell47fdd832003-07-14 16:52:07 +000015603 hpux9*)
15604 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015605 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 +000015606 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015607 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 +000015608 fi
15609 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15610 hardcode_libdir_separator=:
15611 hardcode_direct=yes
15612
15613 # hardcode_minus_L: Not really in the search PATH,
15614 # but as the default location of the library.
15615 hardcode_minus_L=yes
15616 export_dynamic_flag_spec='${wl}-E'
15617 ;;
15618
Reid Spencera773bd52006-08-04 18:18:08 +000015619 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015621 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15622 else
15623 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15624 fi
15625 if test "$with_gnu_ld" = no; then
15626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15627 hardcode_libdir_separator=:
15628
15629 hardcode_direct=yes
15630 export_dynamic_flag_spec='${wl}-E'
15631
15632 # hardcode_minus_L: Not really in the search PATH,
15633 # but as the default location of the library.
15634 hardcode_minus_L=yes
15635 fi
15636 ;;
15637
15638 hpux11*)
15639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15640 case $host_cpu in
15641 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015642 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015644 ia64*)
15645 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15646 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015647 *)
15648 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15649 ;;
15650 esac
15651 else
Reid Spencera773bd52006-08-04 18:18:08 +000015652 case $host_cpu in
15653 hppa*64*)
15654 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15655 ;;
15656 ia64*)
15657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015658 ;;
15659 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015660 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 +000015661 ;;
15662 esac
15663 fi
15664 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15666 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015667
Reid Spencera773bd52006-08-04 18:18:08 +000015668 case $host_cpu in
15669 hppa*64*|ia64*)
15670 hardcode_libdir_flag_spec_ld='+b $libdir'
15671 hardcode_direct=no
15672 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015673 ;;
15674 *)
John Criswell47fdd832003-07-14 16:52:07 +000015675 hardcode_direct=yes
15676 export_dynamic_flag_spec='${wl}-E'
15677
15678 # hardcode_minus_L: Not really in the search PATH,
15679 # but as the default location of the library.
15680 hardcode_minus_L=yes
15681 ;;
15682 esac
15683 fi
15684 ;;
15685
15686 irix5* | irix6* | nonstopux*)
15687 if test "$GCC" = yes; then
15688 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'
15689 else
15690 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'
15691 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15692 fi
15693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15694 hardcode_libdir_separator=:
15695 link_all_deplibs=yes
15696 ;;
15697
15698 netbsd*)
15699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15701 else
15702 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15703 fi
15704 hardcode_libdir_flag_spec='-R$libdir'
15705 hardcode_direct=yes
15706 hardcode_shlibpath_var=no
15707 ;;
15708
15709 newsos6)
15710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15711 hardcode_direct=yes
15712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15713 hardcode_libdir_separator=:
15714 hardcode_shlibpath_var=no
15715 ;;
15716
15717 openbsd*)
15718 hardcode_direct=yes
15719 hardcode_shlibpath_var=no
15720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15721 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015722 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 +000015723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15724 export_dynamic_flag_spec='${wl}-E'
15725 else
15726 case $host_os in
15727 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15729 hardcode_libdir_flag_spec='-R$libdir'
15730 ;;
15731 *)
15732 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15734 ;;
15735 esac
15736 fi
15737 ;;
15738
15739 os2*)
15740 hardcode_libdir_flag_spec='-L$libdir'
15741 hardcode_minus_L=yes
15742 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015743 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 +000015744 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15745 ;;
15746
15747 osf3*)
15748 if test "$GCC" = yes; then
15749 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15750 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'
15751 else
15752 allow_undefined_flag=' -expect_unresolved \*'
15753 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'
15754 fi
15755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15756 hardcode_libdir_separator=:
15757 ;;
15758
15759 osf4* | osf5*) # as osf3* with the addition of -msym flag
15760 if test "$GCC" = yes; then
15761 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15762 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'
15763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15764 else
15765 allow_undefined_flag=' -expect_unresolved \*'
15766 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 +000015767 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 +000015768 $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 +000015769
John Criswell47fdd832003-07-14 16:52:07 +000015770 # Both c and cxx compiler support -rpath directly
15771 hardcode_libdir_flag_spec='-rpath $libdir'
15772 fi
15773 hardcode_libdir_separator=:
15774 ;;
15775
John Criswell47fdd832003-07-14 16:52:07 +000015776 solaris*)
15777 no_undefined_flag=' -z text'
15778 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015779 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015780 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015781 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15782 $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 +000015783 else
Reid Spencera773bd52006-08-04 18:18:08 +000015784 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015785 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015786 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15787 $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 +000015788 fi
15789 hardcode_libdir_flag_spec='-R$libdir'
15790 hardcode_shlibpath_var=no
15791 case $host_os in
15792 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015793 *)
15794 # The compiler driver will combine linker options so we
15795 # cannot just pass the convience library names through
15796 # without $wl, iff we do not link with $LD.
15797 # Luckily, gcc supports the same syntax we need for Sun Studio.
15798 # Supported since Solaris 2.6 (maybe 2.5.1?)
15799 case $wlarc in
15800 '')
15801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15802 *)
15803 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' ;;
15804 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015805 esac
15806 link_all_deplibs=yes
15807 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015808
John Criswell47fdd832003-07-14 16:52:07 +000015809 sunos4*)
15810 if test "x$host_vendor" = xsequent; then
15811 # Use $CC to link under sequent, because it throws in some extra .o
15812 # files that make .init and .fini sections work.
15813 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15814 else
15815 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15816 fi
15817 hardcode_libdir_flag_spec='-L$libdir'
15818 hardcode_direct=yes
15819 hardcode_minus_L=yes
15820 hardcode_shlibpath_var=no
15821 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015822
John Criswell47fdd832003-07-14 16:52:07 +000015823 sysv4)
15824 case $host_vendor in
15825 sni)
15826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15827 hardcode_direct=yes # is this really true???
15828 ;;
15829 siemens)
15830 ## LD is ld it makes a PLAMLIB
15831 ## CC just makes a GrossModule.
15832 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15833 reload_cmds='$CC -r -o $output$reload_objs'
15834 hardcode_direct=no
15835 ;;
15836 motorola)
15837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15839 ;;
15840 esac
15841 runpath_var='LD_RUN_PATH'
15842 hardcode_shlibpath_var=no
15843 ;;
15844
15845 sysv4.3*)
15846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15847 hardcode_shlibpath_var=no
15848 export_dynamic_flag_spec='-Bexport'
15849 ;;
15850
15851 sysv4*MP*)
15852 if test -d /usr/nec; then
15853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854 hardcode_shlibpath_var=no
15855 runpath_var=LD_RUN_PATH
15856 hardcode_runpath_var=yes
15857 ld_shlibs=yes
15858 fi
15859 ;;
15860
Reid Spencera773bd52006-08-04 18:18:08 +000015861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15862 no_undefined_flag='${wl}-z,text'
15863 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015864 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015865 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015866
John Criswell47fdd832003-07-14 16:52:07 +000015867 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 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 +000015870 else
Reid Spencera773bd52006-08-04 18:18:08 +000015871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15872 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 +000015873 fi
John Criswell47fdd832003-07-14 16:52:07 +000015874 ;;
15875
Reid Spencera773bd52006-08-04 18:18:08 +000015876 sysv5* | sco3.2v5* | sco5v6*)
15877 # Note: We can NOT use -z defs as we might desire, because we do not
15878 # link with -lc, and that would cause any symbols used from libc to
15879 # always be unresolved, which means just about no library would
15880 # ever link correctly. If we're not using GNU ld we use -z text
15881 # though, which does catch some bad symbols but isn't as heavy-handed
15882 # as -z defs.
15883 no_undefined_flag='${wl}-z,text'
15884 allow_undefined_flag='${wl}-z,nodefs'
15885 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015886 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015887 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15888 hardcode_libdir_separator=':'
15889 link_all_deplibs=yes
15890 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015891 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015892
15893 if test "$GCC" = yes; then
15894 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896 else
15897 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 fi
John Criswell47fdd832003-07-14 16:52:07 +000015900 ;;
15901
15902 uts4*)
15903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_libdir_flag_spec='-L$libdir'
15905 hardcode_shlibpath_var=no
15906 ;;
15907
15908 *)
15909 ld_shlibs=no
15910 ;;
15911 esac
15912 fi
15913
Reid Spencera773bd52006-08-04 18:18:08 +000015914{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15915echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015916test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015917
John Criswell47fdd832003-07-14 16:52:07 +000015918#
15919# Do we need to explicitly link libc?
15920#
15921case "x$archive_cmds_need_lc" in
15922x|xyes)
15923 # Assume -lc should be added
15924 archive_cmds_need_lc=yes
15925
15926 if test "$enable_shared" = yes && test "$GCC" = yes; then
15927 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015928 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015929 # FIXME: we may have to deal with multi-command sequences.
15930 ;;
15931 '$CC '*)
15932 # Test whether the compiler implicitly links with -lc since on some
15933 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15934 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015935 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15936echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015937 $rm conftest*
15938 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15939
15940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941 (eval $ac_compile) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } 2>conftest.err; then
15945 soname=conftest
15946 lib=conftest
15947 libobjs=conftest.$ac_objext
15948 deplibs=
15949 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015950 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015951 compiler_flags=-v
15952 linker_flags=-v
15953 verstring=
15954 output_objdir=.
15955 libname=conftest
15956 lt_save_allow_undefined_flag=$allow_undefined_flag
15957 allow_undefined_flag=
15958 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15959 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }
15963 then
15964 archive_cmds_need_lc=no
15965 else
15966 archive_cmds_need_lc=yes
15967 fi
15968 allow_undefined_flag=$lt_save_allow_undefined_flag
15969 else
15970 cat conftest.err 1>&5
15971 fi
15972 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015973 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15974echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015975 ;;
15976 esac
15977 fi
15978 ;;
15979esac
15980
Reid Spencera773bd52006-08-04 18:18:08 +000015981{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15982echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015983library_names_spec=
15984libname_spec='lib$name'
15985soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015986shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015987postinstall_cmds=
15988postuninstall_cmds=
15989finish_cmds=
15990finish_eval=
15991shlibpath_var=
15992shlibpath_overrides_runpath=unknown
15993version_type=none
15994dynamic_linker="$host_os ld.so"
15995sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015996if test "$GCC" = yes; then
15997 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15998 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15999 # if the path contains ";" then we assume it to be the separator
16000 # otherwise default to the standard path separator (i.e. ":") - it is
16001 # assumed that no part of a normal pathname contains ";" but that should
16002 # okay in the real world where ";" in dirpaths is itself problematic.
16003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16004 else
16005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16006 fi
16007else
16008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16009fi
16010need_lib_prefix=unknown
16011hardcode_into_libs=no
16012
16013# when you set need_version to no, make sure it does not cause -set_version
16014# flags to be left without arguments
16015need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016016
16017case $host_os in
16018aix3*)
16019 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016021 shlibpath_var=LIBPATH
16022
John Criswell47fdd832003-07-14 16:52:07 +000016023 # AIX 3 has no versioning support, so we append a major version to the name.
16024 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016025 ;;
16026
16027aix4* | aix5*)
16028 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016029 need_lib_prefix=no
16030 need_version=no
16031 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016032 if test "$host_cpu" = ia64; then
16033 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016035 shlibpath_var=LD_LIBRARY_PATH
16036 else
16037 # With GCC up to 2.95.x, collect2 would create an import file
16038 # for dependence libraries. The import file would start with
16039 # the line `#! .'. This would cause the generated library to
16040 # depend on `.', always an invalid library. This was fixed in
16041 # development snapshots of GCC prior to 3.0.
16042 case $host_os in
16043 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16045 echo ' yes '
16046 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16047 :
16048 else
16049 can_build_shared=no
16050 fi
16051 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016052 esac
John Criswell47fdd832003-07-14 16:52:07 +000016053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16054 # soname into executable. Probably we can add versioning support to
16055 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016056 if test "$aix_use_runtimelinking" = yes; then
16057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16058 # instead of lib<name>.a to let people know that these are not
16059 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016061 else
16062 # We preserve .a as extension for shared libraries through AIX4.2
16063 # and later when we are not doing run time linking.
16064 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016065 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016066 fi
16067 shlibpath_var=LIBPATH
16068 fi
16069 ;;
16070
16071amigaos*)
16072 library_names_spec='$libname.ixlibrary $libname.a'
16073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016074 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 +000016075 ;;
16076
16077beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016078 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016079 dynamic_linker="$host_os ld.so"
16080 shlibpath_var=LIBRARY_PATH
16081 ;;
16082
Reid Spencer2706f8c2004-09-19 23:53:36 +000016083bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016084 version_type=linux
16085 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016092 # the default ld.so.conf also contains /usr/contrib/lib and
16093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16094 # libtool to hard-code these into programs
16095 ;;
16096
16097cygwin* | mingw* | pw32*)
16098 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016099 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016100 need_version=no
16101 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016102
John Criswell7a73b802003-06-30 21:59:07 +000016103 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016104 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016105 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016107 postinstall_cmds='base_file=`basename \${file}`~
16108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16109 dldir=$destdir/`dirname \$dlpath`~
16110 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016111 $install_prog $dir/$dlname \$dldir/$dlname~
16112 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16114 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016115 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016116 shlibpath_overrides_runpath=yes
16117
16118 case $host_os in
16119 cygwin*)
16120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16121 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 +000016122 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016123 ;;
16124 mingw*)
16125 # MinGW DLLs use traditional 'lib' prefix
16126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16127 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16128 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16129 # It is most probably a Windows format PATH printed by
16130 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16131 # path with ; separators, and with drive letters. We can handle the
16132 # drive letters (cygwin fileutils understands them), so leave them,
16133 # especially as we might pass files found there to a mingw objdump,
16134 # which wouldn't understand a cygwinified path. Ahh.
16135 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16136 else
16137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16138 fi
16139 ;;
16140 pw32*)
16141 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016142 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 +000016143 ;;
16144 esac
John Criswell7a73b802003-06-30 21:59:07 +000016145 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016146
John Criswell7a73b802003-06-30 21:59:07 +000016147 *)
John Criswell47fdd832003-07-14 16:52:07 +000016148 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016149 ;;
16150 esac
16151 dynamic_linker='Win32 ld.exe'
16152 # FIXME: first we should search . and the directory the executable is in
16153 shlibpath_var=PATH
16154 ;;
16155
16156darwin* | rhapsody*)
16157 dynamic_linker="$host_os dyld"
16158 version_type=darwin
16159 need_lib_prefix=no
16160 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016161 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016162 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016163 shlibpath_overrides_runpath=yes
16164 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016165 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016166 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016167 if test "$GCC" = yes; then
16168 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"`
16169 else
16170 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016171 fi
16172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16173 ;;
16174
16175dgux*)
16176 version_type=linux
16177 need_lib_prefix=no
16178 need_version=no
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016182 ;;
16183
16184freebsd1*)
16185 dynamic_linker=no
16186 ;;
16187
Reid Spencer2706f8c2004-09-19 23:53:36 +000016188kfreebsd*-gnu)
16189 version_type=linux
16190 need_lib_prefix=no
16191 need_version=no
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=no
16196 hardcode_into_libs=yes
16197 dynamic_linker='GNU ld.so'
16198 ;;
16199
Reid Spencera773bd52006-08-04 18:18:08 +000016200freebsd* | dragonfly*)
16201 # DragonFly does not have aout. When/if they implement a new
16202 # versioning mechanism, adjust this.
16203 if test -x /usr/bin/objformat; then
16204 objformat=`/usr/bin/objformat`
16205 else
16206 case $host_os in
16207 freebsd[123]*) objformat=aout ;;
16208 *) objformat=elf ;;
16209 esac
16210 fi
John Criswell7a73b802003-06-30 21:59:07 +000016211 version_type=freebsd-$objformat
16212 case $version_type in
16213 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016215 need_version=no
16216 need_lib_prefix=no
16217 ;;
16218 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016220 need_version=yes
16221 ;;
16222 esac
16223 shlibpath_var=LD_LIBRARY_PATH
16224 case $host_os in
16225 freebsd2*)
16226 shlibpath_overrides_runpath=yes
16227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016228 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016229 shlibpath_overrides_runpath=yes
16230 hardcode_into_libs=yes
16231 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016232 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16233 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016234 shlibpath_overrides_runpath=no
16235 hardcode_into_libs=yes
16236 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016237 freebsd*) # from 4.6 on
16238 shlibpath_overrides_runpath=yes
16239 hardcode_into_libs=yes
16240 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016241 esac
16242 ;;
16243
16244gnu*)
16245 version_type=linux
16246 need_lib_prefix=no
16247 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016250 shlibpath_var=LD_LIBRARY_PATH
16251 hardcode_into_libs=yes
16252 ;;
16253
16254hpux9* | hpux10* | hpux11*)
16255 # Give a soname corresponding to the major version so that dld.sl refuses to
16256 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016257 version_type=sunos
16258 need_lib_prefix=no
16259 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016260 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016261 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016262 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016263 hardcode_into_libs=yes
16264 dynamic_linker="$host_os dld.so"
16265 shlibpath_var=LD_LIBRARY_PATH
16266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 if test "X$HPUX_IA64_MODE" = X32; then
16270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16271 else
16272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16273 fi
16274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16275 ;;
16276 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016277 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016278 hardcode_into_libs=yes
16279 dynamic_linker="$host_os dld.sl"
16280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283 soname_spec='${libname}${release}${shared_ext}$major'
16284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16286 ;;
16287 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016288 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016289 dynamic_linker="$host_os dld.sl"
16290 shlibpath_var=SHLIB_PATH
16291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 ;;
16295 esac
John Criswell7a73b802003-06-30 21:59:07 +000016296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16297 postinstall_cmds='chmod 555 $lib'
16298 ;;
16299
Reid Spencera773bd52006-08-04 18:18:08 +000016300interix3*)
16301 version_type=linux
16302 need_lib_prefix=no
16303 need_version=no
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 shlibpath_overrides_runpath=no
16309 hardcode_into_libs=yes
16310 ;;
16311
John Criswell47fdd832003-07-14 16:52:07 +000016312irix5* | irix6* | nonstopux*)
16313 case $host_os in
16314 nonstopux*) version_type=nonstopux ;;
16315 *)
16316 if test "$lt_cv_prog_gnu_ld" = yes; then
16317 version_type=linux
16318 else
16319 version_type=irix
16320 fi ;;
16321 esac
John Criswell7a73b802003-06-30 21:59:07 +000016322 need_lib_prefix=no
16323 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016324 soname_spec='${libname}${release}${shared_ext}$major'
16325 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 +000016326 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016327 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016328 libsuff= shlibsuff=
16329 ;;
16330 *)
16331 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16333 libsuff= shlibsuff= libmagic=32-bit;;
16334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16335 libsuff=32 shlibsuff=N32 libmagic=N32;;
16336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016338 *) libsuff= shlibsuff= libmagic=never-match;;
16339 esac
16340 ;;
16341 esac
16342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16343 shlibpath_overrides_runpath=no
16344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016346 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016347 ;;
16348
16349# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016350linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016351 dynamic_linker=no
16352 ;;
16353
16354# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016355linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016356 version_type=linux
16357 need_lib_prefix=no
16358 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=no
16364 # This implies no fast_install, which is unacceptable.
16365 # Some rework will be needed to allow for fast_install
16366 # before this can be enabled.
16367 hardcode_into_libs=yes
16368
Reid Spencer2706f8c2004-09-19 23:53:36 +000016369 # Append ld.so.conf contents to the search path
16370 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016371 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 +000016372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16373 fi
16374
John Criswell7a73b802003-06-30 21:59:07 +000016375 # We used to test for /lib/ld.so.1 and disable shared libraries on
16376 # powerpc, because MkLinux only supported shared libraries with the
16377 # GNU dynamic linker. Since this was broken with cross compilers,
16378 # most powerpc-linux boxes support dynamic linking these days and
16379 # people can always --disable-shared, the test was removed, and we
16380 # assume the GNU/Linux dynamic linker is in use.
16381 dynamic_linker='GNU/Linux ld.so'
16382 ;;
16383
Reid Spencer2706f8c2004-09-19 23:53:36 +000016384knetbsd*-gnu)
16385 version_type=linux
16386 need_lib_prefix=no
16387 need_version=no
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=no
16392 hardcode_into_libs=yes
16393 dynamic_linker='GNU ld.so'
16394 ;;
16395
John Criswell7a73b802003-06-30 21:59:07 +000016396netbsd*)
16397 version_type=sunos
16398 need_lib_prefix=no
16399 need_version=no
16400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16403 dynamic_linker='NetBSD (a.out) ld.so'
16404 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016406 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016407 dynamic_linker='NetBSD ld.elf_so'
16408 fi
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16411 hardcode_into_libs=yes
16412 ;;
16413
16414newsos6)
16415 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 ;;
16420
Reid Spencer2706f8c2004-09-19 23:53:36 +000016421nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016422 version_type=linux
16423 need_lib_prefix=no
16424 need_version=no
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016427 shlibpath_var=LD_LIBRARY_PATH
16428 shlibpath_overrides_runpath=yes
16429 ;;
16430
16431openbsd*)
16432 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016433 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016434 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016435 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16436 case $host_os in
16437 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16438 *) need_version=no ;;
16439 esac
John Criswell47fdd832003-07-14 16:52:07 +000016440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16442 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016443 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 +000016444 case $host_os in
16445 openbsd2.[89] | openbsd2.[89].*)
16446 shlibpath_overrides_runpath=no
16447 ;;
16448 *)
16449 shlibpath_overrides_runpath=yes
16450 ;;
16451 esac
John Criswell7a73b802003-06-30 21:59:07 +000016452 else
16453 shlibpath_overrides_runpath=yes
16454 fi
John Criswell7a73b802003-06-30 21:59:07 +000016455 ;;
16456
16457os2*)
16458 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016459 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016460 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016461 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016462 dynamic_linker='OS/2 ld.exe'
16463 shlibpath_var=LIBPATH
16464 ;;
16465
16466osf3* | osf4* | osf5*)
16467 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016468 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016469 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016470 soname_spec='${libname}${release}${shared_ext}$major'
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016472 shlibpath_var=LD_LIBRARY_PATH
16473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16475 ;;
16476
John Criswell7a73b802003-06-30 21:59:07 +000016477solaris*)
16478 version_type=linux
16479 need_lib_prefix=no
16480 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=yes
16485 hardcode_into_libs=yes
16486 # ldd complains unless libraries are executable
16487 postinstall_cmds='chmod +x $lib'
16488 ;;
16489
16490sunos4*)
16491 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016493 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 if test "$with_gnu_ld" = yes; then
16497 need_lib_prefix=no
16498 fi
16499 need_version=yes
16500 ;;
16501
Reid Spencera773bd52006-08-04 18:18:08 +000016502sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016503 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016506 shlibpath_var=LD_LIBRARY_PATH
16507 case $host_vendor in
16508 sni)
16509 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016510 need_lib_prefix=no
16511 export_dynamic_flag_spec='${wl}-Blargedynsym'
16512 runpath_var=LD_RUN_PATH
16513 ;;
16514 siemens)
16515 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016516 ;;
16517 motorola)
16518 need_lib_prefix=no
16519 need_version=no
16520 shlibpath_overrides_runpath=no
16521 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16522 ;;
16523 esac
16524 ;;
16525
John Criswell7a73b802003-06-30 21:59:07 +000016526sysv4*MP*)
16527 if test -d /usr/nec ;then
16528 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016529 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16530 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016531 shlibpath_var=LD_LIBRARY_PATH
16532 fi
16533 ;;
16534
Reid Spencera773bd52006-08-04 18:18:08 +000016535sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16536 version_type=freebsd-elf
16537 need_lib_prefix=no
16538 need_version=no
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 hardcode_into_libs=yes
16543 if test "$with_gnu_ld" = yes; then
16544 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16545 shlibpath_overrides_runpath=no
16546 else
16547 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16548 shlibpath_overrides_runpath=yes
16549 case $host_os in
16550 sco3.2v5*)
16551 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16552 ;;
16553 esac
16554 fi
16555 sys_lib_dlsearch_path_spec='/usr/lib'
16556 ;;
16557
John Criswell47fdd832003-07-14 16:52:07 +000016558uts4*)
16559 version_type=linux
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 soname_spec='${libname}${release}${shared_ext}$major'
16562 shlibpath_var=LD_LIBRARY_PATH
16563 ;;
16564
John Criswell7a73b802003-06-30 21:59:07 +000016565*)
16566 dynamic_linker=no
16567 ;;
16568esac
Reid Spencera773bd52006-08-04 18:18:08 +000016569{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16570echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016571test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016572
Reid Spencera773bd52006-08-04 18:18:08 +000016573variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16574if test "$GCC" = yes; then
16575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16576fi
16577
16578{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16579echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016580hardcode_action=
16581if test -n "$hardcode_libdir_flag_spec" || \
16582 test -n "$runpath_var" || \
16583 test "X$hardcode_automatic" = "Xyes" ; then
16584
16585 # We can hardcode non-existant directories.
16586 if test "$hardcode_direct" != no &&
16587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16588 # have to relink, otherwise we might link with an installed library
16589 # when we should be linking with a yet-to-be-installed one
16590 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16591 test "$hardcode_minus_L" != no; then
16592 # Linking always hardcodes the temporary library directory.
16593 hardcode_action=relink
16594 else
16595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16596 hardcode_action=immediate
16597 fi
16598else
16599 # We cannot hardcode anything, or else we can only hardcode existing
16600 # directories.
16601 hardcode_action=unsupported
16602fi
Reid Spencera773bd52006-08-04 18:18:08 +000016603{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16604echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016605
16606if test "$hardcode_action" = relink; then
16607 # Fast installation is not supported
16608 enable_fast_install=no
16609elif test "$shlibpath_overrides_runpath" = yes ||
16610 test "$enable_shared" = no; then
16611 # Fast installation is not necessary
16612 enable_fast_install=needless
16613fi
16614
16615striplib=
16616old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016617{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16618echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016619if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016622 { echo "$as_me:$LINENO: result: yes" >&5
16623echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016624else
16625# FIXME - insert some real tests, host_os isn't really good enough
16626 case $host_os in
16627 darwin*)
16628 if test -n "$STRIP" ; then
16629 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016630 { echo "$as_me:$LINENO: result: yes" >&5
16631echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632 else
Reid Spencera773bd52006-08-04 18:18:08 +000016633 { echo "$as_me:$LINENO: result: no" >&5
16634echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016635fi
16636 ;;
16637 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016638 { echo "$as_me:$LINENO: result: no" >&5
16639echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016640 ;;
16641 esac
16642fi
16643
John Criswell7a73b802003-06-30 21:59:07 +000016644if test "x$enable_dlopen" != xyes; then
16645 enable_dlopen=unknown
16646 enable_dlopen_self=unknown
16647 enable_dlopen_self_static=unknown
16648else
16649 lt_cv_dlopen=no
16650 lt_cv_dlopen_libs=
16651
16652 case $host_os in
16653 beos*)
16654 lt_cv_dlopen="load_add_on"
16655 lt_cv_dlopen_libs=
16656 lt_cv_dlopen_self=yes
16657 ;;
16658
John Criswell47fdd832003-07-14 16:52:07 +000016659 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016660 lt_cv_dlopen="LoadLibrary"
16661 lt_cv_dlopen_libs=
16662 ;;
16663
John Criswell47fdd832003-07-14 16:52:07 +000016664 cygwin*)
16665 lt_cv_dlopen="dlopen"
16666 lt_cv_dlopen_libs=
16667 ;;
16668
16669 darwin*)
16670 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016671 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675else
16676 ac_check_lib_save_LIBS=$LIBS
16677LIBS="-ldl $LIBS"
16678cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016679/* confdefs.h. */
16680_ACEOF
16681cat confdefs.h >>conftest.$ac_ext
16682cat >>conftest.$ac_ext <<_ACEOF
16683/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016684
Reid Spencera773bd52006-08-04 18:18:08 +000016685/* Override any GCC internal prototype to avoid an error.
16686 Use char because int might match the return type of a GCC
16687 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016688#ifdef __cplusplus
16689extern "C"
16690#endif
John Criswell47fdd832003-07-14 16:52:07 +000016691char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016692int
16693main ()
16694{
Reid Spencera773bd52006-08-04 18:18:08 +000016695return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016696 ;
16697 return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016701if { (ac_try="$ac_link"
16702case "(($ac_try" in
16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16705esac
16706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016713 (exit $ac_status); } &&
16714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; } &&
16724 { ac_try='test -s conftest$ac_exeext'
16725 { (case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728esac
16729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_try") 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016734 ac_cv_lib_dl_dlopen=yes
16735else
16736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016737sed 's/^/| /' conftest.$ac_ext >&5
16738
Reid Spencera773bd52006-08-04 18:18:08 +000016739 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016740fi
Reid Spencera773bd52006-08-04 18:18:08 +000016741
Tanya Lattnercf067672008-01-17 05:57:22 +000016742rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016743 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016744LIBS=$ac_check_lib_save_LIBS
16745fi
Reid Spencera773bd52006-08-04 18:18:08 +000016746{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16747echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016748if test $ac_cv_lib_dl_dlopen = yes; then
16749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16750else
16751
16752 lt_cv_dlopen="dyld"
16753 lt_cv_dlopen_libs=
16754 lt_cv_dlopen_self=yes
16755
16756fi
16757
16758 ;;
16759
John Criswell7a73b802003-06-30 21:59:07 +000016760 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016761 { echo "$as_me:$LINENO: checking for shl_load" >&5
16762echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016763if test "${ac_cv_func_shl_load+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16765else
16766 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016767/* confdefs.h. */
16768_ACEOF
16769cat confdefs.h >>conftest.$ac_ext
16770cat >>conftest.$ac_ext <<_ACEOF
16771/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016772/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16774#define shl_load innocuous_shl_load
16775
John Criswell7a73b802003-06-30 21:59:07 +000016776/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016777 which can conflict with char shl_load (); below.
16778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16779 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016780
John Criswell0c38eaf2003-09-10 15:17:25 +000016781#ifdef __STDC__
16782# include <limits.h>
16783#else
16784# include <assert.h>
16785#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016786
16787#undef shl_load
16788
Reid Spencera773bd52006-08-04 18:18:08 +000016789/* Override any GCC internal prototype to avoid an error.
16790 Use char because int might match the return type of a GCC
16791 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016792#ifdef __cplusplus
16793extern "C"
16794#endif
John Criswell7a73b802003-06-30 21:59:07 +000016795char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016796/* The GNU C library defines this for functions which it implements
16797 to always fail with ENOSYS. Some functions are actually named
16798 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016799#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016800choke me
John Criswell7a73b802003-06-30 21:59:07 +000016801#endif
16802
John Criswell0c38eaf2003-09-10 15:17:25 +000016803int
16804main ()
16805{
Reid Spencera773bd52006-08-04 18:18:08 +000016806return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016807 ;
16808 return 0;
16809}
16810_ACEOF
16811rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016812if { (ac_try="$ac_link"
16813case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829esac
16830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016845 ac_cv_func_shl_load=yes
16846else
16847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016848sed 's/^/| /' conftest.$ac_ext >&5
16849
Reid Spencera773bd52006-08-04 18:18:08 +000016850 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016851fi
Reid Spencera773bd52006-08-04 18:18:08 +000016852
Tanya Lattnercf067672008-01-17 05:57:22 +000016853rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016854 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016855fi
Reid Spencera773bd52006-08-04 18:18:08 +000016856{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16857echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016858if test $ac_cv_func_shl_load = yes; then
16859 lt_cv_dlopen="shl_load"
16860else
Reid Spencera773bd52006-08-04 18:18:08 +000016861 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16862echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016863if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865else
16866 ac_check_lib_save_LIBS=$LIBS
16867LIBS="-ldld $LIBS"
16868cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016869/* confdefs.h. */
16870_ACEOF
16871cat confdefs.h >>conftest.$ac_ext
16872cat >>conftest.$ac_ext <<_ACEOF
16873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016874
Reid Spencera773bd52006-08-04 18:18:08 +000016875/* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016878#ifdef __cplusplus
16879extern "C"
16880#endif
John Criswell7a73b802003-06-30 21:59:07 +000016881char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016882int
16883main ()
16884{
Reid Spencera773bd52006-08-04 18:18:08 +000016885return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016886 ;
16887 return 0;
16888}
16889_ACEOF
16890rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016891if { (ac_try="$ac_link"
16892case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16895esac
16896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016898 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908esac
16909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918esac
16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016924 ac_cv_lib_dld_shl_load=yes
16925else
16926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016927sed 's/^/| /' conftest.$ac_ext >&5
16928
Reid Spencera773bd52006-08-04 18:18:08 +000016929 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016930fi
Reid Spencera773bd52006-08-04 18:18:08 +000016931
Tanya Lattnercf067672008-01-17 05:57:22 +000016932rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016933 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016934LIBS=$ac_check_lib_save_LIBS
16935fi
Reid Spencera773bd52006-08-04 18:18:08 +000016936{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16937echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016938if test $ac_cv_lib_dld_shl_load = yes; then
16939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16940else
Reid Spencera773bd52006-08-04 18:18:08 +000016941 { echo "$as_me:$LINENO: checking for dlopen" >&5
16942echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016943if test "${ac_cv_func_dlopen+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
16946 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016947/* confdefs.h. */
16948_ACEOF
16949cat confdefs.h >>conftest.$ac_ext
16950cat >>conftest.$ac_ext <<_ACEOF
16951/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016952/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16954#define dlopen innocuous_dlopen
16955
John Criswell7a73b802003-06-30 21:59:07 +000016956/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016957 which can conflict with char dlopen (); below.
16958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16959 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960
John Criswell0c38eaf2003-09-10 15:17:25 +000016961#ifdef __STDC__
16962# include <limits.h>
16963#else
16964# include <assert.h>
16965#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016966
16967#undef dlopen
16968
Reid Spencera773bd52006-08-04 18:18:08 +000016969/* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016972#ifdef __cplusplus
16973extern "C"
16974#endif
John Criswell7a73b802003-06-30 21:59:07 +000016975char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016976/* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016979#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016980choke me
John Criswell7a73b802003-06-30 21:59:07 +000016981#endif
16982
John Criswell0c38eaf2003-09-10 15:17:25 +000016983int
16984main ()
16985{
Reid Spencera773bd52006-08-04 18:18:08 +000016986return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016992if { (ac_try="$ac_link"
16993case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16996esac
16997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017004 (exit $ac_status); } &&
17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017025 ac_cv_func_dlopen=yes
17026else
17027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017028sed 's/^/| /' conftest.$ac_ext >&5
17029
Reid Spencera773bd52006-08-04 18:18:08 +000017030 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017031fi
Reid Spencera773bd52006-08-04 18:18:08 +000017032
Tanya Lattnercf067672008-01-17 05:57:22 +000017033rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017034 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017035fi
Reid Spencera773bd52006-08-04 18:18:08 +000017036{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17037echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017038if test $ac_cv_func_dlopen = yes; then
17039 lt_cv_dlopen="dlopen"
17040else
Reid Spencera773bd52006-08-04 18:18:08 +000017041 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17042echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017043if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045else
17046 ac_check_lib_save_LIBS=$LIBS
17047LIBS="-ldl $LIBS"
17048cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017049/* confdefs.h. */
17050_ACEOF
17051cat confdefs.h >>conftest.$ac_ext
17052cat >>conftest.$ac_ext <<_ACEOF
17053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017054
Reid Spencera773bd52006-08-04 18:18:08 +000017055/* Override any GCC internal prototype to avoid an error.
17056 Use char because int might match the return type of a GCC
17057 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017058#ifdef __cplusplus
17059extern "C"
17060#endif
John Criswell7a73b802003-06-30 21:59:07 +000017061char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017062int
17063main ()
17064{
Reid Spencera773bd52006-08-04 18:18:08 +000017065return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017066 ;
17067 return 0;
17068}
17069_ACEOF
17070rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017071if { (ac_try="$ac_link"
17072case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075esac
17076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017083 (exit $ac_status); } &&
17084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17085 { (case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088esac
17089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_try") 2>&5
17091 ac_status=$?
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); }; } &&
17094 { ac_try='test -s conftest$ac_exeext'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098esac
17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017104 ac_cv_lib_dl_dlopen=yes
17105else
17106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017107sed 's/^/| /' conftest.$ac_ext >&5
17108
Reid Spencera773bd52006-08-04 18:18:08 +000017109 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017110fi
Reid Spencera773bd52006-08-04 18:18:08 +000017111
Tanya Lattnercf067672008-01-17 05:57:22 +000017112rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017113 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017114LIBS=$ac_check_lib_save_LIBS
17115fi
Reid Spencera773bd52006-08-04 18:18:08 +000017116{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17117echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017118if test $ac_cv_lib_dl_dlopen = yes; then
17119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17120else
Reid Spencera773bd52006-08-04 18:18:08 +000017121 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17122echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017123if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125else
17126 ac_check_lib_save_LIBS=$LIBS
17127LIBS="-lsvld $LIBS"
17128cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017129/* confdefs.h. */
17130_ACEOF
17131cat confdefs.h >>conftest.$ac_ext
17132cat >>conftest.$ac_ext <<_ACEOF
17133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017134
Reid Spencera773bd52006-08-04 18:18:08 +000017135/* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017138#ifdef __cplusplus
17139extern "C"
17140#endif
John Criswell7a73b802003-06-30 21:59:07 +000017141char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017142int
17143main ()
17144{
Reid Spencera773bd52006-08-04 18:18:08 +000017145return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017146 ;
17147 return 0;
17148}
17149_ACEOF
17150rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017151if { (ac_try="$ac_link"
17152case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17155esac
17156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest$ac_exeext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017184 ac_cv_lib_svld_dlopen=yes
17185else
17186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017187sed 's/^/| /' conftest.$ac_ext >&5
17188
Reid Spencera773bd52006-08-04 18:18:08 +000017189 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017190fi
Reid Spencera773bd52006-08-04 18:18:08 +000017191
Tanya Lattnercf067672008-01-17 05:57:22 +000017192rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017193 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017194LIBS=$ac_check_lib_save_LIBS
17195fi
Reid Spencera773bd52006-08-04 18:18:08 +000017196{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17197echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017198if test $ac_cv_lib_svld_dlopen = yes; then
17199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17200else
Reid Spencera773bd52006-08-04 18:18:08 +000017201 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17202echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017203if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205else
17206 ac_check_lib_save_LIBS=$LIBS
17207LIBS="-ldld $LIBS"
17208cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017214
Reid Spencera773bd52006-08-04 18:18:08 +000017215/* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017218#ifdef __cplusplus
17219extern "C"
17220#endif
John Criswell7a73b802003-06-30 21:59:07 +000017221char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017222int
17223main ()
17224{
Reid Spencera773bd52006-08-04 18:18:08 +000017225return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017226 ;
17227 return 0;
17228}
17229_ACEOF
17230rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017231if { (ac_try="$ac_link"
17232case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235esac
17236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248esac
17249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_try") 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17258esac
17259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_try") 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017264 ac_cv_lib_dld_dld_link=yes
17265else
17266 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017267sed 's/^/| /' conftest.$ac_ext >&5
17268
Reid Spencera773bd52006-08-04 18:18:08 +000017269 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017270fi
Reid Spencera773bd52006-08-04 18:18:08 +000017271
Tanya Lattnercf067672008-01-17 05:57:22 +000017272rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017273 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017274LIBS=$ac_check_lib_save_LIBS
17275fi
Reid Spencera773bd52006-08-04 18:18:08 +000017276{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17277echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017278if test $ac_cv_lib_dld_dld_link = yes; then
17279 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288
17289fi
17290
17291
17292fi
17293
17294
17295fi
17296
17297 ;;
17298 esac
17299
17300 if test "x$lt_cv_dlopen" != xno; then
17301 enable_dlopen=yes
17302 else
17303 enable_dlopen=no
17304 fi
17305
17306 case $lt_cv_dlopen in
17307 dlopen)
17308 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017309 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017310
17311 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017313
17314 save_LIBS="$LIBS"
17315 LIBS="$lt_cv_dlopen_libs $LIBS"
17316
Reid Spencera773bd52006-08-04 18:18:08 +000017317 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17318echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017319if test "${lt_cv_dlopen_self+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17321else
17322 if test "$cross_compiling" = yes; then :
17323 lt_cv_dlopen_self=cross
17324else
John Criswell47fdd832003-07-14 16:52:07 +000017325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017326 lt_status=$lt_dlunknown
17327 cat > conftest.$ac_ext <<EOF
Sanjiv Guptae3f34282008-05-14 08:03:23 +000017328#line 17325 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017329#include "confdefs.h"
17330
17331#if HAVE_DLFCN_H
17332#include <dlfcn.h>
17333#endif
17334
17335#include <stdio.h>
17336
17337#ifdef RTLD_GLOBAL
17338# define LT_DLGLOBAL RTLD_GLOBAL
17339#else
17340# ifdef DL_GLOBAL
17341# define LT_DLGLOBAL DL_GLOBAL
17342# else
17343# define LT_DLGLOBAL 0
17344# endif
17345#endif
17346
17347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17348 find out it does not work in some platform. */
17349#ifndef LT_DLLAZY_OR_NOW
17350# ifdef RTLD_LAZY
17351# define LT_DLLAZY_OR_NOW RTLD_LAZY
17352# else
17353# ifdef DL_LAZY
17354# define LT_DLLAZY_OR_NOW DL_LAZY
17355# else
17356# ifdef RTLD_NOW
17357# define LT_DLLAZY_OR_NOW RTLD_NOW
17358# else
17359# ifdef DL_NOW
17360# define LT_DLLAZY_OR_NOW DL_NOW
17361# else
17362# define LT_DLLAZY_OR_NOW 0
17363# endif
17364# endif
17365# endif
17366# endif
17367#endif
17368
17369#ifdef __cplusplus
17370extern "C" void exit (int);
17371#endif
17372
17373void fnord() { int i=42;}
17374int main ()
17375{
17376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17377 int status = $lt_dlunknown;
17378
17379 if (self)
17380 {
17381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17382 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17383 /* dlclose (self); */
17384 }
Reid Spencera773bd52006-08-04 18:18:08 +000017385 else
17386 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017387
17388 exit (status);
17389}
17390EOF
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017396 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017397 lt_status=$?
17398 case x$lt_status in
17399 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17400 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017401 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017402 esac
17403 else :
17404 # compilation failed
17405 lt_cv_dlopen_self=no
17406 fi
17407fi
17408rm -fr conftest*
17409
17410
17411fi
Reid Spencera773bd52006-08-04 18:18:08 +000017412{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17413echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017414
17415 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17417 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17418echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017419if test "${lt_cv_dlopen_self_static+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17421else
17422 if test "$cross_compiling" = yes; then :
17423 lt_cv_dlopen_self_static=cross
17424else
John Criswell47fdd832003-07-14 16:52:07 +000017425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017426 lt_status=$lt_dlunknown
17427 cat > conftest.$ac_ext <<EOF
Sanjiv Guptae3f34282008-05-14 08:03:23 +000017428#line 17425 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017429#include "confdefs.h"
17430
17431#if HAVE_DLFCN_H
17432#include <dlfcn.h>
17433#endif
17434
17435#include <stdio.h>
17436
17437#ifdef RTLD_GLOBAL
17438# define LT_DLGLOBAL RTLD_GLOBAL
17439#else
17440# ifdef DL_GLOBAL
17441# define LT_DLGLOBAL DL_GLOBAL
17442# else
17443# define LT_DLGLOBAL 0
17444# endif
17445#endif
17446
17447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17448 find out it does not work in some platform. */
17449#ifndef LT_DLLAZY_OR_NOW
17450# ifdef RTLD_LAZY
17451# define LT_DLLAZY_OR_NOW RTLD_LAZY
17452# else
17453# ifdef DL_LAZY
17454# define LT_DLLAZY_OR_NOW DL_LAZY
17455# else
17456# ifdef RTLD_NOW
17457# define LT_DLLAZY_OR_NOW RTLD_NOW
17458# else
17459# ifdef DL_NOW
17460# define LT_DLLAZY_OR_NOW DL_NOW
17461# else
17462# define LT_DLLAZY_OR_NOW 0
17463# endif
17464# endif
17465# endif
17466# endif
17467#endif
17468
17469#ifdef __cplusplus
17470extern "C" void exit (int);
17471#endif
17472
17473void fnord() { int i=42;}
17474int main ()
17475{
17476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17477 int status = $lt_dlunknown;
17478
17479 if (self)
17480 {
17481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17482 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17483 /* dlclose (self); */
17484 }
Reid Spencera773bd52006-08-04 18:18:08 +000017485 else
17486 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017487
17488 exit (status);
17489}
17490EOF
17491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492 (eval $ac_link) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017496 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017497 lt_status=$?
17498 case x$lt_status in
17499 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17500 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017501 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017502 esac
17503 else :
17504 # compilation failed
17505 lt_cv_dlopen_self_static=no
17506 fi
17507fi
17508rm -fr conftest*
17509
17510
17511fi
Reid Spencera773bd52006-08-04 18:18:08 +000017512{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17513echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017514 fi
17515
17516 CPPFLAGS="$save_CPPFLAGS"
17517 LDFLAGS="$save_LDFLAGS"
17518 LIBS="$save_LIBS"
17519 ;;
17520 esac
17521
17522 case $lt_cv_dlopen_self in
17523 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17524 *) enable_dlopen_self=unknown ;;
17525 esac
17526
17527 case $lt_cv_dlopen_self_static in
17528 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17529 *) enable_dlopen_self_static=unknown ;;
17530 esac
17531fi
17532
17533
Reid Spencera773bd52006-08-04 18:18:08 +000017534# Report which library types will actually be built
17535{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17536echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17537{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17538echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017539
Reid Spencera773bd52006-08-04 18:18:08 +000017540{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17541echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017542test "$can_build_shared" = "no" && enable_shared=no
17543
17544# On AIX, shared libraries and static libraries use the same namespace, and
17545# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017546case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017547aix3*)
17548 test "$enable_shared" = yes && enable_static=no
17549 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017551 postinstall_cmds='$RANLIB $lib'
17552 fi
17553 ;;
17554
Reid Spencer2706f8c2004-09-19 23:53:36 +000017555aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17557 test "$enable_shared" = yes && enable_static=no
17558 fi
John Criswell7a73b802003-06-30 21:59:07 +000017559 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017560esac
Reid Spencera773bd52006-08-04 18:18:08 +000017561{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17562echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017563
Reid Spencera773bd52006-08-04 18:18:08 +000017564{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17565echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017566# Make sure either enable_shared or enable_static is yes.
17567test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017568{ echo "$as_me:$LINENO: result: $enable_static" >&5
17569echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017570
17571# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017572# libtool distribution, otherwise you forgot to ship ltmain.sh
17573# with your package, and you will get complaints that there are
17574# no rules to generate ltmain.sh.
17575if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017576 # See if we are running on zsh, and set the options which allow our commands through
17577 # without removal of \ escapes.
17578 if test -n "${ZSH_VERSION+set}" ; then
17579 setopt NO_GLOB_SUBST
17580 fi
John Criswell7a73b802003-06-30 21:59:07 +000017581 # Now quote all the things that may contain metacharacters while being
17582 # careful not to overquote the AC_SUBSTed values. We take copies of the
17583 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017584 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 +000017585 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17588 deplibs_check_method reload_flag reload_cmds need_locks \
17589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17590 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017592 old_postinstall_cmds old_postuninstall_cmds \
17593 compiler \
17594 CC \
17595 LD \
17596 lt_prog_compiler_wl \
17597 lt_prog_compiler_pic \
17598 lt_prog_compiler_static \
17599 lt_prog_compiler_no_builtin_flag \
17600 export_dynamic_flag_spec \
17601 thread_safe_flag_spec \
17602 whole_archive_flag_spec \
17603 enable_shared_with_static_runtimes \
17604 old_archive_cmds \
17605 old_archive_from_new_cmds \
17606 predep_objects \
17607 postdep_objects \
17608 predeps \
17609 postdeps \
17610 compiler_lib_search_path \
17611 archive_cmds \
17612 archive_expsym_cmds \
17613 postinstall_cmds \
17614 postuninstall_cmds \
17615 old_archive_from_expsyms_cmds \
17616 allow_undefined_flag \
17617 no_undefined_flag \
17618 export_symbols_cmds \
17619 hardcode_libdir_flag_spec \
17620 hardcode_libdir_flag_spec_ld \
17621 hardcode_libdir_separator \
17622 hardcode_automatic \
17623 module_cmds \
17624 module_expsym_cmds \
17625 lt_cv_prog_compiler_c_o \
17626 exclude_expsyms \
17627 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017628
17629 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017630 old_archive_cmds | \
17631 old_archive_from_new_cmds | \
17632 archive_cmds | \
17633 archive_expsym_cmds | \
17634 module_cmds | \
17635 module_expsym_cmds | \
17636 old_archive_from_expsyms_cmds | \
17637 export_symbols_cmds | \
17638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017639 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017640 old_postinstall_cmds | old_postuninstall_cmds | \
17641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017642 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017643 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 +000017644 ;;
17645 *)
17646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17647 ;;
17648 esac
17649 done
17650
John Criswell47fdd832003-07-14 16:52:07 +000017651 case $lt_echo in
17652 *'\$0 --fallback-echo"')
17653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17654 ;;
17655 esac
17656
17657cfgfile="${ofile}T"
17658 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17659 $rm -f "$cfgfile"
17660 { echo "$as_me:$LINENO: creating $ofile" >&5
17661echo "$as_me: creating $ofile" >&6;}
17662
17663 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017664#! $SHELL
17665
John Criswell47fdd832003-07-14 16:52:07 +000017666# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017667# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17668# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17669#
John Criswell47fdd832003-07-14 16:52:07 +000017670# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17671# Free Software Foundation, Inc.
17672#
17673# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017674# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17675#
17676# This program is free software; you can redistribute it and/or modify
17677# it under the terms of the GNU General Public License as published by
17678# the Free Software Foundation; either version 2 of the License, or
17679# (at your option) any later version.
17680#
17681# This program is distributed in the hope that it will be useful, but
17682# WITHOUT ANY WARRANTY; without even the implied warranty of
17683# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17684# General Public License for more details.
17685#
17686# You should have received a copy of the GNU General Public License
17687# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017688# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017689#
17690# As a special exception to the GNU General Public License, if you
17691# distribute this file as part of a program that contains a
17692# configuration script generated by Autoconf, you may include it under
17693# the same distribution terms that you use for the rest of that program.
17694
John Criswell47fdd832003-07-14 16:52:07 +000017695# A sed program that does not truncate output.
17696SED=$lt_SED
17697
John Criswell7a73b802003-06-30 21:59:07 +000017698# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017699Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017700
17701# The HP-UX ksh and POSIX shell print the target directory to stdout
17702# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017703(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017704
John Criswell47fdd832003-07-14 16:52:07 +000017705# The names of the tagged configurations supported by this script.
17706available_tags=
17707
John Criswell7a73b802003-06-30 21:59:07 +000017708# ### BEGIN LIBTOOL CONFIG
17709
17710# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17711
17712# Shell to use when invoking shell scripts.
17713SHELL=$lt_SHELL
17714
17715# Whether or not to build shared libraries.
17716build_libtool_libs=$enable_shared
17717
17718# Whether or not to build static libraries.
17719build_old_libs=$enable_static
17720
17721# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017722build_libtool_need_lc=$archive_cmds_need_lc
17723
17724# Whether or not to disallow shared libs when runtime libs are static
17725allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017726
17727# Whether or not to optimize for fast installation.
17728fast_install=$enable_fast_install
17729
17730# The host system.
17731host_alias=$host_alias
17732host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017733host_os=$host_os
17734
17735# The build system.
17736build_alias=$build_alias
17737build=$build
17738build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017739
17740# An echo program that does not interpret backslashes.
17741echo=$lt_echo
17742
17743# The archiver.
17744AR=$lt_AR
17745AR_FLAGS=$lt_AR_FLAGS
17746
John Criswell47fdd832003-07-14 16:52:07 +000017747# A C compiler.
17748LTCC=$lt_LTCC
17749
Reid Spencera773bd52006-08-04 18:18:08 +000017750# LTCC compiler flags.
17751LTCFLAGS=$lt_LTCFLAGS
17752
John Criswell47fdd832003-07-14 16:52:07 +000017753# A language-specific compiler.
17754CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017755
17756# Is the compiler the GNU C compiler?
17757with_gcc=$GCC
17758
John Criswell47fdd832003-07-14 16:52:07 +000017759# An ERE matcher.
17760EGREP=$lt_EGREP
17761
John Criswell7a73b802003-06-30 21:59:07 +000017762# The linker used to build libraries.
17763LD=$lt_LD
17764
17765# Whether we need hard or soft links.
17766LN_S=$lt_LN_S
17767
17768# A BSD-compatible nm program.
17769NM=$lt_NM
17770
17771# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017772STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017773
17774# Used to examine libraries when file_magic_cmd begins "file"
17775MAGIC_CMD=$MAGIC_CMD
17776
17777# Used on cygwin: DLL creation program.
17778DLLTOOL="$DLLTOOL"
17779
17780# Used on cygwin: object dumper.
17781OBJDUMP="$OBJDUMP"
17782
17783# Used on cygwin: assembler.
17784AS="$AS"
17785
17786# The name of the directory that contains temporary libtool files.
17787objdir=$objdir
17788
17789# How to create reloadable object files.
17790reload_flag=$lt_reload_flag
17791reload_cmds=$lt_reload_cmds
17792
17793# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017794wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017795
17796# Object file suffix (normally "o").
17797objext="$ac_objext"
17798
17799# Old archive suffix (normally "a").
17800libext="$libext"
17801
John Criswell47fdd832003-07-14 16:52:07 +000017802# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017803shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017804
John Criswell7a73b802003-06-30 21:59:07 +000017805# Executable file suffix (normally "").
17806exeext="$exeext"
17807
17808# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017809pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017810pic_mode=$pic_mode
17811
John Criswell47fdd832003-07-14 16:52:07 +000017812# What is the maximum length of a command?
17813max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017814
John Criswell47fdd832003-07-14 16:52:07 +000017815# Does compiler simultaneously support -c and -o options?
17816compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017817
Reid Spencera773bd52006-08-04 18:18:08 +000017818# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017819need_locks=$lt_need_locks
17820
17821# Do we need the lib prefix for modules?
17822need_lib_prefix=$need_lib_prefix
17823
17824# Do we need a version for libraries?
17825need_version=$need_version
17826
17827# Whether dlopen is supported.
17828dlopen_support=$enable_dlopen
17829
17830# Whether dlopen of programs is supported.
17831dlopen_self=$enable_dlopen_self
17832
17833# Whether dlopen of statically linked programs is supported.
17834dlopen_self_static=$enable_dlopen_self_static
17835
17836# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017837link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017838
17839# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017840no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017841
17842# Compiler flag to allow reflexive dlopens.
17843export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17844
17845# Compiler flag to generate shared objects directly from archives.
17846whole_archive_flag_spec=$lt_whole_archive_flag_spec
17847
17848# Compiler flag to generate thread-safe objects.
17849thread_safe_flag_spec=$lt_thread_safe_flag_spec
17850
17851# Library versioning type.
17852version_type=$version_type
17853
17854# Format of library name prefix.
17855libname_spec=$lt_libname_spec
17856
17857# List of archive names. First name is the real one, the rest are links.
17858# The last name is the one that the linker finds with -lNAME.
17859library_names_spec=$lt_library_names_spec
17860
17861# The coded name of the library, if different from the real name.
17862soname_spec=$lt_soname_spec
17863
17864# Commands used to build and install an old-style archive.
17865RANLIB=$lt_RANLIB
17866old_archive_cmds=$lt_old_archive_cmds
17867old_postinstall_cmds=$lt_old_postinstall_cmds
17868old_postuninstall_cmds=$lt_old_postuninstall_cmds
17869
17870# Create an old-style archive from a shared archive.
17871old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17872
17873# Create a temporary old-style archive to link instead of a shared archive.
17874old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17875
17876# Commands used to build and install a shared archive.
17877archive_cmds=$lt_archive_cmds
17878archive_expsym_cmds=$lt_archive_expsym_cmds
17879postinstall_cmds=$lt_postinstall_cmds
17880postuninstall_cmds=$lt_postuninstall_cmds
17881
John Criswell47fdd832003-07-14 16:52:07 +000017882# Commands used to build a loadable module (assumed same as above if empty)
17883module_cmds=$lt_module_cmds
17884module_expsym_cmds=$lt_module_expsym_cmds
17885
John Criswell7a73b802003-06-30 21:59:07 +000017886# Commands to strip libraries.
17887old_striplib=$lt_old_striplib
17888striplib=$lt_striplib
17889
John Criswell47fdd832003-07-14 16:52:07 +000017890# Dependencies to place before the objects being linked to create a
17891# shared library.
17892predep_objects=$lt_predep_objects
17893
17894# Dependencies to place after the objects being linked to create a
17895# shared library.
17896postdep_objects=$lt_postdep_objects
17897
17898# Dependencies to place before the objects being linked to create a
17899# shared library.
17900predeps=$lt_predeps
17901
17902# Dependencies to place after the objects being linked to create a
17903# shared library.
17904postdeps=$lt_postdeps
17905
17906# The library search path used internally by the compiler when linking
17907# a shared library.
17908compiler_lib_search_path=$lt_compiler_lib_search_path
17909
John Criswell7a73b802003-06-30 21:59:07 +000017910# Method to check whether dependent libraries are shared objects.
17911deplibs_check_method=$lt_deplibs_check_method
17912
17913# Command to use when deplibs_check_method == file_magic.
17914file_magic_cmd=$lt_file_magic_cmd
17915
17916# Flag that allows shared libraries with undefined symbols to be built.
17917allow_undefined_flag=$lt_allow_undefined_flag
17918
17919# Flag that forces no undefined symbols.
17920no_undefined_flag=$lt_no_undefined_flag
17921
17922# Commands used to finish a libtool library installation in a directory.
17923finish_cmds=$lt_finish_cmds
17924
17925# Same as above, but a single script fragment to be evaled but not shown.
17926finish_eval=$lt_finish_eval
17927
17928# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017929global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017930
17931# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017932global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017933
17934# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017935global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017936
17937# This is the shared library runtime path variable.
17938runpath_var=$runpath_var
17939
17940# This is the shared library path variable.
17941shlibpath_var=$shlibpath_var
17942
17943# Is shlibpath searched before the hard-coded library search path?
17944shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17945
17946# How to hardcode a shared library path into an executable.
17947hardcode_action=$hardcode_action
17948
17949# Whether we should hardcode library paths into libraries.
17950hardcode_into_libs=$hardcode_into_libs
17951
17952# Flag to hardcode \$libdir into a binary during linking.
17953# This must work even if \$libdir does not exist.
17954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17955
John Criswell47fdd832003-07-14 16:52:07 +000017956# If ld is used when linking, flag to hardcode \$libdir into
17957# a binary during linking. This must work even if \$libdir does
17958# not exist.
17959hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17960
John Criswell7a73b802003-06-30 21:59:07 +000017961# Whether we need a single -rpath flag with a separated argument.
17962hardcode_libdir_separator=$lt_hardcode_libdir_separator
17963
John Criswell47fdd832003-07-14 16:52:07 +000017964# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017965# resulting binary.
17966hardcode_direct=$hardcode_direct
17967
17968# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17969# resulting binary.
17970hardcode_minus_L=$hardcode_minus_L
17971
17972# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17973# the resulting binary.
17974hardcode_shlibpath_var=$hardcode_shlibpath_var
17975
John Criswell47fdd832003-07-14 16:52:07 +000017976# Set to yes if building a shared library automatically hardcodes DIR into the library
17977# and all subsequent libraries and executables linked against it.
17978hardcode_automatic=$hardcode_automatic
17979
John Criswell7a73b802003-06-30 21:59:07 +000017980# Variables whose values should be saved in libtool wrapper scripts and
17981# restored at relink time.
17982variables_saved_for_relink="$variables_saved_for_relink"
17983
17984# Whether libtool must link a program against all its dependency libraries.
17985link_all_deplibs=$link_all_deplibs
17986
17987# Compile-time system search path for libraries
17988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17989
17990# Run-time system search path for libraries
17991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17992
17993# Fix the shell variable \$srcfile for the compiler.
17994fix_srcfile_path="$fix_srcfile_path"
17995
17996# Set to yes if exported symbols are required.
17997always_export_symbols=$always_export_symbols
17998
17999# The commands to list exported symbols.
18000export_symbols_cmds=$lt_export_symbols_cmds
18001
18002# The commands to extract the exported symbol list from a shared archive.
18003extract_expsyms_cmds=$lt_extract_expsyms_cmds
18004
18005# Symbols that should not be listed in the preloaded symbols.
18006exclude_expsyms=$lt_exclude_expsyms
18007
18008# Symbols that must always be exported.
18009include_expsyms=$lt_include_expsyms
18010
18011# ### END LIBTOOL CONFIG
18012
18013__EOF__
18014
John Criswell47fdd832003-07-14 16:52:07 +000018015
John Criswell7a73b802003-06-30 21:59:07 +000018016 case $host_os in
18017 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018018 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018019
18020# AIX sometimes has problems with the GCC collect2 program. For some
18021# reason, if we set the COLLECT_NAMES environment variable, the problems
18022# vanish in a puff of smoke.
18023if test "X${COLLECT_NAMES+set}" != Xset; then
18024 COLLECT_NAMES=
18025 export COLLECT_NAMES
18026fi
18027EOF
18028 ;;
18029 esac
18030
John Criswell7a73b802003-06-30 21:59:07 +000018031 # We use sed instead of cat because bash on DJGPP gets confused if
18032 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18033 # text mode, it properly converts lines to CR/LF. This bash problem
18034 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018035 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018036
John Criswell47fdd832003-07-14 16:52:07 +000018037 mv -f "$cfgfile" "$ofile" || \
18038 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018039 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018040
18041else
18042 # If there is no Makefile yet, we rely on a make rule to execute
18043 # `config.status --recheck' to rerun these tests and create the
18044 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018045 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18046 if test -f "$ltmain_in"; then
18047 test -f Makefile && make "$ltmain"
18048 fi
John Criswell7a73b802003-06-30 21:59:07 +000018049fi
John Criswell7a73b802003-06-30 21:59:07 +000018050
18051
John Criswell47fdd832003-07-14 16:52:07 +000018052ac_ext=c
18053ac_cpp='$CPP $CPPFLAGS'
18054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056ac_compiler_gnu=$ac_cv_c_compiler_gnu
18057
18058CC="$lt_save_CC"
18059
18060
Reid Spencera773bd52006-08-04 18:18:08 +000018061# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018062if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018063 withval=$with_tags; tagnames="$withval"
18064fi
18065
John Criswell47fdd832003-07-14 16:52:07 +000018066
18067if test -f "$ltmain" && test -n "$tagnames"; then
18068 if test ! -f "${ofile}"; then
18069 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18070echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18071 fi
18072
18073 if test -z "$LTCC"; then
18074 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18075 if test -z "$LTCC"; then
18076 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18077echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18078 else
18079 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18080echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18081 fi
18082 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018083 if test -z "$LTCFLAGS"; then
18084 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18085 fi
John Criswell47fdd832003-07-14 16:52:07 +000018086
18087 # Extract list of available tagged configurations in $ofile.
18088 # Note that this assumes the entire list is on one line.
18089 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18090
18091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18092 for tagname in $tagnames; do
18093 IFS="$lt_save_ifs"
18094 # Check whether tagname contains only valid characters
18095 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18096 "") ;;
18097 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18098echo "$as_me: error: invalid tag name: $tagname" >&2;}
18099 { (exit 1); exit 1; }; }
18100 ;;
18101 esac
18102
18103 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18104 then
18105 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18106echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18107 { (exit 1); exit 1; }; }
18108 fi
18109
18110 # Update the list of available tags.
18111 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018112 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018113
18114 case $tagname in
18115 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018116 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18117 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18118 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018119 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018120ac_cpp='$CXXCPP $CPPFLAGS'
18121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18124
18125
18126
18127
18128archive_cmds_need_lc_CXX=no
18129allow_undefined_flag_CXX=
18130always_export_symbols_CXX=no
18131archive_expsym_cmds_CXX=
18132export_dynamic_flag_spec_CXX=
18133hardcode_direct_CXX=no
18134hardcode_libdir_flag_spec_CXX=
18135hardcode_libdir_flag_spec_ld_CXX=
18136hardcode_libdir_separator_CXX=
18137hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018138hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018139hardcode_automatic_CXX=no
18140module_cmds_CXX=
18141module_expsym_cmds_CXX=
18142link_all_deplibs_CXX=unknown
18143old_archive_cmds_CXX=$old_archive_cmds
18144no_undefined_flag_CXX=
18145whole_archive_flag_spec_CXX=
18146enable_shared_with_static_runtimes_CXX=no
18147
18148# Dependencies to place before and after the object being linked:
18149predep_objects_CXX=
18150postdep_objects_CXX=
18151predeps_CXX=
18152postdeps_CXX=
18153compiler_lib_search_path_CXX=
18154
18155# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018156ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018157
18158# Object file extension for compiled C++ test sources.
18159objext=o
18160objext_CXX=$objext
18161
18162# Code to be used in simple compile tests
18163lt_simple_compile_test_code="int some_variable = 0;\n"
18164
18165# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018166lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018167
18168# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18169
18170# If no C compiler was specified, use CC.
18171LTCC=${LTCC-"$CC"}
18172
Reid Spencera773bd52006-08-04 18:18:08 +000018173# If no C compiler flags were specified, use CFLAGS.
18174LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18175
John Criswell47fdd832003-07-14 16:52:07 +000018176# Allow CC to be a program name with arguments.
18177compiler=$CC
18178
18179
Reid Spencera773bd52006-08-04 18:18:08 +000018180# save warnings/boilerplate of simple test code
18181ac_outfile=conftest.$ac_objext
18182printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18183eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184_lt_compiler_boilerplate=`cat conftest.err`
18185$rm conftest*
18186
18187ac_outfile=conftest.$ac_objext
18188printf "$lt_simple_link_test_code" >conftest.$ac_ext
18189eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18190_lt_linker_boilerplate=`cat conftest.err`
18191$rm conftest*
18192
18193
John Criswell47fdd832003-07-14 16:52:07 +000018194# Allow CC to be a program name with arguments.
18195lt_save_CC=$CC
18196lt_save_LD=$LD
18197lt_save_GCC=$GCC
18198GCC=$GXX
18199lt_save_with_gnu_ld=$with_gnu_ld
18200lt_save_path_LD=$lt_cv_path_LD
18201if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18202 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18203else
Reid Spencera773bd52006-08-04 18:18:08 +000018204 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018205fi
18206if test -n "${lt_cv_path_LDCXX+set}"; then
18207 lt_cv_path_LD=$lt_cv_path_LDCXX
18208else
Reid Spencera773bd52006-08-04 18:18:08 +000018209 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018210fi
18211test -z "${LDCXX+set}" || LD=$LDCXX
18212CC=${CXX-"c++"}
18213compiler=$CC
18214compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018215for cc_temp in $compiler""; do
18216 case $cc_temp in
18217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18219 \-*) ;;
18220 *) break;;
18221 esac
18222done
18223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18224
John Criswell47fdd832003-07-14 16:52:07 +000018225
18226# We don't want -fno-exception wen compiling C++ code, so set the
18227# no_builtin_flag separately
18228if test "$GXX" = yes; then
18229 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18230else
18231 lt_prog_compiler_no_builtin_flag_CXX=
18232fi
18233
18234if test "$GXX" = yes; then
18235 # Set up default GNU C++ configuration
18236
18237
Reid Spencera773bd52006-08-04 18:18:08 +000018238# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018239if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018241else
18242 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018243fi
18244
John Criswell47fdd832003-07-14 16:52:07 +000018245ac_prog=ld
18246if test "$GCC" = yes; then
18247 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018248 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18249echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018250 case $host in
18251 *-*-mingw*)
18252 # gcc leaves a trailing carriage return which upsets mingw
18253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18254 *)
18255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18256 esac
18257 case $ac_prog in
18258 # Accept absolute paths.
18259 [\\/]* | ?:[\\/]*)
18260 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018261 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018262 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18263 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18264 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18265 done
18266 test -z "$LD" && LD="$ac_prog"
18267 ;;
18268 "")
18269 # If it fails, then pretend we aren't using GCC.
18270 ac_prog=ld
18271 ;;
18272 *)
18273 # If it is relative, then search for the first ld in PATH.
18274 with_gnu_ld=unknown
18275 ;;
18276 esac
18277elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018278 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18279echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018280else
Reid Spencera773bd52006-08-04 18:18:08 +000018281 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18282echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018283fi
18284if test "${lt_cv_path_LD+set}" = set; then
18285 echo $ECHO_N "(cached) $ECHO_C" >&6
18286else
18287 if test -z "$LD"; then
18288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18289 for ac_dir in $PATH; do
18290 IFS="$lt_save_ifs"
18291 test -z "$ac_dir" && ac_dir=.
18292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18293 lt_cv_path_LD="$ac_dir/$ac_prog"
18294 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018295 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018296 # Break only if it was the GNU/non-GNU ld that we prefer.
18297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18298 *GNU* | *'with BFD'*)
18299 test "$with_gnu_ld" != no && break
18300 ;;
18301 *)
18302 test "$with_gnu_ld" != yes && break
18303 ;;
18304 esac
18305 fi
18306 done
18307 IFS="$lt_save_ifs"
18308else
18309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18310fi
18311fi
18312
18313LD="$lt_cv_path_LD"
18314if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018315 { echo "$as_me:$LINENO: result: $LD" >&5
18316echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018317else
Reid Spencera773bd52006-08-04 18:18:08 +000018318 { echo "$as_me:$LINENO: result: no" >&5
18319echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018320fi
18321test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18322echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18323 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018324{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18325echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018326if test "${lt_cv_prog_gnu_ld+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
Reid Spencera773bd52006-08-04 18:18:08 +000018329 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018330case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018331*GNU* | *'with BFD'*)
18332 lt_cv_prog_gnu_ld=yes
18333 ;;
18334*)
18335 lt_cv_prog_gnu_ld=no
18336 ;;
18337esac
18338fi
Reid Spencera773bd52006-08-04 18:18:08 +000018339{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18340echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018341with_gnu_ld=$lt_cv_prog_gnu_ld
18342
18343
18344
18345 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18346 # archiving commands below assume that GNU ld is being used.
18347 if test "$with_gnu_ld" = yes; then
18348 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18349 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'
18350
18351 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18352 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18353
18354 # If archive_cmds runs LD, not CC, wlarc should be empty
18355 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18356 # investigate it a little bit more. (MM)
18357 wlarc='${wl}'
18358
18359 # ancient GNU ld didn't support --whole-archive et. al.
18360 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18361 grep 'no-whole-archive' > /dev/null; then
18362 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18363 else
18364 whole_archive_flag_spec_CXX=
18365 fi
18366 else
18367 with_gnu_ld=no
18368 wlarc=
18369
18370 # A generic and very simple default shared library creation
18371 # command for GNU C++ for the case where it uses the native
18372 # linker, instead of GNU ld. If possible, this setting should
18373 # overridden to take advantage of the native linker features on
18374 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018375 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018376 fi
18377
18378 # Commands to make compiler produce verbose output that lists
18379 # what "hidden" libraries, object files and flags are used when
18380 # linking a shared library.
18381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18382
18383else
18384 GXX=no
18385 with_gnu_ld=no
18386 wlarc=
18387fi
18388
18389# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018390{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18391echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018392ld_shlibs_CXX=yes
18393case $host_os in
18394 aix3*)
18395 # FIXME: insert proper C++ library support
18396 ld_shlibs_CXX=no
18397 ;;
18398 aix4* | aix5*)
18399 if test "$host_cpu" = ia64; then
18400 # On IA64, the linker does run time linking by default, so we don't
18401 # have to do anything special.
18402 aix_use_runtimelinking=no
18403 exp_sym_flag='-Bexport'
18404 no_entry_flag=""
18405 else
18406 aix_use_runtimelinking=no
18407
18408 # Test if we are trying to use run time linking or normal
18409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18410 # need to do runtime linking.
18411 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18412 for ld_flag in $LDFLAGS; do
18413 case $ld_flag in
18414 *-brtl*)
18415 aix_use_runtimelinking=yes
18416 break
18417 ;;
18418 esac
18419 done
Reid Spencera773bd52006-08-04 18:18:08 +000018420 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018421 esac
18422
18423 exp_sym_flag='-bexport'
18424 no_entry_flag='-bnoentry'
18425 fi
18426
18427 # When large executables or shared objects are built, AIX ld can
18428 # have problems creating the table of contents. If linking a library
18429 # or program results in "error TOC overflow" add -mminimal-toc to
18430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18432
18433 archive_cmds_CXX=''
18434 hardcode_direct_CXX=yes
18435 hardcode_libdir_separator_CXX=':'
18436 link_all_deplibs_CXX=yes
18437
18438 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018439 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018440 # We only want to do this on AIX 4.2 and lower, the check
18441 # below for broken collect2 doesn't work under 4.3+
18442 collect2name=`${CC} -print-prog-name=collect2`
18443 if test -f "$collect2name" && \
18444 strings "$collect2name" | grep resolve_lib_name >/dev/null
18445 then
18446 # We have reworked collect2
18447 hardcode_direct_CXX=yes
18448 else
18449 # We have old collect2
18450 hardcode_direct_CXX=unsupported
18451 # It fails to find uninstalled libraries when the uninstalled
18452 # path is not listed in the libpath. Setting hardcode_minus_L
18453 # to unsupported forces relinking
18454 hardcode_minus_L_CXX=yes
18455 hardcode_libdir_flag_spec_CXX='-L$libdir'
18456 hardcode_libdir_separator_CXX=
18457 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018458 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018459 esac
18460 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018461 if test "$aix_use_runtimelinking" = yes; then
18462 shared_flag="$shared_flag "'${wl}-G'
18463 fi
John Criswell47fdd832003-07-14 16:52:07 +000018464 else
18465 # not using gcc
18466 if test "$host_cpu" = ia64; then
18467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18468 # chokes on -Wl,-G. The following line is correct:
18469 shared_flag='-G'
18470 else
18471 if test "$aix_use_runtimelinking" = yes; then
18472 shared_flag='${wl}-G'
18473 else
18474 shared_flag='${wl}-bM:SRE'
18475 fi
18476 fi
18477 fi
18478
18479 # It seems that -bexpall does not export symbols beginning with
18480 # underscore (_), so it is better to generate a list of symbols to export.
18481 always_export_symbols_CXX=yes
18482 if test "$aix_use_runtimelinking" = yes; then
18483 # Warning - without using the other runtime loading flags (-brtl),
18484 # -berok will link without error, but may produce a broken library.
18485 allow_undefined_flag_CXX='-berok'
18486 # Determine the default libpath from the value encoded in an empty executable.
18487 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018488/* confdefs.h. */
18489_ACEOF
18490cat confdefs.h >>conftest.$ac_ext
18491cat >>conftest.$ac_ext <<_ACEOF
18492/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018493
John Criswell47fdd832003-07-14 16:52:07 +000018494int
18495main ()
18496{
18497
18498 ;
18499 return 0;
18500}
18501_ACEOF
18502rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018503if { (ac_try="$ac_link"
18504case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18507esac
18508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018510 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018511 grep -v '^ *+' conftest.er1 >conftest.err
18512 rm -f conftest.er1
18513 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018515 (exit $ac_status); } &&
18516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18517 { (case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18520esac
18521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_try") 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest$ac_exeext'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018536
18537aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18538}'`
18539# Check for a 64-bit object if we didn't find anything.
18540if 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; }
18541}'`; fi
18542else
18543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018544sed 's/^/| /' conftest.$ac_ext >&5
18545
Reid Spencera773bd52006-08-04 18:18:08 +000018546
John Criswell47fdd832003-07-14 16:52:07 +000018547fi
Reid Spencera773bd52006-08-04 18:18:08 +000018548
Tanya Lattnercf067672008-01-17 05:57:22 +000018549rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018550 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018551if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18552
18553 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18554
Reid Spencera773bd52006-08-04 18:18:08 +000018555 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 +000018556 else
18557 if test "$host_cpu" = ia64; then
18558 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18559 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018560 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 +000018561 else
18562 # Determine the default libpath from the value encoded in an empty executable.
18563 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018564/* confdefs.h. */
18565_ACEOF
18566cat confdefs.h >>conftest.$ac_ext
18567cat >>conftest.$ac_ext <<_ACEOF
18568/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018569
John Criswell47fdd832003-07-14 16:52:07 +000018570int
18571main ()
18572{
18573
18574 ;
18575 return 0;
18576}
18577_ACEOF
18578rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018579if { (ac_try="$ac_link"
18580case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18593 { (case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18596esac
18597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_try") 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest$ac_exeext'
18603 { (case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18606esac
18607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_try") 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018612
18613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18614}'`
18615# Check for a 64-bit object if we didn't find anything.
18616if 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; }
18617}'`; fi
18618else
18619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018620sed 's/^/| /' conftest.$ac_ext >&5
18621
Reid Spencera773bd52006-08-04 18:18:08 +000018622
John Criswell47fdd832003-07-14 16:52:07 +000018623fi
Reid Spencera773bd52006-08-04 18:18:08 +000018624
Tanya Lattnercf067672008-01-17 05:57:22 +000018625rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018626 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18628
18629 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18630 # Warning - without using the other run time loading flags,
18631 # -berok will link without error, but may produce a broken library.
18632 no_undefined_flag_CXX=' ${wl}-bernotok'
18633 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018634 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018635 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018636 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018637 # This is similar to how AIX traditionally builds its shared libraries.
18638 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 +000018639 fi
18640 fi
18641 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018642
18643 beos*)
18644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18645 allow_undefined_flag_CXX=unsupported
18646 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18647 # support --undefined. This deserves some investigation. FIXME
18648 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18649 else
18650 ld_shlibs_CXX=no
18651 fi
18652 ;;
18653
John Criswell47fdd832003-07-14 16:52:07 +000018654 chorus*)
18655 case $cc_basename in
18656 *)
18657 # FIXME: insert proper C++ library support
18658 ld_shlibs_CXX=no
18659 ;;
18660 esac
18661 ;;
18662
18663 cygwin* | mingw* | pw32*)
18664 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18665 # as there is no search path for DLLs.
18666 hardcode_libdir_flag_spec_CXX='-L$libdir'
18667 allow_undefined_flag_CXX=unsupported
18668 always_export_symbols_CXX=no
18669 enable_shared_with_static_runtimes_CXX=yes
18670
18671 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018672 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 +000018673 # If the export-symbols file already is a .def file (1st line
18674 # is EXPORTS), use it as is; otherwise, prepend...
18675 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18676 cp $export_symbols $output_objdir/$soname.def;
18677 else
18678 echo EXPORTS > $output_objdir/$soname.def;
18679 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018680 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018681 $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 +000018682 else
18683 ld_shlibs_CXX=no
18684 fi
18685 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018686 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018687 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018688 rhapsody* | darwin1.[012])
18689 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18690 ;;
18691 *) # Darwin 1.3 on
18692 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18693 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18694 else
18695 case ${MACOSX_DEPLOYMENT_TARGET} in
18696 10.[012])
18697 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18698 ;;
18699 10.*)
18700 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18701 ;;
18702 esac
18703 fi
18704 ;;
18705 esac
18706 archive_cmds_need_lc_CXX=no
18707 hardcode_direct_CXX=no
18708 hardcode_automatic_CXX=yes
18709 hardcode_shlibpath_var_CXX=unsupported
18710 whole_archive_flag_spec_CXX=''
18711 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018712
Reid Spencer2706f8c2004-09-19 23:53:36 +000018713 if test "$GXX" = yes ; then
18714 lt_int_apple_cc_single_mod=no
18715 output_verbose_link_cmd='echo'
18716 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18717 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018718 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018719 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018720 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 +000018721 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018722 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 +000018723 fi
18724 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018725 # 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 +000018726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018727 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 +000018728 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018729 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 +000018730 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018731 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 +000018732 else
Reid Spencera773bd52006-08-04 18:18:08 +000018733 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018734 xlc*)
18735 output_verbose_link_cmd='echo'
18736 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'
18737 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018738 # 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 +000018739 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}'
18740 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 +000018741 ;;
18742 *)
18743 ld_shlibs_CXX=no
18744 ;;
18745 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018746 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018747 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018748
18749 dgux*)
18750 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018751 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18754 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018755 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018756 # Green Hills C++ Compiler
18757 # FIXME: insert proper C++ library support
18758 ld_shlibs_CXX=no
18759 ;;
18760 *)
18761 # FIXME: insert proper C++ library support
18762 ld_shlibs_CXX=no
18763 ;;
18764 esac
18765 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018766 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018767 # C++ shared libraries reported to be fairly broken before switch to ELF
18768 ld_shlibs_CXX=no
18769 ;;
18770 freebsd-elf*)
18771 archive_cmds_need_lc_CXX=no
18772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018773 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018774 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18775 # conventions
18776 ld_shlibs_CXX=yes
18777 ;;
18778 gnu*)
18779 ;;
18780 hpux9*)
18781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18782 hardcode_libdir_separator_CXX=:
18783 export_dynamic_flag_spec_CXX='${wl}-E'
18784 hardcode_direct_CXX=yes
18785 hardcode_minus_L_CXX=yes # Not in the search PATH,
18786 # but as the default
18787 # location of the library.
18788
18789 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018790 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018791 # FIXME: insert proper C++ library support
18792 ld_shlibs_CXX=no
18793 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018794 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018795 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 +000018796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18799 #
18800 # There doesn't appear to be a way to prevent this compiler from
18801 # explicitly linking system object files so we need to strip them
18802 # from the output so that they don't get included in the library
18803 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018804 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 +000018805 ;;
18806 *)
18807 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018808 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 +000018809 else
18810 # FIXME: insert proper C++ library support
18811 ld_shlibs_CXX=no
18812 fi
18813 ;;
18814 esac
18815 ;;
18816 hpux10*|hpux11*)
18817 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18819 hardcode_libdir_separator_CXX=:
18820
18821 case $host_cpu in
18822 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018823 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018824 ;;
18825 *)
John Criswell47fdd832003-07-14 16:52:07 +000018826 export_dynamic_flag_spec_CXX='${wl}-E'
18827 ;;
18828 esac
18829 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018830 case $host_cpu in
18831 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018832 hardcode_direct_CXX=no
18833 hardcode_shlibpath_var_CXX=no
18834 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018835 *)
18836 hardcode_direct_CXX=yes
18837 hardcode_minus_L_CXX=yes # Not in the search PATH,
18838 # but as the default
18839 # location of the library.
18840 ;;
18841 esac
18842
18843 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018844 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018845 # FIXME: insert proper C++ library support
18846 ld_shlibs_CXX=no
18847 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018848 aCC*)
18849 case $host_cpu in
18850 hppa*64*)
18851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852 ;;
18853 ia64*)
18854 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 +000018855 ;;
18856 *)
18857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18858 ;;
18859 esac
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
18863 #
18864 # There doesn't appear to be a way to prevent this compiler from
18865 # explicitly linking system object files so we need to strip them
18866 # from the output so that they don't get included in the library
18867 # dependencies.
18868 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'
18869 ;;
18870 *)
18871 if test "$GXX" = yes; then
18872 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018873 case $host_cpu in
18874 hppa*64*)
18875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18876 ;;
18877 ia64*)
18878 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 +000018879 ;;
18880 *)
18881 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'
18882 ;;
18883 esac
18884 fi
18885 else
18886 # FIXME: insert proper C++ library support
18887 ld_shlibs_CXX=no
18888 fi
18889 ;;
18890 esac
18891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018892 interix3*)
18893 hardcode_direct_CXX=no
18894 hardcode_shlibpath_var_CXX=no
18895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18896 export_dynamic_flag_spec_CXX='${wl}-E'
18897 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18898 # Instead, shared libraries are loaded at an image base (0x10000000 by
18899 # default) and relocated if they conflict, which is a slow very memory
18900 # consuming and fragmenting process. To avoid this, we pick a random,
18901 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18902 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18903 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'
18904 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'
18905 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018906 irix5* | irix6*)
18907 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018908 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018909 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018910 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 +000018911
18912 # Archives containing C++ object files must be created using
18913 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18914 # necessary to make sure instantiated templates are included
18915 # in the archive.
18916 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18917 ;;
18918 *)
18919 if test "$GXX" = yes; then
18920 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018921 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 +000018922 else
18923 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'
18924 fi
18925 fi
18926 link_all_deplibs_CXX=yes
18927 ;;
18928 esac
18929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18930 hardcode_libdir_separator_CXX=:
18931 ;;
18932 linux*)
18933 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018934 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018935 # Kuck and Associates, Inc. (KAI) C++ Compiler
18936
18937 # KCC will only create a shared library if the output file
18938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18939 # to its proper name (with version) after linking.
18940 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'
18941 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'
18942 # Commands to make compiler produce verbose output that lists
18943 # what "hidden" libraries, object files and flags are used when
18944 # linking a shared library.
18945 #
18946 # There doesn't appear to be a way to prevent this compiler from
18947 # explicitly linking system object files so we need to strip them
18948 # from the output so that they don't get included in the library
18949 # dependencies.
18950 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'
18951
18952 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18954
18955 # Archives containing C++ object files must be created using
18956 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18957 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18958 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018959 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018960 # Intel C++
18961 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018962 # version 8.0 and above of icpc choke on multiply defined symbols
18963 # if we add $predep_objects and $postdep_objects, however 7.1 and
18964 # earlier do not add the objects themselves.
18965 case `$CC -V 2>&1` in
18966 *"Version 7."*)
18967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18968 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'
18969 ;;
18970 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018971 tmp_idyn=
18972 case $host_cpu in
18973 ia64*) tmp_idyn=' -i_dynamic';;
18974 esac
18975 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18976 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 +000018977 ;;
18978 esac
John Criswell47fdd832003-07-14 16:52:07 +000018979 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18982 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018984 pgCC*)
18985 # Portland Group C++ compiler
18986 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18987 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'
18988
18989 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18991 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'
18992 ;;
18993 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018994 # Compaq C++
18995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18996 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'
18997
18998 runpath_var=LD_RUN_PATH
18999 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19000 hardcode_libdir_separator_CXX=:
19001
19002 # Commands to make compiler produce verbose output that lists
19003 # what "hidden" libraries, object files and flags are used when
19004 # linking a shared library.
19005 #
19006 # There doesn't appear to be a way to prevent this compiler from
19007 # explicitly linking system object files so we need to strip them
19008 # from the output so that they don't get included in the library
19009 # dependencies.
19010 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'
19011 ;;
19012 esac
19013 ;;
19014 lynxos*)
19015 # FIXME: insert proper C++ library support
19016 ld_shlibs_CXX=no
19017 ;;
19018 m88k*)
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
19022 mvs*)
19023 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019024 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019025 # FIXME: insert proper C++ library support
19026 ld_shlibs_CXX=no
19027 ;;
19028 *)
19029 # FIXME: insert proper C++ library support
19030 ld_shlibs_CXX=no
19031 ;;
19032 esac
19033 ;;
19034 netbsd*)
19035 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19036 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19037 wlarc=
19038 hardcode_libdir_flag_spec_CXX='-R$libdir'
19039 hardcode_direct_CXX=yes
19040 hardcode_shlibpath_var_CXX=no
19041 fi
19042 # Workaround some broken pre-1.5 toolchains
19043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19044 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019045 openbsd2*)
19046 # C++ shared libraries are fairly broken
19047 ld_shlibs_CXX=no
19048 ;;
19049 openbsd*)
19050 hardcode_direct_CXX=yes
19051 hardcode_shlibpath_var_CXX=no
19052 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19055 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19056 export_dynamic_flag_spec_CXX='${wl}-E'
19057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19058 fi
19059 output_verbose_link_cmd='echo'
19060 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019061 osf3*)
19062 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019063 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019064 # Kuck and Associates, Inc. (KAI) C++ Compiler
19065
19066 # KCC will only create a shared library if the output file
19067 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19068 # to its proper name (with version) after linking.
19069 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'
19070
19071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19072 hardcode_libdir_separator_CXX=:
19073
19074 # Archives containing C++ object files must be created using
19075 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19076 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19077
19078 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019079 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019080 # Rational C++ 2.4.1
19081 # FIXME: insert proper C++ library support
19082 ld_shlibs_CXX=no
19083 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019084 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019085 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019086 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 +000019087
19088 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19089 hardcode_libdir_separator_CXX=:
19090
19091 # Commands to make compiler produce verbose output that lists
19092 # what "hidden" libraries, object files and flags are used when
19093 # linking a shared library.
19094 #
19095 # There doesn't appear to be a way to prevent this compiler from
19096 # explicitly linking system object files so we need to strip them
19097 # from the output so that they don't get included in the library
19098 # dependencies.
19099 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'
19100 ;;
19101 *)
19102 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19103 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019104 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 +000019105
19106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19107 hardcode_libdir_separator_CXX=:
19108
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19113
19114 else
19115 # FIXME: insert proper C++ library support
19116 ld_shlibs_CXX=no
19117 fi
19118 ;;
19119 esac
19120 ;;
19121 osf4* | osf5*)
19122 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019123 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019124 # Kuck and Associates, Inc. (KAI) C++ Compiler
19125
19126 # KCC will only create a shared library if the output file
19127 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19128 # to its proper name (with version) after linking.
19129 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'
19130
19131 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19132 hardcode_libdir_separator_CXX=:
19133
19134 # Archives containing C++ object files must be created using
19135 # the KAI C++ compiler.
19136 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19137 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019138 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019139 # Rational C++ 2.4.1
19140 # FIXME: insert proper C++ library support
19141 ld_shlibs_CXX=no
19142 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019143 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019144 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019145 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 +000019146 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19147 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019148 $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 +000019149 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019150
19151 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19152 hardcode_libdir_separator_CXX=:
19153
19154 # Commands to make compiler produce verbose output that lists
19155 # what "hidden" libraries, object files and flags are used when
19156 # linking a shared library.
19157 #
19158 # There doesn't appear to be a way to prevent this compiler from
19159 # explicitly linking system object files so we need to strip them
19160 # from the output so that they don't get included in the library
19161 # dependencies.
19162 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'
19163 ;;
19164 *)
19165 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19166 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019167 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 +000019168
19169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19170 hardcode_libdir_separator_CXX=:
19171
19172 # Commands to make compiler produce verbose output that lists
19173 # what "hidden" libraries, object files and flags are used when
19174 # linking a shared library.
19175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19176
19177 else
19178 # FIXME: insert proper C++ library support
19179 ld_shlibs_CXX=no
19180 fi
19181 ;;
19182 esac
19183 ;;
19184 psos*)
19185 # FIXME: insert proper C++ library support
19186 ld_shlibs_CXX=no
19187 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019188 sunos4*)
19189 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019190 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019191 # Sun C++ 4.x
19192 # FIXME: insert proper C++ library support
19193 ld_shlibs_CXX=no
19194 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019195 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019196 # Lucid
19197 # FIXME: insert proper C++ library support
19198 ld_shlibs_CXX=no
19199 ;;
19200 *)
19201 # FIXME: insert proper C++ library support
19202 ld_shlibs_CXX=no
19203 ;;
19204 esac
19205 ;;
19206 solaris*)
19207 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019208 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019209 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019210 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019211 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019212 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 +000019213 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 +000019214 $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 +000019215
19216 hardcode_libdir_flag_spec_CXX='-R$libdir'
19217 hardcode_shlibpath_var_CXX=no
19218 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019219 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019220 *)
19221 # The C++ compiler is used as linker so we must use $wl
19222 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019223 # linker. We must also pass each convience library through
19224 # to the system linker between allextract/defaultextract.
19225 # The C++ compiler will combine linker options so we
19226 # cannot just pass the convience library names through
19227 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019228 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019229 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 +000019230 ;;
19231 esac
19232 link_all_deplibs_CXX=yes
19233
Reid Spencera773bd52006-08-04 18:18:08 +000019234 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019235
19236 # Archives containing C++ object files must be created using
19237 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19238 # necessary to make sure instantiated templates are included
19239 # in the archive.
19240 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19241 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019242 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019243 # Green Hills C++ Compiler
19244 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19245
19246 # The C++ compiler must be used to create the archive.
19247 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19248 ;;
19249 *)
19250 # GNU C++ compiler with Solaris linker
19251 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19252 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19253 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019254 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 +000019255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19257
John Criswell47fdd832003-07-14 16:52:07 +000019258 # Commands to make compiler produce verbose output that lists
19259 # what "hidden" libraries, object files and flags are used when
19260 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019261 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019262 else
19263 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19264 # platform.
19265 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 +000019266 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19267 $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 +000019268
19269 # Commands to make compiler produce verbose output that lists
19270 # what "hidden" libraries, object files and flags are used when
19271 # linking a shared library.
19272 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19273 fi
19274
19275 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19276 fi
19277 ;;
19278 esac
19279 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19281 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019282 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019283 hardcode_shlibpath_var_CXX=no
19284 runpath_var='LD_RUN_PATH'
19285
19286 case $cc_basename in
19287 CC*)
19288 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19290 ;;
19291 *)
19292 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294 ;;
19295 esac
19296 ;;
19297 sysv5* | sco3.2v5* | sco5v6*)
19298 # Note: We can NOT use -z defs as we might desire, because we do not
19299 # link with -lc, and that would cause any symbols used from libc to
19300 # always be unresolved, which means just about no library would
19301 # ever link correctly. If we're not using GNU ld we use -z text
19302 # though, which does catch some bad symbols but isn't as heavy-handed
19303 # as -z defs.
19304 # For security reasons, it is highly recommended that you always
19305 # use absolute paths for naming shared libraries, and exclude the
19306 # DT_RUNPATH tag from executables and libraries. But doing so
19307 # requires that you compile everything twice, which is a pain.
19308 # So that behaviour is only enabled if SCOABSPATH is set to a
19309 # non-empty value in the environment. Most likely only useful for
19310 # creating official distributions of packages.
19311 # This is a hack until libtool officially supports absolute path
19312 # names for shared libraries.
19313 no_undefined_flag_CXX='${wl}-z,text'
19314 allow_undefined_flag_CXX='${wl}-z,nodefs'
19315 archive_cmds_need_lc_CXX=no
19316 hardcode_shlibpath_var_CXX=no
19317 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19318 hardcode_libdir_separator_CXX=':'
19319 link_all_deplibs_CXX=yes
19320 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19321 runpath_var='LD_RUN_PATH'
19322
19323 case $cc_basename in
19324 CC*)
19325 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19327 ;;
19328 *)
19329 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19331 ;;
19332 esac
John Criswell47fdd832003-07-14 16:52:07 +000019333 ;;
19334 tandem*)
19335 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019336 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 # NonStop-UX NCC 3.20
19338 # FIXME: insert proper C++ library support
19339 ld_shlibs_CXX=no
19340 ;;
19341 *)
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19344 ;;
19345 esac
19346 ;;
19347 vxworks*)
19348 # FIXME: insert proper C++ library support
19349 ld_shlibs_CXX=no
19350 ;;
19351 *)
19352 # FIXME: insert proper C++ library support
19353 ld_shlibs_CXX=no
19354 ;;
19355esac
Reid Spencera773bd52006-08-04 18:18:08 +000019356{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19357echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019358test "$ld_shlibs_CXX" = no && can_build_shared=no
19359
19360GCC_CXX="$GXX"
19361LD_CXX="$LD"
19362
John Criswell47fdd832003-07-14 16:52:07 +000019363
19364cat > conftest.$ac_ext <<EOF
19365class Foo
19366{
19367public:
19368 Foo (void) { a = 0; }
19369private:
19370 int a;
19371};
19372EOF
19373
19374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; then
19379 # Parse the compiler output and extract the necessary
19380 # objects, libraries and library flags.
19381
19382 # Sentinel used to keep track of whether or not we are before
19383 # the conftest object file.
19384 pre_test_object_deps_done=no
19385
19386 # The `*' in the case matches for architectures that use `case' in
19387 # $output_verbose_cmd can trigger glob expansion during the loop
19388 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019389 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019390
19391 for p in `eval $output_verbose_link_cmd`; do
19392 case $p in
19393
19394 -L* | -R* | -l*)
19395 # Some compilers place space between "-{L,R}" and the path.
19396 # Remove the space.
19397 if test $p = "-L" \
19398 || test $p = "-R"; then
19399 prev=$p
19400 continue
19401 else
19402 prev=
19403 fi
19404
19405 if test "$pre_test_object_deps_done" = no; then
19406 case $p in
19407 -L* | -R*)
19408 # Internal compiler library paths should come after those
19409 # provided the user. The postdeps already come after the
19410 # user supplied libs so there is no need to process them.
19411 if test -z "$compiler_lib_search_path_CXX"; then
19412 compiler_lib_search_path_CXX="${prev}${p}"
19413 else
19414 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19415 fi
19416 ;;
19417 # The "-l" case would never come before the object being
19418 # linked, so don't bother handling this case.
19419 esac
19420 else
19421 if test -z "$postdeps_CXX"; then
19422 postdeps_CXX="${prev}${p}"
19423 else
19424 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19425 fi
19426 fi
19427 ;;
19428
19429 *.$objext)
19430 # This assumes that the test object file only shows up
19431 # once in the compiler output.
19432 if test "$p" = "conftest.$objext"; then
19433 pre_test_object_deps_done=yes
19434 continue
19435 fi
19436
19437 if test "$pre_test_object_deps_done" = no; then
19438 if test -z "$predep_objects_CXX"; then
19439 predep_objects_CXX="$p"
19440 else
19441 predep_objects_CXX="$predep_objects_CXX $p"
19442 fi
19443 else
19444 if test -z "$postdep_objects_CXX"; then
19445 postdep_objects_CXX="$p"
19446 else
19447 postdep_objects_CXX="$postdep_objects_CXX $p"
19448 fi
19449 fi
19450 ;;
19451
19452 *) ;; # Ignore the rest.
19453
19454 esac
19455 done
19456
19457 # Clean up.
19458 rm -f a.out a.exe
19459else
19460 echo "libtool.m4: error: problem compiling CXX test program"
19461fi
19462
19463$rm -f confest.$objext
19464
Reid Spencera773bd52006-08-04 18:18:08 +000019465# PORTME: override above test on systems where it is broken
19466case $host_os in
19467interix3*)
19468 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19469 # hack all around it, let's just trust "g++" to DTRT.
19470 predep_objects_CXX=
19471 postdep_objects_CXX=
19472 postdeps_CXX=
19473 ;;
19474
19475solaris*)
19476 case $cc_basename in
19477 CC*)
19478 # Adding this requires a known-good setup of shared libraries for
19479 # Sun compiler versions before 5.6, else PIC objects from an old
19480 # archive will be linked into the output, leading to subtle bugs.
19481 postdeps_CXX='-lCstd -lCrun'
19482 ;;
19483 esac
19484 ;;
19485esac
19486
19487
John Criswell47fdd832003-07-14 16:52:07 +000019488case " $postdeps_CXX " in
19489*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19490esac
19491
19492lt_prog_compiler_wl_CXX=
19493lt_prog_compiler_pic_CXX=
19494lt_prog_compiler_static_CXX=
19495
Reid Spencera773bd52006-08-04 18:18:08 +000019496{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19497echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019498
19499 # C++ specific cases for pic, static, wl, etc.
19500 if test "$GXX" = yes; then
19501 lt_prog_compiler_wl_CXX='-Wl,'
19502 lt_prog_compiler_static_CXX='-static'
19503
19504 case $host_os in
19505 aix*)
19506 # All AIX code is PIC.
19507 if test "$host_cpu" = ia64; then
19508 # AIX 5 now supports IA64 processor
19509 lt_prog_compiler_static_CXX='-Bstatic'
19510 fi
19511 ;;
19512 amigaos*)
19513 # FIXME: we need at least 68020 code to build shared libraries, but
19514 # adding the `-m68020' flag to GCC prevents building anything better,
19515 # like `-m68040'.
19516 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19517 ;;
19518 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19519 # PIC is the default for these OSes.
19520 ;;
19521 mingw* | os2* | pw32*)
19522 # This hack is so that the source file can tell whether it is being
19523 # built for inclusion in a dll (and should export symbols for example).
19524 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19525 ;;
19526 darwin* | rhapsody*)
19527 # PIC is the default on this platform
19528 # Common symbols not allowed in MH_DYLIB files
19529 lt_prog_compiler_pic_CXX='-fno-common'
19530 ;;
19531 *djgpp*)
19532 # DJGPP does not support shared libraries at all
19533 lt_prog_compiler_pic_CXX=
19534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019535 interix3*)
19536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19537 # Instead, we relocate shared libraries at runtime.
19538 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019539 sysv4*MP*)
19540 if test -d /usr/nec; then
19541 lt_prog_compiler_pic_CXX=-Kconform_pic
19542 fi
19543 ;;
19544 hpux*)
19545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19546 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019547 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019548 hppa*64*|ia64*)
19549 ;;
19550 *)
19551 lt_prog_compiler_pic_CXX='-fPIC'
19552 ;;
19553 esac
19554 ;;
19555 *)
19556 lt_prog_compiler_pic_CXX='-fPIC'
19557 ;;
19558 esac
19559 else
19560 case $host_os in
19561 aix4* | aix5*)
19562 # All AIX code is PIC.
19563 if test "$host_cpu" = ia64; then
19564 # AIX 5 now supports IA64 processor
19565 lt_prog_compiler_static_CXX='-Bstatic'
19566 else
19567 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19568 fi
19569 ;;
19570 chorus*)
19571 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019572 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019573 # Green Hills C++ Compiler
19574 # _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"
19575 ;;
19576 esac
19577 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019578 darwin*)
19579 # PIC is the default on this platform
19580 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019581 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019582 xlc*)
19583 lt_prog_compiler_pic_CXX='-qnocommon'
19584 lt_prog_compiler_wl_CXX='-Wl,'
19585 ;;
19586 esac
19587 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019588 dgux*)
19589 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019590 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019591 lt_prog_compiler_pic_CXX='-KPIC'
19592 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019593 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019594 # Green Hills C++ Compiler
19595 lt_prog_compiler_pic_CXX='-pic'
19596 ;;
19597 *)
19598 ;;
19599 esac
19600 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019601 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019602 # FreeBSD uses GNU C++
19603 ;;
19604 hpux9* | hpux10* | hpux11*)
19605 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019606 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019607 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019608 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019609 if test "$host_cpu" != ia64; then
19610 lt_prog_compiler_pic_CXX='+Z'
19611 fi
19612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019613 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019614 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019615 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19616 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019617 hppa*64*|ia64*)
19618 # +Z the default
19619 ;;
19620 *)
19621 lt_prog_compiler_pic_CXX='+Z'
19622 ;;
19623 esac
19624 ;;
19625 *)
19626 ;;
19627 esac
19628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019629 interix*)
19630 # This is c89, which is MS Visual C++ (no shared libs)
19631 # Anyone wants to do a port?
19632 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019633 irix5* | irix6* | nonstopux*)
19634 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019635 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019636 lt_prog_compiler_wl_CXX='-Wl,'
19637 lt_prog_compiler_static_CXX='-non_shared'
19638 # CC pic flag -KPIC is the default.
19639 ;;
19640 *)
19641 ;;
19642 esac
19643 ;;
19644 linux*)
19645 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019646 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019647 # KAI C++ Compiler
19648 lt_prog_compiler_wl_CXX='--backend -Wl,'
19649 lt_prog_compiler_pic_CXX='-fPIC'
19650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019651 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019652 # Intel C++
19653 lt_prog_compiler_wl_CXX='-Wl,'
19654 lt_prog_compiler_pic_CXX='-KPIC'
19655 lt_prog_compiler_static_CXX='-static'
19656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019657 pgCC*)
19658 # Portland Group C++ compiler.
19659 lt_prog_compiler_wl_CXX='-Wl,'
19660 lt_prog_compiler_pic_CXX='-fpic'
19661 lt_prog_compiler_static_CXX='-Bstatic'
19662 ;;
19663 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019664 # Compaq C++
19665 # Make sure the PIC flag is empty. It appears that all Alpha
19666 # Linux and Compaq Tru64 Unix objects are PIC.
19667 lt_prog_compiler_pic_CXX=
19668 lt_prog_compiler_static_CXX='-non_shared'
19669 ;;
19670 *)
19671 ;;
19672 esac
19673 ;;
19674 lynxos*)
19675 ;;
19676 m88k*)
19677 ;;
19678 mvs*)
19679 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019680 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019681 lt_prog_compiler_pic_CXX='-W c,exportall'
19682 ;;
19683 *)
19684 ;;
19685 esac
19686 ;;
19687 netbsd*)
19688 ;;
19689 osf3* | osf4* | osf5*)
19690 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019691 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019692 lt_prog_compiler_wl_CXX='--backend -Wl,'
19693 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019694 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019695 # Rational C++ 2.4.1
19696 lt_prog_compiler_pic_CXX='-pic'
19697 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019698 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019699 # Digital/Compaq C++
19700 lt_prog_compiler_wl_CXX='-Wl,'
19701 # Make sure the PIC flag is empty. It appears that all Alpha
19702 # Linux and Compaq Tru64 Unix objects are PIC.
19703 lt_prog_compiler_pic_CXX=
19704 lt_prog_compiler_static_CXX='-non_shared'
19705 ;;
19706 *)
19707 ;;
19708 esac
19709 ;;
19710 psos*)
19711 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019712 solaris*)
19713 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019714 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019715 # Sun C++ 4.2, 5.x and Centerline C++
19716 lt_prog_compiler_pic_CXX='-KPIC'
19717 lt_prog_compiler_static_CXX='-Bstatic'
19718 lt_prog_compiler_wl_CXX='-Qoption ld '
19719 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019720 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019721 # Green Hills C++ Compiler
19722 lt_prog_compiler_pic_CXX='-PIC'
19723 ;;
19724 *)
19725 ;;
19726 esac
19727 ;;
19728 sunos4*)
19729 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019730 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019731 # Sun C++ 4.x
19732 lt_prog_compiler_pic_CXX='-pic'
19733 lt_prog_compiler_static_CXX='-Bstatic'
19734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019735 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019736 # Lucid
19737 lt_prog_compiler_pic_CXX='-pic'
19738 ;;
19739 *)
19740 ;;
19741 esac
19742 ;;
19743 tandem*)
19744 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019745 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019746 # NonStop-UX NCC 3.20
19747 lt_prog_compiler_pic_CXX='-KPIC'
19748 ;;
19749 *)
19750 ;;
19751 esac
19752 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019753 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19754 case $cc_basename in
19755 CC*)
19756 lt_prog_compiler_wl_CXX='-Wl,'
19757 lt_prog_compiler_pic_CXX='-KPIC'
19758 lt_prog_compiler_static_CXX='-Bstatic'
19759 ;;
19760 esac
John Criswell47fdd832003-07-14 16:52:07 +000019761 ;;
19762 vxworks*)
19763 ;;
19764 *)
19765 lt_prog_compiler_can_build_shared_CXX=no
19766 ;;
19767 esac
19768 fi
19769
Reid Spencera773bd52006-08-04 18:18:08 +000019770{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19771echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019772
19773#
19774# Check to make sure the PIC flag actually works.
19775#
19776if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019777
Reid Spencera773bd52006-08-04 18:18:08 +000019778{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19779echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019780if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783 lt_prog_compiler_pic_works_CXX=no
19784 ac_outfile=conftest.$ac_objext
19785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19787 # Insert the option either (1) after the last *FLAGS variable, or
19788 # (2) before a word containing "conftest.", or (3) at the end.
19789 # Note that $ac_compile itself does not contain backslashes and begins
19790 # with a dollar sign (not a hyphen), so the echo should work correctly.
19791 # The option is referenced via a variable to avoid confusing sed.
19792 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19795 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000019796 (eval echo "\"\$as_me:19793: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019797 (eval "$lt_compile" 2>conftest.err)
19798 ac_status=$?
19799 cat conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000019800 echo "$as_me:19797: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019801 if (exit $ac_status) && test -s "$ac_outfile"; then
19802 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019803 # So say no if there are warnings other than the usual output.
19804 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019807 lt_prog_compiler_pic_works_CXX=yes
19808 fi
19809 fi
19810 $rm conftest*
19811
19812fi
Reid Spencera773bd52006-08-04 18:18:08 +000019813{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19814echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019815
19816if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19817 case $lt_prog_compiler_pic_CXX in
19818 "" | " "*) ;;
19819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19820 esac
19821else
19822 lt_prog_compiler_pic_CXX=
19823 lt_prog_compiler_can_build_shared_CXX=no
19824fi
19825
19826fi
Reid Spencera773bd52006-08-04 18:18:08 +000019827case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019828 # For platforms which do not support PIC, -DPIC is meaningless:
19829 *djgpp*)
19830 lt_prog_compiler_pic_CXX=
19831 ;;
19832 *)
19833 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19834 ;;
19835esac
19836
Reid Spencera773bd52006-08-04 18:18:08 +000019837#
19838# Check to make sure the static flag actually works.
19839#
19840wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19841{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19842echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19843if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846 lt_prog_compiler_static_works_CXX=no
19847 save_LDFLAGS="$LDFLAGS"
19848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19849 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19851 # The linker can only warn and ignore the option if not recognized
19852 # So say no if there are warnings
19853 if test -s conftest.err; then
19854 # Append any errors to the config.log.
19855 cat conftest.err 1>&5
19856 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19858 if diff conftest.exp conftest.er2 >/dev/null; then
19859 lt_prog_compiler_static_works_CXX=yes
19860 fi
19861 else
19862 lt_prog_compiler_static_works_CXX=yes
19863 fi
19864 fi
19865 $rm conftest*
19866 LDFLAGS="$save_LDFLAGS"
19867
19868fi
19869{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19870echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19871
19872if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19873 :
19874else
19875 lt_prog_compiler_static_CXX=
19876fi
19877
19878
19879{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19880echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019881if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19883else
19884 lt_cv_prog_compiler_c_o_CXX=no
19885 $rm -r conftest 2>/dev/null
19886 mkdir conftest
19887 cd conftest
19888 mkdir out
19889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19890
John Criswell47fdd832003-07-14 16:52:07 +000019891 lt_compiler_flag="-o out/conftest2.$ac_objext"
19892 # Insert the option either (1) after the last *FLAGS variable, or
19893 # (2) before a word containing "conftest.", or (3) at the end.
19894 # Note that $ac_compile itself does not contain backslashes and begins
19895 # with a dollar sign (not a hyphen), so the echo should work correctly.
19896 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19899 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000019900 (eval echo "\"\$as_me:19897: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019901 (eval "$lt_compile" 2>out/conftest.err)
19902 ac_status=$?
19903 cat out/conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000019904 echo "$as_me:19901: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19906 then
19907 # The compiler can only warn and ignore the option if not recognized
19908 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019909 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019912 lt_cv_prog_compiler_c_o_CXX=yes
19913 fi
19914 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019915 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019916 $rm conftest*
19917 # SGI C++ compiler will create directory out/ii_files/ for
19918 # template instantiation
19919 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19920 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019921 cd ..
19922 rmdir conftest
19923 $rm conftest*
19924
19925fi
Reid Spencera773bd52006-08-04 18:18:08 +000019926{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19927echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019928
19929
19930hard_links="nottested"
19931if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19932 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019933 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19934echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019935 hard_links=yes
19936 $rm conftest*
19937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19938 touch conftest.a
19939 ln conftest.a conftest.b 2>&5 || hard_links=no
19940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019941 { echo "$as_me:$LINENO: result: $hard_links" >&5
19942echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019943 if test "$hard_links" = no; then
19944 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19945echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19946 need_locks=warn
19947 fi
19948else
19949 need_locks=no
19950fi
19951
Reid Spencera773bd52006-08-04 18:18:08 +000019952{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19953echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019954
19955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19956 case $host_os in
19957 aix4* | aix5*)
19958 # If we're using GNU nm, then we don't want the "-C" option.
19959 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19960 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19961 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'
19962 else
19963 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'
19964 fi
19965 ;;
19966 pw32*)
19967 export_symbols_cmds_CXX="$ltdll_cmds"
19968 ;;
19969 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019970 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 +000019971 ;;
19972 *)
19973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19974 ;;
19975 esac
19976
Reid Spencera773bd52006-08-04 18:18:08 +000019977{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19978echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019979test "$ld_shlibs_CXX" = no && can_build_shared=no
19980
John Criswell47fdd832003-07-14 16:52:07 +000019981#
19982# Do we need to explicitly link libc?
19983#
19984case "x$archive_cmds_need_lc_CXX" in
19985x|xyes)
19986 # Assume -lc should be added
19987 archive_cmds_need_lc_CXX=yes
19988
19989 if test "$enable_shared" = yes && test "$GCC" = yes; then
19990 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019991 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019992 # FIXME: we may have to deal with multi-command sequences.
19993 ;;
19994 '$CC '*)
19995 # Test whether the compiler implicitly links with -lc since on some
19996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19997 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019998 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19999echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020000 $rm conftest*
20001 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20002
20003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20004 (eval $ac_compile) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } 2>conftest.err; then
20008 soname=conftest
20009 lib=conftest
20010 libobjs=conftest.$ac_objext
20011 deplibs=
20012 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020013 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020014 compiler_flags=-v
20015 linker_flags=-v
20016 verstring=
20017 output_objdir=.
20018 libname=conftest
20019 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20020 allow_undefined_flag_CXX=
20021 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20022 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20023 ac_status=$?
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }
20026 then
20027 archive_cmds_need_lc_CXX=no
20028 else
20029 archive_cmds_need_lc_CXX=yes
20030 fi
20031 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20032 else
20033 cat conftest.err 1>&5
20034 fi
20035 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020036 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20037echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020038 ;;
20039 esac
20040 fi
20041 ;;
20042esac
20043
Reid Spencera773bd52006-08-04 18:18:08 +000020044{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20045echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020046library_names_spec=
20047libname_spec='lib$name'
20048soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020049shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020050postinstall_cmds=
20051postuninstall_cmds=
20052finish_cmds=
20053finish_eval=
20054shlibpath_var=
20055shlibpath_overrides_runpath=unknown
20056version_type=none
20057dynamic_linker="$host_os ld.so"
20058sys_lib_dlsearch_path_spec="/lib /usr/lib"
20059if test "$GCC" = yes; then
20060 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20061 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20062 # if the path contains ";" then we assume it to be the separator
20063 # otherwise default to the standard path separator (i.e. ":") - it is
20064 # assumed that no part of a normal pathname contains ";" but that should
20065 # okay in the real world where ";" in dirpaths is itself problematic.
20066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20067 else
20068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20069 fi
20070else
20071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20072fi
20073need_lib_prefix=unknown
20074hardcode_into_libs=no
20075
20076# when you set need_version to no, make sure it does not cause -set_version
20077# flags to be left without arguments
20078need_version=unknown
20079
20080case $host_os in
20081aix3*)
20082 version_type=linux
20083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20084 shlibpath_var=LIBPATH
20085
20086 # AIX 3 has no versioning support, so we append a major version to the name.
20087 soname_spec='${libname}${release}${shared_ext}$major'
20088 ;;
20089
20090aix4* | aix5*)
20091 version_type=linux
20092 need_lib_prefix=no
20093 need_version=no
20094 hardcode_into_libs=yes
20095 if test "$host_cpu" = ia64; then
20096 # AIX 5 supports IA64
20097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20098 shlibpath_var=LD_LIBRARY_PATH
20099 else
20100 # With GCC up to 2.95.x, collect2 would create an import file
20101 # for dependence libraries. The import file would start with
20102 # the line `#! .'. This would cause the generated library to
20103 # depend on `.', always an invalid library. This was fixed in
20104 # development snapshots of GCC prior to 3.0.
20105 case $host_os in
20106 aix4 | aix4.[01] | aix4.[01].*)
20107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20108 echo ' yes '
20109 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20110 :
20111 else
20112 can_build_shared=no
20113 fi
20114 ;;
20115 esac
20116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20117 # soname into executable. Probably we can add versioning support to
20118 # collect2, so additional links can be useful in future.
20119 if test "$aix_use_runtimelinking" = yes; then
20120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20121 # instead of lib<name>.a to let people know that these are not
20122 # typical AIX shared libraries.
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20124 else
20125 # We preserve .a as extension for shared libraries through AIX4.2
20126 # and later when we are not doing run time linking.
20127 library_names_spec='${libname}${release}.a $libname.a'
20128 soname_spec='${libname}${release}${shared_ext}$major'
20129 fi
20130 shlibpath_var=LIBPATH
20131 fi
20132 ;;
20133
20134amigaos*)
20135 library_names_spec='$libname.ixlibrary $libname.a'
20136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020137 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 +000020138 ;;
20139
20140beos*)
20141 library_names_spec='${libname}${shared_ext}'
20142 dynamic_linker="$host_os ld.so"
20143 shlibpath_var=LIBRARY_PATH
20144 ;;
20145
Reid Spencer2706f8c2004-09-19 23:53:36 +000020146bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020147 version_type=linux
20148 need_version=no
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20155 # the default ld.so.conf also contains /usr/contrib/lib and
20156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20157 # libtool to hard-code these into programs
20158 ;;
20159
20160cygwin* | mingw* | pw32*)
20161 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020162 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020163 need_version=no
20164 need_lib_prefix=no
20165
20166 case $GCC,$host_os in
20167 yes,cygwin* | yes,mingw* | yes,pw32*)
20168 library_names_spec='$libname.dll.a'
20169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020170 postinstall_cmds='base_file=`basename \${file}`~
20171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20172 dldir=$destdir/`dirname \$dlpath`~
20173 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020174 $install_prog $dir/$dlname \$dldir/$dlname~
20175 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20177 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020178 $rm \$dlpath'
20179 shlibpath_overrides_runpath=yes
20180
20181 case $host_os in
20182 cygwin*)
20183 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20184 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 +000020185 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020186 ;;
20187 mingw*)
20188 # MinGW DLLs use traditional 'lib' prefix
20189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20192 # It is most probably a Windows format PATH printed by
20193 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20194 # path with ; separators, and with drive letters. We can handle the
20195 # drive letters (cygwin fileutils understands them), so leave them,
20196 # especially as we might pass files found there to a mingw objdump,
20197 # which wouldn't understand a cygwinified path. Ahh.
20198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20199 else
20200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20201 fi
20202 ;;
20203 pw32*)
20204 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020205 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 +000020206 ;;
20207 esac
20208 ;;
20209
20210 *)
20211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20212 ;;
20213 esac
20214 dynamic_linker='Win32 ld.exe'
20215 # FIXME: first we should search . and the directory the executable is in
20216 shlibpath_var=PATH
20217 ;;
20218
20219darwin* | rhapsody*)
20220 dynamic_linker="$host_os dyld"
20221 version_type=darwin
20222 need_lib_prefix=no
20223 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020225 soname_spec='${libname}${release}${major}$shared_ext'
20226 shlibpath_overrides_runpath=yes
20227 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020228 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020229 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020230 if test "$GCC" = yes; then
20231 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"`
20232 else
20233 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020234 fi
20235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20236 ;;
20237
20238dgux*)
20239 version_type=linux
20240 need_lib_prefix=no
20241 need_version=no
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 ;;
20246
20247freebsd1*)
20248 dynamic_linker=no
20249 ;;
20250
Reid Spencer2706f8c2004-09-19 23:53:36 +000020251kfreebsd*-gnu)
20252 version_type=linux
20253 need_lib_prefix=no
20254 need_version=no
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=no
20259 hardcode_into_libs=yes
20260 dynamic_linker='GNU ld.so'
20261 ;;
20262
Reid Spencera773bd52006-08-04 18:18:08 +000020263freebsd* | dragonfly*)
20264 # DragonFly does not have aout. When/if they implement a new
20265 # versioning mechanism, adjust this.
20266 if test -x /usr/bin/objformat; then
20267 objformat=`/usr/bin/objformat`
20268 else
20269 case $host_os in
20270 freebsd[123]*) objformat=aout ;;
20271 *) objformat=elf ;;
20272 esac
20273 fi
John Criswell47fdd832003-07-14 16:52:07 +000020274 version_type=freebsd-$objformat
20275 case $version_type in
20276 freebsd-elf*)
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20278 need_version=no
20279 need_lib_prefix=no
20280 ;;
20281 freebsd-*)
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20283 need_version=yes
20284 ;;
20285 esac
20286 shlibpath_var=LD_LIBRARY_PATH
20287 case $host_os in
20288 freebsd2*)
20289 shlibpath_overrides_runpath=yes
20290 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020291 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020292 shlibpath_overrides_runpath=yes
20293 hardcode_into_libs=yes
20294 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020295 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20296 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020297 shlibpath_overrides_runpath=no
20298 hardcode_into_libs=yes
20299 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020300 freebsd*) # from 4.6 on
20301 shlibpath_overrides_runpath=yes
20302 hardcode_into_libs=yes
20303 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020304 esac
20305 ;;
20306
20307gnu*)
20308 version_type=linux
20309 need_lib_prefix=no
20310 need_version=no
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 hardcode_into_libs=yes
20315 ;;
20316
20317hpux9* | hpux10* | hpux11*)
20318 # Give a soname corresponding to the major version so that dld.sl refuses to
20319 # link against other versions.
20320 version_type=sunos
20321 need_lib_prefix=no
20322 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020323 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020324 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020325 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020326 hardcode_into_libs=yes
20327 dynamic_linker="$host_os dld.so"
20328 shlibpath_var=LD_LIBRARY_PATH
20329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20331 soname_spec='${libname}${release}${shared_ext}$major'
20332 if test "X$HPUX_IA64_MODE" = X32; then
20333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20334 else
20335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20336 fi
20337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20338 ;;
20339 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020340 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020341 hardcode_into_libs=yes
20342 dynamic_linker="$host_os dld.sl"
20343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 soname_spec='${libname}${release}${shared_ext}$major'
20347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20349 ;;
20350 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020351 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020352 dynamic_linker="$host_os dld.sl"
20353 shlibpath_var=SHLIB_PATH
20354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 ;;
20358 esac
20359 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20360 postinstall_cmds='chmod 555 $lib'
20361 ;;
20362
Reid Spencera773bd52006-08-04 18:18:08 +000020363interix3*)
20364 version_type=linux
20365 need_lib_prefix=no
20366 need_version=no
20367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20368 soname_spec='${libname}${release}${shared_ext}$major'
20369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 shlibpath_overrides_runpath=no
20372 hardcode_into_libs=yes
20373 ;;
20374
John Criswell47fdd832003-07-14 16:52:07 +000020375irix5* | irix6* | nonstopux*)
20376 case $host_os in
20377 nonstopux*) version_type=nonstopux ;;
20378 *)
20379 if test "$lt_cv_prog_gnu_ld" = yes; then
20380 version_type=linux
20381 else
20382 version_type=irix
20383 fi ;;
20384 esac
20385 need_lib_prefix=no
20386 need_version=no
20387 soname_spec='${libname}${release}${shared_ext}$major'
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20389 case $host_os in
20390 irix5* | nonstopux*)
20391 libsuff= shlibsuff=
20392 ;;
20393 *)
20394 case $LD in # libtool.m4 will add one of these switches to LD
20395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20396 libsuff= shlibsuff= libmagic=32-bit;;
20397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20398 libsuff=32 shlibsuff=N32 libmagic=N32;;
20399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20401 *) libsuff= shlibsuff= libmagic=never-match;;
20402 esac
20403 ;;
20404 esac
20405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20406 shlibpath_overrides_runpath=no
20407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20409 hardcode_into_libs=yes
20410 ;;
20411
20412# No shared lib support for Linux oldld, aout, or coff.
20413linux*oldld* | linux*aout* | linux*coff*)
20414 dynamic_linker=no
20415 ;;
20416
20417# This must be Linux ELF.
20418linux*)
20419 version_type=linux
20420 need_lib_prefix=no
20421 need_version=no
20422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423 soname_spec='${libname}${release}${shared_ext}$major'
20424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20425 shlibpath_var=LD_LIBRARY_PATH
20426 shlibpath_overrides_runpath=no
20427 # This implies no fast_install, which is unacceptable.
20428 # Some rework will be needed to allow for fast_install
20429 # before this can be enabled.
20430 hardcode_into_libs=yes
20431
Reid Spencer2706f8c2004-09-19 23:53:36 +000020432 # Append ld.so.conf contents to the search path
20433 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020434 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 +000020435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20436 fi
20437
John Criswell47fdd832003-07-14 16:52:07 +000020438 # We used to test for /lib/ld.so.1 and disable shared libraries on
20439 # powerpc, because MkLinux only supported shared libraries with the
20440 # GNU dynamic linker. Since this was broken with cross compilers,
20441 # most powerpc-linux boxes support dynamic linking these days and
20442 # people can always --disable-shared, the test was removed, and we
20443 # assume the GNU/Linux dynamic linker is in use.
20444 dynamic_linker='GNU/Linux ld.so'
20445 ;;
20446
Reid Spencer2706f8c2004-09-19 23:53:36 +000020447knetbsd*-gnu)
20448 version_type=linux
20449 need_lib_prefix=no
20450 need_version=no
20451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20452 soname_spec='${libname}${release}${shared_ext}$major'
20453 shlibpath_var=LD_LIBRARY_PATH
20454 shlibpath_overrides_runpath=no
20455 hardcode_into_libs=yes
20456 dynamic_linker='GNU ld.so'
20457 ;;
20458
John Criswell47fdd832003-07-14 16:52:07 +000020459netbsd*)
20460 version_type=sunos
20461 need_lib_prefix=no
20462 need_version=no
20463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466 dynamic_linker='NetBSD (a.out) ld.so'
20467 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020469 soname_spec='${libname}${release}${shared_ext}$major'
20470 dynamic_linker='NetBSD ld.elf_so'
20471 fi
20472 shlibpath_var=LD_LIBRARY_PATH
20473 shlibpath_overrides_runpath=yes
20474 hardcode_into_libs=yes
20475 ;;
20476
20477newsos6)
20478 version_type=linux
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20482 ;;
20483
Reid Spencer2706f8c2004-09-19 23:53:36 +000020484nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020485 version_type=linux
20486 need_lib_prefix=no
20487 need_version=no
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 shlibpath_overrides_runpath=yes
20492 ;;
20493
20494openbsd*)
20495 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020496 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020497 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20499 case $host_os in
20500 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20501 *) need_version=no ;;
20502 esac
John Criswell47fdd832003-07-14 16:52:07 +000020503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20505 shlibpath_var=LD_LIBRARY_PATH
20506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20507 case $host_os in
20508 openbsd2.[89] | openbsd2.[89].*)
20509 shlibpath_overrides_runpath=no
20510 ;;
20511 *)
20512 shlibpath_overrides_runpath=yes
20513 ;;
20514 esac
20515 else
20516 shlibpath_overrides_runpath=yes
20517 fi
20518 ;;
20519
20520os2*)
20521 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020522 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020523 need_lib_prefix=no
20524 library_names_spec='$libname${shared_ext} $libname.a'
20525 dynamic_linker='OS/2 ld.exe'
20526 shlibpath_var=LIBPATH
20527 ;;
20528
20529osf3* | osf4* | osf5*)
20530 version_type=osf
20531 need_lib_prefix=no
20532 need_version=no
20533 soname_spec='${libname}${release}${shared_ext}$major'
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20538 ;;
20539
John Criswell47fdd832003-07-14 16:52:07 +000020540solaris*)
20541 version_type=linux
20542 need_lib_prefix=no
20543 need_version=no
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20545 soname_spec='${libname}${release}${shared_ext}$major'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 shlibpath_overrides_runpath=yes
20548 hardcode_into_libs=yes
20549 # ldd complains unless libraries are executable
20550 postinstall_cmds='chmod +x $lib'
20551 ;;
20552
20553sunos4*)
20554 version_type=sunos
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 shlibpath_overrides_runpath=yes
20559 if test "$with_gnu_ld" = yes; then
20560 need_lib_prefix=no
20561 fi
20562 need_version=yes
20563 ;;
20564
Reid Spencera773bd52006-08-04 18:18:08 +000020565sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020566 version_type=linux
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 shlibpath_var=LD_LIBRARY_PATH
20570 case $host_vendor in
20571 sni)
20572 shlibpath_overrides_runpath=no
20573 need_lib_prefix=no
20574 export_dynamic_flag_spec='${wl}-Blargedynsym'
20575 runpath_var=LD_RUN_PATH
20576 ;;
20577 siemens)
20578 need_lib_prefix=no
20579 ;;
20580 motorola)
20581 need_lib_prefix=no
20582 need_version=no
20583 shlibpath_overrides_runpath=no
20584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20585 ;;
20586 esac
20587 ;;
20588
20589sysv4*MP*)
20590 if test -d /usr/nec ;then
20591 version_type=linux
20592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20593 soname_spec='$libname${shared_ext}.$major'
20594 shlibpath_var=LD_LIBRARY_PATH
20595 fi
20596 ;;
20597
Reid Spencera773bd52006-08-04 18:18:08 +000020598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20599 version_type=freebsd-elf
20600 need_lib_prefix=no
20601 need_version=no
20602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20603 soname_spec='${libname}${release}${shared_ext}$major'
20604 shlibpath_var=LD_LIBRARY_PATH
20605 hardcode_into_libs=yes
20606 if test "$with_gnu_ld" = yes; then
20607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20608 shlibpath_overrides_runpath=no
20609 else
20610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20611 shlibpath_overrides_runpath=yes
20612 case $host_os in
20613 sco3.2v5*)
20614 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20615 ;;
20616 esac
20617 fi
20618 sys_lib_dlsearch_path_spec='/usr/lib'
20619 ;;
20620
John Criswell47fdd832003-07-14 16:52:07 +000020621uts4*)
20622 version_type=linux
20623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 soname_spec='${libname}${release}${shared_ext}$major'
20625 shlibpath_var=LD_LIBRARY_PATH
20626 ;;
20627
20628*)
20629 dynamic_linker=no
20630 ;;
20631esac
Reid Spencera773bd52006-08-04 18:18:08 +000020632{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20633echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020634test "$dynamic_linker" = no && can_build_shared=no
20635
Reid Spencera773bd52006-08-04 18:18:08 +000020636variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20637if test "$GCC" = yes; then
20638 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20639fi
20640
20641{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20642echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020643hardcode_action_CXX=
20644if test -n "$hardcode_libdir_flag_spec_CXX" || \
20645 test -n "$runpath_var_CXX" || \
20646 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20647
20648 # We can hardcode non-existant directories.
20649 if test "$hardcode_direct_CXX" != no &&
20650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20651 # have to relink, otherwise we might link with an installed library
20652 # when we should be linking with a yet-to-be-installed one
20653 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20654 test "$hardcode_minus_L_CXX" != no; then
20655 # Linking always hardcodes the temporary library directory.
20656 hardcode_action_CXX=relink
20657 else
20658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20659 hardcode_action_CXX=immediate
20660 fi
20661else
20662 # We cannot hardcode anything, or else we can only hardcode existing
20663 # directories.
20664 hardcode_action_CXX=unsupported
20665fi
Reid Spencera773bd52006-08-04 18:18:08 +000020666{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20667echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020668
20669if test "$hardcode_action_CXX" = relink; then
20670 # Fast installation is not supported
20671 enable_fast_install=no
20672elif test "$shlibpath_overrides_runpath" = yes ||
20673 test "$enable_shared" = no; then
20674 # Fast installation is not necessary
20675 enable_fast_install=needless
20676fi
20677
John Criswell47fdd832003-07-14 16:52:07 +000020678
20679# The else clause should only fire when bootstrapping the
20680# libtool distribution, otherwise you forgot to ship ltmain.sh
20681# with your package, and you will get complaints that there are
20682# no rules to generate ltmain.sh.
20683if test -f "$ltmain"; then
20684 # See if we are running on zsh, and set the options which allow our commands through
20685 # without removal of \ escapes.
20686 if test -n "${ZSH_VERSION+set}" ; then
20687 setopt NO_GLOB_SUBST
20688 fi
20689 # Now quote all the things that may contain metacharacters while being
20690 # careful not to overquote the AC_SUBSTed values. We take copies of the
20691 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020692 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 +000020693 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020694 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20695 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20696 deplibs_check_method reload_flag reload_cmds need_locks \
20697 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20698 lt_cv_sys_global_symbol_to_c_name_address \
20699 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20700 old_postinstall_cmds old_postuninstall_cmds \
20701 compiler_CXX \
20702 CC_CXX \
20703 LD_CXX \
20704 lt_prog_compiler_wl_CXX \
20705 lt_prog_compiler_pic_CXX \
20706 lt_prog_compiler_static_CXX \
20707 lt_prog_compiler_no_builtin_flag_CXX \
20708 export_dynamic_flag_spec_CXX \
20709 thread_safe_flag_spec_CXX \
20710 whole_archive_flag_spec_CXX \
20711 enable_shared_with_static_runtimes_CXX \
20712 old_archive_cmds_CXX \
20713 old_archive_from_new_cmds_CXX \
20714 predep_objects_CXX \
20715 postdep_objects_CXX \
20716 predeps_CXX \
20717 postdeps_CXX \
20718 compiler_lib_search_path_CXX \
20719 archive_cmds_CXX \
20720 archive_expsym_cmds_CXX \
20721 postinstall_cmds_CXX \
20722 postuninstall_cmds_CXX \
20723 old_archive_from_expsyms_cmds_CXX \
20724 allow_undefined_flag_CXX \
20725 no_undefined_flag_CXX \
20726 export_symbols_cmds_CXX \
20727 hardcode_libdir_flag_spec_CXX \
20728 hardcode_libdir_flag_spec_ld_CXX \
20729 hardcode_libdir_separator_CXX \
20730 hardcode_automatic_CXX \
20731 module_cmds_CXX \
20732 module_expsym_cmds_CXX \
20733 lt_cv_prog_compiler_c_o_CXX \
20734 exclude_expsyms_CXX \
20735 include_expsyms_CXX; do
20736
20737 case $var in
20738 old_archive_cmds_CXX | \
20739 old_archive_from_new_cmds_CXX | \
20740 archive_cmds_CXX | \
20741 archive_expsym_cmds_CXX | \
20742 module_cmds_CXX | \
20743 module_expsym_cmds_CXX | \
20744 old_archive_from_expsyms_cmds_CXX | \
20745 export_symbols_cmds_CXX | \
20746 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20747 postinstall_cmds | postuninstall_cmds | \
20748 old_postinstall_cmds | old_postuninstall_cmds | \
20749 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20750 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020751 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 +000020752 ;;
20753 *)
20754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20755 ;;
20756 esac
20757 done
20758
20759 case $lt_echo in
20760 *'\$0 --fallback-echo"')
20761 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20762 ;;
20763 esac
20764
20765cfgfile="$ofile"
20766
20767 cat <<__EOF__ >> "$cfgfile"
20768# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20769
20770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20771
20772# Shell to use when invoking shell scripts.
20773SHELL=$lt_SHELL
20774
20775# Whether or not to build shared libraries.
20776build_libtool_libs=$enable_shared
20777
20778# Whether or not to build static libraries.
20779build_old_libs=$enable_static
20780
20781# Whether or not to add -lc for building shared libraries.
20782build_libtool_need_lc=$archive_cmds_need_lc_CXX
20783
20784# Whether or not to disallow shared libs when runtime libs are static
20785allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20786
20787# Whether or not to optimize for fast installation.
20788fast_install=$enable_fast_install
20789
20790# The host system.
20791host_alias=$host_alias
20792host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020793host_os=$host_os
20794
20795# The build system.
20796build_alias=$build_alias
20797build=$build
20798build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020799
20800# An echo program that does not interpret backslashes.
20801echo=$lt_echo
20802
20803# The archiver.
20804AR=$lt_AR
20805AR_FLAGS=$lt_AR_FLAGS
20806
20807# A C compiler.
20808LTCC=$lt_LTCC
20809
Reid Spencera773bd52006-08-04 18:18:08 +000020810# LTCC compiler flags.
20811LTCFLAGS=$lt_LTCFLAGS
20812
John Criswell47fdd832003-07-14 16:52:07 +000020813# A language-specific compiler.
20814CC=$lt_compiler_CXX
20815
20816# Is the compiler the GNU C compiler?
20817with_gcc=$GCC_CXX
20818
20819# An ERE matcher.
20820EGREP=$lt_EGREP
20821
20822# The linker used to build libraries.
20823LD=$lt_LD_CXX
20824
20825# Whether we need hard or soft links.
20826LN_S=$lt_LN_S
20827
20828# A BSD-compatible nm program.
20829NM=$lt_NM
20830
20831# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020832STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020833
20834# Used to examine libraries when file_magic_cmd begins "file"
20835MAGIC_CMD=$MAGIC_CMD
20836
20837# Used on cygwin: DLL creation program.
20838DLLTOOL="$DLLTOOL"
20839
20840# Used on cygwin: object dumper.
20841OBJDUMP="$OBJDUMP"
20842
20843# Used on cygwin: assembler.
20844AS="$AS"
20845
20846# The name of the directory that contains temporary libtool files.
20847objdir=$objdir
20848
20849# How to create reloadable object files.
20850reload_flag=$lt_reload_flag
20851reload_cmds=$lt_reload_cmds
20852
20853# How to pass a linker flag through the compiler.
20854wl=$lt_lt_prog_compiler_wl_CXX
20855
20856# Object file suffix (normally "o").
20857objext="$ac_objext"
20858
20859# Old archive suffix (normally "a").
20860libext="$libext"
20861
20862# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020863shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020864
20865# Executable file suffix (normally "").
20866exeext="$exeext"
20867
20868# Additional compiler flags for building library objects.
20869pic_flag=$lt_lt_prog_compiler_pic_CXX
20870pic_mode=$pic_mode
20871
20872# What is the maximum length of a command?
20873max_cmd_len=$lt_cv_sys_max_cmd_len
20874
20875# Does compiler simultaneously support -c and -o options?
20876compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20877
Reid Spencera773bd52006-08-04 18:18:08 +000020878# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020879need_locks=$lt_need_locks
20880
20881# Do we need the lib prefix for modules?
20882need_lib_prefix=$need_lib_prefix
20883
20884# Do we need a version for libraries?
20885need_version=$need_version
20886
20887# Whether dlopen is supported.
20888dlopen_support=$enable_dlopen
20889
20890# Whether dlopen of programs is supported.
20891dlopen_self=$enable_dlopen_self
20892
20893# Whether dlopen of statically linked programs is supported.
20894dlopen_self_static=$enable_dlopen_self_static
20895
20896# Compiler flag to prevent dynamic linking.
20897link_static_flag=$lt_lt_prog_compiler_static_CXX
20898
20899# Compiler flag to turn off builtin functions.
20900no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20901
20902# Compiler flag to allow reflexive dlopens.
20903export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20904
20905# Compiler flag to generate shared objects directly from archives.
20906whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20907
20908# Compiler flag to generate thread-safe objects.
20909thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20910
20911# Library versioning type.
20912version_type=$version_type
20913
20914# Format of library name prefix.
20915libname_spec=$lt_libname_spec
20916
20917# List of archive names. First name is the real one, the rest are links.
20918# The last name is the one that the linker finds with -lNAME.
20919library_names_spec=$lt_library_names_spec
20920
20921# The coded name of the library, if different from the real name.
20922soname_spec=$lt_soname_spec
20923
20924# Commands used to build and install an old-style archive.
20925RANLIB=$lt_RANLIB
20926old_archive_cmds=$lt_old_archive_cmds_CXX
20927old_postinstall_cmds=$lt_old_postinstall_cmds
20928old_postuninstall_cmds=$lt_old_postuninstall_cmds
20929
20930# Create an old-style archive from a shared archive.
20931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20932
20933# Create a temporary old-style archive to link instead of a shared archive.
20934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20935
20936# Commands used to build and install a shared archive.
20937archive_cmds=$lt_archive_cmds_CXX
20938archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20939postinstall_cmds=$lt_postinstall_cmds
20940postuninstall_cmds=$lt_postuninstall_cmds
20941
20942# Commands used to build a loadable module (assumed same as above if empty)
20943module_cmds=$lt_module_cmds_CXX
20944module_expsym_cmds=$lt_module_expsym_cmds_CXX
20945
20946# Commands to strip libraries.
20947old_striplib=$lt_old_striplib
20948striplib=$lt_striplib
20949
20950# Dependencies to place before the objects being linked to create a
20951# shared library.
20952predep_objects=$lt_predep_objects_CXX
20953
20954# Dependencies to place after the objects being linked to create a
20955# shared library.
20956postdep_objects=$lt_postdep_objects_CXX
20957
20958# Dependencies to place before the objects being linked to create a
20959# shared library.
20960predeps=$lt_predeps_CXX
20961
20962# Dependencies to place after the objects being linked to create a
20963# shared library.
20964postdeps=$lt_postdeps_CXX
20965
20966# The library search path used internally by the compiler when linking
20967# a shared library.
20968compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20969
20970# Method to check whether dependent libraries are shared objects.
20971deplibs_check_method=$lt_deplibs_check_method
20972
20973# Command to use when deplibs_check_method == file_magic.
20974file_magic_cmd=$lt_file_magic_cmd
20975
20976# Flag that allows shared libraries with undefined symbols to be built.
20977allow_undefined_flag=$lt_allow_undefined_flag_CXX
20978
20979# Flag that forces no undefined symbols.
20980no_undefined_flag=$lt_no_undefined_flag_CXX
20981
20982# Commands used to finish a libtool library installation in a directory.
20983finish_cmds=$lt_finish_cmds
20984
20985# Same as above, but a single script fragment to be evaled but not shown.
20986finish_eval=$lt_finish_eval
20987
20988# Take the output of nm and produce a listing of raw symbols and C names.
20989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20990
20991# Transform the output of nm in a proper C declaration
20992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20993
20994# Transform the output of nm in a C name address pair
20995global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20996
20997# This is the shared library runtime path variable.
20998runpath_var=$runpath_var
20999
21000# This is the shared library path variable.
21001shlibpath_var=$shlibpath_var
21002
21003# Is shlibpath searched before the hard-coded library search path?
21004shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21005
21006# How to hardcode a shared library path into an executable.
21007hardcode_action=$hardcode_action_CXX
21008
21009# Whether we should hardcode library paths into libraries.
21010hardcode_into_libs=$hardcode_into_libs
21011
21012# Flag to hardcode \$libdir into a binary during linking.
21013# This must work even if \$libdir does not exist.
21014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21015
21016# If ld is used when linking, flag to hardcode \$libdir into
21017# a binary during linking. This must work even if \$libdir does
21018# not exist.
21019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21020
21021# Whether we need a single -rpath flag with a separated argument.
21022hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21023
21024# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21025# resulting binary.
21026hardcode_direct=$hardcode_direct_CXX
21027
21028# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21029# resulting binary.
21030hardcode_minus_L=$hardcode_minus_L_CXX
21031
21032# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21033# the resulting binary.
21034hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21035
21036# Set to yes if building a shared library automatically hardcodes DIR into the library
21037# and all subsequent libraries and executables linked against it.
21038hardcode_automatic=$hardcode_automatic_CXX
21039
21040# Variables whose values should be saved in libtool wrapper scripts and
21041# restored at relink time.
21042variables_saved_for_relink="$variables_saved_for_relink"
21043
21044# Whether libtool must link a program against all its dependency libraries.
21045link_all_deplibs=$link_all_deplibs_CXX
21046
21047# Compile-time system search path for libraries
21048sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21049
21050# Run-time system search path for libraries
21051sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21052
21053# Fix the shell variable \$srcfile for the compiler.
21054fix_srcfile_path="$fix_srcfile_path_CXX"
21055
21056# Set to yes if exported symbols are required.
21057always_export_symbols=$always_export_symbols_CXX
21058
21059# The commands to list exported symbols.
21060export_symbols_cmds=$lt_export_symbols_cmds_CXX
21061
21062# The commands to extract the exported symbol list from a shared archive.
21063extract_expsyms_cmds=$lt_extract_expsyms_cmds
21064
21065# Symbols that should not be listed in the preloaded symbols.
21066exclude_expsyms=$lt_exclude_expsyms_CXX
21067
21068# Symbols that must always be exported.
21069include_expsyms=$lt_include_expsyms_CXX
21070
21071# ### END LIBTOOL TAG CONFIG: $tagname
21072
21073__EOF__
21074
21075
21076else
21077 # If there is no Makefile yet, we rely on a make rule to execute
21078 # `config.status --recheck' to rerun these tests and create the
21079 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021080 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21081 if test -f "$ltmain_in"; then
21082 test -f Makefile && make "$ltmain"
21083 fi
John Criswell47fdd832003-07-14 16:52:07 +000021084fi
21085
21086
21087ac_ext=c
21088ac_cpp='$CPP $CPPFLAGS'
21089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091ac_compiler_gnu=$ac_cv_c_compiler_gnu
21092
21093CC=$lt_save_CC
21094LDCXX=$LD
21095LD=$lt_save_LD
21096GCC=$lt_save_GCC
21097with_gnu_ldcxx=$with_gnu_ld
21098with_gnu_ld=$lt_save_with_gnu_ld
21099lt_cv_path_LDCXX=$lt_cv_path_LD
21100lt_cv_path_LD=$lt_save_path_LD
21101lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21102lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21103
21104 else
21105 tagname=""
21106 fi
21107 ;;
21108
21109 F77)
21110 if test -n "$F77" && test "X$F77" != "Xno"; then
21111
21112ac_ext=f
21113ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21114ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21116
21117
21118archive_cmds_need_lc_F77=no
21119allow_undefined_flag_F77=
21120always_export_symbols_F77=no
21121archive_expsym_cmds_F77=
21122export_dynamic_flag_spec_F77=
21123hardcode_direct_F77=no
21124hardcode_libdir_flag_spec_F77=
21125hardcode_libdir_flag_spec_ld_F77=
21126hardcode_libdir_separator_F77=
21127hardcode_minus_L_F77=no
21128hardcode_automatic_F77=no
21129module_cmds_F77=
21130module_expsym_cmds_F77=
21131link_all_deplibs_F77=unknown
21132old_archive_cmds_F77=$old_archive_cmds
21133no_undefined_flag_F77=
21134whole_archive_flag_spec_F77=
21135enable_shared_with_static_runtimes_F77=no
21136
21137# Source file extension for f77 test sources.
21138ac_ext=f
21139
21140# Object file extension for compiled f77 test sources.
21141objext=o
21142objext_F77=$objext
21143
21144# Code to be used in simple compile tests
21145lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21146
21147# Code to be used in simple link tests
21148lt_simple_link_test_code=" program t\n end\n"
21149
21150# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21151
21152# If no C compiler was specified, use CC.
21153LTCC=${LTCC-"$CC"}
21154
Reid Spencera773bd52006-08-04 18:18:08 +000021155# If no C compiler flags were specified, use CFLAGS.
21156LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21157
John Criswell47fdd832003-07-14 16:52:07 +000021158# Allow CC to be a program name with arguments.
21159compiler=$CC
21160
21161
Reid Spencera773bd52006-08-04 18:18:08 +000021162# save warnings/boilerplate of simple test code
21163ac_outfile=conftest.$ac_objext
21164printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21165eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21166_lt_compiler_boilerplate=`cat conftest.err`
21167$rm conftest*
21168
21169ac_outfile=conftest.$ac_objext
21170printf "$lt_simple_link_test_code" >conftest.$ac_ext
21171eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21172_lt_linker_boilerplate=`cat conftest.err`
21173$rm conftest*
21174
21175
John Criswell47fdd832003-07-14 16:52:07 +000021176# Allow CC to be a program name with arguments.
21177lt_save_CC="$CC"
21178CC=${F77-"f77"}
21179compiler=$CC
21180compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021181for cc_temp in $compiler""; do
21182 case $cc_temp in
21183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21185 \-*) ;;
21186 *) break;;
21187 esac
21188done
21189cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021190
John Criswell47fdd832003-07-14 16:52:07 +000021191
Reid Spencera773bd52006-08-04 18:18:08 +000021192{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21193echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21194{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21195echo "${ECHO_T}$can_build_shared" >&6; }
21196
21197{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21198echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021199test "$can_build_shared" = "no" && enable_shared=no
21200
21201# On AIX, shared libraries and static libraries use the same namespace, and
21202# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021203case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021204aix3*)
21205 test "$enable_shared" = yes && enable_static=no
21206 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021207 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021208 postinstall_cmds='$RANLIB $lib'
21209 fi
21210 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021211aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21213 test "$enable_shared" = yes && enable_static=no
21214 fi
John Criswell47fdd832003-07-14 16:52:07 +000021215 ;;
21216esac
Reid Spencera773bd52006-08-04 18:18:08 +000021217{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21218echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021219
Reid Spencera773bd52006-08-04 18:18:08 +000021220{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21221echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021222# Make sure either enable_shared or enable_static is yes.
21223test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021224{ echo "$as_me:$LINENO: result: $enable_static" >&5
21225echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021226
21227GCC_F77="$G77"
21228LD_F77="$LD"
21229
21230lt_prog_compiler_wl_F77=
21231lt_prog_compiler_pic_F77=
21232lt_prog_compiler_static_F77=
21233
Reid Spencera773bd52006-08-04 18:18:08 +000021234{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21235echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021236
21237 if test "$GCC" = yes; then
21238 lt_prog_compiler_wl_F77='-Wl,'
21239 lt_prog_compiler_static_F77='-static'
21240
21241 case $host_os in
21242 aix*)
21243 # All AIX code is PIC.
21244 if test "$host_cpu" = ia64; then
21245 # AIX 5 now supports IA64 processor
21246 lt_prog_compiler_static_F77='-Bstatic'
21247 fi
21248 ;;
21249
21250 amigaos*)
21251 # FIXME: we need at least 68020 code to build shared libraries, but
21252 # adding the `-m68020' flag to GCC prevents building anything better,
21253 # like `-m68040'.
21254 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21255 ;;
21256
21257 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21258 # PIC is the default for these OSes.
21259 ;;
21260
21261 mingw* | pw32* | os2*)
21262 # This hack is so that the source file can tell whether it is being
21263 # built for inclusion in a dll (and should export symbols for example).
21264 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21265 ;;
21266
21267 darwin* | rhapsody*)
21268 # PIC is the default on this platform
21269 # Common symbols not allowed in MH_DYLIB files
21270 lt_prog_compiler_pic_F77='-fno-common'
21271 ;;
21272
Reid Spencera773bd52006-08-04 18:18:08 +000021273 interix3*)
21274 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21275 # Instead, we relocate shared libraries at runtime.
21276 ;;
21277
John Criswell47fdd832003-07-14 16:52:07 +000021278 msdosdjgpp*)
21279 # Just because we use GCC doesn't mean we suddenly get shared libraries
21280 # on systems that don't support them.
21281 lt_prog_compiler_can_build_shared_F77=no
21282 enable_shared=no
21283 ;;
21284
21285 sysv4*MP*)
21286 if test -d /usr/nec; then
21287 lt_prog_compiler_pic_F77=-Kconform_pic
21288 fi
21289 ;;
21290
21291 hpux*)
21292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21293 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021294 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021295 hppa*64*|ia64*)
21296 # +Z the default
21297 ;;
21298 *)
21299 lt_prog_compiler_pic_F77='-fPIC'
21300 ;;
21301 esac
21302 ;;
21303
21304 *)
21305 lt_prog_compiler_pic_F77='-fPIC'
21306 ;;
21307 esac
21308 else
21309 # PORTME Check for flag to pass linker flags through the system compiler.
21310 case $host_os in
21311 aix*)
21312 lt_prog_compiler_wl_F77='-Wl,'
21313 if test "$host_cpu" = ia64; then
21314 # AIX 5 now supports IA64 processor
21315 lt_prog_compiler_static_F77='-Bstatic'
21316 else
21317 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21318 fi
21319 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021320 darwin*)
21321 # PIC is the default on this platform
21322 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021323 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021324 xlc*)
21325 lt_prog_compiler_pic_F77='-qnocommon'
21326 lt_prog_compiler_wl_F77='-Wl,'
21327 ;;
21328 esac
21329 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021330
21331 mingw* | pw32* | os2*)
21332 # This hack is so that the source file can tell whether it is being
21333 # built for inclusion in a dll (and should export symbols for example).
21334 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21335 ;;
21336
21337 hpux9* | hpux10* | hpux11*)
21338 lt_prog_compiler_wl_F77='-Wl,'
21339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21340 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021341 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021342 hppa*64*|ia64*)
21343 # +Z the default
21344 ;;
21345 *)
21346 lt_prog_compiler_pic_F77='+Z'
21347 ;;
21348 esac
21349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21350 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21351 ;;
21352
21353 irix5* | irix6* | nonstopux*)
21354 lt_prog_compiler_wl_F77='-Wl,'
21355 # PIC (with -KPIC) is the default.
21356 lt_prog_compiler_static_F77='-non_shared'
21357 ;;
21358
21359 newsos6)
21360 lt_prog_compiler_pic_F77='-KPIC'
21361 lt_prog_compiler_static_F77='-Bstatic'
21362 ;;
21363
21364 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021365 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021366 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021367 lt_prog_compiler_wl_F77='-Wl,'
21368 lt_prog_compiler_pic_F77='-KPIC'
21369 lt_prog_compiler_static_F77='-static'
21370 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021371 pgcc* | pgf77* | pgf90* | pgf95*)
21372 # Portland Group compilers (*not* the Pentium gcc compiler,
21373 # which looks to be a dead project)
21374 lt_prog_compiler_wl_F77='-Wl,'
21375 lt_prog_compiler_pic_F77='-fpic'
21376 lt_prog_compiler_static_F77='-Bstatic'
21377 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021378 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021379 lt_prog_compiler_wl_F77='-Wl,'
21380 # All Alpha code is PIC.
21381 lt_prog_compiler_static_F77='-non_shared'
21382 ;;
21383 esac
21384 ;;
21385
21386 osf3* | osf4* | osf5*)
21387 lt_prog_compiler_wl_F77='-Wl,'
21388 # All OSF/1 code is PIC.
21389 lt_prog_compiler_static_F77='-non_shared'
21390 ;;
21391
John Criswell47fdd832003-07-14 16:52:07 +000021392 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021393 lt_prog_compiler_pic_F77='-KPIC'
21394 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021395 case $cc_basename in
21396 f77* | f90* | f95*)
21397 lt_prog_compiler_wl_F77='-Qoption ld ';;
21398 *)
21399 lt_prog_compiler_wl_F77='-Wl,';;
21400 esac
John Criswell47fdd832003-07-14 16:52:07 +000021401 ;;
21402
21403 sunos4*)
21404 lt_prog_compiler_wl_F77='-Qoption ld '
21405 lt_prog_compiler_pic_F77='-PIC'
21406 lt_prog_compiler_static_F77='-Bstatic'
21407 ;;
21408
Reid Spencera773bd52006-08-04 18:18:08 +000021409 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021410 lt_prog_compiler_wl_F77='-Wl,'
21411 lt_prog_compiler_pic_F77='-KPIC'
21412 lt_prog_compiler_static_F77='-Bstatic'
21413 ;;
21414
21415 sysv4*MP*)
21416 if test -d /usr/nec ;then
21417 lt_prog_compiler_pic_F77='-Kconform_pic'
21418 lt_prog_compiler_static_F77='-Bstatic'
21419 fi
21420 ;;
21421
Reid Spencera773bd52006-08-04 18:18:08 +000021422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21423 lt_prog_compiler_wl_F77='-Wl,'
21424 lt_prog_compiler_pic_F77='-KPIC'
21425 lt_prog_compiler_static_F77='-Bstatic'
21426 ;;
21427
21428 unicos*)
21429 lt_prog_compiler_wl_F77='-Wl,'
21430 lt_prog_compiler_can_build_shared_F77=no
21431 ;;
21432
John Criswell47fdd832003-07-14 16:52:07 +000021433 uts4*)
21434 lt_prog_compiler_pic_F77='-pic'
21435 lt_prog_compiler_static_F77='-Bstatic'
21436 ;;
21437
21438 *)
21439 lt_prog_compiler_can_build_shared_F77=no
21440 ;;
21441 esac
21442 fi
21443
Reid Spencera773bd52006-08-04 18:18:08 +000021444{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21445echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021446
21447#
21448# Check to make sure the PIC flag actually works.
21449#
21450if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021451
Reid Spencera773bd52006-08-04 18:18:08 +000021452{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21453echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021454if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21456else
21457 lt_prog_compiler_pic_works_F77=no
21458 ac_outfile=conftest.$ac_objext
21459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21460 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21461 # Insert the option either (1) after the last *FLAGS variable, or
21462 # (2) before a word containing "conftest.", or (3) at the end.
21463 # Note that $ac_compile itself does not contain backslashes and begins
21464 # with a dollar sign (not a hyphen), so the echo should work correctly.
21465 # The option is referenced via a variable to avoid confusing sed.
21466 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21469 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000021470 (eval echo "\"\$as_me:21467: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021471 (eval "$lt_compile" 2>conftest.err)
21472 ac_status=$?
21473 cat conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000021474 echo "$as_me:21471: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021475 if (exit $ac_status) && test -s "$ac_outfile"; then
21476 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021477 # So say no if there are warnings other than the usual output.
21478 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021481 lt_prog_compiler_pic_works_F77=yes
21482 fi
21483 fi
21484 $rm conftest*
21485
21486fi
Reid Spencera773bd52006-08-04 18:18:08 +000021487{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21488echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021489
21490if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21491 case $lt_prog_compiler_pic_F77 in
21492 "" | " "*) ;;
21493 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21494 esac
21495else
21496 lt_prog_compiler_pic_F77=
21497 lt_prog_compiler_can_build_shared_F77=no
21498fi
21499
21500fi
Reid Spencera773bd52006-08-04 18:18:08 +000021501case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021502 # For platforms which do not support PIC, -DPIC is meaningless:
21503 *djgpp*)
21504 lt_prog_compiler_pic_F77=
21505 ;;
21506 *)
21507 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21508 ;;
21509esac
21510
Reid Spencera773bd52006-08-04 18:18:08 +000021511#
21512# Check to make sure the static flag actually works.
21513#
21514wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21515{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21516echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21517if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21519else
21520 lt_prog_compiler_static_works_F77=no
21521 save_LDFLAGS="$LDFLAGS"
21522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21523 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21525 # The linker can only warn and ignore the option if not recognized
21526 # So say no if there are warnings
21527 if test -s conftest.err; then
21528 # Append any errors to the config.log.
21529 cat conftest.err 1>&5
21530 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21532 if diff conftest.exp conftest.er2 >/dev/null; then
21533 lt_prog_compiler_static_works_F77=yes
21534 fi
21535 else
21536 lt_prog_compiler_static_works_F77=yes
21537 fi
21538 fi
21539 $rm conftest*
21540 LDFLAGS="$save_LDFLAGS"
21541
21542fi
21543{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21544echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21545
21546if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21547 :
21548else
21549 lt_prog_compiler_static_F77=
21550fi
21551
21552
21553{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21554echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021555if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557else
21558 lt_cv_prog_compiler_c_o_F77=no
21559 $rm -r conftest 2>/dev/null
21560 mkdir conftest
21561 cd conftest
21562 mkdir out
21563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21564
John Criswell47fdd832003-07-14 16:52:07 +000021565 lt_compiler_flag="-o out/conftest2.$ac_objext"
21566 # Insert the option either (1) after the last *FLAGS variable, or
21567 # (2) before a word containing "conftest.", or (3) at the end.
21568 # Note that $ac_compile itself does not contain backslashes and begins
21569 # with a dollar sign (not a hyphen), so the echo should work correctly.
21570 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21573 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000021574 (eval echo "\"\$as_me:21571: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021575 (eval "$lt_compile" 2>out/conftest.err)
21576 ac_status=$?
21577 cat out/conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000021578 echo "$as_me:21575: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21580 then
21581 # The compiler can only warn and ignore the option if not recognized
21582 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021586 lt_cv_prog_compiler_c_o_F77=yes
21587 fi
21588 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021589 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021590 $rm conftest*
21591 # SGI C++ compiler will create directory out/ii_files/ for
21592 # template instantiation
21593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21594 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021595 cd ..
21596 rmdir conftest
21597 $rm conftest*
21598
21599fi
Reid Spencera773bd52006-08-04 18:18:08 +000021600{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21601echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021602
21603
21604hard_links="nottested"
21605if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21606 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021607 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21608echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021609 hard_links=yes
21610 $rm conftest*
21611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21612 touch conftest.a
21613 ln conftest.a conftest.b 2>&5 || hard_links=no
21614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021615 { echo "$as_me:$LINENO: result: $hard_links" >&5
21616echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021617 if test "$hard_links" = no; then
21618 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21619echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21620 need_locks=warn
21621 fi
21622else
21623 need_locks=no
21624fi
21625
Reid Spencera773bd52006-08-04 18:18:08 +000021626{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21627echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021628
21629 runpath_var=
21630 allow_undefined_flag_F77=
21631 enable_shared_with_static_runtimes_F77=no
21632 archive_cmds_F77=
21633 archive_expsym_cmds_F77=
21634 old_archive_From_new_cmds_F77=
21635 old_archive_from_expsyms_cmds_F77=
21636 export_dynamic_flag_spec_F77=
21637 whole_archive_flag_spec_F77=
21638 thread_safe_flag_spec_F77=
21639 hardcode_libdir_flag_spec_F77=
21640 hardcode_libdir_flag_spec_ld_F77=
21641 hardcode_libdir_separator_F77=
21642 hardcode_direct_F77=no
21643 hardcode_minus_L_F77=no
21644 hardcode_shlibpath_var_F77=unsupported
21645 link_all_deplibs_F77=unknown
21646 hardcode_automatic_F77=no
21647 module_cmds_F77=
21648 module_expsym_cmds_F77=
21649 always_export_symbols_F77=no
21650 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21651 # include_expsyms should be a list of space-separated symbols to be *always*
21652 # included in the symbol list
21653 include_expsyms_F77=
21654 # exclude_expsyms can be an extended regexp of symbols to exclude
21655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21657 # as well as any symbol that contains `d'.
21658 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21660 # platforms (ab)use it in PIC code, but their linkers get confused if
21661 # the symbol is explicitly referenced. Since portable code cannot
21662 # rely on this symbol name, it's probably fine to never include it in
21663 # preloaded symbol tables.
21664 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021665 # Just being paranoid about ensuring that cc_basename is set.
21666 for cc_temp in $compiler""; do
21667 case $cc_temp in
21668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21670 \-*) ;;
21671 *) break;;
21672 esac
21673done
21674cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021675
21676 case $host_os in
21677 cygwin* | mingw* | pw32*)
21678 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21679 # When not using gcc, we currently assume that we are using
21680 # Microsoft Visual C++.
21681 if test "$GCC" != yes; then
21682 with_gnu_ld=no
21683 fi
21684 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021685 interix*)
21686 # we just hope/assume this is gcc and not c89 (= MSVC++)
21687 with_gnu_ld=yes
21688 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021689 openbsd*)
21690 with_gnu_ld=no
21691 ;;
21692 esac
21693
21694 ld_shlibs_F77=yes
21695 if test "$with_gnu_ld" = yes; then
21696 # If archive_cmds runs LD, not CC, wlarc should be empty
21697 wlarc='${wl}'
21698
Reid Spencera773bd52006-08-04 18:18:08 +000021699 # Set some defaults for GNU ld with shared library support. These
21700 # are reset later if shared libraries are not supported. Putting them
21701 # here allows them to be overridden if necessary.
21702 runpath_var=LD_RUN_PATH
21703 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21704 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21705 # ancient GNU ld didn't support --whole-archive et. al.
21706 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21707 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21708 else
21709 whole_archive_flag_spec_F77=
21710 fi
21711 supports_anon_versioning=no
21712 case `$LD -v 2>/dev/null` in
21713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21716 *\ 2.11.*) ;; # other 2.11 versions
21717 *) supports_anon_versioning=yes ;;
21718 esac
21719
John Criswell47fdd832003-07-14 16:52:07 +000021720 # See if GNU ld supports shared libraries.
21721 case $host_os in
21722 aix3* | aix4* | aix5*)
21723 # On AIX/PPC, the GNU linker is very broken
21724 if test "$host_cpu" != ia64; then
21725 ld_shlibs_F77=no
21726 cat <<EOF 1>&2
21727
21728*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21729*** to be unable to reliably create shared libraries on AIX.
21730*** Therefore, libtool is disabling shared libraries support. If you
21731*** really care for shared libraries, you may want to modify your PATH
21732*** so that a non-GNU linker is found, and then restart.
21733
21734EOF
21735 fi
21736 ;;
21737
21738 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021739 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 +000021740 hardcode_libdir_flag_spec_F77='-L$libdir'
21741 hardcode_minus_L_F77=yes
21742
21743 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21744 # that the semantics of dynamic libraries on AmigaOS, at least up
21745 # to version 4, is to share data among multiple programs linked
21746 # with the same dynamic library. Since this doesn't match the
21747 # behavior of shared libraries on other platforms, we can't use
21748 # them.
21749 ld_shlibs_F77=no
21750 ;;
21751
21752 beos*)
21753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21754 allow_undefined_flag_F77=unsupported
21755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21756 # support --undefined. This deserves some investigation. FIXME
21757 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21758 else
21759 ld_shlibs_F77=no
21760 fi
21761 ;;
21762
21763 cygwin* | mingw* | pw32*)
21764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21765 # as there is no search path for DLLs.
21766 hardcode_libdir_flag_spec_F77='-L$libdir'
21767 allow_undefined_flag_F77=unsupported
21768 always_export_symbols_F77=no
21769 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021770 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 +000021771
21772 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021773 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 +000021774 # If the export-symbols file already is a .def file (1st line
21775 # is EXPORTS), use it as is; otherwise, prepend...
21776 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21777 cp $export_symbols $output_objdir/$soname.def;
21778 else
21779 echo EXPORTS > $output_objdir/$soname.def;
21780 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021781 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021782 $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 +000021783 else
Reid Spencera773bd52006-08-04 18:18:08 +000021784 ld_shlibs_F77=no
21785 fi
21786 ;;
21787
21788 interix3*)
21789 hardcode_direct_F77=no
21790 hardcode_shlibpath_var_F77=no
21791 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21792 export_dynamic_flag_spec_F77='${wl}-E'
21793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21794 # Instead, shared libraries are loaded at an image base (0x10000000 by
21795 # default) and relocated if they conflict, which is a slow very memory
21796 # consuming and fragmenting process. To avoid this, we pick a random,
21797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21799 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'
21800 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'
21801 ;;
21802
21803 linux*)
21804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21805 tmp_addflag=
21806 case $cc_basename,$host_cpu in
21807 pgcc*) # Portland Group C compiler
21808 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'
21809 tmp_addflag=' $pic_flag'
21810 ;;
21811 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21812 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'
21813 tmp_addflag=' $pic_flag -Mnomain' ;;
21814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21815 tmp_addflag=' -i_dynamic' ;;
21816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21817 tmp_addflag=' -i_dynamic -nofor_main' ;;
21818 ifc* | ifort*) # Intel Fortran compiler
21819 tmp_addflag=' -nofor_main' ;;
21820 esac
21821 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21822
21823 if test $supports_anon_versioning = yes; then
21824 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21826 $echo "local: *; };" >> $output_objdir/$libname.ver~
21827 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21828 fi
21829 else
21830 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021831 fi
21832 ;;
21833
21834 netbsd*)
21835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21836 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21837 wlarc=
21838 else
21839 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21840 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21841 fi
21842 ;;
21843
Reid Spencera773bd52006-08-04 18:18:08 +000021844 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021845 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21846 ld_shlibs_F77=no
21847 cat <<EOF 1>&2
21848
21849*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21850*** create shared libraries on Solaris systems. Therefore, libtool
21851*** is disabling shared libraries support. We urge you to upgrade GNU
21852*** binutils to release 2.9.1 or newer. Another option is to modify
21853*** your PATH or compiler configuration so that the native linker is
21854*** used, and then restart.
21855
21856EOF
21857 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21858 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21859 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21860 else
21861 ld_shlibs_F77=no
21862 fi
21863 ;;
21864
Reid Spencera773bd52006-08-04 18:18:08 +000021865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21866 case `$LD -v 2>&1` in
21867 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21868 ld_shlibs_F77=no
21869 cat <<_LT_EOF 1>&2
21870
21871*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21872*** reliably create shared libraries on SCO systems. Therefore, libtool
21873*** is disabling shared libraries support. We urge you to upgrade GNU
21874*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21875*** your PATH or compiler configuration so that the native linker is
21876*** used, and then restart.
21877
21878_LT_EOF
21879 ;;
21880 *)
21881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21882 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21884 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21885 else
21886 ld_shlibs_F77=no
21887 fi
21888 ;;
21889 esac
21890 ;;
21891
John Criswell47fdd832003-07-14 16:52:07 +000021892 sunos4*)
21893 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21894 wlarc=
21895 hardcode_direct_F77=yes
21896 hardcode_shlibpath_var_F77=no
21897 ;;
21898
21899 *)
21900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21903 else
21904 ld_shlibs_F77=no
21905 fi
21906 ;;
21907 esac
21908
Reid Spencera773bd52006-08-04 18:18:08 +000021909 if test "$ld_shlibs_F77" = no; then
21910 runpath_var=
21911 hardcode_libdir_flag_spec_F77=
21912 export_dynamic_flag_spec_F77=
21913 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021914 fi
21915 else
21916 # PORTME fill in a description of your system's linker (not GNU ld)
21917 case $host_os in
21918 aix3*)
21919 allow_undefined_flag_F77=unsupported
21920 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021921 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 +000021922 # Note: this linker hardcodes the directories in LIBPATH if there
21923 # are no directories specified by -L.
21924 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021925 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021926 # Neither direct hardcoding nor static linking is supported with a
21927 # broken collect2.
21928 hardcode_direct_F77=unsupported
21929 fi
21930 ;;
21931
21932 aix4* | aix5*)
21933 if test "$host_cpu" = ia64; then
21934 # On IA64, the linker does run time linking by default, so we don't
21935 # have to do anything special.
21936 aix_use_runtimelinking=no
21937 exp_sym_flag='-Bexport'
21938 no_entry_flag=""
21939 else
21940 # If we're using GNU nm, then we don't want the "-C" option.
21941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21942 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21943 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'
21944 else
21945 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'
21946 fi
21947 aix_use_runtimelinking=no
21948
21949 # Test if we are trying to use run time linking or normal
21950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21951 # need to do runtime linking.
21952 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21953 for ld_flag in $LDFLAGS; do
21954 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21955 aix_use_runtimelinking=yes
21956 break
21957 fi
21958 done
Reid Spencera773bd52006-08-04 18:18:08 +000021959 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021960 esac
21961
21962 exp_sym_flag='-bexport'
21963 no_entry_flag='-bnoentry'
21964 fi
21965
21966 # When large executables or shared objects are built, AIX ld can
21967 # have problems creating the table of contents. If linking a library
21968 # or program results in "error TOC overflow" add -mminimal-toc to
21969 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21970 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21971
21972 archive_cmds_F77=''
21973 hardcode_direct_F77=yes
21974 hardcode_libdir_separator_F77=':'
21975 link_all_deplibs_F77=yes
21976
21977 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021978 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021979 # We only want to do this on AIX 4.2 and lower, the check
21980 # below for broken collect2 doesn't work under 4.3+
21981 collect2name=`${CC} -print-prog-name=collect2`
21982 if test -f "$collect2name" && \
21983 strings "$collect2name" | grep resolve_lib_name >/dev/null
21984 then
21985 # We have reworked collect2
21986 hardcode_direct_F77=yes
21987 else
21988 # We have old collect2
21989 hardcode_direct_F77=unsupported
21990 # It fails to find uninstalled libraries when the uninstalled
21991 # path is not listed in the libpath. Setting hardcode_minus_L
21992 # to unsupported forces relinking
21993 hardcode_minus_L_F77=yes
21994 hardcode_libdir_flag_spec_F77='-L$libdir'
21995 hardcode_libdir_separator_F77=
21996 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021997 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021998 esac
21999 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022000 if test "$aix_use_runtimelinking" = yes; then
22001 shared_flag="$shared_flag "'${wl}-G'
22002 fi
John Criswell47fdd832003-07-14 16:52:07 +000022003 else
22004 # not using gcc
22005 if test "$host_cpu" = ia64; then
22006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22007 # chokes on -Wl,-G. The following line is correct:
22008 shared_flag='-G'
22009 else
Reid Spencera773bd52006-08-04 18:18:08 +000022010 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022011 shared_flag='${wl}-G'
22012 else
22013 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022014 fi
John Criswell47fdd832003-07-14 16:52:07 +000022015 fi
22016 fi
22017
22018 # It seems that -bexpall does not export symbols beginning with
22019 # underscore (_), so it is better to generate a list of symbols to export.
22020 always_export_symbols_F77=yes
22021 if test "$aix_use_runtimelinking" = yes; then
22022 # Warning - without using the other runtime loading flags (-brtl),
22023 # -berok will link without error, but may produce a broken library.
22024 allow_undefined_flag_F77='-berok'
22025 # Determine the default libpath from the value encoded in an empty executable.
22026 cat >conftest.$ac_ext <<_ACEOF
22027 program main
22028
22029 end
22030_ACEOF
22031rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022032if { (ac_try="$ac_link"
22033case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022044 (exit $ac_status); } &&
22045 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22049esac
22050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; } &&
22055 { ac_try='test -s conftest$ac_exeext'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059esac
22060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022065
22066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22067}'`
22068# Check for a 64-bit object if we didn't find anything.
22069if 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; }
22070}'`; fi
22071else
22072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022073sed 's/^/| /' conftest.$ac_ext >&5
22074
Reid Spencera773bd52006-08-04 18:18:08 +000022075
John Criswell47fdd832003-07-14 16:52:07 +000022076fi
Reid Spencera773bd52006-08-04 18:18:08 +000022077
Tanya Lattnercf067672008-01-17 05:57:22 +000022078rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022079 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22081
22082 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022083 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 +000022084 else
22085 if test "$host_cpu" = ia64; then
22086 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22087 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022088 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 +000022089 else
22090 # Determine the default libpath from the value encoded in an empty executable.
22091 cat >conftest.$ac_ext <<_ACEOF
22092 program main
22093
22094 end
22095_ACEOF
22096rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022097if { (ac_try="$ac_link"
22098case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22101esac
22102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022109 (exit $ac_status); } &&
22110 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22111 { (case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22114esac
22115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_try") 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest$ac_exeext'
22121 { (case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124esac
22125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_try") 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022130
22131aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22132}'`
22133# Check for a 64-bit object if we didn't find anything.
22134if 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; }
22135}'`; fi
22136else
22137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022138sed 's/^/| /' conftest.$ac_ext >&5
22139
Reid Spencera773bd52006-08-04 18:18:08 +000022140
John Criswell47fdd832003-07-14 16:52:07 +000022141fi
Reid Spencera773bd52006-08-04 18:18:08 +000022142
Tanya Lattnercf067672008-01-17 05:57:22 +000022143rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022144 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022145if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22146
22147 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22148 # Warning - without using the other run time loading flags,
22149 # -berok will link without error, but may produce a broken library.
22150 no_undefined_flag_F77=' ${wl}-bernotok'
22151 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022152 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022153 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022154 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022155 # This is similar to how AIX traditionally builds its shared libraries.
22156 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 +000022157 fi
22158 fi
22159 ;;
22160
22161 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022162 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 +000022163 hardcode_libdir_flag_spec_F77='-L$libdir'
22164 hardcode_minus_L_F77=yes
22165 # see comment about different semantics on the GNU ld section
22166 ld_shlibs_F77=no
22167 ;;
22168
Reid Spencer2706f8c2004-09-19 23:53:36 +000022169 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022170 export_dynamic_flag_spec_F77=-rdynamic
22171 ;;
22172
22173 cygwin* | mingw* | pw32*)
22174 # When not using gcc, we currently assume that we are using
22175 # Microsoft Visual C++.
22176 # hardcode_libdir_flag_spec is actually meaningless, as there is
22177 # no search path for DLLs.
22178 hardcode_libdir_flag_spec_F77=' '
22179 allow_undefined_flag_F77=unsupported
22180 # Tell ltmain to make .lib files, not .a files.
22181 libext=lib
22182 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022183 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022184 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022185 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 +000022186 # The linker will automatically build a .lib file if we build a DLL.
22187 old_archive_From_new_cmds_F77='true'
22188 # FIXME: Should let the user specify the lib program.
22189 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022190 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022191 enable_shared_with_static_runtimes_F77=yes
22192 ;;
22193
22194 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022195 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022196 rhapsody* | darwin1.[012])
22197 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22198 ;;
22199 *) # Darwin 1.3 on
22200 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22201 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22202 else
22203 case ${MACOSX_DEPLOYMENT_TARGET} in
22204 10.[012])
22205 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22206 ;;
22207 10.*)
22208 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22209 ;;
22210 esac
22211 fi
22212 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022213 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022214 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022215 hardcode_direct_F77=no
22216 hardcode_automatic_F77=yes
22217 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022218 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022219 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022220 if test "$GCC" = yes ; then
22221 output_verbose_link_cmd='echo'
22222 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22223 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022224 # 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 +000022225 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}'
22226 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 +000022227 else
Reid Spencera773bd52006-08-04 18:18:08 +000022228 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022229 xlc*)
22230 output_verbose_link_cmd='echo'
22231 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22232 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022233 # 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 +000022234 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}'
22235 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 +000022236 ;;
22237 *)
22238 ld_shlibs_F77=no
22239 ;;
22240 esac
John Criswell47fdd832003-07-14 16:52:07 +000022241 fi
22242 ;;
22243
22244 dgux*)
22245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22246 hardcode_libdir_flag_spec_F77='-L$libdir'
22247 hardcode_shlibpath_var_F77=no
22248 ;;
22249
22250 freebsd1*)
22251 ld_shlibs_F77=no
22252 ;;
22253
22254 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22255 # support. Future versions do this automatically, but an explicit c++rt0.o
22256 # does not break anything, and helps significantly (at the cost of a little
22257 # extra space).
22258 freebsd2.2*)
22259 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22260 hardcode_libdir_flag_spec_F77='-R$libdir'
22261 hardcode_direct_F77=yes
22262 hardcode_shlibpath_var_F77=no
22263 ;;
22264
22265 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22266 freebsd2*)
22267 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22268 hardcode_direct_F77=yes
22269 hardcode_minus_L_F77=yes
22270 hardcode_shlibpath_var_F77=no
22271 ;;
22272
22273 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022274 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022275 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22276 hardcode_libdir_flag_spec_F77='-R$libdir'
22277 hardcode_direct_F77=yes
22278 hardcode_shlibpath_var_F77=no
22279 ;;
22280
22281 hpux9*)
22282 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022283 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 +000022284 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022285 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 +000022286 fi
22287 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22288 hardcode_libdir_separator_F77=:
22289 hardcode_direct_F77=yes
22290
22291 # hardcode_minus_L: Not really in the search PATH,
22292 # but as the default location of the library.
22293 hardcode_minus_L_F77=yes
22294 export_dynamic_flag_spec_F77='${wl}-E'
22295 ;;
22296
Reid Spencera773bd52006-08-04 18:18:08 +000022297 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022298 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022299 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22300 else
22301 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22302 fi
22303 if test "$with_gnu_ld" = no; then
22304 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22305 hardcode_libdir_separator_F77=:
22306
22307 hardcode_direct_F77=yes
22308 export_dynamic_flag_spec_F77='${wl}-E'
22309
22310 # hardcode_minus_L: Not really in the search PATH,
22311 # but as the default location of the library.
22312 hardcode_minus_L_F77=yes
22313 fi
22314 ;;
22315
22316 hpux11*)
22317 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22318 case $host_cpu in
22319 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022320 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22321 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022322 ia64*)
22323 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22324 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022325 *)
22326 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22327 ;;
22328 esac
22329 else
Reid Spencera773bd52006-08-04 18:18:08 +000022330 case $host_cpu in
22331 hppa*64*)
22332 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22333 ;;
22334 ia64*)
22335 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022336 ;;
22337 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022338 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 +000022339 ;;
22340 esac
22341 fi
22342 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022343 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22344 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022345
Reid Spencera773bd52006-08-04 18:18:08 +000022346 case $host_cpu in
22347 hppa*64*|ia64*)
22348 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22349 hardcode_direct_F77=no
22350 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022351 ;;
22352 *)
John Criswell47fdd832003-07-14 16:52:07 +000022353 hardcode_direct_F77=yes
22354 export_dynamic_flag_spec_F77='${wl}-E'
22355
22356 # hardcode_minus_L: Not really in the search PATH,
22357 # but as the default location of the library.
22358 hardcode_minus_L_F77=yes
22359 ;;
22360 esac
22361 fi
22362 ;;
22363
22364 irix5* | irix6* | nonstopux*)
22365 if test "$GCC" = yes; then
22366 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'
22367 else
22368 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'
22369 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22370 fi
22371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22372 hardcode_libdir_separator_F77=:
22373 link_all_deplibs_F77=yes
22374 ;;
22375
22376 netbsd*)
22377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22378 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22379 else
22380 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22381 fi
22382 hardcode_libdir_flag_spec_F77='-R$libdir'
22383 hardcode_direct_F77=yes
22384 hardcode_shlibpath_var_F77=no
22385 ;;
22386
22387 newsos6)
22388 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22389 hardcode_direct_F77=yes
22390 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22391 hardcode_libdir_separator_F77=:
22392 hardcode_shlibpath_var_F77=no
22393 ;;
22394
22395 openbsd*)
22396 hardcode_direct_F77=yes
22397 hardcode_shlibpath_var_F77=no
22398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022400 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 +000022401 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22402 export_dynamic_flag_spec_F77='${wl}-E'
22403 else
22404 case $host_os in
22405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22406 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22407 hardcode_libdir_flag_spec_F77='-R$libdir'
22408 ;;
22409 *)
22410 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22411 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22412 ;;
22413 esac
22414 fi
22415 ;;
22416
22417 os2*)
22418 hardcode_libdir_flag_spec_F77='-L$libdir'
22419 hardcode_minus_L_F77=yes
22420 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022421 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 +000022422 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22423 ;;
22424
22425 osf3*)
22426 if test "$GCC" = yes; then
22427 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22428 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'
22429 else
22430 allow_undefined_flag_F77=' -expect_unresolved \*'
22431 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'
22432 fi
22433 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22434 hardcode_libdir_separator_F77=:
22435 ;;
22436
22437 osf4* | osf5*) # as osf3* with the addition of -msym flag
22438 if test "$GCC" = yes; then
22439 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22440 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'
22441 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22442 else
22443 allow_undefined_flag_F77=' -expect_unresolved \*'
22444 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 +000022445 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 +000022446 $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 +000022447
John Criswell47fdd832003-07-14 16:52:07 +000022448 # Both c and cxx compiler support -rpath directly
22449 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22450 fi
22451 hardcode_libdir_separator_F77=:
22452 ;;
22453
John Criswell47fdd832003-07-14 16:52:07 +000022454 solaris*)
22455 no_undefined_flag_F77=' -z text'
22456 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022457 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022458 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022459 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22460 $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 +000022461 else
Reid Spencera773bd52006-08-04 18:18:08 +000022462 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022463 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022464 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22465 $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 +000022466 fi
22467 hardcode_libdir_flag_spec_F77='-R$libdir'
22468 hardcode_shlibpath_var_F77=no
22469 case $host_os in
22470 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022471 *)
22472 # The compiler driver will combine linker options so we
22473 # cannot just pass the convience library names through
22474 # without $wl, iff we do not link with $LD.
22475 # Luckily, gcc supports the same syntax we need for Sun Studio.
22476 # Supported since Solaris 2.6 (maybe 2.5.1?)
22477 case $wlarc in
22478 '')
22479 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22480 *)
22481 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' ;;
22482 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022483 esac
22484 link_all_deplibs_F77=yes
22485 ;;
22486
22487 sunos4*)
22488 if test "x$host_vendor" = xsequent; then
22489 # Use $CC to link under sequent, because it throws in some extra .o
22490 # files that make .init and .fini sections work.
22491 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22492 else
22493 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22494 fi
22495 hardcode_libdir_flag_spec_F77='-L$libdir'
22496 hardcode_direct_F77=yes
22497 hardcode_minus_L_F77=yes
22498 hardcode_shlibpath_var_F77=no
22499 ;;
22500
22501 sysv4)
22502 case $host_vendor in
22503 sni)
22504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22505 hardcode_direct_F77=yes # is this really true???
22506 ;;
22507 siemens)
22508 ## LD is ld it makes a PLAMLIB
22509 ## CC just makes a GrossModule.
22510 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22511 reload_cmds_F77='$CC -r -o $output$reload_objs'
22512 hardcode_direct_F77=no
22513 ;;
22514 motorola)
22515 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22516 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22517 ;;
22518 esac
22519 runpath_var='LD_RUN_PATH'
22520 hardcode_shlibpath_var_F77=no
22521 ;;
22522
22523 sysv4.3*)
22524 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22525 hardcode_shlibpath_var_F77=no
22526 export_dynamic_flag_spec_F77='-Bexport'
22527 ;;
22528
22529 sysv4*MP*)
22530 if test -d /usr/nec; then
22531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22532 hardcode_shlibpath_var_F77=no
22533 runpath_var=LD_RUN_PATH
22534 hardcode_runpath_var=yes
22535 ld_shlibs_F77=yes
22536 fi
22537 ;;
22538
Reid Spencera773bd52006-08-04 18:18:08 +000022539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22540 no_undefined_flag_F77='${wl}-z,text'
22541 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022542 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022543 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022544
John Criswell47fdd832003-07-14 16:52:07 +000022545 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022546 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22547 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 +000022548 else
Reid Spencera773bd52006-08-04 18:18:08 +000022549 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22550 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 +000022551 fi
John Criswell47fdd832003-07-14 16:52:07 +000022552 ;;
22553
Reid Spencera773bd52006-08-04 18:18:08 +000022554 sysv5* | sco3.2v5* | sco5v6*)
22555 # Note: We can NOT use -z defs as we might desire, because we do not
22556 # link with -lc, and that would cause any symbols used from libc to
22557 # always be unresolved, which means just about no library would
22558 # ever link correctly. If we're not using GNU ld we use -z text
22559 # though, which does catch some bad symbols but isn't as heavy-handed
22560 # as -z defs.
22561 no_undefined_flag_F77='${wl}-z,text'
22562 allow_undefined_flag_F77='${wl}-z,nodefs'
22563 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022564 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022565 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22566 hardcode_libdir_separator_F77=':'
22567 link_all_deplibs_F77=yes
22568 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022569 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022570
22571 if test "$GCC" = yes; then
22572 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22573 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22574 else
22575 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22576 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22577 fi
John Criswell47fdd832003-07-14 16:52:07 +000022578 ;;
22579
22580 uts4*)
22581 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22582 hardcode_libdir_flag_spec_F77='-L$libdir'
22583 hardcode_shlibpath_var_F77=no
22584 ;;
22585
22586 *)
22587 ld_shlibs_F77=no
22588 ;;
22589 esac
22590 fi
22591
Reid Spencera773bd52006-08-04 18:18:08 +000022592{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22593echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022594test "$ld_shlibs_F77" = no && can_build_shared=no
22595
John Criswell47fdd832003-07-14 16:52:07 +000022596#
22597# Do we need to explicitly link libc?
22598#
22599case "x$archive_cmds_need_lc_F77" in
22600x|xyes)
22601 # Assume -lc should be added
22602 archive_cmds_need_lc_F77=yes
22603
22604 if test "$enable_shared" = yes && test "$GCC" = yes; then
22605 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022606 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022607 # FIXME: we may have to deal with multi-command sequences.
22608 ;;
22609 '$CC '*)
22610 # Test whether the compiler implicitly links with -lc since on some
22611 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22612 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022613 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22614echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022615 $rm conftest*
22616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22617
22618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22619 (eval $ac_compile) 2>&5
22620 ac_status=$?
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } 2>conftest.err; then
22623 soname=conftest
22624 lib=conftest
22625 libobjs=conftest.$ac_objext
22626 deplibs=
22627 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022628 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022629 compiler_flags=-v
22630 linker_flags=-v
22631 verstring=
22632 output_objdir=.
22633 libname=conftest
22634 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22635 allow_undefined_flag_F77=
22636 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22637 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }
22641 then
22642 archive_cmds_need_lc_F77=no
22643 else
22644 archive_cmds_need_lc_F77=yes
22645 fi
22646 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22647 else
22648 cat conftest.err 1>&5
22649 fi
22650 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022651 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22652echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022653 ;;
22654 esac
22655 fi
22656 ;;
22657esac
22658
Reid Spencera773bd52006-08-04 18:18:08 +000022659{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22660echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022661library_names_spec=
22662libname_spec='lib$name'
22663soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022665postinstall_cmds=
22666postuninstall_cmds=
22667finish_cmds=
22668finish_eval=
22669shlibpath_var=
22670shlibpath_overrides_runpath=unknown
22671version_type=none
22672dynamic_linker="$host_os ld.so"
22673sys_lib_dlsearch_path_spec="/lib /usr/lib"
22674if test "$GCC" = yes; then
22675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22676 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22677 # if the path contains ";" then we assume it to be the separator
22678 # otherwise default to the standard path separator (i.e. ":") - it is
22679 # assumed that no part of a normal pathname contains ";" but that should
22680 # okay in the real world where ";" in dirpaths is itself problematic.
22681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22682 else
22683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22684 fi
22685else
22686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22687fi
22688need_lib_prefix=unknown
22689hardcode_into_libs=no
22690
22691# when you set need_version to no, make sure it does not cause -set_version
22692# flags to be left without arguments
22693need_version=unknown
22694
22695case $host_os in
22696aix3*)
22697 version_type=linux
22698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22699 shlibpath_var=LIBPATH
22700
22701 # AIX 3 has no versioning support, so we append a major version to the name.
22702 soname_spec='${libname}${release}${shared_ext}$major'
22703 ;;
22704
22705aix4* | aix5*)
22706 version_type=linux
22707 need_lib_prefix=no
22708 need_version=no
22709 hardcode_into_libs=yes
22710 if test "$host_cpu" = ia64; then
22711 # AIX 5 supports IA64
22712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22713 shlibpath_var=LD_LIBRARY_PATH
22714 else
22715 # With GCC up to 2.95.x, collect2 would create an import file
22716 # for dependence libraries. The import file would start with
22717 # the line `#! .'. This would cause the generated library to
22718 # depend on `.', always an invalid library. This was fixed in
22719 # development snapshots of GCC prior to 3.0.
22720 case $host_os in
22721 aix4 | aix4.[01] | aix4.[01].*)
22722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22723 echo ' yes '
22724 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22725 :
22726 else
22727 can_build_shared=no
22728 fi
22729 ;;
22730 esac
22731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22732 # soname into executable. Probably we can add versioning support to
22733 # collect2, so additional links can be useful in future.
22734 if test "$aix_use_runtimelinking" = yes; then
22735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22736 # instead of lib<name>.a to let people know that these are not
22737 # typical AIX shared libraries.
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 else
22740 # We preserve .a as extension for shared libraries through AIX4.2
22741 # and later when we are not doing run time linking.
22742 library_names_spec='${libname}${release}.a $libname.a'
22743 soname_spec='${libname}${release}${shared_ext}$major'
22744 fi
22745 shlibpath_var=LIBPATH
22746 fi
22747 ;;
22748
22749amigaos*)
22750 library_names_spec='$libname.ixlibrary $libname.a'
22751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022752 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 +000022753 ;;
22754
22755beos*)
22756 library_names_spec='${libname}${shared_ext}'
22757 dynamic_linker="$host_os ld.so"
22758 shlibpath_var=LIBRARY_PATH
22759 ;;
22760
Reid Spencer2706f8c2004-09-19 23:53:36 +000022761bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022762 version_type=linux
22763 need_version=no
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765 soname_spec='${libname}${release}${shared_ext}$major'
22766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22767 shlibpath_var=LD_LIBRARY_PATH
22768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22770 # the default ld.so.conf also contains /usr/contrib/lib and
22771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22772 # libtool to hard-code these into programs
22773 ;;
22774
22775cygwin* | mingw* | pw32*)
22776 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022777 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022778 need_version=no
22779 need_lib_prefix=no
22780
22781 case $GCC,$host_os in
22782 yes,cygwin* | yes,mingw* | yes,pw32*)
22783 library_names_spec='$libname.dll.a'
22784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022785 postinstall_cmds='base_file=`basename \${file}`~
22786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22787 dldir=$destdir/`dirname \$dlpath`~
22788 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022789 $install_prog $dir/$dlname \$dldir/$dlname~
22790 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22792 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022793 $rm \$dlpath'
22794 shlibpath_overrides_runpath=yes
22795
22796 case $host_os in
22797 cygwin*)
22798 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22799 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 +000022800 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022801 ;;
22802 mingw*)
22803 # MinGW DLLs use traditional 'lib' prefix
22804 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22805 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22806 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22807 # It is most probably a Windows format PATH printed by
22808 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22809 # path with ; separators, and with drive letters. We can handle the
22810 # drive letters (cygwin fileutils understands them), so leave them,
22811 # especially as we might pass files found there to a mingw objdump,
22812 # which wouldn't understand a cygwinified path. Ahh.
22813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22814 else
22815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22816 fi
22817 ;;
22818 pw32*)
22819 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022820 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 +000022821 ;;
22822 esac
22823 ;;
22824
22825 *)
22826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22827 ;;
22828 esac
22829 dynamic_linker='Win32 ld.exe'
22830 # FIXME: first we should search . and the directory the executable is in
22831 shlibpath_var=PATH
22832 ;;
22833
22834darwin* | rhapsody*)
22835 dynamic_linker="$host_os dyld"
22836 version_type=darwin
22837 need_lib_prefix=no
22838 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022839 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022840 soname_spec='${libname}${release}${major}$shared_ext'
22841 shlibpath_overrides_runpath=yes
22842 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022843 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022844 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022845 if test "$GCC" = yes; then
22846 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"`
22847 else
22848 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022849 fi
22850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22851 ;;
22852
22853dgux*)
22854 version_type=linux
22855 need_lib_prefix=no
22856 need_version=no
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 ;;
22861
22862freebsd1*)
22863 dynamic_linker=no
22864 ;;
22865
Reid Spencer2706f8c2004-09-19 23:53:36 +000022866kfreebsd*-gnu)
22867 version_type=linux
22868 need_lib_prefix=no
22869 need_version=no
22870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22871 soname_spec='${libname}${release}${shared_ext}$major'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=no
22874 hardcode_into_libs=yes
22875 dynamic_linker='GNU ld.so'
22876 ;;
22877
Reid Spencera773bd52006-08-04 18:18:08 +000022878freebsd* | dragonfly*)
22879 # DragonFly does not have aout. When/if they implement a new
22880 # versioning mechanism, adjust this.
22881 if test -x /usr/bin/objformat; then
22882 objformat=`/usr/bin/objformat`
22883 else
22884 case $host_os in
22885 freebsd[123]*) objformat=aout ;;
22886 *) objformat=elf ;;
22887 esac
22888 fi
John Criswell47fdd832003-07-14 16:52:07 +000022889 version_type=freebsd-$objformat
22890 case $version_type in
22891 freebsd-elf*)
22892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22893 need_version=no
22894 need_lib_prefix=no
22895 ;;
22896 freebsd-*)
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22898 need_version=yes
22899 ;;
22900 esac
22901 shlibpath_var=LD_LIBRARY_PATH
22902 case $host_os in
22903 freebsd2*)
22904 shlibpath_overrides_runpath=yes
22905 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022906 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022907 shlibpath_overrides_runpath=yes
22908 hardcode_into_libs=yes
22909 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022912 shlibpath_overrides_runpath=no
22913 hardcode_into_libs=yes
22914 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022915 freebsd*) # from 4.6 on
22916 shlibpath_overrides_runpath=yes
22917 hardcode_into_libs=yes
22918 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022919 esac
22920 ;;
22921
22922gnu*)
22923 version_type=linux
22924 need_lib_prefix=no
22925 need_version=no
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22929 hardcode_into_libs=yes
22930 ;;
22931
22932hpux9* | hpux10* | hpux11*)
22933 # Give a soname corresponding to the major version so that dld.sl refuses to
22934 # link against other versions.
22935 version_type=sunos
22936 need_lib_prefix=no
22937 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022938 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022939 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022940 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022941 hardcode_into_libs=yes
22942 dynamic_linker="$host_os dld.so"
22943 shlibpath_var=LD_LIBRARY_PATH
22944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22946 soname_spec='${libname}${release}${shared_ext}$major'
22947 if test "X$HPUX_IA64_MODE" = X32; then
22948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22949 else
22950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22951 fi
22952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22953 ;;
22954 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022955 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022956 hardcode_into_libs=yes
22957 dynamic_linker="$host_os dld.sl"
22958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 soname_spec='${libname}${release}${shared_ext}$major'
22962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22964 ;;
22965 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022966 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022967 dynamic_linker="$host_os dld.sl"
22968 shlibpath_var=SHLIB_PATH
22969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22971 soname_spec='${libname}${release}${shared_ext}$major'
22972 ;;
22973 esac
22974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22975 postinstall_cmds='chmod 555 $lib'
22976 ;;
22977
Reid Spencera773bd52006-08-04 18:18:08 +000022978interix3*)
22979 version_type=linux
22980 need_lib_prefix=no
22981 need_version=no
22982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22983 soname_spec='${libname}${release}${shared_ext}$major'
22984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22985 shlibpath_var=LD_LIBRARY_PATH
22986 shlibpath_overrides_runpath=no
22987 hardcode_into_libs=yes
22988 ;;
22989
John Criswell47fdd832003-07-14 16:52:07 +000022990irix5* | irix6* | nonstopux*)
22991 case $host_os in
22992 nonstopux*) version_type=nonstopux ;;
22993 *)
22994 if test "$lt_cv_prog_gnu_ld" = yes; then
22995 version_type=linux
22996 else
22997 version_type=irix
22998 fi ;;
22999 esac
23000 need_lib_prefix=no
23001 need_version=no
23002 soname_spec='${libname}${release}${shared_ext}$major'
23003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23004 case $host_os in
23005 irix5* | nonstopux*)
23006 libsuff= shlibsuff=
23007 ;;
23008 *)
23009 case $LD in # libtool.m4 will add one of these switches to LD
23010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23011 libsuff= shlibsuff= libmagic=32-bit;;
23012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23013 libsuff=32 shlibsuff=N32 libmagic=N32;;
23014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23015 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23016 *) libsuff= shlibsuff= libmagic=never-match;;
23017 esac
23018 ;;
23019 esac
23020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23021 shlibpath_overrides_runpath=no
23022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23024 hardcode_into_libs=yes
23025 ;;
23026
23027# No shared lib support for Linux oldld, aout, or coff.
23028linux*oldld* | linux*aout* | linux*coff*)
23029 dynamic_linker=no
23030 ;;
23031
23032# This must be Linux ELF.
23033linux*)
23034 version_type=linux
23035 need_lib_prefix=no
23036 need_version=no
23037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23038 soname_spec='${libname}${release}${shared_ext}$major'
23039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23040 shlibpath_var=LD_LIBRARY_PATH
23041 shlibpath_overrides_runpath=no
23042 # This implies no fast_install, which is unacceptable.
23043 # Some rework will be needed to allow for fast_install
23044 # before this can be enabled.
23045 hardcode_into_libs=yes
23046
Reid Spencer2706f8c2004-09-19 23:53:36 +000023047 # Append ld.so.conf contents to the search path
23048 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023049 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 +000023050 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23051 fi
23052
John Criswell47fdd832003-07-14 16:52:07 +000023053 # We used to test for /lib/ld.so.1 and disable shared libraries on
23054 # powerpc, because MkLinux only supported shared libraries with the
23055 # GNU dynamic linker. Since this was broken with cross compilers,
23056 # most powerpc-linux boxes support dynamic linking these days and
23057 # people can always --disable-shared, the test was removed, and we
23058 # assume the GNU/Linux dynamic linker is in use.
23059 dynamic_linker='GNU/Linux ld.so'
23060 ;;
23061
Reid Spencer2706f8c2004-09-19 23:53:36 +000023062knetbsd*-gnu)
23063 version_type=linux
23064 need_lib_prefix=no
23065 need_version=no
23066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23067 soname_spec='${libname}${release}${shared_ext}$major'
23068 shlibpath_var=LD_LIBRARY_PATH
23069 shlibpath_overrides_runpath=no
23070 hardcode_into_libs=yes
23071 dynamic_linker='GNU ld.so'
23072 ;;
23073
John Criswell47fdd832003-07-14 16:52:07 +000023074netbsd*)
23075 version_type=sunos
23076 need_lib_prefix=no
23077 need_version=no
23078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23081 dynamic_linker='NetBSD (a.out) ld.so'
23082 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023084 soname_spec='${libname}${release}${shared_ext}$major'
23085 dynamic_linker='NetBSD ld.elf_so'
23086 fi
23087 shlibpath_var=LD_LIBRARY_PATH
23088 shlibpath_overrides_runpath=yes
23089 hardcode_into_libs=yes
23090 ;;
23091
23092newsos6)
23093 version_type=linux
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=yes
23097 ;;
23098
Reid Spencer2706f8c2004-09-19 23:53:36 +000023099nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023100 version_type=linux
23101 need_lib_prefix=no
23102 need_version=no
23103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23104 soname_spec='${libname}${release}${shared_ext}$major'
23105 shlibpath_var=LD_LIBRARY_PATH
23106 shlibpath_overrides_runpath=yes
23107 ;;
23108
23109openbsd*)
23110 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023111 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023112 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23114 case $host_os in
23115 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23116 *) need_version=no ;;
23117 esac
John Criswell47fdd832003-07-14 16:52:07 +000023118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23120 shlibpath_var=LD_LIBRARY_PATH
23121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23122 case $host_os in
23123 openbsd2.[89] | openbsd2.[89].*)
23124 shlibpath_overrides_runpath=no
23125 ;;
23126 *)
23127 shlibpath_overrides_runpath=yes
23128 ;;
23129 esac
23130 else
23131 shlibpath_overrides_runpath=yes
23132 fi
23133 ;;
23134
23135os2*)
23136 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023137 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023138 need_lib_prefix=no
23139 library_names_spec='$libname${shared_ext} $libname.a'
23140 dynamic_linker='OS/2 ld.exe'
23141 shlibpath_var=LIBPATH
23142 ;;
23143
23144osf3* | osf4* | osf5*)
23145 version_type=osf
23146 need_lib_prefix=no
23147 need_version=no
23148 soname_spec='${libname}${release}${shared_ext}$major'
23149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23153 ;;
23154
John Criswell47fdd832003-07-14 16:52:07 +000023155solaris*)
23156 version_type=linux
23157 need_lib_prefix=no
23158 need_version=no
23159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23160 soname_spec='${libname}${release}${shared_ext}$major'
23161 shlibpath_var=LD_LIBRARY_PATH
23162 shlibpath_overrides_runpath=yes
23163 hardcode_into_libs=yes
23164 # ldd complains unless libraries are executable
23165 postinstall_cmds='chmod +x $lib'
23166 ;;
23167
23168sunos4*)
23169 version_type=sunos
23170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23172 shlibpath_var=LD_LIBRARY_PATH
23173 shlibpath_overrides_runpath=yes
23174 if test "$with_gnu_ld" = yes; then
23175 need_lib_prefix=no
23176 fi
23177 need_version=yes
23178 ;;
23179
Reid Spencera773bd52006-08-04 18:18:08 +000023180sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023181 version_type=linux
23182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183 soname_spec='${libname}${release}${shared_ext}$major'
23184 shlibpath_var=LD_LIBRARY_PATH
23185 case $host_vendor in
23186 sni)
23187 shlibpath_overrides_runpath=no
23188 need_lib_prefix=no
23189 export_dynamic_flag_spec='${wl}-Blargedynsym'
23190 runpath_var=LD_RUN_PATH
23191 ;;
23192 siemens)
23193 need_lib_prefix=no
23194 ;;
23195 motorola)
23196 need_lib_prefix=no
23197 need_version=no
23198 shlibpath_overrides_runpath=no
23199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23200 ;;
23201 esac
23202 ;;
23203
23204sysv4*MP*)
23205 if test -d /usr/nec ;then
23206 version_type=linux
23207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23208 soname_spec='$libname${shared_ext}.$major'
23209 shlibpath_var=LD_LIBRARY_PATH
23210 fi
23211 ;;
23212
Reid Spencera773bd52006-08-04 18:18:08 +000023213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23214 version_type=freebsd-elf
23215 need_lib_prefix=no
23216 need_version=no
23217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23218 soname_spec='${libname}${release}${shared_ext}$major'
23219 shlibpath_var=LD_LIBRARY_PATH
23220 hardcode_into_libs=yes
23221 if test "$with_gnu_ld" = yes; then
23222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23223 shlibpath_overrides_runpath=no
23224 else
23225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23226 shlibpath_overrides_runpath=yes
23227 case $host_os in
23228 sco3.2v5*)
23229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23230 ;;
23231 esac
23232 fi
23233 sys_lib_dlsearch_path_spec='/usr/lib'
23234 ;;
23235
John Criswell47fdd832003-07-14 16:52:07 +000023236uts4*)
23237 version_type=linux
23238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23239 soname_spec='${libname}${release}${shared_ext}$major'
23240 shlibpath_var=LD_LIBRARY_PATH
23241 ;;
23242
23243*)
23244 dynamic_linker=no
23245 ;;
23246esac
Reid Spencera773bd52006-08-04 18:18:08 +000023247{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23248echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023249test "$dynamic_linker" = no && can_build_shared=no
23250
Reid Spencera773bd52006-08-04 18:18:08 +000023251variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23252if test "$GCC" = yes; then
23253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23254fi
23255
23256{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23257echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258hardcode_action_F77=
23259if test -n "$hardcode_libdir_flag_spec_F77" || \
23260 test -n "$runpath_var_F77" || \
23261 test "X$hardcode_automatic_F77" = "Xyes" ; then
23262
23263 # We can hardcode non-existant directories.
23264 if test "$hardcode_direct_F77" != no &&
23265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23266 # have to relink, otherwise we might link with an installed library
23267 # when we should be linking with a yet-to-be-installed one
23268 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23269 test "$hardcode_minus_L_F77" != no; then
23270 # Linking always hardcodes the temporary library directory.
23271 hardcode_action_F77=relink
23272 else
23273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23274 hardcode_action_F77=immediate
23275 fi
23276else
23277 # We cannot hardcode anything, or else we can only hardcode existing
23278 # directories.
23279 hardcode_action_F77=unsupported
23280fi
Reid Spencera773bd52006-08-04 18:18:08 +000023281{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23282echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023283
23284if test "$hardcode_action_F77" = relink; then
23285 # Fast installation is not supported
23286 enable_fast_install=no
23287elif test "$shlibpath_overrides_runpath" = yes ||
23288 test "$enable_shared" = no; then
23289 # Fast installation is not necessary
23290 enable_fast_install=needless
23291fi
23292
John Criswell47fdd832003-07-14 16:52:07 +000023293
23294# The else clause should only fire when bootstrapping the
23295# libtool distribution, otherwise you forgot to ship ltmain.sh
23296# with your package, and you will get complaints that there are
23297# no rules to generate ltmain.sh.
23298if test -f "$ltmain"; then
23299 # See if we are running on zsh, and set the options which allow our commands through
23300 # without removal of \ escapes.
23301 if test -n "${ZSH_VERSION+set}" ; then
23302 setopt NO_GLOB_SUBST
23303 fi
23304 # Now quote all the things that may contain metacharacters while being
23305 # careful not to overquote the AC_SUBSTed values. We take copies of the
23306 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023307 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 +000023308 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023309 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23310 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23311 deplibs_check_method reload_flag reload_cmds need_locks \
23312 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23313 lt_cv_sys_global_symbol_to_c_name_address \
23314 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23315 old_postinstall_cmds old_postuninstall_cmds \
23316 compiler_F77 \
23317 CC_F77 \
23318 LD_F77 \
23319 lt_prog_compiler_wl_F77 \
23320 lt_prog_compiler_pic_F77 \
23321 lt_prog_compiler_static_F77 \
23322 lt_prog_compiler_no_builtin_flag_F77 \
23323 export_dynamic_flag_spec_F77 \
23324 thread_safe_flag_spec_F77 \
23325 whole_archive_flag_spec_F77 \
23326 enable_shared_with_static_runtimes_F77 \
23327 old_archive_cmds_F77 \
23328 old_archive_from_new_cmds_F77 \
23329 predep_objects_F77 \
23330 postdep_objects_F77 \
23331 predeps_F77 \
23332 postdeps_F77 \
23333 compiler_lib_search_path_F77 \
23334 archive_cmds_F77 \
23335 archive_expsym_cmds_F77 \
23336 postinstall_cmds_F77 \
23337 postuninstall_cmds_F77 \
23338 old_archive_from_expsyms_cmds_F77 \
23339 allow_undefined_flag_F77 \
23340 no_undefined_flag_F77 \
23341 export_symbols_cmds_F77 \
23342 hardcode_libdir_flag_spec_F77 \
23343 hardcode_libdir_flag_spec_ld_F77 \
23344 hardcode_libdir_separator_F77 \
23345 hardcode_automatic_F77 \
23346 module_cmds_F77 \
23347 module_expsym_cmds_F77 \
23348 lt_cv_prog_compiler_c_o_F77 \
23349 exclude_expsyms_F77 \
23350 include_expsyms_F77; do
23351
23352 case $var in
23353 old_archive_cmds_F77 | \
23354 old_archive_from_new_cmds_F77 | \
23355 archive_cmds_F77 | \
23356 archive_expsym_cmds_F77 | \
23357 module_cmds_F77 | \
23358 module_expsym_cmds_F77 | \
23359 old_archive_from_expsyms_cmds_F77 | \
23360 export_symbols_cmds_F77 | \
23361 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23362 postinstall_cmds | postuninstall_cmds | \
23363 old_postinstall_cmds | old_postuninstall_cmds | \
23364 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23365 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023366 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 +000023367 ;;
23368 *)
23369 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23370 ;;
23371 esac
23372 done
23373
23374 case $lt_echo in
23375 *'\$0 --fallback-echo"')
23376 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23377 ;;
23378 esac
23379
23380cfgfile="$ofile"
23381
23382 cat <<__EOF__ >> "$cfgfile"
23383# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23384
23385# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23386
23387# Shell to use when invoking shell scripts.
23388SHELL=$lt_SHELL
23389
23390# Whether or not to build shared libraries.
23391build_libtool_libs=$enable_shared
23392
23393# Whether or not to build static libraries.
23394build_old_libs=$enable_static
23395
23396# Whether or not to add -lc for building shared libraries.
23397build_libtool_need_lc=$archive_cmds_need_lc_F77
23398
23399# Whether or not to disallow shared libs when runtime libs are static
23400allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23401
23402# Whether or not to optimize for fast installation.
23403fast_install=$enable_fast_install
23404
23405# The host system.
23406host_alias=$host_alias
23407host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023408host_os=$host_os
23409
23410# The build system.
23411build_alias=$build_alias
23412build=$build
23413build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023414
23415# An echo program that does not interpret backslashes.
23416echo=$lt_echo
23417
23418# The archiver.
23419AR=$lt_AR
23420AR_FLAGS=$lt_AR_FLAGS
23421
23422# A C compiler.
23423LTCC=$lt_LTCC
23424
Reid Spencera773bd52006-08-04 18:18:08 +000023425# LTCC compiler flags.
23426LTCFLAGS=$lt_LTCFLAGS
23427
John Criswell47fdd832003-07-14 16:52:07 +000023428# A language-specific compiler.
23429CC=$lt_compiler_F77
23430
23431# Is the compiler the GNU C compiler?
23432with_gcc=$GCC_F77
23433
23434# An ERE matcher.
23435EGREP=$lt_EGREP
23436
23437# The linker used to build libraries.
23438LD=$lt_LD_F77
23439
23440# Whether we need hard or soft links.
23441LN_S=$lt_LN_S
23442
23443# A BSD-compatible nm program.
23444NM=$lt_NM
23445
23446# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023447STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023448
23449# Used to examine libraries when file_magic_cmd begins "file"
23450MAGIC_CMD=$MAGIC_CMD
23451
23452# Used on cygwin: DLL creation program.
23453DLLTOOL="$DLLTOOL"
23454
23455# Used on cygwin: object dumper.
23456OBJDUMP="$OBJDUMP"
23457
23458# Used on cygwin: assembler.
23459AS="$AS"
23460
23461# The name of the directory that contains temporary libtool files.
23462objdir=$objdir
23463
23464# How to create reloadable object files.
23465reload_flag=$lt_reload_flag
23466reload_cmds=$lt_reload_cmds
23467
23468# How to pass a linker flag through the compiler.
23469wl=$lt_lt_prog_compiler_wl_F77
23470
23471# Object file suffix (normally "o").
23472objext="$ac_objext"
23473
23474# Old archive suffix (normally "a").
23475libext="$libext"
23476
23477# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023478shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023479
23480# Executable file suffix (normally "").
23481exeext="$exeext"
23482
23483# Additional compiler flags for building library objects.
23484pic_flag=$lt_lt_prog_compiler_pic_F77
23485pic_mode=$pic_mode
23486
23487# What is the maximum length of a command?
23488max_cmd_len=$lt_cv_sys_max_cmd_len
23489
23490# Does compiler simultaneously support -c and -o options?
23491compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23492
Reid Spencera773bd52006-08-04 18:18:08 +000023493# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023494need_locks=$lt_need_locks
23495
23496# Do we need the lib prefix for modules?
23497need_lib_prefix=$need_lib_prefix
23498
23499# Do we need a version for libraries?
23500need_version=$need_version
23501
23502# Whether dlopen is supported.
23503dlopen_support=$enable_dlopen
23504
23505# Whether dlopen of programs is supported.
23506dlopen_self=$enable_dlopen_self
23507
23508# Whether dlopen of statically linked programs is supported.
23509dlopen_self_static=$enable_dlopen_self_static
23510
23511# Compiler flag to prevent dynamic linking.
23512link_static_flag=$lt_lt_prog_compiler_static_F77
23513
23514# Compiler flag to turn off builtin functions.
23515no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23516
23517# Compiler flag to allow reflexive dlopens.
23518export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23519
23520# Compiler flag to generate shared objects directly from archives.
23521whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23522
23523# Compiler flag to generate thread-safe objects.
23524thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23525
23526# Library versioning type.
23527version_type=$version_type
23528
23529# Format of library name prefix.
23530libname_spec=$lt_libname_spec
23531
23532# List of archive names. First name is the real one, the rest are links.
23533# The last name is the one that the linker finds with -lNAME.
23534library_names_spec=$lt_library_names_spec
23535
23536# The coded name of the library, if different from the real name.
23537soname_spec=$lt_soname_spec
23538
23539# Commands used to build and install an old-style archive.
23540RANLIB=$lt_RANLIB
23541old_archive_cmds=$lt_old_archive_cmds_F77
23542old_postinstall_cmds=$lt_old_postinstall_cmds
23543old_postuninstall_cmds=$lt_old_postuninstall_cmds
23544
23545# Create an old-style archive from a shared archive.
23546old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23547
23548# Create a temporary old-style archive to link instead of a shared archive.
23549old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23550
23551# Commands used to build and install a shared archive.
23552archive_cmds=$lt_archive_cmds_F77
23553archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23554postinstall_cmds=$lt_postinstall_cmds
23555postuninstall_cmds=$lt_postuninstall_cmds
23556
23557# Commands used to build a loadable module (assumed same as above if empty)
23558module_cmds=$lt_module_cmds_F77
23559module_expsym_cmds=$lt_module_expsym_cmds_F77
23560
23561# Commands to strip libraries.
23562old_striplib=$lt_old_striplib
23563striplib=$lt_striplib
23564
23565# Dependencies to place before the objects being linked to create a
23566# shared library.
23567predep_objects=$lt_predep_objects_F77
23568
23569# Dependencies to place after the objects being linked to create a
23570# shared library.
23571postdep_objects=$lt_postdep_objects_F77
23572
23573# Dependencies to place before the objects being linked to create a
23574# shared library.
23575predeps=$lt_predeps_F77
23576
23577# Dependencies to place after the objects being linked to create a
23578# shared library.
23579postdeps=$lt_postdeps_F77
23580
23581# The library search path used internally by the compiler when linking
23582# a shared library.
23583compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23584
23585# Method to check whether dependent libraries are shared objects.
23586deplibs_check_method=$lt_deplibs_check_method
23587
23588# Command to use when deplibs_check_method == file_magic.
23589file_magic_cmd=$lt_file_magic_cmd
23590
23591# Flag that allows shared libraries with undefined symbols to be built.
23592allow_undefined_flag=$lt_allow_undefined_flag_F77
23593
23594# Flag that forces no undefined symbols.
23595no_undefined_flag=$lt_no_undefined_flag_F77
23596
23597# Commands used to finish a libtool library installation in a directory.
23598finish_cmds=$lt_finish_cmds
23599
23600# Same as above, but a single script fragment to be evaled but not shown.
23601finish_eval=$lt_finish_eval
23602
23603# Take the output of nm and produce a listing of raw symbols and C names.
23604global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23605
23606# Transform the output of nm in a proper C declaration
23607global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23608
23609# Transform the output of nm in a C name address pair
23610global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23611
23612# This is the shared library runtime path variable.
23613runpath_var=$runpath_var
23614
23615# This is the shared library path variable.
23616shlibpath_var=$shlibpath_var
23617
23618# Is shlibpath searched before the hard-coded library search path?
23619shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23620
23621# How to hardcode a shared library path into an executable.
23622hardcode_action=$hardcode_action_F77
23623
23624# Whether we should hardcode library paths into libraries.
23625hardcode_into_libs=$hardcode_into_libs
23626
23627# Flag to hardcode \$libdir into a binary during linking.
23628# This must work even if \$libdir does not exist.
23629hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23630
23631# If ld is used when linking, flag to hardcode \$libdir into
23632# a binary during linking. This must work even if \$libdir does
23633# not exist.
23634hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23635
23636# Whether we need a single -rpath flag with a separated argument.
23637hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23638
23639# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23640# resulting binary.
23641hardcode_direct=$hardcode_direct_F77
23642
23643# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23644# resulting binary.
23645hardcode_minus_L=$hardcode_minus_L_F77
23646
23647# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23648# the resulting binary.
23649hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23650
23651# Set to yes if building a shared library automatically hardcodes DIR into the library
23652# and all subsequent libraries and executables linked against it.
23653hardcode_automatic=$hardcode_automatic_F77
23654
23655# Variables whose values should be saved in libtool wrapper scripts and
23656# restored at relink time.
23657variables_saved_for_relink="$variables_saved_for_relink"
23658
23659# Whether libtool must link a program against all its dependency libraries.
23660link_all_deplibs=$link_all_deplibs_F77
23661
23662# Compile-time system search path for libraries
23663sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23664
23665# Run-time system search path for libraries
23666sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23667
23668# Fix the shell variable \$srcfile for the compiler.
23669fix_srcfile_path="$fix_srcfile_path_F77"
23670
23671# Set to yes if exported symbols are required.
23672always_export_symbols=$always_export_symbols_F77
23673
23674# The commands to list exported symbols.
23675export_symbols_cmds=$lt_export_symbols_cmds_F77
23676
23677# The commands to extract the exported symbol list from a shared archive.
23678extract_expsyms_cmds=$lt_extract_expsyms_cmds
23679
23680# Symbols that should not be listed in the preloaded symbols.
23681exclude_expsyms=$lt_exclude_expsyms_F77
23682
23683# Symbols that must always be exported.
23684include_expsyms=$lt_include_expsyms_F77
23685
23686# ### END LIBTOOL TAG CONFIG: $tagname
23687
23688__EOF__
23689
23690
23691else
23692 # If there is no Makefile yet, we rely on a make rule to execute
23693 # `config.status --recheck' to rerun these tests and create the
23694 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023695 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23696 if test -f "$ltmain_in"; then
23697 test -f Makefile && make "$ltmain"
23698 fi
John Criswell47fdd832003-07-14 16:52:07 +000023699fi
23700
23701
23702ac_ext=c
23703ac_cpp='$CPP $CPPFLAGS'
23704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23706ac_compiler_gnu=$ac_cv_c_compiler_gnu
23707
23708CC="$lt_save_CC"
23709
23710 else
23711 tagname=""
23712 fi
23713 ;;
23714
23715 GCJ)
23716 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023717 ac_ext=c
23718ac_cpp='$CPP $CPPFLAGS'
23719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23721ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023722
23723
23724# Source file extension for Java test sources.
23725ac_ext=java
23726
23727# Object file extension for compiled Java test sources.
23728objext=o
23729objext_GCJ=$objext
23730
23731# Code to be used in simple compile tests
23732lt_simple_compile_test_code="class foo {}\n"
23733
23734# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023735lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023736
23737# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23738
23739# If no C compiler was specified, use CC.
23740LTCC=${LTCC-"$CC"}
23741
Reid Spencera773bd52006-08-04 18:18:08 +000023742# If no C compiler flags were specified, use CFLAGS.
23743LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23744
John Criswell47fdd832003-07-14 16:52:07 +000023745# Allow CC to be a program name with arguments.
23746compiler=$CC
23747
23748
Reid Spencera773bd52006-08-04 18:18:08 +000023749# save warnings/boilerplate of simple test code
23750ac_outfile=conftest.$ac_objext
23751printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23752eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23753_lt_compiler_boilerplate=`cat conftest.err`
23754$rm conftest*
23755
23756ac_outfile=conftest.$ac_objext
23757printf "$lt_simple_link_test_code" >conftest.$ac_ext
23758eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23759_lt_linker_boilerplate=`cat conftest.err`
23760$rm conftest*
23761
23762
John Criswell47fdd832003-07-14 16:52:07 +000023763# Allow CC to be a program name with arguments.
23764lt_save_CC="$CC"
23765CC=${GCJ-"gcj"}
23766compiler=$CC
23767compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023768for cc_temp in $compiler""; do
23769 case $cc_temp in
23770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23772 \-*) ;;
23773 *) break;;
23774 esac
23775done
23776cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23777
John Criswell47fdd832003-07-14 16:52:07 +000023778
23779# GCJ did not exist at the time GCC didn't implicitly link libc in.
23780archive_cmds_need_lc_GCJ=no
23781
Reid Spencera773bd52006-08-04 18:18:08 +000023782old_archive_cmds_GCJ=$old_archive_cmds
23783
John Criswell47fdd832003-07-14 16:52:07 +000023784
23785lt_prog_compiler_no_builtin_flag_GCJ=
23786
23787if test "$GCC" = yes; then
23788 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23789
Reid Spencer2706f8c2004-09-19 23:53:36 +000023790
Reid Spencera773bd52006-08-04 18:18:08 +000023791{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23792echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023793if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23794 echo $ECHO_N "(cached) $ECHO_C" >&6
23795else
23796 lt_cv_prog_compiler_rtti_exceptions=no
23797 ac_outfile=conftest.$ac_objext
23798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23799 lt_compiler_flag="-fno-rtti -fno-exceptions"
23800 # Insert the option either (1) after the last *FLAGS variable, or
23801 # (2) before a word containing "conftest.", or (3) at the end.
23802 # Note that $ac_compile itself does not contain backslashes and begins
23803 # with a dollar sign (not a hyphen), so the echo should work correctly.
23804 # The option is referenced via a variable to avoid confusing sed.
23805 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23808 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000023809 (eval echo "\"\$as_me:23806: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023810 (eval "$lt_compile" 2>conftest.err)
23811 ac_status=$?
23812 cat conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000023813 echo "$as_me:23810: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023814 if (exit $ac_status) && test -s "$ac_outfile"; then
23815 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023816 # So say no if there are warnings other than the usual output.
23817 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023820 lt_cv_prog_compiler_rtti_exceptions=yes
23821 fi
23822 fi
23823 $rm conftest*
23824
23825fi
Reid Spencera773bd52006-08-04 18:18:08 +000023826{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23827echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023828
23829if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23830 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23831else
23832 :
23833fi
23834
23835fi
23836
23837lt_prog_compiler_wl_GCJ=
23838lt_prog_compiler_pic_GCJ=
23839lt_prog_compiler_static_GCJ=
23840
Reid Spencera773bd52006-08-04 18:18:08 +000023841{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23842echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023843
23844 if test "$GCC" = yes; then
23845 lt_prog_compiler_wl_GCJ='-Wl,'
23846 lt_prog_compiler_static_GCJ='-static'
23847
23848 case $host_os in
23849 aix*)
23850 # All AIX code is PIC.
23851 if test "$host_cpu" = ia64; then
23852 # AIX 5 now supports IA64 processor
23853 lt_prog_compiler_static_GCJ='-Bstatic'
23854 fi
23855 ;;
23856
23857 amigaos*)
23858 # FIXME: we need at least 68020 code to build shared libraries, but
23859 # adding the `-m68020' flag to GCC prevents building anything better,
23860 # like `-m68040'.
23861 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23862 ;;
23863
23864 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23865 # PIC is the default for these OSes.
23866 ;;
23867
23868 mingw* | pw32* | os2*)
23869 # This hack is so that the source file can tell whether it is being
23870 # built for inclusion in a dll (and should export symbols for example).
23871 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23872 ;;
23873
23874 darwin* | rhapsody*)
23875 # PIC is the default on this platform
23876 # Common symbols not allowed in MH_DYLIB files
23877 lt_prog_compiler_pic_GCJ='-fno-common'
23878 ;;
23879
Reid Spencera773bd52006-08-04 18:18:08 +000023880 interix3*)
23881 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23882 # Instead, we relocate shared libraries at runtime.
23883 ;;
23884
John Criswell47fdd832003-07-14 16:52:07 +000023885 msdosdjgpp*)
23886 # Just because we use GCC doesn't mean we suddenly get shared libraries
23887 # on systems that don't support them.
23888 lt_prog_compiler_can_build_shared_GCJ=no
23889 enable_shared=no
23890 ;;
23891
23892 sysv4*MP*)
23893 if test -d /usr/nec; then
23894 lt_prog_compiler_pic_GCJ=-Kconform_pic
23895 fi
23896 ;;
23897
23898 hpux*)
23899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23900 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023901 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023902 hppa*64*|ia64*)
23903 # +Z the default
23904 ;;
23905 *)
23906 lt_prog_compiler_pic_GCJ='-fPIC'
23907 ;;
23908 esac
23909 ;;
23910
23911 *)
23912 lt_prog_compiler_pic_GCJ='-fPIC'
23913 ;;
23914 esac
23915 else
23916 # PORTME Check for flag to pass linker flags through the system compiler.
23917 case $host_os in
23918 aix*)
23919 lt_prog_compiler_wl_GCJ='-Wl,'
23920 if test "$host_cpu" = ia64; then
23921 # AIX 5 now supports IA64 processor
23922 lt_prog_compiler_static_GCJ='-Bstatic'
23923 else
23924 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23925 fi
23926 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023927 darwin*)
23928 # PIC is the default on this platform
23929 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023930 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023931 xlc*)
23932 lt_prog_compiler_pic_GCJ='-qnocommon'
23933 lt_prog_compiler_wl_GCJ='-Wl,'
23934 ;;
23935 esac
23936 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023937
23938 mingw* | pw32* | os2*)
23939 # This hack is so that the source file can tell whether it is being
23940 # built for inclusion in a dll (and should export symbols for example).
23941 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23942 ;;
23943
23944 hpux9* | hpux10* | hpux11*)
23945 lt_prog_compiler_wl_GCJ='-Wl,'
23946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23947 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023948 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023949 hppa*64*|ia64*)
23950 # +Z the default
23951 ;;
23952 *)
23953 lt_prog_compiler_pic_GCJ='+Z'
23954 ;;
23955 esac
23956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23957 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23958 ;;
23959
23960 irix5* | irix6* | nonstopux*)
23961 lt_prog_compiler_wl_GCJ='-Wl,'
23962 # PIC (with -KPIC) is the default.
23963 lt_prog_compiler_static_GCJ='-non_shared'
23964 ;;
23965
23966 newsos6)
23967 lt_prog_compiler_pic_GCJ='-KPIC'
23968 lt_prog_compiler_static_GCJ='-Bstatic'
23969 ;;
23970
23971 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023972 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023973 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023974 lt_prog_compiler_wl_GCJ='-Wl,'
23975 lt_prog_compiler_pic_GCJ='-KPIC'
23976 lt_prog_compiler_static_GCJ='-static'
23977 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023978 pgcc* | pgf77* | pgf90* | pgf95*)
23979 # Portland Group compilers (*not* the Pentium gcc compiler,
23980 # which looks to be a dead project)
23981 lt_prog_compiler_wl_GCJ='-Wl,'
23982 lt_prog_compiler_pic_GCJ='-fpic'
23983 lt_prog_compiler_static_GCJ='-Bstatic'
23984 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023985 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023986 lt_prog_compiler_wl_GCJ='-Wl,'
23987 # All Alpha code is PIC.
23988 lt_prog_compiler_static_GCJ='-non_shared'
23989 ;;
23990 esac
23991 ;;
23992
23993 osf3* | osf4* | osf5*)
23994 lt_prog_compiler_wl_GCJ='-Wl,'
23995 # All OSF/1 code is PIC.
23996 lt_prog_compiler_static_GCJ='-non_shared'
23997 ;;
23998
John Criswell47fdd832003-07-14 16:52:07 +000023999 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024000 lt_prog_compiler_pic_GCJ='-KPIC'
24001 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024002 case $cc_basename in
24003 f77* | f90* | f95*)
24004 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24005 *)
24006 lt_prog_compiler_wl_GCJ='-Wl,';;
24007 esac
John Criswell47fdd832003-07-14 16:52:07 +000024008 ;;
24009
24010 sunos4*)
24011 lt_prog_compiler_wl_GCJ='-Qoption ld '
24012 lt_prog_compiler_pic_GCJ='-PIC'
24013 lt_prog_compiler_static_GCJ='-Bstatic'
24014 ;;
24015
Reid Spencera773bd52006-08-04 18:18:08 +000024016 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024017 lt_prog_compiler_wl_GCJ='-Wl,'
24018 lt_prog_compiler_pic_GCJ='-KPIC'
24019 lt_prog_compiler_static_GCJ='-Bstatic'
24020 ;;
24021
24022 sysv4*MP*)
24023 if test -d /usr/nec ;then
24024 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24025 lt_prog_compiler_static_GCJ='-Bstatic'
24026 fi
24027 ;;
24028
Reid Spencera773bd52006-08-04 18:18:08 +000024029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24030 lt_prog_compiler_wl_GCJ='-Wl,'
24031 lt_prog_compiler_pic_GCJ='-KPIC'
24032 lt_prog_compiler_static_GCJ='-Bstatic'
24033 ;;
24034
24035 unicos*)
24036 lt_prog_compiler_wl_GCJ='-Wl,'
24037 lt_prog_compiler_can_build_shared_GCJ=no
24038 ;;
24039
John Criswell47fdd832003-07-14 16:52:07 +000024040 uts4*)
24041 lt_prog_compiler_pic_GCJ='-pic'
24042 lt_prog_compiler_static_GCJ='-Bstatic'
24043 ;;
24044
24045 *)
24046 lt_prog_compiler_can_build_shared_GCJ=no
24047 ;;
24048 esac
24049 fi
24050
Reid Spencera773bd52006-08-04 18:18:08 +000024051{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24052echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024053
24054#
24055# Check to make sure the PIC flag actually works.
24056#
24057if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024058
Reid Spencera773bd52006-08-04 18:18:08 +000024059{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24060echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024061if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24062 echo $ECHO_N "(cached) $ECHO_C" >&6
24063else
24064 lt_prog_compiler_pic_works_GCJ=no
24065 ac_outfile=conftest.$ac_objext
24066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24067 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24068 # Insert the option either (1) after the last *FLAGS variable, or
24069 # (2) before a word containing "conftest.", or (3) at the end.
24070 # Note that $ac_compile itself does not contain backslashes and begins
24071 # with a dollar sign (not a hyphen), so the echo should work correctly.
24072 # The option is referenced via a variable to avoid confusing sed.
24073 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24076 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000024077 (eval echo "\"\$as_me:24074: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024078 (eval "$lt_compile" 2>conftest.err)
24079 ac_status=$?
24080 cat conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000024081 echo "$as_me:24078: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024082 if (exit $ac_status) && test -s "$ac_outfile"; then
24083 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024084 # So say no if there are warnings other than the usual output.
24085 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024088 lt_prog_compiler_pic_works_GCJ=yes
24089 fi
24090 fi
24091 $rm conftest*
24092
24093fi
Reid Spencera773bd52006-08-04 18:18:08 +000024094{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24095echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024096
24097if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24098 case $lt_prog_compiler_pic_GCJ in
24099 "" | " "*) ;;
24100 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24101 esac
24102else
24103 lt_prog_compiler_pic_GCJ=
24104 lt_prog_compiler_can_build_shared_GCJ=no
24105fi
24106
24107fi
Reid Spencera773bd52006-08-04 18:18:08 +000024108case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024109 # For platforms which do not support PIC, -DPIC is meaningless:
24110 *djgpp*)
24111 lt_prog_compiler_pic_GCJ=
24112 ;;
24113 *)
24114 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24115 ;;
24116esac
24117
Reid Spencera773bd52006-08-04 18:18:08 +000024118#
24119# Check to make sure the static flag actually works.
24120#
24121wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24122{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24123echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24124if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24126else
24127 lt_prog_compiler_static_works_GCJ=no
24128 save_LDFLAGS="$LDFLAGS"
24129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24130 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24132 # The linker can only warn and ignore the option if not recognized
24133 # So say no if there are warnings
24134 if test -s conftest.err; then
24135 # Append any errors to the config.log.
24136 cat conftest.err 1>&5
24137 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24139 if diff conftest.exp conftest.er2 >/dev/null; then
24140 lt_prog_compiler_static_works_GCJ=yes
24141 fi
24142 else
24143 lt_prog_compiler_static_works_GCJ=yes
24144 fi
24145 fi
24146 $rm conftest*
24147 LDFLAGS="$save_LDFLAGS"
24148
24149fi
24150{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24151echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24152
24153if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24154 :
24155else
24156 lt_prog_compiler_static_GCJ=
24157fi
24158
24159
24160{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24161echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024162if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24164else
24165 lt_cv_prog_compiler_c_o_GCJ=no
24166 $rm -r conftest 2>/dev/null
24167 mkdir conftest
24168 cd conftest
24169 mkdir out
24170 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24171
John Criswell47fdd832003-07-14 16:52:07 +000024172 lt_compiler_flag="-o out/conftest2.$ac_objext"
24173 # Insert the option either (1) after the last *FLAGS variable, or
24174 # (2) before a word containing "conftest.", or (3) at the end.
24175 # Note that $ac_compile itself does not contain backslashes and begins
24176 # with a dollar sign (not a hyphen), so the echo should work correctly.
24177 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24180 -e 's:$: $lt_compiler_flag:'`
Sanjiv Guptae3f34282008-05-14 08:03:23 +000024181 (eval echo "\"\$as_me:24178: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024182 (eval "$lt_compile" 2>out/conftest.err)
24183 ac_status=$?
24184 cat out/conftest.err >&5
Sanjiv Guptae3f34282008-05-14 08:03:23 +000024185 echo "$as_me:24182: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24187 then
24188 # The compiler can only warn and ignore the option if not recognized
24189 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024190 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024193 lt_cv_prog_compiler_c_o_GCJ=yes
24194 fi
24195 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024196 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024197 $rm conftest*
24198 # SGI C++ compiler will create directory out/ii_files/ for
24199 # template instantiation
24200 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24201 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024202 cd ..
24203 rmdir conftest
24204 $rm conftest*
24205
24206fi
Reid Spencera773bd52006-08-04 18:18:08 +000024207{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24208echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024209
24210
24211hard_links="nottested"
24212if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24213 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024214 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24215echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024216 hard_links=yes
24217 $rm conftest*
24218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24219 touch conftest.a
24220 ln conftest.a conftest.b 2>&5 || hard_links=no
24221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024222 { echo "$as_me:$LINENO: result: $hard_links" >&5
24223echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024224 if test "$hard_links" = no; then
24225 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24226echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24227 need_locks=warn
24228 fi
24229else
24230 need_locks=no
24231fi
24232
Reid Spencera773bd52006-08-04 18:18:08 +000024233{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24234echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024235
24236 runpath_var=
24237 allow_undefined_flag_GCJ=
24238 enable_shared_with_static_runtimes_GCJ=no
24239 archive_cmds_GCJ=
24240 archive_expsym_cmds_GCJ=
24241 old_archive_From_new_cmds_GCJ=
24242 old_archive_from_expsyms_cmds_GCJ=
24243 export_dynamic_flag_spec_GCJ=
24244 whole_archive_flag_spec_GCJ=
24245 thread_safe_flag_spec_GCJ=
24246 hardcode_libdir_flag_spec_GCJ=
24247 hardcode_libdir_flag_spec_ld_GCJ=
24248 hardcode_libdir_separator_GCJ=
24249 hardcode_direct_GCJ=no
24250 hardcode_minus_L_GCJ=no
24251 hardcode_shlibpath_var_GCJ=unsupported
24252 link_all_deplibs_GCJ=unknown
24253 hardcode_automatic_GCJ=no
24254 module_cmds_GCJ=
24255 module_expsym_cmds_GCJ=
24256 always_export_symbols_GCJ=no
24257 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24258 # include_expsyms should be a list of space-separated symbols to be *always*
24259 # included in the symbol list
24260 include_expsyms_GCJ=
24261 # exclude_expsyms can be an extended regexp of symbols to exclude
24262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24264 # as well as any symbol that contains `d'.
24265 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24267 # platforms (ab)use it in PIC code, but their linkers get confused if
24268 # the symbol is explicitly referenced. Since portable code cannot
24269 # rely on this symbol name, it's probably fine to never include it in
24270 # preloaded symbol tables.
24271 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024272 # Just being paranoid about ensuring that cc_basename is set.
24273 for cc_temp in $compiler""; do
24274 case $cc_temp in
24275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24277 \-*) ;;
24278 *) break;;
24279 esac
24280done
24281cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024282
24283 case $host_os in
24284 cygwin* | mingw* | pw32*)
24285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24286 # When not using gcc, we currently assume that we are using
24287 # Microsoft Visual C++.
24288 if test "$GCC" != yes; then
24289 with_gnu_ld=no
24290 fi
24291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024292 interix*)
24293 # we just hope/assume this is gcc and not c89 (= MSVC++)
24294 with_gnu_ld=yes
24295 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024296 openbsd*)
24297 with_gnu_ld=no
24298 ;;
24299 esac
24300
24301 ld_shlibs_GCJ=yes
24302 if test "$with_gnu_ld" = yes; then
24303 # If archive_cmds runs LD, not CC, wlarc should be empty
24304 wlarc='${wl}'
24305
Reid Spencera773bd52006-08-04 18:18:08 +000024306 # Set some defaults for GNU ld with shared library support. These
24307 # are reset later if shared libraries are not supported. Putting them
24308 # here allows them to be overridden if necessary.
24309 runpath_var=LD_RUN_PATH
24310 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24311 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24312 # ancient GNU ld didn't support --whole-archive et. al.
24313 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24314 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24315 else
24316 whole_archive_flag_spec_GCJ=
24317 fi
24318 supports_anon_versioning=no
24319 case `$LD -v 2>/dev/null` in
24320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24323 *\ 2.11.*) ;; # other 2.11 versions
24324 *) supports_anon_versioning=yes ;;
24325 esac
24326
John Criswell47fdd832003-07-14 16:52:07 +000024327 # See if GNU ld supports shared libraries.
24328 case $host_os in
24329 aix3* | aix4* | aix5*)
24330 # On AIX/PPC, the GNU linker is very broken
24331 if test "$host_cpu" != ia64; then
24332 ld_shlibs_GCJ=no
24333 cat <<EOF 1>&2
24334
24335*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24336*** to be unable to reliably create shared libraries on AIX.
24337*** Therefore, libtool is disabling shared libraries support. If you
24338*** really care for shared libraries, you may want to modify your PATH
24339*** so that a non-GNU linker is found, and then restart.
24340
24341EOF
24342 fi
24343 ;;
24344
24345 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024346 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 +000024347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24348 hardcode_minus_L_GCJ=yes
24349
24350 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24351 # that the semantics of dynamic libraries on AmigaOS, at least up
24352 # to version 4, is to share data among multiple programs linked
24353 # with the same dynamic library. Since this doesn't match the
24354 # behavior of shared libraries on other platforms, we can't use
24355 # them.
24356 ld_shlibs_GCJ=no
24357 ;;
24358
24359 beos*)
24360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24361 allow_undefined_flag_GCJ=unsupported
24362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24363 # support --undefined. This deserves some investigation. FIXME
24364 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24365 else
24366 ld_shlibs_GCJ=no
24367 fi
24368 ;;
24369
24370 cygwin* | mingw* | pw32*)
24371 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24372 # as there is no search path for DLLs.
24373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24374 allow_undefined_flag_GCJ=unsupported
24375 always_export_symbols_GCJ=no
24376 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024377 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 +000024378
24379 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024380 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 +000024381 # If the export-symbols file already is a .def file (1st line
24382 # is EXPORTS), use it as is; otherwise, prepend...
24383 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24384 cp $export_symbols $output_objdir/$soname.def;
24385 else
24386 echo EXPORTS > $output_objdir/$soname.def;
24387 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024388 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024389 $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 +000024390 else
Reid Spencera773bd52006-08-04 18:18:08 +000024391 ld_shlibs_GCJ=no
24392 fi
24393 ;;
24394
24395 interix3*)
24396 hardcode_direct_GCJ=no
24397 hardcode_shlibpath_var_GCJ=no
24398 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24399 export_dynamic_flag_spec_GCJ='${wl}-E'
24400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24401 # Instead, shared libraries are loaded at an image base (0x10000000 by
24402 # default) and relocated if they conflict, which is a slow very memory
24403 # consuming and fragmenting process. To avoid this, we pick a random,
24404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24406 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'
24407 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'
24408 ;;
24409
24410 linux*)
24411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24412 tmp_addflag=
24413 case $cc_basename,$host_cpu in
24414 pgcc*) # Portland Group C compiler
24415 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'
24416 tmp_addflag=' $pic_flag'
24417 ;;
24418 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24419 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'
24420 tmp_addflag=' $pic_flag -Mnomain' ;;
24421 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24422 tmp_addflag=' -i_dynamic' ;;
24423 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24424 tmp_addflag=' -i_dynamic -nofor_main' ;;
24425 ifc* | ifort*) # Intel Fortran compiler
24426 tmp_addflag=' -nofor_main' ;;
24427 esac
24428 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24429
24430 if test $supports_anon_versioning = yes; then
24431 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24433 $echo "local: *; };" >> $output_objdir/$libname.ver~
24434 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24435 fi
24436 else
24437 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024438 fi
24439 ;;
24440
24441 netbsd*)
24442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24443 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24444 wlarc=
24445 else
24446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24448 fi
24449 ;;
24450
Reid Spencera773bd52006-08-04 18:18:08 +000024451 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024452 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24453 ld_shlibs_GCJ=no
24454 cat <<EOF 1>&2
24455
24456*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24457*** create shared libraries on Solaris systems. Therefore, libtool
24458*** is disabling shared libraries support. We urge you to upgrade GNU
24459*** binutils to release 2.9.1 or newer. Another option is to modify
24460*** your PATH or compiler configuration so that the native linker is
24461*** used, and then restart.
24462
24463EOF
24464 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24467 else
24468 ld_shlibs_GCJ=no
24469 fi
24470 ;;
24471
Reid Spencera773bd52006-08-04 18:18:08 +000024472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24473 case `$LD -v 2>&1` in
24474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24475 ld_shlibs_GCJ=no
24476 cat <<_LT_EOF 1>&2
24477
24478*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24479*** reliably create shared libraries on SCO systems. Therefore, libtool
24480*** is disabling shared libraries support. We urge you to upgrade GNU
24481*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24482*** your PATH or compiler configuration so that the native linker is
24483*** used, and then restart.
24484
24485_LT_EOF
24486 ;;
24487 *)
24488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24489 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24492 else
24493 ld_shlibs_GCJ=no
24494 fi
24495 ;;
24496 esac
24497 ;;
24498
John Criswell47fdd832003-07-14 16:52:07 +000024499 sunos4*)
24500 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24501 wlarc=
24502 hardcode_direct_GCJ=yes
24503 hardcode_shlibpath_var_GCJ=no
24504 ;;
24505
24506 *)
24507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24510 else
24511 ld_shlibs_GCJ=no
24512 fi
24513 ;;
24514 esac
24515
Reid Spencera773bd52006-08-04 18:18:08 +000024516 if test "$ld_shlibs_GCJ" = no; then
24517 runpath_var=
24518 hardcode_libdir_flag_spec_GCJ=
24519 export_dynamic_flag_spec_GCJ=
24520 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024521 fi
24522 else
24523 # PORTME fill in a description of your system's linker (not GNU ld)
24524 case $host_os in
24525 aix3*)
24526 allow_undefined_flag_GCJ=unsupported
24527 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024528 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 +000024529 # Note: this linker hardcodes the directories in LIBPATH if there
24530 # are no directories specified by -L.
24531 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024533 # Neither direct hardcoding nor static linking is supported with a
24534 # broken collect2.
24535 hardcode_direct_GCJ=unsupported
24536 fi
24537 ;;
24538
24539 aix4* | aix5*)
24540 if test "$host_cpu" = ia64; then
24541 # On IA64, the linker does run time linking by default, so we don't
24542 # have to do anything special.
24543 aix_use_runtimelinking=no
24544 exp_sym_flag='-Bexport'
24545 no_entry_flag=""
24546 else
24547 # If we're using GNU nm, then we don't want the "-C" option.
24548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24549 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24550 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'
24551 else
24552 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'
24553 fi
24554 aix_use_runtimelinking=no
24555
24556 # Test if we are trying to use run time linking or normal
24557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24558 # need to do runtime linking.
24559 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24560 for ld_flag in $LDFLAGS; do
24561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24562 aix_use_runtimelinking=yes
24563 break
24564 fi
24565 done
Reid Spencera773bd52006-08-04 18:18:08 +000024566 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024567 esac
24568
24569 exp_sym_flag='-bexport'
24570 no_entry_flag='-bnoentry'
24571 fi
24572
24573 # When large executables or shared objects are built, AIX ld can
24574 # have problems creating the table of contents. If linking a library
24575 # or program results in "error TOC overflow" add -mminimal-toc to
24576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24578
24579 archive_cmds_GCJ=''
24580 hardcode_direct_GCJ=yes
24581 hardcode_libdir_separator_GCJ=':'
24582 link_all_deplibs_GCJ=yes
24583
24584 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024585 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024586 # We only want to do this on AIX 4.2 and lower, the check
24587 # below for broken collect2 doesn't work under 4.3+
24588 collect2name=`${CC} -print-prog-name=collect2`
24589 if test -f "$collect2name" && \
24590 strings "$collect2name" | grep resolve_lib_name >/dev/null
24591 then
24592 # We have reworked collect2
24593 hardcode_direct_GCJ=yes
24594 else
24595 # We have old collect2
24596 hardcode_direct_GCJ=unsupported
24597 # It fails to find uninstalled libraries when the uninstalled
24598 # path is not listed in the libpath. Setting hardcode_minus_L
24599 # to unsupported forces relinking
24600 hardcode_minus_L_GCJ=yes
24601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24602 hardcode_libdir_separator_GCJ=
24603 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024604 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024605 esac
24606 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024607 if test "$aix_use_runtimelinking" = yes; then
24608 shared_flag="$shared_flag "'${wl}-G'
24609 fi
John Criswell47fdd832003-07-14 16:52:07 +000024610 else
24611 # not using gcc
24612 if test "$host_cpu" = ia64; then
24613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24614 # chokes on -Wl,-G. The following line is correct:
24615 shared_flag='-G'
24616 else
Reid Spencera773bd52006-08-04 18:18:08 +000024617 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024618 shared_flag='${wl}-G'
24619 else
24620 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024621 fi
John Criswell47fdd832003-07-14 16:52:07 +000024622 fi
24623 fi
24624
24625 # It seems that -bexpall does not export symbols beginning with
24626 # underscore (_), so it is better to generate a list of symbols to export.
24627 always_export_symbols_GCJ=yes
24628 if test "$aix_use_runtimelinking" = yes; then
24629 # Warning - without using the other runtime loading flags (-brtl),
24630 # -berok will link without error, but may produce a broken library.
24631 allow_undefined_flag_GCJ='-berok'
24632 # Determine the default libpath from the value encoded in an empty executable.
24633 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024634/* confdefs.h. */
24635_ACEOF
24636cat confdefs.h >>conftest.$ac_ext
24637cat >>conftest.$ac_ext <<_ACEOF
24638/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024639
John Criswell47fdd832003-07-14 16:52:07 +000024640int
24641main ()
24642{
24643
24644 ;
24645 return 0;
24646}
24647_ACEOF
24648rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024649if { (ac_try="$ac_link"
24650case "(($ac_try" in
24651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652 *) ac_try_echo=$ac_try;;
24653esac
24654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24655 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024657 grep -v '^ *+' conftest.er1 >conftest.err
24658 rm -f conftest.er1
24659 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24663 { (case "(($ac_try" in
24664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665 *) ac_try_echo=$ac_try;;
24666esac
24667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_try") 2>&5
24669 ac_status=$?
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; } &&
24672 { ac_try='test -s conftest$ac_exeext'
24673 { (case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24676esac
24677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_try") 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024682
24683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24684}'`
24685# Check for a 64-bit object if we didn't find anything.
24686if 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; }
24687}'`; fi
24688else
24689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024690sed 's/^/| /' conftest.$ac_ext >&5
24691
Reid Spencera773bd52006-08-04 18:18:08 +000024692
John Criswell47fdd832003-07-14 16:52:07 +000024693fi
Reid Spencera773bd52006-08-04 18:18:08 +000024694
Tanya Lattnercf067672008-01-17 05:57:22 +000024695rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024696 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24698
24699 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024700 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 +000024701 else
24702 if test "$host_cpu" = ia64; then
24703 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24704 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024705 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 +000024706 else
24707 # Determine the default libpath from the value encoded in an empty executable.
24708 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024709/* confdefs.h. */
24710_ACEOF
24711cat confdefs.h >>conftest.$ac_ext
24712cat >>conftest.$ac_ext <<_ACEOF
24713/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024714
John Criswell47fdd832003-07-14 16:52:07 +000024715int
24716main ()
24717{
24718
24719 ;
24720 return 0;
24721}
24722_ACEOF
24723rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024724if { (ac_try="$ac_link"
24725case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24728esac
24729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024731 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024732 grep -v '^ *+' conftest.er1 >conftest.err
24733 rm -f conftest.er1
24734 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024736 (exit $ac_status); } &&
24737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24738 { (case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24741esac
24742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_try") 2>&5
24744 ac_status=$?
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); }; } &&
24747 { ac_try='test -s conftest$ac_exeext'
24748 { (case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24751esac
24752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_try") 2>&5
24754 ac_status=$?
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024757
24758aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24759}'`
24760# Check for a 64-bit object if we didn't find anything.
24761if 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; }
24762}'`; fi
24763else
24764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024765sed 's/^/| /' conftest.$ac_ext >&5
24766
Reid Spencera773bd52006-08-04 18:18:08 +000024767
John Criswell47fdd832003-07-14 16:52:07 +000024768fi
Reid Spencera773bd52006-08-04 18:18:08 +000024769
Tanya Lattnercf067672008-01-17 05:57:22 +000024770rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024771 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24773
24774 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24775 # Warning - without using the other run time loading flags,
24776 # -berok will link without error, but may produce a broken library.
24777 no_undefined_flag_GCJ=' ${wl}-bernotok'
24778 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024779 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024780 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024781 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024782 # This is similar to how AIX traditionally builds its shared libraries.
24783 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 +000024784 fi
24785 fi
24786 ;;
24787
24788 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024789 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 +000024790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24791 hardcode_minus_L_GCJ=yes
24792 # see comment about different semantics on the GNU ld section
24793 ld_shlibs_GCJ=no
24794 ;;
24795
Reid Spencer2706f8c2004-09-19 23:53:36 +000024796 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024797 export_dynamic_flag_spec_GCJ=-rdynamic
24798 ;;
24799
24800 cygwin* | mingw* | pw32*)
24801 # When not using gcc, we currently assume that we are using
24802 # Microsoft Visual C++.
24803 # hardcode_libdir_flag_spec is actually meaningless, as there is
24804 # no search path for DLLs.
24805 hardcode_libdir_flag_spec_GCJ=' '
24806 allow_undefined_flag_GCJ=unsupported
24807 # Tell ltmain to make .lib files, not .a files.
24808 libext=lib
24809 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024810 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024811 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024812 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 +000024813 # The linker will automatically build a .lib file if we build a DLL.
24814 old_archive_From_new_cmds_GCJ='true'
24815 # FIXME: Should let the user specify the lib program.
24816 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024817 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024818 enable_shared_with_static_runtimes_GCJ=yes
24819 ;;
24820
24821 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024822 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024823 rhapsody* | darwin1.[012])
24824 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24825 ;;
24826 *) # Darwin 1.3 on
24827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24828 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24829 else
24830 case ${MACOSX_DEPLOYMENT_TARGET} in
24831 10.[012])
24832 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24833 ;;
24834 10.*)
24835 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24836 ;;
24837 esac
24838 fi
24839 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024840 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024841 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024842 hardcode_direct_GCJ=no
24843 hardcode_automatic_GCJ=yes
24844 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024845 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024846 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024847 if test "$GCC" = yes ; then
24848 output_verbose_link_cmd='echo'
24849 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24850 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024851 # 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 +000024852 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}'
24853 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 +000024854 else
Reid Spencera773bd52006-08-04 18:18:08 +000024855 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024856 xlc*)
24857 output_verbose_link_cmd='echo'
24858 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24859 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024860 # 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 +000024861 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}'
24862 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 +000024863 ;;
24864 *)
24865 ld_shlibs_GCJ=no
24866 ;;
24867 esac
John Criswell47fdd832003-07-14 16:52:07 +000024868 fi
24869 ;;
24870
24871 dgux*)
24872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24873 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24874 hardcode_shlibpath_var_GCJ=no
24875 ;;
24876
24877 freebsd1*)
24878 ld_shlibs_GCJ=no
24879 ;;
24880
24881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24882 # support. Future versions do this automatically, but an explicit c++rt0.o
24883 # does not break anything, and helps significantly (at the cost of a little
24884 # extra space).
24885 freebsd2.2*)
24886 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24887 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24888 hardcode_direct_GCJ=yes
24889 hardcode_shlibpath_var_GCJ=no
24890 ;;
24891
24892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24893 freebsd2*)
24894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24895 hardcode_direct_GCJ=yes
24896 hardcode_minus_L_GCJ=yes
24897 hardcode_shlibpath_var_GCJ=no
24898 ;;
24899
24900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024901 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024902 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24904 hardcode_direct_GCJ=yes
24905 hardcode_shlibpath_var_GCJ=no
24906 ;;
24907
24908 hpux9*)
24909 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024910 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 +000024911 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024912 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 +000024913 fi
24914 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24915 hardcode_libdir_separator_GCJ=:
24916 hardcode_direct_GCJ=yes
24917
24918 # hardcode_minus_L: Not really in the search PATH,
24919 # but as the default location of the library.
24920 hardcode_minus_L_GCJ=yes
24921 export_dynamic_flag_spec_GCJ='${wl}-E'
24922 ;;
24923
Reid Spencera773bd52006-08-04 18:18:08 +000024924 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024926 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24927 else
24928 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24929 fi
24930 if test "$with_gnu_ld" = no; then
24931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24932 hardcode_libdir_separator_GCJ=:
24933
24934 hardcode_direct_GCJ=yes
24935 export_dynamic_flag_spec_GCJ='${wl}-E'
24936
24937 # hardcode_minus_L: Not really in the search PATH,
24938 # but as the default location of the library.
24939 hardcode_minus_L_GCJ=yes
24940 fi
24941 ;;
24942
24943 hpux11*)
24944 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24945 case $host_cpu in
24946 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024947 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24948 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024949 ia64*)
24950 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24951 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024952 *)
24953 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24954 ;;
24955 esac
24956 else
Reid Spencera773bd52006-08-04 18:18:08 +000024957 case $host_cpu in
24958 hppa*64*)
24959 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24960 ;;
24961 ia64*)
24962 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024963 ;;
24964 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024965 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 +000024966 ;;
24967 esac
24968 fi
24969 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024970 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24971 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024972
Reid Spencera773bd52006-08-04 18:18:08 +000024973 case $host_cpu in
24974 hppa*64*|ia64*)
24975 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24976 hardcode_direct_GCJ=no
24977 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024978 ;;
24979 *)
John Criswell47fdd832003-07-14 16:52:07 +000024980 hardcode_direct_GCJ=yes
24981 export_dynamic_flag_spec_GCJ='${wl}-E'
24982
24983 # hardcode_minus_L: Not really in the search PATH,
24984 # but as the default location of the library.
24985 hardcode_minus_L_GCJ=yes
24986 ;;
24987 esac
24988 fi
24989 ;;
24990
24991 irix5* | irix6* | nonstopux*)
24992 if test "$GCC" = yes; then
24993 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'
24994 else
24995 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'
24996 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24997 fi
24998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24999 hardcode_libdir_separator_GCJ=:
25000 link_all_deplibs_GCJ=yes
25001 ;;
25002
25003 netbsd*)
25004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25006 else
25007 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25008 fi
25009 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25010 hardcode_direct_GCJ=yes
25011 hardcode_shlibpath_var_GCJ=no
25012 ;;
25013
25014 newsos6)
25015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25016 hardcode_direct_GCJ=yes
25017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25018 hardcode_libdir_separator_GCJ=:
25019 hardcode_shlibpath_var_GCJ=no
25020 ;;
25021
25022 openbsd*)
25023 hardcode_direct_GCJ=yes
25024 hardcode_shlibpath_var_GCJ=no
25025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025027 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 +000025028 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25029 export_dynamic_flag_spec_GCJ='${wl}-E'
25030 else
25031 case $host_os in
25032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25033 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25035 ;;
25036 *)
25037 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25039 ;;
25040 esac
25041 fi
25042 ;;
25043
25044 os2*)
25045 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25046 hardcode_minus_L_GCJ=yes
25047 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025048 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 +000025049 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25050 ;;
25051
25052 osf3*)
25053 if test "$GCC" = yes; then
25054 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25055 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'
25056 else
25057 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25058 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'
25059 fi
25060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25061 hardcode_libdir_separator_GCJ=:
25062 ;;
25063
25064 osf4* | osf5*) # as osf3* with the addition of -msym flag
25065 if test "$GCC" = yes; then
25066 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25067 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'
25068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25069 else
25070 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25071 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 +000025072 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 +000025073 $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 +000025074
John Criswell47fdd832003-07-14 16:52:07 +000025075 # Both c and cxx compiler support -rpath directly
25076 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25077 fi
25078 hardcode_libdir_separator_GCJ=:
25079 ;;
25080
John Criswell47fdd832003-07-14 16:52:07 +000025081 solaris*)
25082 no_undefined_flag_GCJ=' -z text'
25083 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025084 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025085 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025086 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25087 $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 +000025088 else
Reid Spencera773bd52006-08-04 18:18:08 +000025089 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025090 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025091 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25092 $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 +000025093 fi
25094 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25095 hardcode_shlibpath_var_GCJ=no
25096 case $host_os in
25097 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025098 *)
25099 # The compiler driver will combine linker options so we
25100 # cannot just pass the convience library names through
25101 # without $wl, iff we do not link with $LD.
25102 # Luckily, gcc supports the same syntax we need for Sun Studio.
25103 # Supported since Solaris 2.6 (maybe 2.5.1?)
25104 case $wlarc in
25105 '')
25106 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25107 *)
25108 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' ;;
25109 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025110 esac
25111 link_all_deplibs_GCJ=yes
25112 ;;
25113
25114 sunos4*)
25115 if test "x$host_vendor" = xsequent; then
25116 # Use $CC to link under sequent, because it throws in some extra .o
25117 # files that make .init and .fini sections work.
25118 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25119 else
25120 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25121 fi
25122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25123 hardcode_direct_GCJ=yes
25124 hardcode_minus_L_GCJ=yes
25125 hardcode_shlibpath_var_GCJ=no
25126 ;;
25127
25128 sysv4)
25129 case $host_vendor in
25130 sni)
25131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25132 hardcode_direct_GCJ=yes # is this really true???
25133 ;;
25134 siemens)
25135 ## LD is ld it makes a PLAMLIB
25136 ## CC just makes a GrossModule.
25137 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25138 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25139 hardcode_direct_GCJ=no
25140 ;;
25141 motorola)
25142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25143 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25144 ;;
25145 esac
25146 runpath_var='LD_RUN_PATH'
25147 hardcode_shlibpath_var_GCJ=no
25148 ;;
25149
25150 sysv4.3*)
25151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25152 hardcode_shlibpath_var_GCJ=no
25153 export_dynamic_flag_spec_GCJ='-Bexport'
25154 ;;
25155
25156 sysv4*MP*)
25157 if test -d /usr/nec; then
25158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25159 hardcode_shlibpath_var_GCJ=no
25160 runpath_var=LD_RUN_PATH
25161 hardcode_runpath_var=yes
25162 ld_shlibs_GCJ=yes
25163 fi
25164 ;;
25165
Reid Spencera773bd52006-08-04 18:18:08 +000025166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25167 no_undefined_flag_GCJ='${wl}-z,text'
25168 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025169 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025170 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025171
John Criswell47fdd832003-07-14 16:52:07 +000025172 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025173 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25174 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 +000025175 else
Reid Spencera773bd52006-08-04 18:18:08 +000025176 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25177 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 +000025178 fi
John Criswell47fdd832003-07-14 16:52:07 +000025179 ;;
25180
Reid Spencera773bd52006-08-04 18:18:08 +000025181 sysv5* | sco3.2v5* | sco5v6*)
25182 # Note: We can NOT use -z defs as we might desire, because we do not
25183 # link with -lc, and that would cause any symbols used from libc to
25184 # always be unresolved, which means just about no library would
25185 # ever link correctly. If we're not using GNU ld we use -z text
25186 # though, which does catch some bad symbols but isn't as heavy-handed
25187 # as -z defs.
25188 no_undefined_flag_GCJ='${wl}-z,text'
25189 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25190 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025191 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025192 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25193 hardcode_libdir_separator_GCJ=':'
25194 link_all_deplibs_GCJ=yes
25195 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025196 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025197
25198 if test "$GCC" = yes; then
25199 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25200 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25201 else
25202 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25203 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25204 fi
John Criswell47fdd832003-07-14 16:52:07 +000025205 ;;
25206
25207 uts4*)
25208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25210 hardcode_shlibpath_var_GCJ=no
25211 ;;
25212
25213 *)
25214 ld_shlibs_GCJ=no
25215 ;;
25216 esac
25217 fi
25218
Reid Spencera773bd52006-08-04 18:18:08 +000025219{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25220echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025221test "$ld_shlibs_GCJ" = no && can_build_shared=no
25222
John Criswell47fdd832003-07-14 16:52:07 +000025223#
25224# Do we need to explicitly link libc?
25225#
25226case "x$archive_cmds_need_lc_GCJ" in
25227x|xyes)
25228 # Assume -lc should be added
25229 archive_cmds_need_lc_GCJ=yes
25230
25231 if test "$enable_shared" = yes && test "$GCC" = yes; then
25232 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025233 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025234 # FIXME: we may have to deal with multi-command sequences.
25235 ;;
25236 '$CC '*)
25237 # Test whether the compiler implicitly links with -lc since on some
25238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25239 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025240 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25241echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025242 $rm conftest*
25243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25244
25245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246 (eval $ac_compile) 2>&5
25247 ac_status=$?
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } 2>conftest.err; then
25250 soname=conftest
25251 lib=conftest
25252 libobjs=conftest.$ac_objext
25253 deplibs=
25254 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025255 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025256 compiler_flags=-v
25257 linker_flags=-v
25258 verstring=
25259 output_objdir=.
25260 libname=conftest
25261 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25262 allow_undefined_flag_GCJ=
25263 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25264 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25265 ac_status=$?
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); }
25268 then
25269 archive_cmds_need_lc_GCJ=no
25270 else
25271 archive_cmds_need_lc_GCJ=yes
25272 fi
25273 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25274 else
25275 cat conftest.err 1>&5
25276 fi
25277 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025278 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25279echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025280 ;;
25281 esac
25282 fi
25283 ;;
25284esac
25285
Reid Spencera773bd52006-08-04 18:18:08 +000025286{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25287echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025288library_names_spec=
25289libname_spec='lib$name'
25290soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025291shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025292postinstall_cmds=
25293postuninstall_cmds=
25294finish_cmds=
25295finish_eval=
25296shlibpath_var=
25297shlibpath_overrides_runpath=unknown
25298version_type=none
25299dynamic_linker="$host_os ld.so"
25300sys_lib_dlsearch_path_spec="/lib /usr/lib"
25301if test "$GCC" = yes; then
25302 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25303 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25304 # if the path contains ";" then we assume it to be the separator
25305 # otherwise default to the standard path separator (i.e. ":") - it is
25306 # assumed that no part of a normal pathname contains ";" but that should
25307 # okay in the real world where ";" in dirpaths is itself problematic.
25308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25309 else
25310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25311 fi
25312else
25313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25314fi
25315need_lib_prefix=unknown
25316hardcode_into_libs=no
25317
25318# when you set need_version to no, make sure it does not cause -set_version
25319# flags to be left without arguments
25320need_version=unknown
25321
25322case $host_os in
25323aix3*)
25324 version_type=linux
25325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25326 shlibpath_var=LIBPATH
25327
25328 # AIX 3 has no versioning support, so we append a major version to the name.
25329 soname_spec='${libname}${release}${shared_ext}$major'
25330 ;;
25331
25332aix4* | aix5*)
25333 version_type=linux
25334 need_lib_prefix=no
25335 need_version=no
25336 hardcode_into_libs=yes
25337 if test "$host_cpu" = ia64; then
25338 # AIX 5 supports IA64
25339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25340 shlibpath_var=LD_LIBRARY_PATH
25341 else
25342 # With GCC up to 2.95.x, collect2 would create an import file
25343 # for dependence libraries. The import file would start with
25344 # the line `#! .'. This would cause the generated library to
25345 # depend on `.', always an invalid library. This was fixed in
25346 # development snapshots of GCC prior to 3.0.
25347 case $host_os in
25348 aix4 | aix4.[01] | aix4.[01].*)
25349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25350 echo ' yes '
25351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25352 :
25353 else
25354 can_build_shared=no
25355 fi
25356 ;;
25357 esac
25358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25359 # soname into executable. Probably we can add versioning support to
25360 # collect2, so additional links can be useful in future.
25361 if test "$aix_use_runtimelinking" = yes; then
25362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25363 # instead of lib<name>.a to let people know that these are not
25364 # typical AIX shared libraries.
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25366 else
25367 # We preserve .a as extension for shared libraries through AIX4.2
25368 # and later when we are not doing run time linking.
25369 library_names_spec='${libname}${release}.a $libname.a'
25370 soname_spec='${libname}${release}${shared_ext}$major'
25371 fi
25372 shlibpath_var=LIBPATH
25373 fi
25374 ;;
25375
25376amigaos*)
25377 library_names_spec='$libname.ixlibrary $libname.a'
25378 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025379 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 +000025380 ;;
25381
25382beos*)
25383 library_names_spec='${libname}${shared_ext}'
25384 dynamic_linker="$host_os ld.so"
25385 shlibpath_var=LIBRARY_PATH
25386 ;;
25387
Reid Spencer2706f8c2004-09-19 23:53:36 +000025388bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025389 version_type=linux
25390 need_version=no
25391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392 soname_spec='${libname}${release}${shared_ext}$major'
25393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25394 shlibpath_var=LD_LIBRARY_PATH
25395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25397 # the default ld.so.conf also contains /usr/contrib/lib and
25398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25399 # libtool to hard-code these into programs
25400 ;;
25401
25402cygwin* | mingw* | pw32*)
25403 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025404 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025405 need_version=no
25406 need_lib_prefix=no
25407
25408 case $GCC,$host_os in
25409 yes,cygwin* | yes,mingw* | yes,pw32*)
25410 library_names_spec='$libname.dll.a'
25411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025412 postinstall_cmds='base_file=`basename \${file}`~
25413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25414 dldir=$destdir/`dirname \$dlpath`~
25415 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025416 $install_prog $dir/$dlname \$dldir/$dlname~
25417 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25419 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025420 $rm \$dlpath'
25421 shlibpath_overrides_runpath=yes
25422
25423 case $host_os in
25424 cygwin*)
25425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25426 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 +000025427 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025428 ;;
25429 mingw*)
25430 # MinGW DLLs use traditional 'lib' prefix
25431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25433 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25434 # It is most probably a Windows format PATH printed by
25435 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25436 # path with ; separators, and with drive letters. We can handle the
25437 # drive letters (cygwin fileutils understands them), so leave them,
25438 # especially as we might pass files found there to a mingw objdump,
25439 # which wouldn't understand a cygwinified path. Ahh.
25440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25441 else
25442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25443 fi
25444 ;;
25445 pw32*)
25446 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025447 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 +000025448 ;;
25449 esac
25450 ;;
25451
25452 *)
25453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25454 ;;
25455 esac
25456 dynamic_linker='Win32 ld.exe'
25457 # FIXME: first we should search . and the directory the executable is in
25458 shlibpath_var=PATH
25459 ;;
25460
25461darwin* | rhapsody*)
25462 dynamic_linker="$host_os dyld"
25463 version_type=darwin
25464 need_lib_prefix=no
25465 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025466 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025467 soname_spec='${libname}${release}${major}$shared_ext'
25468 shlibpath_overrides_runpath=yes
25469 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025470 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025471 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025472 if test "$GCC" = yes; then
25473 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"`
25474 else
25475 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025476 fi
25477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25478 ;;
25479
25480dgux*)
25481 version_type=linux
25482 need_lib_prefix=no
25483 need_version=no
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25485 soname_spec='${libname}${release}${shared_ext}$major'
25486 shlibpath_var=LD_LIBRARY_PATH
25487 ;;
25488
25489freebsd1*)
25490 dynamic_linker=no
25491 ;;
25492
Reid Spencer2706f8c2004-09-19 23:53:36 +000025493kfreebsd*-gnu)
25494 version_type=linux
25495 need_lib_prefix=no
25496 need_version=no
25497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25498 soname_spec='${libname}${release}${shared_ext}$major'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 shlibpath_overrides_runpath=no
25501 hardcode_into_libs=yes
25502 dynamic_linker='GNU ld.so'
25503 ;;
25504
Reid Spencera773bd52006-08-04 18:18:08 +000025505freebsd* | dragonfly*)
25506 # DragonFly does not have aout. When/if they implement a new
25507 # versioning mechanism, adjust this.
25508 if test -x /usr/bin/objformat; then
25509 objformat=`/usr/bin/objformat`
25510 else
25511 case $host_os in
25512 freebsd[123]*) objformat=aout ;;
25513 *) objformat=elf ;;
25514 esac
25515 fi
John Criswell47fdd832003-07-14 16:52:07 +000025516 version_type=freebsd-$objformat
25517 case $version_type in
25518 freebsd-elf*)
25519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25520 need_version=no
25521 need_lib_prefix=no
25522 ;;
25523 freebsd-*)
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25525 need_version=yes
25526 ;;
25527 esac
25528 shlibpath_var=LD_LIBRARY_PATH
25529 case $host_os in
25530 freebsd2*)
25531 shlibpath_overrides_runpath=yes
25532 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025533 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025534 shlibpath_overrides_runpath=yes
25535 hardcode_into_libs=yes
25536 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025537 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25538 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025539 shlibpath_overrides_runpath=no
25540 hardcode_into_libs=yes
25541 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025542 freebsd*) # from 4.6 on
25543 shlibpath_overrides_runpath=yes
25544 hardcode_into_libs=yes
25545 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025546 esac
25547 ;;
25548
25549gnu*)
25550 version_type=linux
25551 need_lib_prefix=no
25552 need_version=no
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25554 soname_spec='${libname}${release}${shared_ext}$major'
25555 shlibpath_var=LD_LIBRARY_PATH
25556 hardcode_into_libs=yes
25557 ;;
25558
25559hpux9* | hpux10* | hpux11*)
25560 # Give a soname corresponding to the major version so that dld.sl refuses to
25561 # link against other versions.
25562 version_type=sunos
25563 need_lib_prefix=no
25564 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025565 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025566 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025567 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025568 hardcode_into_libs=yes
25569 dynamic_linker="$host_os dld.so"
25570 shlibpath_var=LD_LIBRARY_PATH
25571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25573 soname_spec='${libname}${release}${shared_ext}$major'
25574 if test "X$HPUX_IA64_MODE" = X32; then
25575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25576 else
25577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25578 fi
25579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25580 ;;
25581 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025582 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025583 hardcode_into_libs=yes
25584 dynamic_linker="$host_os dld.sl"
25585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588 soname_spec='${libname}${release}${shared_ext}$major'
25589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25591 ;;
25592 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025593 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025594 dynamic_linker="$host_os dld.sl"
25595 shlibpath_var=SHLIB_PATH
25596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25598 soname_spec='${libname}${release}${shared_ext}$major'
25599 ;;
25600 esac
25601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25602 postinstall_cmds='chmod 555 $lib'
25603 ;;
25604
Reid Spencera773bd52006-08-04 18:18:08 +000025605interix3*)
25606 version_type=linux
25607 need_lib_prefix=no
25608 need_version=no
25609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25610 soname_spec='${libname}${release}${shared_ext}$major'
25611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25612 shlibpath_var=LD_LIBRARY_PATH
25613 shlibpath_overrides_runpath=no
25614 hardcode_into_libs=yes
25615 ;;
25616
John Criswell47fdd832003-07-14 16:52:07 +000025617irix5* | irix6* | nonstopux*)
25618 case $host_os in
25619 nonstopux*) version_type=nonstopux ;;
25620 *)
25621 if test "$lt_cv_prog_gnu_ld" = yes; then
25622 version_type=linux
25623 else
25624 version_type=irix
25625 fi ;;
25626 esac
25627 need_lib_prefix=no
25628 need_version=no
25629 soname_spec='${libname}${release}${shared_ext}$major'
25630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25631 case $host_os in
25632 irix5* | nonstopux*)
25633 libsuff= shlibsuff=
25634 ;;
25635 *)
25636 case $LD in # libtool.m4 will add one of these switches to LD
25637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25638 libsuff= shlibsuff= libmagic=32-bit;;
25639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25640 libsuff=32 shlibsuff=N32 libmagic=N32;;
25641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25642 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25643 *) libsuff= shlibsuff= libmagic=never-match;;
25644 esac
25645 ;;
25646 esac
25647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25648 shlibpath_overrides_runpath=no
25649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25651 hardcode_into_libs=yes
25652 ;;
25653
25654# No shared lib support for Linux oldld, aout, or coff.
25655linux*oldld* | linux*aout* | linux*coff*)
25656 dynamic_linker=no
25657 ;;
25658
25659# This must be Linux ELF.
25660linux*)
25661 version_type=linux
25662 need_lib_prefix=no
25663 need_version=no
25664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25665 soname_spec='${libname}${release}${shared_ext}$major'
25666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25667 shlibpath_var=LD_LIBRARY_PATH
25668 shlibpath_overrides_runpath=no
25669 # This implies no fast_install, which is unacceptable.
25670 # Some rework will be needed to allow for fast_install
25671 # before this can be enabled.
25672 hardcode_into_libs=yes
25673
Reid Spencer2706f8c2004-09-19 23:53:36 +000025674 # Append ld.so.conf contents to the search path
25675 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025676 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 +000025677 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25678 fi
25679
John Criswell47fdd832003-07-14 16:52:07 +000025680 # We used to test for /lib/ld.so.1 and disable shared libraries on
25681 # powerpc, because MkLinux only supported shared libraries with the
25682 # GNU dynamic linker. Since this was broken with cross compilers,
25683 # most powerpc-linux boxes support dynamic linking these days and
25684 # people can always --disable-shared, the test was removed, and we
25685 # assume the GNU/Linux dynamic linker is in use.
25686 dynamic_linker='GNU/Linux ld.so'
25687 ;;
25688
Reid Spencer2706f8c2004-09-19 23:53:36 +000025689knetbsd*-gnu)
25690 version_type=linux
25691 need_lib_prefix=no
25692 need_version=no
25693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25694 soname_spec='${libname}${release}${shared_ext}$major'
25695 shlibpath_var=LD_LIBRARY_PATH
25696 shlibpath_overrides_runpath=no
25697 hardcode_into_libs=yes
25698 dynamic_linker='GNU ld.so'
25699 ;;
25700
John Criswell47fdd832003-07-14 16:52:07 +000025701netbsd*)
25702 version_type=sunos
25703 need_lib_prefix=no
25704 need_version=no
25705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25708 dynamic_linker='NetBSD (a.out) ld.so'
25709 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025711 soname_spec='${libname}${release}${shared_ext}$major'
25712 dynamic_linker='NetBSD ld.elf_so'
25713 fi
25714 shlibpath_var=LD_LIBRARY_PATH
25715 shlibpath_overrides_runpath=yes
25716 hardcode_into_libs=yes
25717 ;;
25718
25719newsos6)
25720 version_type=linux
25721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=yes
25724 ;;
25725
Reid Spencer2706f8c2004-09-19 23:53:36 +000025726nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025727 version_type=linux
25728 need_lib_prefix=no
25729 need_version=no
25730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25731 soname_spec='${libname}${release}${shared_ext}$major'
25732 shlibpath_var=LD_LIBRARY_PATH
25733 shlibpath_overrides_runpath=yes
25734 ;;
25735
25736openbsd*)
25737 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025738 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025739 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025740 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25741 case $host_os in
25742 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25743 *) need_version=no ;;
25744 esac
John Criswell47fdd832003-07-14 16:52:07 +000025745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25747 shlibpath_var=LD_LIBRARY_PATH
25748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25749 case $host_os in
25750 openbsd2.[89] | openbsd2.[89].*)
25751 shlibpath_overrides_runpath=no
25752 ;;
25753 *)
25754 shlibpath_overrides_runpath=yes
25755 ;;
25756 esac
25757 else
25758 shlibpath_overrides_runpath=yes
25759 fi
25760 ;;
25761
25762os2*)
25763 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025764 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025765 need_lib_prefix=no
25766 library_names_spec='$libname${shared_ext} $libname.a'
25767 dynamic_linker='OS/2 ld.exe'
25768 shlibpath_var=LIBPATH
25769 ;;
25770
25771osf3* | osf4* | osf5*)
25772 version_type=osf
25773 need_lib_prefix=no
25774 need_version=no
25775 soname_spec='${libname}${release}${shared_ext}$major'
25776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25779 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25780 ;;
25781
John Criswell47fdd832003-07-14 16:52:07 +000025782solaris*)
25783 version_type=linux
25784 need_lib_prefix=no
25785 need_version=no
25786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25787 soname_spec='${libname}${release}${shared_ext}$major'
25788 shlibpath_var=LD_LIBRARY_PATH
25789 shlibpath_overrides_runpath=yes
25790 hardcode_into_libs=yes
25791 # ldd complains unless libraries are executable
25792 postinstall_cmds='chmod +x $lib'
25793 ;;
25794
25795sunos4*)
25796 version_type=sunos
25797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25799 shlibpath_var=LD_LIBRARY_PATH
25800 shlibpath_overrides_runpath=yes
25801 if test "$with_gnu_ld" = yes; then
25802 need_lib_prefix=no
25803 fi
25804 need_version=yes
25805 ;;
25806
Reid Spencera773bd52006-08-04 18:18:08 +000025807sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025808 version_type=linux
25809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810 soname_spec='${libname}${release}${shared_ext}$major'
25811 shlibpath_var=LD_LIBRARY_PATH
25812 case $host_vendor in
25813 sni)
25814 shlibpath_overrides_runpath=no
25815 need_lib_prefix=no
25816 export_dynamic_flag_spec='${wl}-Blargedynsym'
25817 runpath_var=LD_RUN_PATH
25818 ;;
25819 siemens)
25820 need_lib_prefix=no
25821 ;;
25822 motorola)
25823 need_lib_prefix=no
25824 need_version=no
25825 shlibpath_overrides_runpath=no
25826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25827 ;;
25828 esac
25829 ;;
25830
25831sysv4*MP*)
25832 if test -d /usr/nec ;then
25833 version_type=linux
25834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25835 soname_spec='$libname${shared_ext}.$major'
25836 shlibpath_var=LD_LIBRARY_PATH
25837 fi
25838 ;;
25839
Reid Spencera773bd52006-08-04 18:18:08 +000025840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25841 version_type=freebsd-elf
25842 need_lib_prefix=no
25843 need_version=no
25844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25845 soname_spec='${libname}${release}${shared_ext}$major'
25846 shlibpath_var=LD_LIBRARY_PATH
25847 hardcode_into_libs=yes
25848 if test "$with_gnu_ld" = yes; then
25849 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25850 shlibpath_overrides_runpath=no
25851 else
25852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25853 shlibpath_overrides_runpath=yes
25854 case $host_os in
25855 sco3.2v5*)
25856 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25857 ;;
25858 esac
25859 fi
25860 sys_lib_dlsearch_path_spec='/usr/lib'
25861 ;;
25862
John Criswell47fdd832003-07-14 16:52:07 +000025863uts4*)
25864 version_type=linux
25865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25866 soname_spec='${libname}${release}${shared_ext}$major'
25867 shlibpath_var=LD_LIBRARY_PATH
25868 ;;
25869
25870*)
25871 dynamic_linker=no
25872 ;;
25873esac
Reid Spencera773bd52006-08-04 18:18:08 +000025874{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25875echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025876test "$dynamic_linker" = no && can_build_shared=no
25877
Reid Spencera773bd52006-08-04 18:18:08 +000025878variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25879if test "$GCC" = yes; then
25880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25881fi
25882
25883{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25884echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025885hardcode_action_GCJ=
25886if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25887 test -n "$runpath_var_GCJ" || \
25888 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25889
25890 # We can hardcode non-existant directories.
25891 if test "$hardcode_direct_GCJ" != no &&
25892 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25893 # have to relink, otherwise we might link with an installed library
25894 # when we should be linking with a yet-to-be-installed one
25895 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25896 test "$hardcode_minus_L_GCJ" != no; then
25897 # Linking always hardcodes the temporary library directory.
25898 hardcode_action_GCJ=relink
25899 else
25900 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25901 hardcode_action_GCJ=immediate
25902 fi
25903else
25904 # We cannot hardcode anything, or else we can only hardcode existing
25905 # directories.
25906 hardcode_action_GCJ=unsupported
25907fi
Reid Spencera773bd52006-08-04 18:18:08 +000025908{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25909echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025910
25911if test "$hardcode_action_GCJ" = relink; then
25912 # Fast installation is not supported
25913 enable_fast_install=no
25914elif test "$shlibpath_overrides_runpath" = yes ||
25915 test "$enable_shared" = no; then
25916 # Fast installation is not necessary
25917 enable_fast_install=needless
25918fi
25919
John Criswell47fdd832003-07-14 16:52:07 +000025920
25921# The else clause should only fire when bootstrapping the
25922# libtool distribution, otherwise you forgot to ship ltmain.sh
25923# with your package, and you will get complaints that there are
25924# no rules to generate ltmain.sh.
25925if test -f "$ltmain"; then
25926 # See if we are running on zsh, and set the options which allow our commands through
25927 # without removal of \ escapes.
25928 if test -n "${ZSH_VERSION+set}" ; then
25929 setopt NO_GLOB_SUBST
25930 fi
25931 # Now quote all the things that may contain metacharacters while being
25932 # careful not to overquote the AC_SUBSTed values. We take copies of the
25933 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025934 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 +000025935 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025936 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25937 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25938 deplibs_check_method reload_flag reload_cmds need_locks \
25939 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25940 lt_cv_sys_global_symbol_to_c_name_address \
25941 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25942 old_postinstall_cmds old_postuninstall_cmds \
25943 compiler_GCJ \
25944 CC_GCJ \
25945 LD_GCJ \
25946 lt_prog_compiler_wl_GCJ \
25947 lt_prog_compiler_pic_GCJ \
25948 lt_prog_compiler_static_GCJ \
25949 lt_prog_compiler_no_builtin_flag_GCJ \
25950 export_dynamic_flag_spec_GCJ \
25951 thread_safe_flag_spec_GCJ \
25952 whole_archive_flag_spec_GCJ \
25953 enable_shared_with_static_runtimes_GCJ \
25954 old_archive_cmds_GCJ \
25955 old_archive_from_new_cmds_GCJ \
25956 predep_objects_GCJ \
25957 postdep_objects_GCJ \
25958 predeps_GCJ \
25959 postdeps_GCJ \
25960 compiler_lib_search_path_GCJ \
25961 archive_cmds_GCJ \
25962 archive_expsym_cmds_GCJ \
25963 postinstall_cmds_GCJ \
25964 postuninstall_cmds_GCJ \
25965 old_archive_from_expsyms_cmds_GCJ \
25966 allow_undefined_flag_GCJ \
25967 no_undefined_flag_GCJ \
25968 export_symbols_cmds_GCJ \
25969 hardcode_libdir_flag_spec_GCJ \
25970 hardcode_libdir_flag_spec_ld_GCJ \
25971 hardcode_libdir_separator_GCJ \
25972 hardcode_automatic_GCJ \
25973 module_cmds_GCJ \
25974 module_expsym_cmds_GCJ \
25975 lt_cv_prog_compiler_c_o_GCJ \
25976 exclude_expsyms_GCJ \
25977 include_expsyms_GCJ; do
25978
25979 case $var in
25980 old_archive_cmds_GCJ | \
25981 old_archive_from_new_cmds_GCJ | \
25982 archive_cmds_GCJ | \
25983 archive_expsym_cmds_GCJ | \
25984 module_cmds_GCJ | \
25985 module_expsym_cmds_GCJ | \
25986 old_archive_from_expsyms_cmds_GCJ | \
25987 export_symbols_cmds_GCJ | \
25988 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25989 postinstall_cmds | postuninstall_cmds | \
25990 old_postinstall_cmds | old_postuninstall_cmds | \
25991 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25992 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025993 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 +000025994 ;;
25995 *)
25996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25997 ;;
25998 esac
25999 done
26000
26001 case $lt_echo in
26002 *'\$0 --fallback-echo"')
26003 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26004 ;;
26005 esac
26006
26007cfgfile="$ofile"
26008
26009 cat <<__EOF__ >> "$cfgfile"
26010# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26011
26012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26013
26014# Shell to use when invoking shell scripts.
26015SHELL=$lt_SHELL
26016
26017# Whether or not to build shared libraries.
26018build_libtool_libs=$enable_shared
26019
26020# Whether or not to build static libraries.
26021build_old_libs=$enable_static
26022
26023# Whether or not to add -lc for building shared libraries.
26024build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26025
26026# Whether or not to disallow shared libs when runtime libs are static
26027allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26028
26029# Whether or not to optimize for fast installation.
26030fast_install=$enable_fast_install
26031
26032# The host system.
26033host_alias=$host_alias
26034host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026035host_os=$host_os
26036
26037# The build system.
26038build_alias=$build_alias
26039build=$build
26040build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026041
26042# An echo program that does not interpret backslashes.
26043echo=$lt_echo
26044
26045# The archiver.
26046AR=$lt_AR
26047AR_FLAGS=$lt_AR_FLAGS
26048
26049# A C compiler.
26050LTCC=$lt_LTCC
26051
Reid Spencera773bd52006-08-04 18:18:08 +000026052# LTCC compiler flags.
26053LTCFLAGS=$lt_LTCFLAGS
26054
John Criswell47fdd832003-07-14 16:52:07 +000026055# A language-specific compiler.
26056CC=$lt_compiler_GCJ
26057
26058# Is the compiler the GNU C compiler?
26059with_gcc=$GCC_GCJ
26060
26061# An ERE matcher.
26062EGREP=$lt_EGREP
26063
26064# The linker used to build libraries.
26065LD=$lt_LD_GCJ
26066
26067# Whether we need hard or soft links.
26068LN_S=$lt_LN_S
26069
26070# A BSD-compatible nm program.
26071NM=$lt_NM
26072
26073# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026074STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026075
26076# Used to examine libraries when file_magic_cmd begins "file"
26077MAGIC_CMD=$MAGIC_CMD
26078
26079# Used on cygwin: DLL creation program.
26080DLLTOOL="$DLLTOOL"
26081
26082# Used on cygwin: object dumper.
26083OBJDUMP="$OBJDUMP"
26084
26085# Used on cygwin: assembler.
26086AS="$AS"
26087
26088# The name of the directory that contains temporary libtool files.
26089objdir=$objdir
26090
26091# How to create reloadable object files.
26092reload_flag=$lt_reload_flag
26093reload_cmds=$lt_reload_cmds
26094
26095# How to pass a linker flag through the compiler.
26096wl=$lt_lt_prog_compiler_wl_GCJ
26097
26098# Object file suffix (normally "o").
26099objext="$ac_objext"
26100
26101# Old archive suffix (normally "a").
26102libext="$libext"
26103
26104# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026105shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026106
26107# Executable file suffix (normally "").
26108exeext="$exeext"
26109
26110# Additional compiler flags for building library objects.
26111pic_flag=$lt_lt_prog_compiler_pic_GCJ
26112pic_mode=$pic_mode
26113
26114# What is the maximum length of a command?
26115max_cmd_len=$lt_cv_sys_max_cmd_len
26116
26117# Does compiler simultaneously support -c and -o options?
26118compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26119
Reid Spencera773bd52006-08-04 18:18:08 +000026120# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026121need_locks=$lt_need_locks
26122
26123# Do we need the lib prefix for modules?
26124need_lib_prefix=$need_lib_prefix
26125
26126# Do we need a version for libraries?
26127need_version=$need_version
26128
26129# Whether dlopen is supported.
26130dlopen_support=$enable_dlopen
26131
26132# Whether dlopen of programs is supported.
26133dlopen_self=$enable_dlopen_self
26134
26135# Whether dlopen of statically linked programs is supported.
26136dlopen_self_static=$enable_dlopen_self_static
26137
26138# Compiler flag to prevent dynamic linking.
26139link_static_flag=$lt_lt_prog_compiler_static_GCJ
26140
26141# Compiler flag to turn off builtin functions.
26142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26143
26144# Compiler flag to allow reflexive dlopens.
26145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26146
26147# Compiler flag to generate shared objects directly from archives.
26148whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26149
26150# Compiler flag to generate thread-safe objects.
26151thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26152
26153# Library versioning type.
26154version_type=$version_type
26155
26156# Format of library name prefix.
26157libname_spec=$lt_libname_spec
26158
26159# List of archive names. First name is the real one, the rest are links.
26160# The last name is the one that the linker finds with -lNAME.
26161library_names_spec=$lt_library_names_spec
26162
26163# The coded name of the library, if different from the real name.
26164soname_spec=$lt_soname_spec
26165
26166# Commands used to build and install an old-style archive.
26167RANLIB=$lt_RANLIB
26168old_archive_cmds=$lt_old_archive_cmds_GCJ
26169old_postinstall_cmds=$lt_old_postinstall_cmds
26170old_postuninstall_cmds=$lt_old_postuninstall_cmds
26171
26172# Create an old-style archive from a shared archive.
26173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26174
26175# Create a temporary old-style archive to link instead of a shared archive.
26176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26177
26178# Commands used to build and install a shared archive.
26179archive_cmds=$lt_archive_cmds_GCJ
26180archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26181postinstall_cmds=$lt_postinstall_cmds
26182postuninstall_cmds=$lt_postuninstall_cmds
26183
26184# Commands used to build a loadable module (assumed same as above if empty)
26185module_cmds=$lt_module_cmds_GCJ
26186module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26187
26188# Commands to strip libraries.
26189old_striplib=$lt_old_striplib
26190striplib=$lt_striplib
26191
26192# Dependencies to place before the objects being linked to create a
26193# shared library.
26194predep_objects=$lt_predep_objects_GCJ
26195
26196# Dependencies to place after the objects being linked to create a
26197# shared library.
26198postdep_objects=$lt_postdep_objects_GCJ
26199
26200# Dependencies to place before the objects being linked to create a
26201# shared library.
26202predeps=$lt_predeps_GCJ
26203
26204# Dependencies to place after the objects being linked to create a
26205# shared library.
26206postdeps=$lt_postdeps_GCJ
26207
26208# The library search path used internally by the compiler when linking
26209# a shared library.
26210compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26211
26212# Method to check whether dependent libraries are shared objects.
26213deplibs_check_method=$lt_deplibs_check_method
26214
26215# Command to use when deplibs_check_method == file_magic.
26216file_magic_cmd=$lt_file_magic_cmd
26217
26218# Flag that allows shared libraries with undefined symbols to be built.
26219allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26220
26221# Flag that forces no undefined symbols.
26222no_undefined_flag=$lt_no_undefined_flag_GCJ
26223
26224# Commands used to finish a libtool library installation in a directory.
26225finish_cmds=$lt_finish_cmds
26226
26227# Same as above, but a single script fragment to be evaled but not shown.
26228finish_eval=$lt_finish_eval
26229
26230# Take the output of nm and produce a listing of raw symbols and C names.
26231global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26232
26233# Transform the output of nm in a proper C declaration
26234global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26235
26236# Transform the output of nm in a C name address pair
26237global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26238
26239# This is the shared library runtime path variable.
26240runpath_var=$runpath_var
26241
26242# This is the shared library path variable.
26243shlibpath_var=$shlibpath_var
26244
26245# Is shlibpath searched before the hard-coded library search path?
26246shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26247
26248# How to hardcode a shared library path into an executable.
26249hardcode_action=$hardcode_action_GCJ
26250
26251# Whether we should hardcode library paths into libraries.
26252hardcode_into_libs=$hardcode_into_libs
26253
26254# Flag to hardcode \$libdir into a binary during linking.
26255# This must work even if \$libdir does not exist.
26256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26257
26258# If ld is used when linking, flag to hardcode \$libdir into
26259# a binary during linking. This must work even if \$libdir does
26260# not exist.
26261hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26262
26263# Whether we need a single -rpath flag with a separated argument.
26264hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26265
26266# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26267# resulting binary.
26268hardcode_direct=$hardcode_direct_GCJ
26269
26270# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26271# resulting binary.
26272hardcode_minus_L=$hardcode_minus_L_GCJ
26273
26274# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26275# the resulting binary.
26276hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26277
26278# Set to yes if building a shared library automatically hardcodes DIR into the library
26279# and all subsequent libraries and executables linked against it.
26280hardcode_automatic=$hardcode_automatic_GCJ
26281
26282# Variables whose values should be saved in libtool wrapper scripts and
26283# restored at relink time.
26284variables_saved_for_relink="$variables_saved_for_relink"
26285
26286# Whether libtool must link a program against all its dependency libraries.
26287link_all_deplibs=$link_all_deplibs_GCJ
26288
26289# Compile-time system search path for libraries
26290sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26291
26292# Run-time system search path for libraries
26293sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26294
26295# Fix the shell variable \$srcfile for the compiler.
26296fix_srcfile_path="$fix_srcfile_path_GCJ"
26297
26298# Set to yes if exported symbols are required.
26299always_export_symbols=$always_export_symbols_GCJ
26300
26301# The commands to list exported symbols.
26302export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26303
26304# The commands to extract the exported symbol list from a shared archive.
26305extract_expsyms_cmds=$lt_extract_expsyms_cmds
26306
26307# Symbols that should not be listed in the preloaded symbols.
26308exclude_expsyms=$lt_exclude_expsyms_GCJ
26309
26310# Symbols that must always be exported.
26311include_expsyms=$lt_include_expsyms_GCJ
26312
26313# ### END LIBTOOL TAG CONFIG: $tagname
26314
26315__EOF__
26316
26317
26318else
26319 # If there is no Makefile yet, we rely on a make rule to execute
26320 # `config.status --recheck' to rerun these tests and create the
26321 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026322 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26323 if test -f "$ltmain_in"; then
26324 test -f Makefile && make "$ltmain"
26325 fi
John Criswell47fdd832003-07-14 16:52:07 +000026326fi
26327
26328
26329ac_ext=c
26330ac_cpp='$CPP $CPPFLAGS'
26331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26333ac_compiler_gnu=$ac_cv_c_compiler_gnu
26334
26335CC="$lt_save_CC"
26336
26337 else
26338 tagname=""
26339 fi
26340 ;;
26341
26342 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026343 ac_ext=c
26344ac_cpp='$CPP $CPPFLAGS'
26345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26347ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026348
26349
26350# Source file extension for RC test sources.
26351ac_ext=rc
26352
26353# Object file extension for compiled RC test sources.
26354objext=o
26355objext_RC=$objext
26356
26357# Code to be used in simple compile tests
26358lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26359
26360# Code to be used in simple link tests
26361lt_simple_link_test_code="$lt_simple_compile_test_code"
26362
26363# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26364
26365# If no C compiler was specified, use CC.
26366LTCC=${LTCC-"$CC"}
26367
Reid Spencera773bd52006-08-04 18:18:08 +000026368# If no C compiler flags were specified, use CFLAGS.
26369LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26370
John Criswell47fdd832003-07-14 16:52:07 +000026371# Allow CC to be a program name with arguments.
26372compiler=$CC
26373
26374
Reid Spencera773bd52006-08-04 18:18:08 +000026375# save warnings/boilerplate of simple test code
26376ac_outfile=conftest.$ac_objext
26377printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26378eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26379_lt_compiler_boilerplate=`cat conftest.err`
26380$rm conftest*
26381
26382ac_outfile=conftest.$ac_objext
26383printf "$lt_simple_link_test_code" >conftest.$ac_ext
26384eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26385_lt_linker_boilerplate=`cat conftest.err`
26386$rm conftest*
26387
26388
John Criswell47fdd832003-07-14 16:52:07 +000026389# Allow CC to be a program name with arguments.
26390lt_save_CC="$CC"
26391CC=${RC-"windres"}
26392compiler=$CC
26393compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026394for cc_temp in $compiler""; do
26395 case $cc_temp in
26396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26398 \-*) ;;
26399 *) break;;
26400 esac
26401done
26402cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26403
John Criswell47fdd832003-07-14 16:52:07 +000026404lt_cv_prog_compiler_c_o_RC=yes
26405
26406# The else clause should only fire when bootstrapping the
26407# libtool distribution, otherwise you forgot to ship ltmain.sh
26408# with your package, and you will get complaints that there are
26409# no rules to generate ltmain.sh.
26410if test -f "$ltmain"; then
26411 # See if we are running on zsh, and set the options which allow our commands through
26412 # without removal of \ escapes.
26413 if test -n "${ZSH_VERSION+set}" ; then
26414 setopt NO_GLOB_SUBST
26415 fi
26416 # Now quote all the things that may contain metacharacters while being
26417 # careful not to overquote the AC_SUBSTed values. We take copies of the
26418 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026419 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 +000026420 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026421 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26422 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26423 deplibs_check_method reload_flag reload_cmds need_locks \
26424 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26425 lt_cv_sys_global_symbol_to_c_name_address \
26426 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26427 old_postinstall_cmds old_postuninstall_cmds \
26428 compiler_RC \
26429 CC_RC \
26430 LD_RC \
26431 lt_prog_compiler_wl_RC \
26432 lt_prog_compiler_pic_RC \
26433 lt_prog_compiler_static_RC \
26434 lt_prog_compiler_no_builtin_flag_RC \
26435 export_dynamic_flag_spec_RC \
26436 thread_safe_flag_spec_RC \
26437 whole_archive_flag_spec_RC \
26438 enable_shared_with_static_runtimes_RC \
26439 old_archive_cmds_RC \
26440 old_archive_from_new_cmds_RC \
26441 predep_objects_RC \
26442 postdep_objects_RC \
26443 predeps_RC \
26444 postdeps_RC \
26445 compiler_lib_search_path_RC \
26446 archive_cmds_RC \
26447 archive_expsym_cmds_RC \
26448 postinstall_cmds_RC \
26449 postuninstall_cmds_RC \
26450 old_archive_from_expsyms_cmds_RC \
26451 allow_undefined_flag_RC \
26452 no_undefined_flag_RC \
26453 export_symbols_cmds_RC \
26454 hardcode_libdir_flag_spec_RC \
26455 hardcode_libdir_flag_spec_ld_RC \
26456 hardcode_libdir_separator_RC \
26457 hardcode_automatic_RC \
26458 module_cmds_RC \
26459 module_expsym_cmds_RC \
26460 lt_cv_prog_compiler_c_o_RC \
26461 exclude_expsyms_RC \
26462 include_expsyms_RC; do
26463
26464 case $var in
26465 old_archive_cmds_RC | \
26466 old_archive_from_new_cmds_RC | \
26467 archive_cmds_RC | \
26468 archive_expsym_cmds_RC | \
26469 module_cmds_RC | \
26470 module_expsym_cmds_RC | \
26471 old_archive_from_expsyms_cmds_RC | \
26472 export_symbols_cmds_RC | \
26473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26474 postinstall_cmds | postuninstall_cmds | \
26475 old_postinstall_cmds | old_postuninstall_cmds | \
26476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26477 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026478 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 +000026479 ;;
26480 *)
26481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26482 ;;
26483 esac
26484 done
26485
26486 case $lt_echo in
26487 *'\$0 --fallback-echo"')
26488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26489 ;;
26490 esac
26491
26492cfgfile="$ofile"
26493
26494 cat <<__EOF__ >> "$cfgfile"
26495# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26496
26497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26498
26499# Shell to use when invoking shell scripts.
26500SHELL=$lt_SHELL
26501
26502# Whether or not to build shared libraries.
26503build_libtool_libs=$enable_shared
26504
26505# Whether or not to build static libraries.
26506build_old_libs=$enable_static
26507
26508# Whether or not to add -lc for building shared libraries.
26509build_libtool_need_lc=$archive_cmds_need_lc_RC
26510
26511# Whether or not to disallow shared libs when runtime libs are static
26512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26513
26514# Whether or not to optimize for fast installation.
26515fast_install=$enable_fast_install
26516
26517# The host system.
26518host_alias=$host_alias
26519host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026520host_os=$host_os
26521
26522# The build system.
26523build_alias=$build_alias
26524build=$build
26525build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026526
26527# An echo program that does not interpret backslashes.
26528echo=$lt_echo
26529
26530# The archiver.
26531AR=$lt_AR
26532AR_FLAGS=$lt_AR_FLAGS
26533
26534# A C compiler.
26535LTCC=$lt_LTCC
26536
Reid Spencera773bd52006-08-04 18:18:08 +000026537# LTCC compiler flags.
26538LTCFLAGS=$lt_LTCFLAGS
26539
John Criswell47fdd832003-07-14 16:52:07 +000026540# A language-specific compiler.
26541CC=$lt_compiler_RC
26542
26543# Is the compiler the GNU C compiler?
26544with_gcc=$GCC_RC
26545
26546# An ERE matcher.
26547EGREP=$lt_EGREP
26548
26549# The linker used to build libraries.
26550LD=$lt_LD_RC
26551
26552# Whether we need hard or soft links.
26553LN_S=$lt_LN_S
26554
26555# A BSD-compatible nm program.
26556NM=$lt_NM
26557
26558# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026559STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026560
26561# Used to examine libraries when file_magic_cmd begins "file"
26562MAGIC_CMD=$MAGIC_CMD
26563
26564# Used on cygwin: DLL creation program.
26565DLLTOOL="$DLLTOOL"
26566
26567# Used on cygwin: object dumper.
26568OBJDUMP="$OBJDUMP"
26569
26570# Used on cygwin: assembler.
26571AS="$AS"
26572
26573# The name of the directory that contains temporary libtool files.
26574objdir=$objdir
26575
26576# How to create reloadable object files.
26577reload_flag=$lt_reload_flag
26578reload_cmds=$lt_reload_cmds
26579
26580# How to pass a linker flag through the compiler.
26581wl=$lt_lt_prog_compiler_wl_RC
26582
26583# Object file suffix (normally "o").
26584objext="$ac_objext"
26585
26586# Old archive suffix (normally "a").
26587libext="$libext"
26588
26589# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026590shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026591
26592# Executable file suffix (normally "").
26593exeext="$exeext"
26594
26595# Additional compiler flags for building library objects.
26596pic_flag=$lt_lt_prog_compiler_pic_RC
26597pic_mode=$pic_mode
26598
26599# What is the maximum length of a command?
26600max_cmd_len=$lt_cv_sys_max_cmd_len
26601
26602# Does compiler simultaneously support -c and -o options?
26603compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26604
Reid Spencera773bd52006-08-04 18:18:08 +000026605# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026606need_locks=$lt_need_locks
26607
26608# Do we need the lib prefix for modules?
26609need_lib_prefix=$need_lib_prefix
26610
26611# Do we need a version for libraries?
26612need_version=$need_version
26613
26614# Whether dlopen is supported.
26615dlopen_support=$enable_dlopen
26616
26617# Whether dlopen of programs is supported.
26618dlopen_self=$enable_dlopen_self
26619
26620# Whether dlopen of statically linked programs is supported.
26621dlopen_self_static=$enable_dlopen_self_static
26622
26623# Compiler flag to prevent dynamic linking.
26624link_static_flag=$lt_lt_prog_compiler_static_RC
26625
26626# Compiler flag to turn off builtin functions.
26627no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26628
26629# Compiler flag to allow reflexive dlopens.
26630export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26631
26632# Compiler flag to generate shared objects directly from archives.
26633whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26634
26635# Compiler flag to generate thread-safe objects.
26636thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26637
26638# Library versioning type.
26639version_type=$version_type
26640
26641# Format of library name prefix.
26642libname_spec=$lt_libname_spec
26643
26644# List of archive names. First name is the real one, the rest are links.
26645# The last name is the one that the linker finds with -lNAME.
26646library_names_spec=$lt_library_names_spec
26647
26648# The coded name of the library, if different from the real name.
26649soname_spec=$lt_soname_spec
26650
26651# Commands used to build and install an old-style archive.
26652RANLIB=$lt_RANLIB
26653old_archive_cmds=$lt_old_archive_cmds_RC
26654old_postinstall_cmds=$lt_old_postinstall_cmds
26655old_postuninstall_cmds=$lt_old_postuninstall_cmds
26656
26657# Create an old-style archive from a shared archive.
26658old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26659
26660# Create a temporary old-style archive to link instead of a shared archive.
26661old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26662
26663# Commands used to build and install a shared archive.
26664archive_cmds=$lt_archive_cmds_RC
26665archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26666postinstall_cmds=$lt_postinstall_cmds
26667postuninstall_cmds=$lt_postuninstall_cmds
26668
26669# Commands used to build a loadable module (assumed same as above if empty)
26670module_cmds=$lt_module_cmds_RC
26671module_expsym_cmds=$lt_module_expsym_cmds_RC
26672
26673# Commands to strip libraries.
26674old_striplib=$lt_old_striplib
26675striplib=$lt_striplib
26676
26677# Dependencies to place before the objects being linked to create a
26678# shared library.
26679predep_objects=$lt_predep_objects_RC
26680
26681# Dependencies to place after the objects being linked to create a
26682# shared library.
26683postdep_objects=$lt_postdep_objects_RC
26684
26685# Dependencies to place before the objects being linked to create a
26686# shared library.
26687predeps=$lt_predeps_RC
26688
26689# Dependencies to place after the objects being linked to create a
26690# shared library.
26691postdeps=$lt_postdeps_RC
26692
26693# The library search path used internally by the compiler when linking
26694# a shared library.
26695compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26696
26697# Method to check whether dependent libraries are shared objects.
26698deplibs_check_method=$lt_deplibs_check_method
26699
26700# Command to use when deplibs_check_method == file_magic.
26701file_magic_cmd=$lt_file_magic_cmd
26702
26703# Flag that allows shared libraries with undefined symbols to be built.
26704allow_undefined_flag=$lt_allow_undefined_flag_RC
26705
26706# Flag that forces no undefined symbols.
26707no_undefined_flag=$lt_no_undefined_flag_RC
26708
26709# Commands used to finish a libtool library installation in a directory.
26710finish_cmds=$lt_finish_cmds
26711
26712# Same as above, but a single script fragment to be evaled but not shown.
26713finish_eval=$lt_finish_eval
26714
26715# Take the output of nm and produce a listing of raw symbols and C names.
26716global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26717
26718# Transform the output of nm in a proper C declaration
26719global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26720
26721# Transform the output of nm in a C name address pair
26722global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26723
26724# This is the shared library runtime path variable.
26725runpath_var=$runpath_var
26726
26727# This is the shared library path variable.
26728shlibpath_var=$shlibpath_var
26729
26730# Is shlibpath searched before the hard-coded library search path?
26731shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26732
26733# How to hardcode a shared library path into an executable.
26734hardcode_action=$hardcode_action_RC
26735
26736# Whether we should hardcode library paths into libraries.
26737hardcode_into_libs=$hardcode_into_libs
26738
26739# Flag to hardcode \$libdir into a binary during linking.
26740# This must work even if \$libdir does not exist.
26741hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26742
26743# If ld is used when linking, flag to hardcode \$libdir into
26744# a binary during linking. This must work even if \$libdir does
26745# not exist.
26746hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26747
26748# Whether we need a single -rpath flag with a separated argument.
26749hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26750
26751# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26752# resulting binary.
26753hardcode_direct=$hardcode_direct_RC
26754
26755# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26756# resulting binary.
26757hardcode_minus_L=$hardcode_minus_L_RC
26758
26759# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26760# the resulting binary.
26761hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26762
26763# Set to yes if building a shared library automatically hardcodes DIR into the library
26764# and all subsequent libraries and executables linked against it.
26765hardcode_automatic=$hardcode_automatic_RC
26766
26767# Variables whose values should be saved in libtool wrapper scripts and
26768# restored at relink time.
26769variables_saved_for_relink="$variables_saved_for_relink"
26770
26771# Whether libtool must link a program against all its dependency libraries.
26772link_all_deplibs=$link_all_deplibs_RC
26773
26774# Compile-time system search path for libraries
26775sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26776
26777# Run-time system search path for libraries
26778sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26779
26780# Fix the shell variable \$srcfile for the compiler.
26781fix_srcfile_path="$fix_srcfile_path_RC"
26782
26783# Set to yes if exported symbols are required.
26784always_export_symbols=$always_export_symbols_RC
26785
26786# The commands to list exported symbols.
26787export_symbols_cmds=$lt_export_symbols_cmds_RC
26788
26789# The commands to extract the exported symbol list from a shared archive.
26790extract_expsyms_cmds=$lt_extract_expsyms_cmds
26791
26792# Symbols that should not be listed in the preloaded symbols.
26793exclude_expsyms=$lt_exclude_expsyms_RC
26794
26795# Symbols that must always be exported.
26796include_expsyms=$lt_include_expsyms_RC
26797
26798# ### END LIBTOOL TAG CONFIG: $tagname
26799
26800__EOF__
26801
26802
26803else
26804 # If there is no Makefile yet, we rely on a make rule to execute
26805 # `config.status --recheck' to rerun these tests and create the
26806 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026807 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26808 if test -f "$ltmain_in"; then
26809 test -f Makefile && make "$ltmain"
26810 fi
John Criswell47fdd832003-07-14 16:52:07 +000026811fi
26812
26813
26814ac_ext=c
26815ac_cpp='$CPP $CPPFLAGS'
26816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26818ac_compiler_gnu=$ac_cv_c_compiler_gnu
26819
26820CC="$lt_save_CC"
26821
26822 ;;
26823
26824 *)
26825 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26826echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26827 { (exit 1); exit 1; }; }
26828 ;;
26829 esac
26830
26831 # Append the new tag name to the list of available tags.
26832 if test -n "$tagname" ; then
26833 available_tags="$available_tags $tagname"
26834 fi
26835 fi
26836 done
26837 IFS="$lt_save_ifs"
26838
26839 # Now substitute the updated list of available tags.
26840 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26841 mv "${ofile}T" "$ofile"
26842 chmod +x "$ofile"
26843 else
26844 rm -f "${ofile}T"
26845 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26846echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26847 { (exit 1); exit 1; }; }
26848 fi
26849fi
John Criswell7a73b802003-06-30 21:59:07 +000026850
26851
26852
26853# This can be used to rebuild libtool when needed
26854LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26855
26856# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026857LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026858
26859# Prevent multiple expansion
26860
26861
26862
John Criswell47fdd832003-07-14 16:52:07 +000026863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026880
Reid Spencer582a23c2004-12-29 07:07:57 +000026881if test "$lt_cv_dlopen_self" = "yes" ; then
26882
26883cat >>confdefs.h <<\_ACEOF
26884#define CAN_DLOPEN_SELF 1
26885_ACEOF
26886
26887fi
26888
Reid Spencer7931a782004-12-27 06:15:02 +000026889if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026890 LLVMGCC="llvm-gcc${EXEEXT}"
26891 LLVMGXX="llvm-g++${EXEEXT}"
26892 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26893set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026896if test "${ac_cv_path_LLVMGCC+set}" = set; then
26897 echo $ECHO_N "(cached) $ECHO_C" >&6
26898else
26899 case $LLVMGCC in
26900 [\\/]* | ?:[\\/]*)
26901 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26902 ;;
26903 *)
26904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26905for as_dir in $PATH
26906do
26907 IFS=$as_save_IFS
26908 test -z "$as_dir" && as_dir=.
26909 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026910 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 +000026911 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26913 break 2
26914 fi
26915done
26916done
Reid Spencera773bd52006-08-04 18:18:08 +000026917IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026918
Reid Spencer59473af2004-12-25 07:31:29 +000026919 ;;
26920esac
26921fi
26922LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026923if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026924 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26925echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026926else
Reid Spencera773bd52006-08-04 18:18:08 +000026927 { echo "$as_me:$LINENO: result: no" >&5
26928echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026929fi
26930
Reid Spencera773bd52006-08-04 18:18:08 +000026931
Reid Spencerc84492c2005-06-02 22:34:49 +000026932 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26933set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026934{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026936if test "${ac_cv_path_LLVMGXX+set}" = set; then
26937 echo $ECHO_N "(cached) $ECHO_C" >&6
26938else
26939 case $LLVMGXX in
26940 [\\/]* | ?:[\\/]*)
26941 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26942 ;;
26943 *)
26944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26945for as_dir in $PATH
26946do
26947 IFS=$as_save_IFS
26948 test -z "$as_dir" && as_dir=.
26949 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026950 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 +000026951 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26953 break 2
26954 fi
26955done
26956done
Reid Spencera773bd52006-08-04 18:18:08 +000026957IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026958
Reid Spencer59473af2004-12-25 07:31:29 +000026959 ;;
26960esac
26961fi
26962LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026963if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026964 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26965echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026966else
Reid Spencera773bd52006-08-04 18:18:08 +000026967 { echo "$as_me:$LINENO: result: no" >&5
26968echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026969fi
26970
Reid Spencera773bd52006-08-04 18:18:08 +000026971
Reid Spencer59473af2004-12-25 07:31:29 +000026972else
Devang Patel5d28b882007-12-04 22:54:47 +000026973 if test -z "$LLVMGCC"; then
26974 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26975 fi
26976 if test -z "$LLVMGXX"; then
26977 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26978 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026979 LLVMGCC=$LLVMGCC
26980
26981 LLVMGXX=$LLVMGXX
26982
26983fi
26984
Reid Spencera773bd52006-08-04 18:18:08 +000026985{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26986echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026987
Reid Spencer86901802004-12-08 23:07:27 +000026988ICC=no
26989IXX=no
26990case $CC in
26991 icc*|icpc*)
26992 ICC=yes
26993 IXX=yes
26994 ;;
26995 *)
26996 ;;
26997esac
26998
Duraid Madina937c60a2006-02-15 07:57:42 +000026999if test "$GCC" != "yes" && test "$ICC" != "yes"
27000then
27001 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27002echo "$as_me: error: gcc|icc required but not found" >&2;}
27003 { (exit 1); exit 1; }; }
27004fi
27005
27006if test "$GXX" != "yes" && test "$IXX" != "yes"
27007then
27008 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27009echo "$as_me: error: g++|icc required but not found" >&2;}
27010 { (exit 1); exit 1; }; }
27011fi
27012
Reid Spencer86901802004-12-08 23:07:27 +000027013if test "$GCC" = "yes"
27014then
Chris Lattner399c7c72008-02-05 19:43:53 +000027015 cat >conftest.$ac_ext <<_ACEOF
27016#if !defined(__GNUC__) || __GNUC__ < 3
27017#error Unsupported GCC version
27018#endif
27019
27020_ACEOF
27021rm -f conftest.$ac_objext
27022if { (ac_try="$ac_compile"
27023case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026esac
27027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_compile") 2>conftest.er1
27029 ac_status=$?
27030 grep -v '^ *+' conftest.er1 >conftest.err
27031 rm -f conftest.er1
27032 cat conftest.err >&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
27035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036 { (case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27039esac
27040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_try") 2>&5
27042 ac_status=$?
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); }; } &&
27045 { ac_try='test -s conftest.$ac_objext'
27046 { (case "(($ac_try" in
27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048 *) ac_try_echo=$ac_try;;
27049esac
27050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_try") 2>&5
27052 ac_status=$?
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
27055 :
27056else
27057 echo "$as_me: failed program was:" >&5
27058sed 's/^/| /' conftest.$ac_ext >&5
27059
27060 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027061echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27062 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027063fi
27064
27065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027066fi
27067
27068if test -z "$llvm_cv_gnu_make_command"
27069then
27070 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27071echo "$as_me: error: GNU Make required but not found" >&2;}
27072 { (exit 1); exit 1; }; }
27073fi
27074
Reid Spencera773bd52006-08-04 18:18:08 +000027075{ echo "$as_me:$LINENO: result: ok" >&5
27076echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027077
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027078
John Criswell7a73b802003-06-30 21:59:07 +000027079
Reid Spencera773bd52006-08-04 18:18:08 +000027080{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27081echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027082if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27084else
27085 ac_check_lib_save_LIBS=$LIBS
27086LIBS="-lelf $LIBS"
27087cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027088/* confdefs.h. */
27089_ACEOF
27090cat confdefs.h >>conftest.$ac_ext
27091cat >>conftest.$ac_ext <<_ACEOF
27092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027093
Reid Spencera773bd52006-08-04 18:18:08 +000027094/* Override any GCC internal prototype to avoid an error.
27095 Use char because int might match the return type of a GCC
27096 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027097#ifdef __cplusplus
27098extern "C"
27099#endif
John Criswell7a73b802003-06-30 21:59:07 +000027100char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027101int
27102main ()
27103{
Reid Spencera773bd52006-08-04 18:18:08 +000027104return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027105 ;
27106 return 0;
27107}
27108_ACEOF
27109rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027110if { (ac_try="$ac_link"
27111case "(($ac_try" in
27112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27113 *) ac_try_echo=$ac_try;;
27114esac
27115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27116 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027122 (exit $ac_status); } &&
27123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27124 { (case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27127esac
27128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129 (eval "$ac_try") 2>&5
27130 ac_status=$?
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); }; } &&
27133 { ac_try='test -s conftest$ac_exeext'
27134 { (case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27137esac
27138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_try") 2>&5
27140 ac_status=$?
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027143 ac_cv_lib_elf_elf_begin=yes
27144else
27145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027146sed 's/^/| /' conftest.$ac_ext >&5
27147
Reid Spencera773bd52006-08-04 18:18:08 +000027148 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027149fi
Reid Spencera773bd52006-08-04 18:18:08 +000027150
Tanya Lattnercf067672008-01-17 05:57:22 +000027151rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027152 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027153LIBS=$ac_check_lib_save_LIBS
27154fi
Reid Spencera773bd52006-08-04 18:18:08 +000027155{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27156echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027157if test $ac_cv_lib_elf_elf_begin = yes; then
27158 cat >>confdefs.h <<_ACEOF
27159#define HAVE_LIBELF 1
27160_ACEOF
27161
27162 LIBS="-lelf $LIBS"
27163
27164fi
27165
27166
Reid Spencera773bd52006-08-04 18:18:08 +000027167{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27168echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027169if test "${ac_cv_lib_m_sin+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171else
27172 ac_check_lib_save_LIBS=$LIBS
27173LIBS="-lm $LIBS"
27174cat >conftest.$ac_ext <<_ACEOF
27175/* confdefs.h. */
27176_ACEOF
27177cat confdefs.h >>conftest.$ac_ext
27178cat >>conftest.$ac_ext <<_ACEOF
27179/* end confdefs.h. */
27180
Reid Spencera773bd52006-08-04 18:18:08 +000027181/* Override any GCC internal prototype to avoid an error.
27182 Use char because int might match the return type of a GCC
27183 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027184#ifdef __cplusplus
27185extern "C"
27186#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027187char sin ();
27188int
27189main ()
27190{
Reid Spencera773bd52006-08-04 18:18:08 +000027191return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027192 ;
27193 return 0;
27194}
27195_ACEOF
27196rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027197if { (ac_try="$ac_link"
27198case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27201esac
27202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027204 ac_status=$?
27205 grep -v '^ *+' conftest.er1 >conftest.err
27206 rm -f conftest.er1
27207 cat conftest.err >&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027209 (exit $ac_status); } &&
27210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27211 { (case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27214esac
27215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_try") 2>&5
27217 ac_status=$?
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; } &&
27220 { ac_try='test -s conftest$ac_exeext'
27221 { (case "(($ac_try" in
27222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223 *) ac_try_echo=$ac_try;;
27224esac
27225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226 (eval "$ac_try") 2>&5
27227 ac_status=$?
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027230 ac_cv_lib_m_sin=yes
27231else
27232 echo "$as_me: failed program was:" >&5
27233sed 's/^/| /' conftest.$ac_ext >&5
27234
Reid Spencera773bd52006-08-04 18:18:08 +000027235 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027236fi
Reid Spencera773bd52006-08-04 18:18:08 +000027237
Tanya Lattnercf067672008-01-17 05:57:22 +000027238rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027239 conftest$ac_exeext conftest.$ac_ext
27240LIBS=$ac_check_lib_save_LIBS
27241fi
Reid Spencera773bd52006-08-04 18:18:08 +000027242{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27243echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027244if test $ac_cv_lib_m_sin = yes; then
27245 cat >>confdefs.h <<_ACEOF
27246#define HAVE_LIBM 1
27247_ACEOF
27248
27249 LIBS="-lm $LIBS"
27250
27251fi
27252
Jeff Cohen28783c32007-01-12 18:22:38 +000027253if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027254
Reid Spencera773bd52006-08-04 18:18:08 +000027255{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27256echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027257if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027258 echo $ECHO_N "(cached) $ECHO_C" >&6
27259else
27260 ac_check_lib_save_LIBS=$LIBS
27261LIBS="-limagehlp $LIBS"
27262cat >conftest.$ac_ext <<_ACEOF
27263/* confdefs.h. */
27264_ACEOF
27265cat confdefs.h >>conftest.$ac_ext
27266cat >>conftest.$ac_ext <<_ACEOF
27267/* end confdefs.h. */
27268
Reid Spencer48fdf912006-06-01 19:03:21 +000027269
Reid Spencer484fc8e2006-06-01 16:55:59 +000027270int
27271main ()
27272{
Reid Spencera773bd52006-08-04 18:18:08 +000027273return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027274 ;
27275 return 0;
27276}
27277_ACEOF
27278rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027279if { (ac_try="$ac_link"
27280case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27283esac
27284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027286 ac_status=$?
27287 grep -v '^ *+' conftest.er1 >conftest.err
27288 rm -f conftest.er1
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027291 (exit $ac_status); } &&
27292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27293 { (case "(($ac_try" in
27294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295 *) ac_try_echo=$ac_try;;
27296esac
27297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298 (eval "$ac_try") 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest$ac_exeext'
27303 { (case "(($ac_try" in
27304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305 *) ac_try_echo=$ac_try;;
27306esac
27307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308 (eval "$ac_try") 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027312 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027313else
27314 echo "$as_me: failed program was:" >&5
27315sed 's/^/| /' conftest.$ac_ext >&5
27316
Reid Spencera773bd52006-08-04 18:18:08 +000027317 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027318fi
Reid Spencera773bd52006-08-04 18:18:08 +000027319
Tanya Lattnercf067672008-01-17 05:57:22 +000027320rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027321 conftest$ac_exeext conftest.$ac_ext
27322LIBS=$ac_check_lib_save_LIBS
27323fi
Reid Spencera773bd52006-08-04 18:18:08 +000027324{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27325echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027326if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027327 cat >>confdefs.h <<_ACEOF
27328#define HAVE_LIBIMAGEHLP 1
27329_ACEOF
27330
27331 LIBS="-limagehlp $LIBS"
27332
27333fi
27334
27335
Reid Spencera773bd52006-08-04 18:18:08 +000027336{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27337echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027338if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027339 echo $ECHO_N "(cached) $ECHO_C" >&6
27340else
27341 ac_check_lib_save_LIBS=$LIBS
27342LIBS="-lpsapi $LIBS"
27343cat >conftest.$ac_ext <<_ACEOF
27344/* confdefs.h. */
27345_ACEOF
27346cat confdefs.h >>conftest.$ac_ext
27347cat >>conftest.$ac_ext <<_ACEOF
27348/* end confdefs.h. */
27349
Reid Spencer48fdf912006-06-01 19:03:21 +000027350
Reid Spencer484fc8e2006-06-01 16:55:59 +000027351int
27352main ()
27353{
Reid Spencera773bd52006-08-04 18:18:08 +000027354return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027355 ;
27356 return 0;
27357}
27358_ACEOF
27359rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027360if { (ac_try="$ac_link"
27361case "(($ac_try" in
27362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363 *) ac_try_echo=$ac_try;;
27364esac
27365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027367 ac_status=$?
27368 grep -v '^ *+' conftest.er1 >conftest.err
27369 rm -f conftest.er1
27370 cat conftest.err >&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027372 (exit $ac_status); } &&
27373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27374 { (case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_try") 2>&5
27380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; } &&
27383 { ac_try='test -s conftest$ac_exeext'
27384 { (case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27387esac
27388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_try") 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027393 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027394else
27395 echo "$as_me: failed program was:" >&5
27396sed 's/^/| /' conftest.$ac_ext >&5
27397
Reid Spencera773bd52006-08-04 18:18:08 +000027398 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027399fi
Reid Spencera773bd52006-08-04 18:18:08 +000027400
Tanya Lattnercf067672008-01-17 05:57:22 +000027401rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027402 conftest$ac_exeext conftest.$ac_ext
27403LIBS=$ac_check_lib_save_LIBS
27404fi
Reid Spencera773bd52006-08-04 18:18:08 +000027405{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27406echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027407if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027408 cat >>confdefs.h <<_ACEOF
27409#define HAVE_LIBPSAPI 1
27410_ACEOF
27411
27412 LIBS="-lpsapi $LIBS"
27413
27414fi
27415
27416fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027417
Reid Spencera773bd52006-08-04 18:18:08 +000027418{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27419echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027420if test "${ac_cv_search_dlopen+set}" = set; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27422else
27423 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027424cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027425/* confdefs.h. */
27426_ACEOF
27427cat confdefs.h >>conftest.$ac_ext
27428cat >>conftest.$ac_ext <<_ACEOF
27429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027430
Reid Spencera773bd52006-08-04 18:18:08 +000027431/* Override any GCC internal prototype to avoid an error.
27432 Use char because int might match the return type of a GCC
27433 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027434#ifdef __cplusplus
27435extern "C"
27436#endif
John Criswell7a73b802003-06-30 21:59:07 +000027437char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027438int
27439main ()
27440{
Reid Spencera773bd52006-08-04 18:18:08 +000027441return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027442 ;
27443 return 0;
27444}
27445_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027446for ac_lib in '' dl; do
27447 if test -z "$ac_lib"; then
27448 ac_res="none required"
27449 else
27450 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027452 fi
27453 rm -f conftest.$ac_objext conftest$ac_exeext
27454if { (ac_try="$ac_link"
27455case "(($ac_try" in
27456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27457 *) ac_try_echo=$ac_try;;
27458esac
27459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27460 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027462 grep -v '^ *+' conftest.er1 >conftest.err
27463 rm -f conftest.er1
27464 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027466 (exit $ac_status); } &&
27467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27468 { (case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27471esac
27472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_try") 2>&5
27474 ac_status=$?
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; } &&
27477 { ac_try='test -s conftest$ac_exeext'
27478 { (case "(($ac_try" in
27479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27480 *) ac_try_echo=$ac_try;;
27481esac
27482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27483 (eval "$ac_try") 2>&5
27484 ac_status=$?
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027487 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027488else
27489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027490sed 's/^/| /' conftest.$ac_ext >&5
27491
Reid Spencera773bd52006-08-04 18:18:08 +000027492
John Criswell7a73b802003-06-30 21:59:07 +000027493fi
Reid Spencera773bd52006-08-04 18:18:08 +000027494
Tanya Lattnercf067672008-01-17 05:57:22 +000027495rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027496 conftest$ac_exeext
27497 if test "${ac_cv_search_dlopen+set}" = set; then
27498 break
John Criswell7a73b802003-06-30 21:59:07 +000027499fi
Reid Spencera773bd52006-08-04 18:18:08 +000027500done
27501if test "${ac_cv_search_dlopen+set}" = set; then
27502 :
27503else
27504 ac_cv_search_dlopen=no
27505fi
27506rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027507LIBS=$ac_func_search_save_LIBS
27508fi
Reid Spencera773bd52006-08-04 18:18:08 +000027509{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27510echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27511ac_res=$ac_cv_search_dlopen
27512if test "$ac_res" != no; then
27513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027514
27515cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027516#define HAVE_DLOPEN 1
27517_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027518
27519else
Brian Gaekec45be042003-10-07 06:01:34 +000027520 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27521echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027522fi
27523
27524
Reid Spencera773bd52006-08-04 18:18:08 +000027525{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27526echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027527if test "${ac_cv_search_mallinfo+set}" = set; then
27528 echo $ECHO_N "(cached) $ECHO_C" >&6
27529else
27530 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027531cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027532/* confdefs.h. */
27533_ACEOF
27534cat confdefs.h >>conftest.$ac_ext
27535cat >>conftest.$ac_ext <<_ACEOF
27536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027537
Reid Spencera773bd52006-08-04 18:18:08 +000027538/* Override any GCC internal prototype to avoid an error.
27539 Use char because int might match the return type of a GCC
27540 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027541#ifdef __cplusplus
27542extern "C"
27543#endif
John Criswell7a73b802003-06-30 21:59:07 +000027544char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027545int
27546main ()
27547{
Reid Spencera773bd52006-08-04 18:18:08 +000027548return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027549 ;
27550 return 0;
27551}
27552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027553for ac_lib in '' malloc; do
27554 if test -z "$ac_lib"; then
27555 ac_res="none required"
27556 else
27557 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027559 fi
27560 rm -f conftest.$ac_objext conftest$ac_exeext
27561if { (ac_try="$ac_link"
27562case "(($ac_try" in
27563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564 *) ac_try_echo=$ac_try;;
27565esac
27566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027569 grep -v '^ *+' conftest.er1 >conftest.err
27570 rm -f conftest.er1
27571 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027573 (exit $ac_status); } &&
27574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27575 { (case "(($ac_try" in
27576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577 *) ac_try_echo=$ac_try;;
27578esac
27579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580 (eval "$ac_try") 2>&5
27581 ac_status=$?
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; } &&
27584 { ac_try='test -s conftest$ac_exeext'
27585 { (case "(($ac_try" in
27586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587 *) ac_try_echo=$ac_try;;
27588esac
27589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590 (eval "$ac_try") 2>&5
27591 ac_status=$?
27592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027594 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027595else
27596 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027597sed 's/^/| /' conftest.$ac_ext >&5
27598
Reid Spencera773bd52006-08-04 18:18:08 +000027599
John Criswell7a73b802003-06-30 21:59:07 +000027600fi
Reid Spencera773bd52006-08-04 18:18:08 +000027601
Tanya Lattnercf067672008-01-17 05:57:22 +000027602rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027603 conftest$ac_exeext
27604 if test "${ac_cv_search_mallinfo+set}" = set; then
27605 break
John Criswell7a73b802003-06-30 21:59:07 +000027606fi
Reid Spencera773bd52006-08-04 18:18:08 +000027607done
27608if test "${ac_cv_search_mallinfo+set}" = set; then
27609 :
27610else
27611 ac_cv_search_mallinfo=no
27612fi
27613rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027614LIBS=$ac_func_search_save_LIBS
27615fi
Reid Spencera773bd52006-08-04 18:18:08 +000027616{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27617echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27618ac_res=$ac_cv_search_mallinfo
27619if test "$ac_res" != no; then
27620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027621
27622cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027623#define HAVE_MALLINFO 1
27624_ACEOF
27625
27626fi
27627
27628
Reid Spencer0a262ba2005-08-24 10:07:20 +000027629if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027630
Reid Spencera773bd52006-08-04 18:18:08 +000027631{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27632echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027633if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27634 echo $ECHO_N "(cached) $ECHO_C" >&6
27635else
27636 ac_check_lib_save_LIBS=$LIBS
27637LIBS="-lpthread $LIBS"
27638cat >conftest.$ac_ext <<_ACEOF
27639/* confdefs.h. */
27640_ACEOF
27641cat confdefs.h >>conftest.$ac_ext
27642cat >>conftest.$ac_ext <<_ACEOF
27643/* end confdefs.h. */
27644
Reid Spencera773bd52006-08-04 18:18:08 +000027645/* Override any GCC internal prototype to avoid an error.
27646 Use char because int might match the return type of a GCC
27647 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027648#ifdef __cplusplus
27649extern "C"
27650#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027651char pthread_mutex_init ();
27652int
27653main ()
27654{
Reid Spencera773bd52006-08-04 18:18:08 +000027655return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027656 ;
27657 return 0;
27658}
27659_ACEOF
27660rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027661if { (ac_try="$ac_link"
27662case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27665esac
27666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027668 ac_status=$?
27669 grep -v '^ *+' conftest.er1 >conftest.err
27670 rm -f conftest.er1
27671 cat conftest.err >&5
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027673 (exit $ac_status); } &&
27674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; } &&
27684 { ac_try='test -s conftest$ac_exeext'
27685 { (case "(($ac_try" in
27686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27687 *) ac_try_echo=$ac_try;;
27688esac
27689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27690 (eval "$ac_try") 2>&5
27691 ac_status=$?
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027694 ac_cv_lib_pthread_pthread_mutex_init=yes
27695else
27696 echo "$as_me: failed program was:" >&5
27697sed 's/^/| /' conftest.$ac_ext >&5
27698
Reid Spencera773bd52006-08-04 18:18:08 +000027699 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027700fi
Reid Spencera773bd52006-08-04 18:18:08 +000027701
Tanya Lattnercf067672008-01-17 05:57:22 +000027702rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027703 conftest$ac_exeext conftest.$ac_ext
27704LIBS=$ac_check_lib_save_LIBS
27705fi
Reid Spencera773bd52006-08-04 18:18:08 +000027706{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27707echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027708if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27709 cat >>confdefs.h <<_ACEOF
27710#define HAVE_LIBPTHREAD 1
27711_ACEOF
27712
27713 LIBS="-lpthread $LIBS"
27714
27715fi
27716
Reid Spencera773bd52006-08-04 18:18:08 +000027717 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27718echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027719if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27721else
27722 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027723cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027724/* confdefs.h. */
27725_ACEOF
27726cat confdefs.h >>conftest.$ac_ext
27727cat >>conftest.$ac_ext <<_ACEOF
27728/* end confdefs.h. */
27729
Reid Spencera773bd52006-08-04 18:18:08 +000027730/* Override any GCC internal prototype to avoid an error.
27731 Use char because int might match the return type of a GCC
27732 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027733#ifdef __cplusplus
27734extern "C"
27735#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027736char pthread_mutex_lock ();
27737int
27738main ()
27739{
Reid Spencera773bd52006-08-04 18:18:08 +000027740return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027741 ;
27742 return 0;
27743}
27744_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027745for ac_lib in '' pthread; do
27746 if test -z "$ac_lib"; then
27747 ac_res="none required"
27748 else
27749 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027751 fi
27752 rm -f conftest.$ac_objext conftest$ac_exeext
27753if { (ac_try="$ac_link"
27754case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27757esac
27758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027760 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027761 grep -v '^ *+' conftest.er1 >conftest.err
27762 rm -f conftest.er1
27763 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027765 (exit $ac_status); } &&
27766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27767 { (case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27770esac
27771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_try") 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; } &&
27776 { ac_try='test -s conftest$ac_exeext'
27777 { (case "(($ac_try" in
27778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27779 *) ac_try_echo=$ac_try;;
27780esac
27781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27782 (eval "$ac_try") 2>&5
27783 ac_status=$?
27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027786 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027787else
27788 echo "$as_me: failed program was:" >&5
27789sed 's/^/| /' conftest.$ac_ext >&5
27790
Reid Spencera773bd52006-08-04 18:18:08 +000027791
Brian Gaeke5f268f72003-12-05 19:29:01 +000027792fi
Reid Spencera773bd52006-08-04 18:18:08 +000027793
Tanya Lattnercf067672008-01-17 05:57:22 +000027794rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027795 conftest$ac_exeext
27796 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27797 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027798fi
Reid Spencera773bd52006-08-04 18:18:08 +000027799done
27800if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27801 :
27802else
27803 ac_cv_search_pthread_mutex_lock=no
27804fi
27805rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027806LIBS=$ac_func_search_save_LIBS
27807fi
Reid Spencera773bd52006-08-04 18:18:08 +000027808{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27809echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27810ac_res=$ac_cv_search_pthread_mutex_lock
27811if test "$ac_res" != no; then
27812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027813
John Criswell40468462004-09-24 21:19:06 +000027814cat >>confdefs.h <<\_ACEOF
27815#define HAVE_PTHREAD_MUTEX_LOCK 1
27816_ACEOF
27817
27818fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027819
Reid Spencer0a262ba2005-08-24 10:07:20 +000027820fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027821
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027822
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027823# Check whether --with-udis86 was given.
27824if test "${with_udis86+set}" = set; then
27825 withval=$with_udis86;
27826 USE_UDIS86=1
27827
27828 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027829 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027830 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27831 esac
27832
27833{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27834echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27835if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27837else
27838 ac_check_lib_save_LIBS=$LIBS
27839LIBS="-ludis86 $LIBS"
27840cat >conftest.$ac_ext <<_ACEOF
27841/* confdefs.h. */
27842_ACEOF
27843cat confdefs.h >>conftest.$ac_ext
27844cat >>conftest.$ac_ext <<_ACEOF
27845/* end confdefs.h. */
27846
27847/* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850#ifdef __cplusplus
27851extern "C"
27852#endif
27853char ud_init ();
27854int
27855main ()
27856{
27857return ud_init ();
27858 ;
27859 return 0;
27860}
27861_ACEOF
27862rm -f conftest.$ac_objext conftest$ac_exeext
27863if { (ac_try="$ac_link"
27864case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27867esac
27868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_link") 2>conftest.er1
27870 ac_status=$?
27871 grep -v '^ *+' conftest.er1 >conftest.err
27872 rm -f conftest.er1
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027875 (exit $ac_status); } &&
27876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27877 { (case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27880esac
27881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_try") 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; } &&
27886 { ac_try='test -s conftest$ac_exeext'
27887 { (case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27890esac
27891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892 (eval "$ac_try") 2>&5
27893 ac_status=$?
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027896 ac_cv_lib_udis86_ud_init=yes
27897else
27898 echo "$as_me: failed program was:" >&5
27899sed 's/^/| /' conftest.$ac_ext >&5
27900
27901 ac_cv_lib_udis86_ud_init=no
27902fi
27903
Tanya Lattnercf067672008-01-17 05:57:22 +000027904rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027905 conftest$ac_exeext conftest.$ac_ext
27906LIBS=$ac_check_lib_save_LIBS
27907fi
27908{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27909echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27910if test $ac_cv_lib_udis86_ud_init = yes; then
27911 cat >>confdefs.h <<_ACEOF
27912#define HAVE_LIBUDIS86 1
27913_ACEOF
27914
27915 LIBS="-ludis86 $LIBS"
27916
27917else
27918
27919 echo "Error! You need to have libudis86 around."
27920 exit -1
27921
27922fi
27923
27924
27925else
27926 USE_UDIS86=0
27927
27928fi
27929
27930
27931cat >>confdefs.h <<_ACEOF
27932#define USE_UDIS86 $USE_UDIS86
27933_ACEOF
27934
27935
27936
Reid Spencer59473af2004-12-25 07:31:29 +000027937
27938
27939
27940
27941
27942ac_header_dirent=no
27943for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27944 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027945{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27946echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027948 echo $ECHO_N "(cached) $ECHO_C" >&6
27949else
27950 cat >conftest.$ac_ext <<_ACEOF
27951/* confdefs.h. */
27952_ACEOF
27953cat confdefs.h >>conftest.$ac_ext
27954cat >>conftest.$ac_ext <<_ACEOF
27955/* end confdefs.h. */
27956#include <sys/types.h>
27957#include <$ac_hdr>
27958
27959int
27960main ()
27961{
27962if ((DIR *) 0)
27963return 0;
27964 ;
27965 return 0;
27966}
27967_ACEOF
27968rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027969if { (ac_try="$ac_compile"
27970case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27973esac
27974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027976 ac_status=$?
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest.$ac_objext'
27993 { (case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27996esac
27997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_try") 2>&5
27999 ac_status=$?
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028002 eval "$as_ac_Header=yes"
28003else
28004 echo "$as_me: failed program was:" >&5
28005sed 's/^/| /' conftest.$ac_ext >&5
28006
Reid Spencera773bd52006-08-04 18:18:08 +000028007 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028008fi
Reid Spencera773bd52006-08-04 18:18:08 +000028009
28010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028011fi
Reid Spencera773bd52006-08-04 18:18:08 +000028012ac_res=`eval echo '${'$as_ac_Header'}'`
28013 { echo "$as_me:$LINENO: result: $ac_res" >&5
28014echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028015if test `eval echo '${'$as_ac_Header'}'` = yes; then
28016 cat >>confdefs.h <<_ACEOF
28017#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28018_ACEOF
28019
28020ac_header_dirent=$ac_hdr; break
28021fi
28022
28023done
28024# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28025if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028026 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28027echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028028if test "${ac_cv_search_opendir+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28030else
28031 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028032cat >conftest.$ac_ext <<_ACEOF
28033/* confdefs.h. */
28034_ACEOF
28035cat confdefs.h >>conftest.$ac_ext
28036cat >>conftest.$ac_ext <<_ACEOF
28037/* end confdefs.h. */
28038
Reid Spencera773bd52006-08-04 18:18:08 +000028039/* Override any GCC internal prototype to avoid an error.
28040 Use char because int might match the return type of a GCC
28041 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028042#ifdef __cplusplus
28043extern "C"
28044#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028045char opendir ();
28046int
28047main ()
28048{
Reid Spencera773bd52006-08-04 18:18:08 +000028049return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028050 ;
28051 return 0;
28052}
28053_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028054for ac_lib in '' dir; do
28055 if test -z "$ac_lib"; then
28056 ac_res="none required"
28057 else
28058 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028060 fi
28061 rm -f conftest.$ac_objext conftest$ac_exeext
28062if { (ac_try="$ac_link"
28063case "(($ac_try" in
28064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065 *) ac_try_echo=$ac_try;;
28066esac
28067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028069 ac_status=$?
28070 grep -v '^ *+' conftest.er1 >conftest.err
28071 rm -f conftest.er1
28072 cat conftest.err >&5
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028074 (exit $ac_status); } &&
28075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28076 { (case "(($ac_try" in
28077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078 *) ac_try_echo=$ac_try;;
28079esac
28080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081 (eval "$ac_try") 2>&5
28082 ac_status=$?
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; } &&
28085 { ac_try='test -s conftest$ac_exeext'
28086 { (case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28089esac
28090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_try") 2>&5
28092 ac_status=$?
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028095 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028096else
28097 echo "$as_me: failed program was:" >&5
28098sed 's/^/| /' conftest.$ac_ext >&5
28099
Reid Spencera773bd52006-08-04 18:18:08 +000028100
Reid Spencer59473af2004-12-25 07:31:29 +000028101fi
Reid Spencera773bd52006-08-04 18:18:08 +000028102
Tanya Lattnercf067672008-01-17 05:57:22 +000028103rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028104 conftest$ac_exeext
28105 if test "${ac_cv_search_opendir+set}" = set; then
28106 break
Reid Spencer59473af2004-12-25 07:31:29 +000028107fi
Reid Spencera773bd52006-08-04 18:18:08 +000028108done
28109if test "${ac_cv_search_opendir+set}" = set; then
28110 :
28111else
28112 ac_cv_search_opendir=no
28113fi
28114rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028115LIBS=$ac_func_search_save_LIBS
28116fi
Reid Spencera773bd52006-08-04 18:18:08 +000028117{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28118echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28119ac_res=$ac_cv_search_opendir
28120if test "$ac_res" != no; then
28121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028122
28123fi
28124
28125else
Reid Spencera773bd52006-08-04 18:18:08 +000028126 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28127echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028128if test "${ac_cv_search_opendir+set}" = set; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
28130else
28131 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028132cat >conftest.$ac_ext <<_ACEOF
28133/* confdefs.h. */
28134_ACEOF
28135cat confdefs.h >>conftest.$ac_ext
28136cat >>conftest.$ac_ext <<_ACEOF
28137/* end confdefs.h. */
28138
Reid Spencera773bd52006-08-04 18:18:08 +000028139/* Override any GCC internal prototype to avoid an error.
28140 Use char because int might match the return type of a GCC
28141 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028142#ifdef __cplusplus
28143extern "C"
28144#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028145char opendir ();
28146int
28147main ()
28148{
Reid Spencera773bd52006-08-04 18:18:08 +000028149return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028150 ;
28151 return 0;
28152}
28153_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028154for ac_lib in '' x; do
28155 if test -z "$ac_lib"; then
28156 ac_res="none required"
28157 else
28158 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028160 fi
28161 rm -f conftest.$ac_objext conftest$ac_exeext
28162if { (ac_try="$ac_link"
28163case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28166esac
28167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028169 ac_status=$?
28170 grep -v '^ *+' conftest.er1 >conftest.err
28171 rm -f conftest.er1
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest$ac_exeext'
28186 { (case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28189esac
28190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28192 ac_status=$?
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028195 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028196else
28197 echo "$as_me: failed program was:" >&5
28198sed 's/^/| /' conftest.$ac_ext >&5
28199
Reid Spencera773bd52006-08-04 18:18:08 +000028200
Reid Spencer59473af2004-12-25 07:31:29 +000028201fi
Reid Spencera773bd52006-08-04 18:18:08 +000028202
Tanya Lattnercf067672008-01-17 05:57:22 +000028203rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028204 conftest$ac_exeext
28205 if test "${ac_cv_search_opendir+set}" = set; then
28206 break
Reid Spencer59473af2004-12-25 07:31:29 +000028207fi
Reid Spencera773bd52006-08-04 18:18:08 +000028208done
28209if test "${ac_cv_search_opendir+set}" = set; then
28210 :
28211else
28212 ac_cv_search_opendir=no
28213fi
28214rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028215LIBS=$ac_func_search_save_LIBS
28216fi
Reid Spencera773bd52006-08-04 18:18:08 +000028217{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28218echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28219ac_res=$ac_cv_search_opendir
28220if test "$ac_res" != no; then
28221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028222
28223fi
28224
28225fi
28226
Reid Spencera773bd52006-08-04 18:18:08 +000028227{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28228echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028229if test "${ac_cv_header_mmap_anon+set}" = set; then
28230 echo $ECHO_N "(cached) $ECHO_C" >&6
28231else
28232 ac_ext=c
28233ac_cpp='$CPP $CPPFLAGS'
28234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28236ac_compiler_gnu=$ac_cv_c_compiler_gnu
28237
28238 cat >conftest.$ac_ext <<_ACEOF
28239/* confdefs.h. */
28240_ACEOF
28241cat confdefs.h >>conftest.$ac_ext
28242cat >>conftest.$ac_ext <<_ACEOF
28243/* end confdefs.h. */
28244#include <sys/mman.h>
28245#include <unistd.h>
28246#include <fcntl.h>
28247int
28248main ()
28249{
28250mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28251 ;
28252 return 0;
28253}
28254_ACEOF
28255rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028256if { (ac_try="$ac_compile"
28257case "(($ac_try" in
28258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28259 *) ac_try_echo=$ac_try;;
28260esac
28261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28262 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028263 ac_status=$?
28264 grep -v '^ *+' conftest.er1 >conftest.err
28265 rm -f conftest.er1
28266 cat conftest.err >&5
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028268 (exit $ac_status); } &&
28269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28270 { (case "(($ac_try" in
28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272 *) ac_try_echo=$ac_try;;
28273esac
28274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275 (eval "$ac_try") 2>&5
28276 ac_status=$?
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try='test -s conftest.$ac_objext'
28280 { (case "(($ac_try" in
28281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28282 *) ac_try_echo=$ac_try;;
28283esac
28284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28285 (eval "$ac_try") 2>&5
28286 ac_status=$?
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028289 ac_cv_header_mmap_anon=yes
28290else
28291 echo "$as_me: failed program was:" >&5
28292sed 's/^/| /' conftest.$ac_ext >&5
28293
Reid Spencera773bd52006-08-04 18:18:08 +000028294 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028295fi
Reid Spencera773bd52006-08-04 18:18:08 +000028296
28297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028298 ac_ext=c
28299ac_cpp='$CPP $CPPFLAGS'
28300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302ac_compiler_gnu=$ac_cv_c_compiler_gnu
28303
28304
28305fi
Reid Spencera773bd52006-08-04 18:18:08 +000028306{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28307echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028308if test "$ac_cv_header_mmap_anon" = yes; then
28309
28310cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028311#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028312_ACEOF
28313
28314fi
28315
Reid Spencera773bd52006-08-04 18:18:08 +000028316{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28317echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028318if test "${ac_cv_header_stat_broken+set}" = set; then
28319 echo $ECHO_N "(cached) $ECHO_C" >&6
28320else
28321 cat >conftest.$ac_ext <<_ACEOF
28322/* confdefs.h. */
28323_ACEOF
28324cat confdefs.h >>conftest.$ac_ext
28325cat >>conftest.$ac_ext <<_ACEOF
28326/* end confdefs.h. */
28327#include <sys/types.h>
28328#include <sys/stat.h>
28329
Reid Spencera773bd52006-08-04 18:18:08 +000028330#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028331# if S_ISBLK (S_IFDIR)
28332You lose.
28333# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028334#endif
28335
Reid Spencera773bd52006-08-04 18:18:08 +000028336#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028337# if S_ISBLK (S_IFCHR)
28338You lose.
28339# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028340#endif
28341
Reid Spencera773bd52006-08-04 18:18:08 +000028342#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028343# if S_ISLNK (S_IFREG)
28344You lose.
28345# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028346#endif
28347
Reid Spencera773bd52006-08-04 18:18:08 +000028348#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028349# if S_ISSOCK (S_IFREG)
28350You lose.
28351# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028352#endif
28353
28354_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28356 $EGREP "You lose" >/dev/null 2>&1; then
28357 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028358else
Tanya Lattnercf067672008-01-17 05:57:22 +000028359 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028360fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028361rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028362
Reid Spencer59473af2004-12-25 07:31:29 +000028363fi
Reid Spencera773bd52006-08-04 18:18:08 +000028364{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28365echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028366if test $ac_cv_header_stat_broken = yes; then
28367
28368cat >>confdefs.h <<\_ACEOF
28369#define STAT_MACROS_BROKEN 1
28370_ACEOF
28371
28372fi
28373
Reid Spencera773bd52006-08-04 18:18:08 +000028374{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28375echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028376if test "${ac_cv_header_stdc+set}" = set; then
28377 echo $ECHO_N "(cached) $ECHO_C" >&6
28378else
28379 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028380/* confdefs.h. */
28381_ACEOF
28382cat confdefs.h >>conftest.$ac_ext
28383cat >>conftest.$ac_ext <<_ACEOF
28384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028385#include <stdlib.h>
28386#include <stdarg.h>
28387#include <string.h>
28388#include <float.h>
28389
John Criswell0c38eaf2003-09-10 15:17:25 +000028390int
28391main ()
28392{
28393
28394 ;
28395 return 0;
28396}
John Criswell7a73b802003-06-30 21:59:07 +000028397_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028398rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028399if { (ac_try="$ac_compile"
28400case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28403esac
28404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028407 grep -v '^ *+' conftest.er1 >conftest.err
28408 rm -f conftest.er1
28409 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028411 (exit $ac_status); } &&
28412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28413 { (case "(($ac_try" in
28414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415 *) ac_try_echo=$ac_try;;
28416esac
28417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418 (eval "$ac_try") 2>&5
28419 ac_status=$?
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; } &&
28422 { ac_try='test -s conftest.$ac_objext'
28423 { (case "(($ac_try" in
28424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425 *) ac_try_echo=$ac_try;;
28426esac
28427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28428 (eval "$ac_try") 2>&5
28429 ac_status=$?
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028432 ac_cv_header_stdc=yes
28433else
28434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028435sed 's/^/| /' conftest.$ac_ext >&5
28436
Reid Spencera773bd52006-08-04 18:18:08 +000028437 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028438fi
Reid Spencera773bd52006-08-04 18:18:08 +000028439
28440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028441
28442if test $ac_cv_header_stdc = yes; then
28443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028445/* confdefs.h. */
28446_ACEOF
28447cat confdefs.h >>conftest.$ac_ext
28448cat >>conftest.$ac_ext <<_ACEOF
28449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028450#include <string.h>
28451
28452_ACEOF
28453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028454 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028455 :
28456else
28457 ac_cv_header_stdc=no
28458fi
28459rm -f conftest*
28460
28461fi
28462
28463if test $ac_cv_header_stdc = yes; then
28464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28465 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028466/* confdefs.h. */
28467_ACEOF
28468cat confdefs.h >>conftest.$ac_ext
28469cat >>conftest.$ac_ext <<_ACEOF
28470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028471#include <stdlib.h>
28472
28473_ACEOF
28474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028475 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028476 :
28477else
28478 ac_cv_header_stdc=no
28479fi
28480rm -f conftest*
28481
28482fi
28483
28484if test $ac_cv_header_stdc = yes; then
28485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28486 if test "$cross_compiling" = yes; then
28487 :
28488else
28489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028490/* confdefs.h. */
28491_ACEOF
28492cat confdefs.h >>conftest.$ac_ext
28493cat >>conftest.$ac_ext <<_ACEOF
28494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028495#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028496#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028497#if ((' ' & 0x0FF) == 0x020)
28498# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28499# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28500#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028501# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028502 (('a' <= (c) && (c) <= 'i') \
28503 || ('j' <= (c) && (c) <= 'r') \
28504 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028505# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28506#endif
28507
28508#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28509int
28510main ()
28511{
28512 int i;
28513 for (i = 0; i < 256; i++)
28514 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028515 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028516 return 2;
28517 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028518}
28519_ACEOF
28520rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028521if { (ac_try="$ac_link"
28522case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28525esac
28526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028528 ac_status=$?
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028531 { (case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534esac
28535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; }; then
28540 :
28541else
28542 echo "$as_me: program exited with status $ac_status" >&5
28543echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028544sed 's/^/| /' conftest.$ac_ext >&5
28545
John Criswell7a73b802003-06-30 21:59:07 +000028546( exit $ac_status )
28547ac_cv_header_stdc=no
28548fi
Reid Spencera773bd52006-08-04 18:18:08 +000028549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28550fi
28551
28552
John Criswell7a73b802003-06-30 21:59:07 +000028553fi
28554fi
Reid Spencera773bd52006-08-04 18:18:08 +000028555{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28556echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028557if test $ac_cv_header_stdc = yes; then
28558
28559cat >>confdefs.h <<\_ACEOF
28560#define STDC_HEADERS 1
28561_ACEOF
28562
28563fi
28564
Reid Spencera773bd52006-08-04 18:18:08 +000028565{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28566echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028567if test "${ac_cv_header_sys_wait_h+set}" = set; then
28568 echo $ECHO_N "(cached) $ECHO_C" >&6
28569else
28570 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028571/* confdefs.h. */
28572_ACEOF
28573cat confdefs.h >>conftest.$ac_ext
28574cat >>conftest.$ac_ext <<_ACEOF
28575/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028576#include <sys/types.h>
28577#include <sys/wait.h>
28578#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028579# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028580#endif
28581#ifndef WIFEXITED
28582# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28583#endif
28584
John Criswell7a73b802003-06-30 21:59:07 +000028585int
28586main ()
28587{
28588 int s;
28589 wait (&s);
28590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28591 ;
28592 return 0;
28593}
28594_ACEOF
28595rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028596if { (ac_try="$ac_compile"
28597case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028603 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028604 grep -v '^ *+' conftest.er1 >conftest.err
28605 rm -f conftest.er1
28606 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest.$ac_objext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623esac
28624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28626 ac_status=$?
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028629 ac_cv_header_sys_wait_h=yes
28630else
28631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028632sed 's/^/| /' conftest.$ac_ext >&5
28633
Reid Spencera773bd52006-08-04 18:18:08 +000028634 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028635fi
Reid Spencera773bd52006-08-04 18:18:08 +000028636
28637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028638fi
Reid Spencera773bd52006-08-04 18:18:08 +000028639{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28640echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028641if test $ac_cv_header_sys_wait_h = yes; then
28642
28643cat >>confdefs.h <<\_ACEOF
28644#define HAVE_SYS_WAIT_H 1
28645_ACEOF
28646
28647fi
28648
Reid Spencera773bd52006-08-04 18:18:08 +000028649{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28650echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028651if test "${ac_cv_header_time+set}" = set; then
28652 echo $ECHO_N "(cached) $ECHO_C" >&6
28653else
28654 cat >conftest.$ac_ext <<_ACEOF
28655/* confdefs.h. */
28656_ACEOF
28657cat confdefs.h >>conftest.$ac_ext
28658cat >>conftest.$ac_ext <<_ACEOF
28659/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028660#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028661#include <sys/time.h>
28662#include <time.h>
28663
28664int
28665main ()
28666{
28667if ((struct tm *) 0)
28668return 0;
28669 ;
28670 return 0;
28671}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028672_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028673rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028674if { (ac_try="$ac_compile"
28675case "(($ac_try" in
28676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28677 *) ac_try_echo=$ac_try;;
28678esac
28679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28680 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028681 ac_status=$?
28682 grep -v '^ *+' conftest.er1 >conftest.err
28683 rm -f conftest.er1
28684 cat conftest.err >&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028686 (exit $ac_status); } &&
28687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28688 { (case "(($ac_try" in
28689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28690 *) ac_try_echo=$ac_try;;
28691esac
28692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28693 (eval "$ac_try") 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; } &&
28697 { ac_try='test -s conftest.$ac_objext'
28698 { (case "(($ac_try" in
28699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28700 *) ac_try_echo=$ac_try;;
28701esac
28702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28703 (eval "$ac_try") 2>&5
28704 ac_status=$?
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028707 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028708else
28709 echo "$as_me: failed program was:" >&5
28710sed 's/^/| /' conftest.$ac_ext >&5
28711
Reid Spencera773bd52006-08-04 18:18:08 +000028712 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028713fi
Reid Spencera773bd52006-08-04 18:18:08 +000028714
28715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028716fi
Reid Spencera773bd52006-08-04 18:18:08 +000028717{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28718echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028719if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028720
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028721cat >>confdefs.h <<\_ACEOF
28722#define TIME_WITH_SYS_TIME 1
28723_ACEOF
28724
28725fi
28726
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028727
Reid Spencer59473af2004-12-25 07:31:29 +000028728
28729
28730
28731
28732
28733
28734for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28735do
28736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028741 echo $ECHO_N "(cached) $ECHO_C" >&6
28742fi
Reid Spencera773bd52006-08-04 18:18:08 +000028743ac_res=`eval echo '${'$as_ac_Header'}'`
28744 { echo "$as_me:$LINENO: result: $ac_res" >&5
28745echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028746else
28747 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028748{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028750cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028751/* confdefs.h. */
28752_ACEOF
28753cat confdefs.h >>conftest.$ac_ext
28754cat >>conftest.$ac_ext <<_ACEOF
28755/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028756$ac_includes_default
28757#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028758_ACEOF
28759rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028760if { (ac_try="$ac_compile"
28761case "(($ac_try" in
28762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28763 *) ac_try_echo=$ac_try;;
28764esac
28765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28766 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028767 ac_status=$?
28768 grep -v '^ *+' conftest.er1 >conftest.err
28769 rm -f conftest.er1
28770 cat conftest.err >&5
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028772 (exit $ac_status); } &&
28773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28774 { (case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28777esac
28778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779 (eval "$ac_try") 2>&5
28780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; } &&
28783 { ac_try='test -s conftest.$ac_objext'
28784 { (case "(($ac_try" in
28785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28786 *) ac_try_echo=$ac_try;;
28787esac
28788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28789 (eval "$ac_try") 2>&5
28790 ac_status=$?
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028793 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028794else
28795 echo "$as_me: failed program was:" >&5
28796sed 's/^/| /' conftest.$ac_ext >&5
28797
Reid Spencera773bd52006-08-04 18:18:08 +000028798 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028799fi
Reid Spencera773bd52006-08-04 18:18:08 +000028800
28801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28802{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28803echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028804
Reid Spencer59473af2004-12-25 07:31:29 +000028805# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028806{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028808cat >conftest.$ac_ext <<_ACEOF
28809/* confdefs.h. */
28810_ACEOF
28811cat confdefs.h >>conftest.$ac_ext
28812cat >>conftest.$ac_ext <<_ACEOF
28813/* end confdefs.h. */
28814#include <$ac_header>
28815_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028816if { (ac_try="$ac_cpp conftest.$ac_ext"
28817case "(($ac_try" in
28818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819 *) ac_try_echo=$ac_try;;
28820esac
28821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028823 ac_status=$?
28824 grep -v '^ *+' conftest.er1 >conftest.err
28825 rm -f conftest.er1
28826 cat conftest.err >&5
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028828 (exit $ac_status); } >/dev/null; then
28829 if test -s conftest.err; then
28830 ac_cpp_err=$ac_c_preproc_warn_flag
28831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28832 else
28833 ac_cpp_err=
28834 fi
28835else
28836 ac_cpp_err=yes
28837fi
28838if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028839 ac_header_preproc=yes
28840else
28841 echo "$as_me: failed program was:" >&5
28842sed 's/^/| /' conftest.$ac_ext >&5
28843
28844 ac_header_preproc=no
28845fi
Reid Spencera773bd52006-08-04 18:18:08 +000028846
Reid Spencer59473af2004-12-25 07:31:29 +000028847rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028848{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28849echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028850
28851# So? What about this header?
28852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28853 yes:no: )
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28858 ac_header_preproc=yes
28859 ;;
28860 no:yes:* )
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028873 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028874## ----------------------------------- ##
28875## Report this to llvmbugs@cs.uiuc.edu ##
28876## ----------------------------------- ##
28877_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028878 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028879 ;;
28880esac
Reid Spencera773bd52006-08-04 18:18:08 +000028881{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028884 echo $ECHO_N "(cached) $ECHO_C" >&6
28885else
28886 eval "$as_ac_Header=\$ac_header_preproc"
28887fi
Reid Spencera773bd52006-08-04 18:18:08 +000028888ac_res=`eval echo '${'$as_ac_Header'}'`
28889 { echo "$as_me:$LINENO: result: $ac_res" >&5
28890echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028891
28892fi
Reid Spencer59473af2004-12-25 07:31:29 +000028893if test `eval echo '${'$as_ac_Header'}'` = yes; then
28894 cat >>confdefs.h <<_ACEOF
28895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028896_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028897
28898fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028899
Reid Spencer59473af2004-12-25 07:31:29 +000028900done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028901
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028902
28903
Reid Spencer59473af2004-12-25 07:31:29 +000028904
28905
28906
28907
Reid Spencercdb08a32006-06-05 16:11:07 +000028908for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028909do
28910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028915 echo $ECHO_N "(cached) $ECHO_C" >&6
28916fi
Reid Spencera773bd52006-08-04 18:18:08 +000028917ac_res=`eval echo '${'$as_ac_Header'}'`
28918 { echo "$as_me:$LINENO: result: $ac_res" >&5
28919echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028920else
28921 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028922{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028924cat >conftest.$ac_ext <<_ACEOF
28925/* confdefs.h. */
28926_ACEOF
28927cat confdefs.h >>conftest.$ac_ext
28928cat >>conftest.$ac_ext <<_ACEOF
28929/* end confdefs.h. */
28930$ac_includes_default
28931#include <$ac_header>
28932_ACEOF
28933rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028934if { (ac_try="$ac_compile"
28935case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28938esac
28939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028941 ac_status=$?
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028946 (exit $ac_status); } &&
28947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28948 { (case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28951esac
28952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_try") 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest.$ac_objext'
28958 { (case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28961esac
28962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_try") 2>&5
28964 ac_status=$?
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028967 ac_header_compiler=yes
28968else
28969 echo "$as_me: failed program was:" >&5
28970sed 's/^/| /' conftest.$ac_ext >&5
28971
Reid Spencera773bd52006-08-04 18:18:08 +000028972 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028973fi
Reid Spencera773bd52006-08-04 18:18:08 +000028974
28975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28977echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028978
28979# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028982cat >conftest.$ac_ext <<_ACEOF
28983/* confdefs.h. */
28984_ACEOF
28985cat confdefs.h >>conftest.$ac_ext
28986cat >>conftest.$ac_ext <<_ACEOF
28987/* end confdefs.h. */
28988#include <$ac_header>
28989_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028990if { (ac_try="$ac_cpp conftest.$ac_ext"
28991case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28994esac
28995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028997 ac_status=$?
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029002 (exit $ac_status); } >/dev/null; then
29003 if test -s conftest.err; then
29004 ac_cpp_err=$ac_c_preproc_warn_flag
29005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29006 else
29007 ac_cpp_err=
29008 fi
29009else
29010 ac_cpp_err=yes
29011fi
29012if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029013 ac_header_preproc=yes
29014else
29015 echo "$as_me: failed program was:" >&5
29016sed 's/^/| /' conftest.$ac_ext >&5
29017
29018 ac_header_preproc=no
29019fi
Reid Spencera773bd52006-08-04 18:18:08 +000029020
Reid Spencer59473af2004-12-25 07:31:29 +000029021rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029022{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29023echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029024
29025# So? What about this header?
29026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29027 yes:no: )
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29032 ac_header_preproc=yes
29033 ;;
29034 no:yes:* )
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29042echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029047 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029048## ----------------------------------- ##
29049## Report this to llvmbugs@cs.uiuc.edu ##
29050## ----------------------------------- ##
29051_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029052 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029053 ;;
29054esac
Reid Spencera773bd52006-08-04 18:18:08 +000029055{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029058 echo $ECHO_N "(cached) $ECHO_C" >&6
29059else
29060 eval "$as_ac_Header=\$ac_header_preproc"
29061fi
Reid Spencera773bd52006-08-04 18:18:08 +000029062ac_res=`eval echo '${'$as_ac_Header'}'`
29063 { echo "$as_me:$LINENO: result: $ac_res" >&5
29064echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029065
29066fi
29067if test `eval echo '${'$as_ac_Header'}'` = yes; then
29068 cat >>confdefs.h <<_ACEOF
29069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29070_ACEOF
29071
29072fi
29073
29074done
29075
29076
Reid Spencerbe3e4192007-08-17 05:45:26 +000029077for ac_header in windows.h
29078do
29079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29084 echo $ECHO_N "(cached) $ECHO_C" >&6
29085fi
29086ac_res=`eval echo '${'$as_ac_Header'}'`
29087 { echo "$as_me:$LINENO: result: $ac_res" >&5
29088echo "${ECHO_T}$ac_res" >&6; }
29089else
29090 # Is the header compilable?
29091{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29093cat >conftest.$ac_ext <<_ACEOF
29094/* confdefs.h. */
29095_ACEOF
29096cat confdefs.h >>conftest.$ac_ext
29097cat >>conftest.$ac_ext <<_ACEOF
29098/* end confdefs.h. */
29099$ac_includes_default
29100#include <$ac_header>
29101_ACEOF
29102rm -f conftest.$ac_objext
29103if { (ac_try="$ac_compile"
29104case "(($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_compile") 2>conftest.er1
29110 ac_status=$?
29111 grep -v '^ *+' conftest.er1 >conftest.err
29112 rm -f conftest.er1
29113 cat conftest.err >&5
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029115 (exit $ac_status); } &&
29116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29117 { (case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29120esac
29121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122 (eval "$ac_try") 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; } &&
29126 { ac_try='test -s conftest.$ac_objext'
29127 { (case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29130esac
29131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29132 (eval "$ac_try") 2>&5
29133 ac_status=$?
29134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029136 ac_header_compiler=yes
29137else
29138 echo "$as_me: failed program was:" >&5
29139sed 's/^/| /' conftest.$ac_ext >&5
29140
29141 ac_header_compiler=no
29142fi
29143
29144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29145{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29146echo "${ECHO_T}$ac_header_compiler" >&6; }
29147
29148# Is the header present?
29149{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29150echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29151cat >conftest.$ac_ext <<_ACEOF
29152/* confdefs.h. */
29153_ACEOF
29154cat confdefs.h >>conftest.$ac_ext
29155cat >>conftest.$ac_ext <<_ACEOF
29156/* end confdefs.h. */
29157#include <$ac_header>
29158_ACEOF
29159if { (ac_try="$ac_cpp conftest.$ac_ext"
29160case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29163esac
29164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29166 ac_status=$?
29167 grep -v '^ *+' conftest.er1 >conftest.err
29168 rm -f conftest.er1
29169 cat conftest.err >&5
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029171 (exit $ac_status); } >/dev/null; then
29172 if test -s conftest.err; then
29173 ac_cpp_err=$ac_c_preproc_warn_flag
29174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29175 else
29176 ac_cpp_err=
29177 fi
29178else
29179 ac_cpp_err=yes
29180fi
29181if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029182 ac_header_preproc=yes
29183else
29184 echo "$as_me: failed program was:" >&5
29185sed 's/^/| /' conftest.$ac_ext >&5
29186
29187 ac_header_preproc=no
29188fi
29189
29190rm -f conftest.err conftest.$ac_ext
29191{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29192echo "${ECHO_T}$ac_header_preproc" >&6; }
29193
29194# So? What about this header?
29195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29196 yes:no: )
29197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29201 ac_header_preproc=yes
29202 ;;
29203 no:yes:* )
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29216 ( cat <<\_ASBOX
29217## ----------------------------------- ##
29218## Report this to llvmbugs@cs.uiuc.edu ##
29219## ----------------------------------- ##
29220_ASBOX
29221 ) | sed "s/^/$as_me: WARNING: /" >&2
29222 ;;
29223esac
29224{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29228else
29229 eval "$as_ac_Header=\$ac_header_preproc"
29230fi
29231ac_res=`eval echo '${'$as_ac_Header'}'`
29232 { echo "$as_me:$LINENO: result: $ac_res" >&5
29233echo "${ECHO_T}$ac_res" >&6; }
29234
29235fi
29236if test `eval echo '${'$as_ac_Header'}'` = yes; then
29237 cat >>confdefs.h <<_ACEOF
29238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29239_ACEOF
29240
29241fi
29242
29243done
Reid Spencer59473af2004-12-25 07:31:29 +000029244
29245
29246
29247
Reid Spencerbe3e4192007-08-17 05:45:26 +000029248
29249for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029250do
29251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029256 echo $ECHO_N "(cached) $ECHO_C" >&6
29257fi
Reid Spencera773bd52006-08-04 18:18:08 +000029258ac_res=`eval echo '${'$as_ac_Header'}'`
29259 { echo "$as_me:$LINENO: result: $ac_res" >&5
29260echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029261else
29262 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029263{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029265cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029266/* confdefs.h. */
29267_ACEOF
29268cat confdefs.h >>conftest.$ac_ext
29269cat >>conftest.$ac_ext <<_ACEOF
29270/* end confdefs.h. */
29271$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029272#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029273_ACEOF
29274rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029275if { (ac_try="$ac_compile"
29276case "(($ac_try" in
29277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278 *) ac_try_echo=$ac_try;;
29279esac
29280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029282 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029283 grep -v '^ *+' conftest.er1 >conftest.err
29284 rm -f conftest.er1
29285 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29289 { (case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29292esac
29293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_try") 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29302esac
29303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_try") 2>&5
29305 ac_status=$?
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029308 ac_header_compiler=yes
29309else
29310 echo "$as_me: failed program was:" >&5
29311sed 's/^/| /' conftest.$ac_ext >&5
29312
Reid Spencera773bd52006-08-04 18:18:08 +000029313 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029314fi
Reid Spencera773bd52006-08-04 18:18:08 +000029315
29316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29318echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029319
29320# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029321{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029323cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029324/* confdefs.h. */
29325_ACEOF
29326cat confdefs.h >>conftest.$ac_ext
29327cat >>conftest.$ac_ext <<_ACEOF
29328/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029329#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029330_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029331if { (ac_try="$ac_cpp conftest.$ac_ext"
29332case "(($ac_try" in
29333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334 *) ac_try_echo=$ac_try;;
29335esac
29336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029338 ac_status=$?
29339 grep -v '^ *+' conftest.er1 >conftest.err
29340 rm -f conftest.er1
29341 cat conftest.err >&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029343 (exit $ac_status); } >/dev/null; then
29344 if test -s conftest.err; then
29345 ac_cpp_err=$ac_c_preproc_warn_flag
29346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29347 else
29348 ac_cpp_err=
29349 fi
29350else
29351 ac_cpp_err=yes
29352fi
29353if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029354 ac_header_preproc=yes
29355else
29356 echo "$as_me: failed program was:" >&5
29357sed 's/^/| /' conftest.$ac_ext >&5
29358
29359 ac_header_preproc=no
29360fi
Reid Spencera773bd52006-08-04 18:18:08 +000029361
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029362rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029363{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29364echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029365
29366# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29368 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029373 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029374 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029375 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29379echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29383echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029388 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029389## ----------------------------------- ##
29390## Report this to llvmbugs@cs.uiuc.edu ##
29391## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029392_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029393 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029394 ;;
29395esac
Reid Spencera773bd52006-08-04 18:18:08 +000029396{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029399 echo $ECHO_N "(cached) $ECHO_C" >&6
29400else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029401 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029402fi
Reid Spencera773bd52006-08-04 18:18:08 +000029403ac_res=`eval echo '${'$as_ac_Header'}'`
29404 { echo "$as_me:$LINENO: result: $ac_res" >&5
29405echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029406
29407fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029408if test `eval echo '${'$as_ac_Header'}'` = yes; then
29409 cat >>confdefs.h <<_ACEOF
29410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029411_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029412
29413fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029414
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029415done
29416
John Criswell7ed43ad2004-07-19 16:12:29 +000029417
Reid Spencercdb08a32006-06-05 16:11:07 +000029418
Reid Spencera6d990a2006-09-14 06:17:21 +000029419
29420for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029421do
29422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029427 echo $ECHO_N "(cached) $ECHO_C" >&6
29428fi
Reid Spencera773bd52006-08-04 18:18:08 +000029429ac_res=`eval echo '${'$as_ac_Header'}'`
29430 { echo "$as_me:$LINENO: result: $ac_res" >&5
29431echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029432else
29433 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029434{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029436cat >conftest.$ac_ext <<_ACEOF
29437/* confdefs.h. */
29438_ACEOF
29439cat confdefs.h >>conftest.$ac_ext
29440cat >>conftest.$ac_ext <<_ACEOF
29441/* end confdefs.h. */
29442$ac_includes_default
29443#include <$ac_header>
29444_ACEOF
29445rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029446if { (ac_try="$ac_compile"
29447case "(($ac_try" in
29448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29450esac
29451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029453 ac_status=$?
29454 grep -v '^ *+' conftest.er1 >conftest.err
29455 rm -f conftest.er1
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029458 (exit $ac_status); } &&
29459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29460 { (case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29463esac
29464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_try") 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; } &&
29469 { ac_try='test -s conftest.$ac_objext'
29470 { (case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29473esac
29474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_try") 2>&5
29476 ac_status=$?
29477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029479 ac_header_compiler=yes
29480else
29481 echo "$as_me: failed program was:" >&5
29482sed 's/^/| /' conftest.$ac_ext >&5
29483
Reid Spencera773bd52006-08-04 18:18:08 +000029484 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029485fi
Reid Spencera773bd52006-08-04 18:18:08 +000029486
29487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29488{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29489echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029490
29491# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029492{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029494cat >conftest.$ac_ext <<_ACEOF
29495/* confdefs.h. */
29496_ACEOF
29497cat confdefs.h >>conftest.$ac_ext
29498cat >>conftest.$ac_ext <<_ACEOF
29499/* end confdefs.h. */
29500#include <$ac_header>
29501_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029502if { (ac_try="$ac_cpp conftest.$ac_ext"
29503case "(($ac_try" in
29504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505 *) ac_try_echo=$ac_try;;
29506esac
29507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029509 ac_status=$?
29510 grep -v '^ *+' conftest.er1 >conftest.err
29511 rm -f conftest.er1
29512 cat conftest.err >&5
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029514 (exit $ac_status); } >/dev/null; then
29515 if test -s conftest.err; then
29516 ac_cpp_err=$ac_c_preproc_warn_flag
29517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29518 else
29519 ac_cpp_err=
29520 fi
29521else
29522 ac_cpp_err=yes
29523fi
29524if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029525 ac_header_preproc=yes
29526else
29527 echo "$as_me: failed program was:" >&5
29528sed 's/^/| /' conftest.$ac_ext >&5
29529
29530 ac_header_preproc=no
29531fi
Reid Spencera773bd52006-08-04 18:18:08 +000029532
Chris Lattner0b142592005-11-14 06:57:34 +000029533rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029534{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29535echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029536
29537# So? What about this header?
29538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29539 yes:no: )
29540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29544 ac_header_preproc=yes
29545 ;;
29546 no:yes:* )
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29554echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029559 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029560## ----------------------------------- ##
29561## Report this to llvmbugs@cs.uiuc.edu ##
29562## ----------------------------------- ##
29563_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029564 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029565 ;;
29566esac
Reid Spencera773bd52006-08-04 18:18:08 +000029567{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029570 echo $ECHO_N "(cached) $ECHO_C" >&6
29571else
29572 eval "$as_ac_Header=\$ac_header_preproc"
29573fi
Reid Spencera773bd52006-08-04 18:18:08 +000029574ac_res=`eval echo '${'$as_ac_Header'}'`
29575 { echo "$as_me:$LINENO: result: $ac_res" >&5
29576echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029577
29578fi
29579if test `eval echo '${'$as_ac_Header'}'` = yes; then
29580 cat >>confdefs.h <<_ACEOF
29581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29582_ACEOF
29583
29584fi
29585
29586done
29587
Reid Spencer0a262ba2005-08-24 10:07:20 +000029588if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029589
29590for ac_header in pthread.h
29591do
29592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029597 echo $ECHO_N "(cached) $ECHO_C" >&6
29598fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029599ac_res=`eval echo '${'$as_ac_Header'}'`
29600 { echo "$as_me:$LINENO: result: $ac_res" >&5
29601echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029602else
29603 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029604{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029606cat >conftest.$ac_ext <<_ACEOF
29607/* confdefs.h. */
29608_ACEOF
29609cat confdefs.h >>conftest.$ac_ext
29610cat >>conftest.$ac_ext <<_ACEOF
29611/* end confdefs.h. */
29612$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029613#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029614_ACEOF
29615rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029616if { (ac_try="$ac_compile"
29617case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29620esac
29621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029623 ac_status=$?
29624 grep -v '^ *+' conftest.er1 >conftest.err
29625 rm -f conftest.er1
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029628 (exit $ac_status); } &&
29629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29630 { (case "(($ac_try" in
29631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29632 *) ac_try_echo=$ac_try;;
29633esac
29634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29635 (eval "$ac_try") 2>&5
29636 ac_status=$?
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); }; } &&
29639 { ac_try='test -s conftest.$ac_objext'
29640 { (case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_try") 2>&5
29646 ac_status=$?
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029649 ac_header_compiler=yes
29650else
29651 echo "$as_me: failed program was:" >&5
29652sed 's/^/| /' conftest.$ac_ext >&5
29653
Reid Spencera773bd52006-08-04 18:18:08 +000029654 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029655fi
Reid Spencera773bd52006-08-04 18:18:08 +000029656
29657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29658{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29659echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029660
29661# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029662{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029664cat >conftest.$ac_ext <<_ACEOF
29665/* confdefs.h. */
29666_ACEOF
29667cat confdefs.h >>conftest.$ac_ext
29668cat >>conftest.$ac_ext <<_ACEOF
29669/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029670#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029671_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029672if { (ac_try="$ac_cpp conftest.$ac_ext"
29673case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29676esac
29677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029679 ac_status=$?
29680 grep -v '^ *+' conftest.er1 >conftest.err
29681 rm -f conftest.er1
29682 cat conftest.err >&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029684 (exit $ac_status); } >/dev/null; then
29685 if test -s conftest.err; then
29686 ac_cpp_err=$ac_c_preproc_warn_flag
29687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29688 else
29689 ac_cpp_err=
29690 fi
29691else
29692 ac_cpp_err=yes
29693fi
29694if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029695 ac_header_preproc=yes
29696else
29697 echo "$as_me: failed program was:" >&5
29698sed 's/^/| /' conftest.$ac_ext >&5
29699
29700 ac_header_preproc=no
29701fi
Reid Spencera773bd52006-08-04 18:18:08 +000029702
Reid Spencer0a262ba2005-08-24 10:07:20 +000029703rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029704{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29705echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029706
29707# So? What about this header?
29708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29709 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29711echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29713echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029714 ac_header_preproc=yes
29715 ;;
29716 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29718echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29720echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29722echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29724echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29726echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29728echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029729 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029730## ----------------------------------- ##
29731## Report this to llvmbugs@cs.uiuc.edu ##
29732## ----------------------------------- ##
29733_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029734 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029735 ;;
29736esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029737{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029740 echo $ECHO_N "(cached) $ECHO_C" >&6
29741else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029742 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029743fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029744ac_res=`eval echo '${'$as_ac_Header'}'`
29745 { echo "$as_me:$LINENO: result: $ac_res" >&5
29746echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029747
29748fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029749if test `eval echo '${'$as_ac_Header'}'` = yes; then
29750 cat >>confdefs.h <<_ACEOF
29751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29752_ACEOF
29753 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029754
29755else
29756 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029757
29758fi
29759
Reid Spencerbe3e4192007-08-17 05:45:26 +000029760done
Reid Spencer1000b732006-12-01 00:37:14 +000029761
29762else
29763 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029764
29765fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029766
29767
Reid Spencerb2ed05262006-11-03 18:04:08 +000029768
29769 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29770echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29771if test "${ac_cv_huge_val_sanity+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29773else
29774
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029775 ac_ext=cpp
29776ac_cpp='$CXXCPP $CPPFLAGS'
29777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029780
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029781 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029782 if test "$cross_compiling" = yes; then
29783 ac_cv_huge_val_sanity=yes
29784else
29785 cat >conftest.$ac_ext <<_ACEOF
29786/* confdefs.h. */
29787_ACEOF
29788cat confdefs.h >>conftest.$ac_ext
29789cat >>conftest.$ac_ext <<_ACEOF
29790/* end confdefs.h. */
29791#include <math.h>
29792int
29793main ()
29794{
29795double x = HUGE_VAL; return x != x;
29796 ;
29797 return 0;
29798}
29799_ACEOF
29800rm -f conftest$ac_exeext
29801if { (ac_try="$ac_link"
29802case "(($ac_try" in
29803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804 *) ac_try_echo=$ac_try;;
29805esac
29806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807 (eval "$ac_link") 2>&5
29808 ac_status=$?
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29811 { (case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29814esac
29815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_try") 2>&5
29817 ac_status=$?
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); }; }; then
29820 ac_cv_huge_val_sanity=yes
29821else
29822 echo "$as_me: program exited with status $ac_status" >&5
29823echo "$as_me: failed program was:" >&5
29824sed 's/^/| /' conftest.$ac_ext >&5
29825
29826( exit $ac_status )
29827ac_cv_huge_val_sanity=no
29828fi
29829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29830fi
29831
29832
29833 ac_ext=c
29834ac_cpp='$CPP $CPPFLAGS'
29835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837ac_compiler_gnu=$ac_cv_c_compiler_gnu
29838
29839
29840fi
29841{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29842echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29843 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29844
29845
Reid Spencera773bd52006-08-04 18:18:08 +000029846{ echo "$as_me:$LINENO: checking for pid_t" >&5
29847echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029848if test "${ac_cv_type_pid_t+set}" = set; then
29849 echo $ECHO_N "(cached) $ECHO_C" >&6
29850else
29851 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029852/* confdefs.h. */
29853_ACEOF
29854cat confdefs.h >>conftest.$ac_ext
29855cat >>conftest.$ac_ext <<_ACEOF
29856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029857$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029858typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029859int
29860main ()
29861{
Reid Spencera773bd52006-08-04 18:18:08 +000029862if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029863 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029864if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029865 return 0;
29866 ;
29867 return 0;
29868}
29869_ACEOF
29870rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029871if { (ac_try="$ac_compile"
29872case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29875esac
29876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029878 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029879 grep -v '^ *+' conftest.er1 >conftest.err
29880 rm -f conftest.er1
29881 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029883 (exit $ac_status); } &&
29884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29885 { (case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29888esac
29889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890 (eval "$ac_try") 2>&5
29891 ac_status=$?
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; } &&
29894 { ac_try='test -s conftest.$ac_objext'
29895 { (case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29898esac
29899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_try") 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029904 ac_cv_type_pid_t=yes
29905else
29906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029907sed 's/^/| /' conftest.$ac_ext >&5
29908
Reid Spencera773bd52006-08-04 18:18:08 +000029909 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029910fi
Reid Spencera773bd52006-08-04 18:18:08 +000029911
29912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029913fi
Reid Spencera773bd52006-08-04 18:18:08 +000029914{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29915echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029916if test $ac_cv_type_pid_t = yes; then
29917 :
29918else
29919
29920cat >>confdefs.h <<_ACEOF
29921#define pid_t int
29922_ACEOF
29923
29924fi
29925
Reid Spencera773bd52006-08-04 18:18:08 +000029926{ echo "$as_me:$LINENO: checking for size_t" >&5
29927echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029928if test "${ac_cv_type_size_t+set}" = set; then
29929 echo $ECHO_N "(cached) $ECHO_C" >&6
29930else
29931 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029932/* confdefs.h. */
29933_ACEOF
29934cat confdefs.h >>conftest.$ac_ext
29935cat >>conftest.$ac_ext <<_ACEOF
29936/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029937$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029938typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029939int
29940main ()
29941{
Reid Spencera773bd52006-08-04 18:18:08 +000029942if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029943 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029944if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029945 return 0;
29946 ;
29947 return 0;
29948}
29949_ACEOF
29950rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029951if { (ac_try="$ac_compile"
29952case "(($ac_try" in
29953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29954 *) ac_try_echo=$ac_try;;
29955esac
29956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29957 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029959 grep -v '^ *+' conftest.er1 >conftest.err
29960 rm -f conftest.er1
29961 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029963 (exit $ac_status); } &&
29964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29965 { (case "(($ac_try" in
29966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967 *) ac_try_echo=$ac_try;;
29968esac
29969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970 (eval "$ac_try") 2>&5
29971 ac_status=$?
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; } &&
29974 { ac_try='test -s conftest.$ac_objext'
29975 { (case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29978esac
29979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_try") 2>&5
29981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029984 ac_cv_type_size_t=yes
29985else
29986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029987sed 's/^/| /' conftest.$ac_ext >&5
29988
Reid Spencera773bd52006-08-04 18:18:08 +000029989 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029990fi
Reid Spencera773bd52006-08-04 18:18:08 +000029991
29992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029993fi
Reid Spencera773bd52006-08-04 18:18:08 +000029994{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29995echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029996if test $ac_cv_type_size_t = yes; then
29997 :
29998else
29999
30000cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030001#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030002_ACEOF
30003
30004fi
30005
Reid Spencera773bd52006-08-04 18:18:08 +000030006{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30007echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030008if test "${ac_cv_type_signal+set}" = set; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30010else
30011 cat >conftest.$ac_ext <<_ACEOF
30012/* confdefs.h. */
30013_ACEOF
30014cat confdefs.h >>conftest.$ac_ext
30015cat >>conftest.$ac_ext <<_ACEOF
30016/* end confdefs.h. */
30017#include <sys/types.h>
30018#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030019
30020int
30021main ()
30022{
Reid Spencera773bd52006-08-04 18:18:08 +000030023return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030024 ;
30025 return 0;
30026}
30027_ACEOF
30028rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030029if { (ac_try="$ac_compile"
30030case "(($ac_try" in
30031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30032 *) ac_try_echo=$ac_try;;
30033esac
30034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30035 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030036 ac_status=$?
30037 grep -v '^ *+' conftest.er1 >conftest.err
30038 rm -f conftest.er1
30039 cat conftest.err >&5
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030041 (exit $ac_status); } &&
30042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30043 { (case "(($ac_try" in
30044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30045 *) ac_try_echo=$ac_try;;
30046esac
30047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30048 (eval "$ac_try") 2>&5
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest.$ac_objext'
30053 { (case "(($ac_try" in
30054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30055 *) ac_try_echo=$ac_try;;
30056esac
30057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30058 (eval "$ac_try") 2>&5
30059 ac_status=$?
30060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030062 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030063else
30064 echo "$as_me: failed program was:" >&5
30065sed 's/^/| /' conftest.$ac_ext >&5
30066
Reid Spencera773bd52006-08-04 18:18:08 +000030067 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030068fi
Reid Spencera773bd52006-08-04 18:18:08 +000030069
30070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030071fi
Reid Spencera773bd52006-08-04 18:18:08 +000030072{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30073echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030074
30075cat >>confdefs.h <<_ACEOF
30076#define RETSIGTYPE $ac_cv_type_signal
30077_ACEOF
30078
30079
Reid Spencera773bd52006-08-04 18:18:08 +000030080{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30081echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030082if test "${ac_cv_struct_tm+set}" = set; then
30083 echo $ECHO_N "(cached) $ECHO_C" >&6
30084else
30085 cat >conftest.$ac_ext <<_ACEOF
30086/* confdefs.h. */
30087_ACEOF
30088cat confdefs.h >>conftest.$ac_ext
30089cat >>conftest.$ac_ext <<_ACEOF
30090/* end confdefs.h. */
30091#include <sys/types.h>
30092#include <time.h>
30093
30094int
30095main ()
30096{
Tanya Lattnercf067672008-01-17 05:57:22 +000030097struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030098 ;
30099 return 0;
30100}
30101_ACEOF
30102rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030103if { (ac_try="$ac_compile"
30104case "(($ac_try" in
30105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30106 *) ac_try_echo=$ac_try;;
30107esac
30108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30109 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030110 ac_status=$?
30111 grep -v '^ *+' conftest.er1 >conftest.err
30112 rm -f conftest.er1
30113 cat conftest.err >&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030115 (exit $ac_status); } &&
30116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30117 { (case "(($ac_try" in
30118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119 *) ac_try_echo=$ac_try;;
30120esac
30121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122 (eval "$ac_try") 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; } &&
30126 { ac_try='test -s conftest.$ac_objext'
30127 { (case "(($ac_try" in
30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129 *) ac_try_echo=$ac_try;;
30130esac
30131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132 (eval "$ac_try") 2>&5
30133 ac_status=$?
30134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030136 ac_cv_struct_tm=time.h
30137else
30138 echo "$as_me: failed program was:" >&5
30139sed 's/^/| /' conftest.$ac_ext >&5
30140
Reid Spencera773bd52006-08-04 18:18:08 +000030141 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030142fi
Reid Spencera773bd52006-08-04 18:18:08 +000030143
30144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030145fi
Reid Spencera773bd52006-08-04 18:18:08 +000030146{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30147echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030148if test $ac_cv_struct_tm = sys/time.h; then
30149
30150cat >>confdefs.h <<\_ACEOF
30151#define TM_IN_SYS_TIME 1
30152_ACEOF
30153
30154fi
30155
Reid Spencera773bd52006-08-04 18:18:08 +000030156{ echo "$as_me:$LINENO: checking for int64_t" >&5
30157echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030158if test "${ac_cv_type_int64_t+set}" = set; then
30159 echo $ECHO_N "(cached) $ECHO_C" >&6
30160else
30161 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030162/* confdefs.h. */
30163_ACEOF
30164cat confdefs.h >>conftest.$ac_ext
30165cat >>conftest.$ac_ext <<_ACEOF
30166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030167$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030168typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030169int
30170main ()
30171{
Reid Spencera773bd52006-08-04 18:18:08 +000030172if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030173 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030174if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030175 return 0;
30176 ;
30177 return 0;
30178}
30179_ACEOF
30180rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030181if { (ac_try="$ac_compile"
30182case "(($ac_try" in
30183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30184 *) ac_try_echo=$ac_try;;
30185esac
30186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30187 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030189 grep -v '^ *+' conftest.er1 >conftest.err
30190 rm -f conftest.er1
30191 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030193 (exit $ac_status); } &&
30194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30195 { (case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30198esac
30199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_try") 2>&5
30201 ac_status=$?
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; } &&
30204 { ac_try='test -s conftest.$ac_objext'
30205 { (case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30208esac
30209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_try") 2>&5
30211 ac_status=$?
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030214 ac_cv_type_int64_t=yes
30215else
30216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030217sed 's/^/| /' conftest.$ac_ext >&5
30218
Reid Spencera773bd52006-08-04 18:18:08 +000030219 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030220fi
Reid Spencera773bd52006-08-04 18:18:08 +000030221
30222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030223fi
Reid Spencera773bd52006-08-04 18:18:08 +000030224{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30225echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030226if test $ac_cv_type_int64_t = yes; then
30227
30228cat >>confdefs.h <<_ACEOF
30229#define HAVE_INT64_T 1
30230_ACEOF
30231
30232
30233else
30234 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30235echo "$as_me: error: Type int64_t required but not found" >&2;}
30236 { (exit 1); exit 1; }; }
30237fi
30238
Reid Spencera773bd52006-08-04 18:18:08 +000030239{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30240echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030241if test "${ac_cv_type_uint64_t+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30243else
30244 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030245/* confdefs.h. */
30246_ACEOF
30247cat confdefs.h >>conftest.$ac_ext
30248cat >>conftest.$ac_ext <<_ACEOF
30249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030250$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030251typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030252int
30253main ()
30254{
Reid Spencera773bd52006-08-04 18:18:08 +000030255if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030256 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030257if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030258 return 0;
30259 ;
30260 return 0;
30261}
30262_ACEOF
30263rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030264if { (ac_try="$ac_compile"
30265case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30268esac
30269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030272 grep -v '^ *+' conftest.er1 >conftest.err
30273 rm -f conftest.er1
30274 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030276 (exit $ac_status); } &&
30277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30278 { (case "(($ac_try" in
30279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280 *) ac_try_echo=$ac_try;;
30281esac
30282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283 (eval "$ac_try") 2>&5
30284 ac_status=$?
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); }; } &&
30287 { ac_try='test -s conftest.$ac_objext'
30288 { (case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30291esac
30292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_try") 2>&5
30294 ac_status=$?
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030297 ac_cv_type_uint64_t=yes
30298else
30299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030300sed 's/^/| /' conftest.$ac_ext >&5
30301
Reid Spencera773bd52006-08-04 18:18:08 +000030302 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030303fi
Reid Spencera773bd52006-08-04 18:18:08 +000030304
30305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030306fi
Reid Spencera773bd52006-08-04 18:18:08 +000030307{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30308echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030309if test $ac_cv_type_uint64_t = yes; then
30310
30311cat >>confdefs.h <<_ACEOF
30312#define HAVE_UINT64_T 1
30313_ACEOF
30314
30315
30316else
Reid Spencera773bd52006-08-04 18:18:08 +000030317 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30318echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030319if test "${ac_cv_type_u_int64_t+set}" = set; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30321else
30322 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030323/* confdefs.h. */
30324_ACEOF
30325cat confdefs.h >>conftest.$ac_ext
30326cat >>conftest.$ac_ext <<_ACEOF
30327/* end confdefs.h. */
30328$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030329typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030330int
30331main ()
30332{
Reid Spencera773bd52006-08-04 18:18:08 +000030333if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030334 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030335if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030336 return 0;
30337 ;
30338 return 0;
30339}
30340_ACEOF
30341rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030342if { (ac_try="$ac_compile"
30343case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30346esac
30347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030349 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030350 grep -v '^ *+' conftest.er1 >conftest.err
30351 rm -f conftest.er1
30352 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030354 (exit $ac_status); } &&
30355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30356 { (case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30359esac
30360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_try") 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; } &&
30365 { ac_try='test -s conftest.$ac_objext'
30366 { (case "(($ac_try" in
30367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368 *) ac_try_echo=$ac_try;;
30369esac
30370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30371 (eval "$ac_try") 2>&5
30372 ac_status=$?
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030375 ac_cv_type_u_int64_t=yes
30376else
30377 echo "$as_me: failed program was:" >&5
30378sed 's/^/| /' conftest.$ac_ext >&5
30379
Reid Spencera773bd52006-08-04 18:18:08 +000030380 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030381fi
Reid Spencera773bd52006-08-04 18:18:08 +000030382
30383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030384fi
Reid Spencera773bd52006-08-04 18:18:08 +000030385{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30386echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030387if test $ac_cv_type_u_int64_t = yes; then
30388
30389cat >>confdefs.h <<_ACEOF
30390#define HAVE_U_INT64_T 1
30391_ACEOF
30392
30393
Misha Brukmanceca9042004-09-02 23:02:30 +000030394else
30395 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30396echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30397 { (exit 1); exit 1; }; }
30398fi
30399
John Criswell679ff312004-09-02 18:44:44 +000030400fi
30401
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030402
30403
30404
30405
30406
30407
30408
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030409
30410
Reid Spencerdf3be822006-01-23 08:15:53 +000030411for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030412do
30413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030417 echo $ECHO_N "(cached) $ECHO_C" >&6
30418else
30419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030420/* confdefs.h. */
30421_ACEOF
30422cat confdefs.h >>conftest.$ac_ext
30423cat >>conftest.$ac_ext <<_ACEOF
30424/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30427#define $ac_func innocuous_$ac_func
30428
30429/* System header to define __stub macros and hopefully few prototypes,
30430 which can conflict with char $ac_func (); below.
30431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432 <limits.h> exists even on freestanding compilers. */
30433
30434#ifdef __STDC__
30435# include <limits.h>
30436#else
30437# include <assert.h>
30438#endif
30439
30440#undef $ac_func
30441
Reid Spencera773bd52006-08-04 18:18:08 +000030442/* Override any GCC internal prototype to avoid an error.
30443 Use char because int might match the return type of a GCC
30444 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030445#ifdef __cplusplus
30446extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030447#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030448char $ac_func ();
30449/* The GNU C library defines this for functions which it implements
30450 to always fail with ENOSYS. Some functions are actually named
30451 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030452#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030453choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030454#endif
John Criswell7a73b802003-06-30 21:59:07 +000030455
John Criswell7a73b802003-06-30 21:59:07 +000030456int
30457main ()
30458{
Reid Spencera773bd52006-08-04 18:18:08 +000030459return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030460 ;
30461 return 0;
30462}
30463_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030464rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030465if { (ac_try="$ac_link"
30466case "(($ac_try" in
30467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30469esac
30470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030473 grep -v '^ *+' conftest.er1 >conftest.err
30474 rm -f conftest.er1
30475 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030477 (exit $ac_status); } &&
30478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30479 { (case "(($ac_try" in
30480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481 *) ac_try_echo=$ac_try;;
30482esac
30483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484 (eval "$ac_try") 2>&5
30485 ac_status=$?
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; } &&
30488 { ac_try='test -s conftest$ac_exeext'
30489 { (case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492esac
30493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_try") 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030498 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030499else
30500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030501sed 's/^/| /' conftest.$ac_ext >&5
30502
Reid Spencera773bd52006-08-04 18:18:08 +000030503 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030504fi
Reid Spencera773bd52006-08-04 18:18:08 +000030505
Tanya Lattnercf067672008-01-17 05:57:22 +000030506rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030507 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030508fi
Reid Spencera773bd52006-08-04 18:18:08 +000030509ac_res=`eval echo '${'$as_ac_var'}'`
30510 { echo "$as_me:$LINENO: result: $ac_res" >&5
30511echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030512if test `eval echo '${'$as_ac_var'}'` = yes; then
30513 cat >>confdefs.h <<_ACEOF
30514#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030515_ACEOF
30516
30517fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030518done
John Criswell7a73b802003-06-30 21:59:07 +000030519
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030520
30521
30522
Reid Spencer6af3d262004-12-15 04:01:48 +000030523
Reid Spencer96cf5872007-07-13 10:05:30 +000030524for ac_func in powf fmodf strtof round
30525do
30526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30527{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30529if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30530 echo $ECHO_N "(cached) $ECHO_C" >&6
30531else
30532 cat >conftest.$ac_ext <<_ACEOF
30533/* confdefs.h. */
30534_ACEOF
30535cat confdefs.h >>conftest.$ac_ext
30536cat >>conftest.$ac_ext <<_ACEOF
30537/* end confdefs.h. */
30538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30540#define $ac_func innocuous_$ac_func
30541
30542/* System header to define __stub macros and hopefully few prototypes,
30543 which can conflict with char $ac_func (); below.
30544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30545 <limits.h> exists even on freestanding compilers. */
30546
30547#ifdef __STDC__
30548# include <limits.h>
30549#else
30550# include <assert.h>
30551#endif
30552
30553#undef $ac_func
30554
30555/* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30558#ifdef __cplusplus
30559extern "C"
30560#endif
30561char $ac_func ();
30562/* The GNU C library defines this for functions which it implements
30563 to always fail with ENOSYS. Some functions are actually named
30564 something starting with __ and the normal name is an alias. */
30565#if defined __stub_$ac_func || defined __stub___$ac_func
30566choke me
30567#endif
30568
30569int
30570main ()
30571{
30572return $ac_func ();
30573 ;
30574 return 0;
30575}
30576_ACEOF
30577rm -f conftest.$ac_objext conftest$ac_exeext
30578if { (ac_try="$ac_link"
30579case "(($ac_try" in
30580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30581 *) ac_try_echo=$ac_try;;
30582esac
30583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30584 (eval "$ac_link") 2>conftest.er1
30585 ac_status=$?
30586 grep -v '^ *+' conftest.er1 >conftest.err
30587 rm -f conftest.er1
30588 cat conftest.err >&5
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030590 (exit $ac_status); } &&
30591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30592 { (case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30595esac
30596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597 (eval "$ac_try") 2>&5
30598 ac_status=$?
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; } &&
30601 { ac_try='test -s conftest$ac_exeext'
30602 { (case "(($ac_try" in
30603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30604 *) ac_try_echo=$ac_try;;
30605esac
30606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30607 (eval "$ac_try") 2>&5
30608 ac_status=$?
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030611 eval "$as_ac_var=yes"
30612else
30613 echo "$as_me: failed program was:" >&5
30614sed 's/^/| /' conftest.$ac_ext >&5
30615
30616 eval "$as_ac_var=no"
30617fi
30618
Tanya Lattnercf067672008-01-17 05:57:22 +000030619rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030620 conftest$ac_exeext conftest.$ac_ext
30621fi
30622ac_res=`eval echo '${'$as_ac_var'}'`
30623 { echo "$as_me:$LINENO: result: $ac_res" >&5
30624echo "${ECHO_T}$ac_res" >&6; }
30625if test `eval echo '${'$as_ac_var'}'` = yes; then
30626 cat >>confdefs.h <<_ACEOF
30627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30628_ACEOF
30629
30630fi
30631done
30632
30633
30634
30635
30636
Reid Spencer6af3d262004-12-15 04:01:48 +000030637
Reid Spencerb90645c2007-02-16 19:17:20 +000030638for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30639do
30640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30641{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30644 echo $ECHO_N "(cached) $ECHO_C" >&6
30645else
30646 cat >conftest.$ac_ext <<_ACEOF
30647/* confdefs.h. */
30648_ACEOF
30649cat confdefs.h >>conftest.$ac_ext
30650cat >>conftest.$ac_ext <<_ACEOF
30651/* end confdefs.h. */
30652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30654#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030655
Reid Spencerb90645c2007-02-16 19:17:20 +000030656/* System header to define __stub macros and hopefully few prototypes,
30657 which can conflict with char $ac_func (); below.
30658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30659 <limits.h> exists even on freestanding compilers. */
30660
30661#ifdef __STDC__
30662# include <limits.h>
30663#else
30664# include <assert.h>
30665#endif
30666
30667#undef $ac_func
30668
30669/* Override any GCC internal prototype to avoid an error.
30670 Use char because int might match the return type of a GCC
30671 builtin and then its argument prototype would still apply. */
30672#ifdef __cplusplus
30673extern "C"
30674#endif
30675char $ac_func ();
30676/* The GNU C library defines this for functions which it implements
30677 to always fail with ENOSYS. Some functions are actually named
30678 something starting with __ and the normal name is an alias. */
30679#if defined __stub_$ac_func || defined __stub___$ac_func
30680choke me
30681#endif
30682
30683int
30684main ()
30685{
30686return $ac_func ();
30687 ;
30688 return 0;
30689}
30690_ACEOF
30691rm -f conftest.$ac_objext conftest$ac_exeext
30692if { (ac_try="$ac_link"
30693case "(($ac_try" in
30694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30695 *) ac_try_echo=$ac_try;;
30696esac
30697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30698 (eval "$ac_link") 2>conftest.er1
30699 ac_status=$?
30700 grep -v '^ *+' conftest.er1 >conftest.err
30701 rm -f conftest.er1
30702 cat conftest.err >&5
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030704 (exit $ac_status); } &&
30705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30706 { (case "(($ac_try" in
30707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30708 *) ac_try_echo=$ac_try;;
30709esac
30710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30711 (eval "$ac_try") 2>&5
30712 ac_status=$?
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); }; } &&
30715 { ac_try='test -s conftest$ac_exeext'
30716 { (case "(($ac_try" in
30717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30718 *) ac_try_echo=$ac_try;;
30719esac
30720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30721 (eval "$ac_try") 2>&5
30722 ac_status=$?
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030725 eval "$as_ac_var=yes"
30726else
30727 echo "$as_me: failed program was:" >&5
30728sed 's/^/| /' conftest.$ac_ext >&5
30729
30730 eval "$as_ac_var=no"
30731fi
30732
Tanya Lattnercf067672008-01-17 05:57:22 +000030733rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030734 conftest$ac_exeext conftest.$ac_ext
30735fi
30736ac_res=`eval echo '${'$as_ac_var'}'`
30737 { echo "$as_me:$LINENO: result: $ac_res" >&5
30738echo "${ECHO_T}$ac_res" >&6; }
30739if test `eval echo '${'$as_ac_var'}'` = yes; then
30740 cat >>confdefs.h <<_ACEOF
30741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30742_ACEOF
30743
30744fi
30745done
30746
30747
30748
30749
30750for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030751do
30752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030756 echo $ECHO_N "(cached) $ECHO_C" >&6
30757else
30758 cat >conftest.$ac_ext <<_ACEOF
30759/* confdefs.h. */
30760_ACEOF
30761cat confdefs.h >>conftest.$ac_ext
30762cat >>conftest.$ac_ext <<_ACEOF
30763/* end confdefs.h. */
30764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30766#define $ac_func innocuous_$ac_func
30767
30768/* System header to define __stub macros and hopefully few prototypes,
30769 which can conflict with char $ac_func (); below.
30770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771 <limits.h> exists even on freestanding compilers. */
30772
30773#ifdef __STDC__
30774# include <limits.h>
30775#else
30776# include <assert.h>
30777#endif
30778
30779#undef $ac_func
30780
Reid Spencera773bd52006-08-04 18:18:08 +000030781/* Override any GCC internal prototype to avoid an error.
30782 Use char because int might match the return type of a GCC
30783 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030784#ifdef __cplusplus
30785extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030786#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030787char $ac_func ();
30788/* The GNU C library defines this for functions which it implements
30789 to always fail with ENOSYS. Some functions are actually named
30790 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030791#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030792choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030793#endif
30794
30795int
30796main ()
30797{
Reid Spencera773bd52006-08-04 18:18:08 +000030798return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030799 ;
30800 return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030804if { (ac_try="$ac_link"
30805case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30808esac
30809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030811 ac_status=$?
30812 grep -v '^ *+' conftest.er1 >conftest.err
30813 rm -f conftest.er1
30814 cat conftest.err >&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030816 (exit $ac_status); } &&
30817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest$ac_exeext'
30828 { (case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30831esac
30832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833 (eval "$ac_try") 2>&5
30834 ac_status=$?
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030837 eval "$as_ac_var=yes"
30838else
30839 echo "$as_me: failed program was:" >&5
30840sed 's/^/| /' conftest.$ac_ext >&5
30841
Reid Spencera773bd52006-08-04 18:18:08 +000030842 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030843fi
Reid Spencera773bd52006-08-04 18:18:08 +000030844
Tanya Lattnercf067672008-01-17 05:57:22 +000030845rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030846 conftest$ac_exeext conftest.$ac_ext
30847fi
Reid Spencera773bd52006-08-04 18:18:08 +000030848ac_res=`eval echo '${'$as_ac_var'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030851if test `eval echo '${'$as_ac_var'}'` = yes; then
30852 cat >>confdefs.h <<_ACEOF
30853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30854_ACEOF
30855
30856fi
30857done
30858
30859
30860
30861
30862
30863
30864
30865
30866for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030867do
30868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030869{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030872 echo $ECHO_N "(cached) $ECHO_C" >&6
30873else
30874 cat >conftest.$ac_ext <<_ACEOF
30875/* confdefs.h. */
30876_ACEOF
30877cat confdefs.h >>conftest.$ac_ext
30878cat >>conftest.$ac_ext <<_ACEOF
30879/* end confdefs.h. */
30880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30882#define $ac_func innocuous_$ac_func
30883
30884/* System header to define __stub macros and hopefully few prototypes,
30885 which can conflict with char $ac_func (); below.
30886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30887 <limits.h> exists even on freestanding compilers. */
30888
30889#ifdef __STDC__
30890# include <limits.h>
30891#else
30892# include <assert.h>
30893#endif
30894
30895#undef $ac_func
30896
Reid Spencera773bd52006-08-04 18:18:08 +000030897/* Override any GCC internal prototype to avoid an error.
30898 Use char because int might match the return type of a GCC
30899 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030900#ifdef __cplusplus
30901extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030902#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030903char $ac_func ();
30904/* The GNU C library defines this for functions which it implements
30905 to always fail with ENOSYS. Some functions are actually named
30906 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030907#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030908choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030909#endif
30910
30911int
30912main ()
30913{
Reid Spencera773bd52006-08-04 18:18:08 +000030914return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030915 ;
30916 return 0;
30917}
30918_ACEOF
30919rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030920if { (ac_try="$ac_link"
30921case "(($ac_try" in
30922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30923 *) ac_try_echo=$ac_try;;
30924esac
30925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30926 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030927 ac_status=$?
30928 grep -v '^ *+' conftest.er1 >conftest.err
30929 rm -f conftest.er1
30930 cat conftest.err >&5
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030932 (exit $ac_status); } &&
30933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30934 { (case "(($ac_try" in
30935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30936 *) ac_try_echo=$ac_try;;
30937esac
30938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30939 (eval "$ac_try") 2>&5
30940 ac_status=$?
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; } &&
30943 { ac_try='test -s conftest$ac_exeext'
30944 { (case "(($ac_try" in
30945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946 *) ac_try_echo=$ac_try;;
30947esac
30948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949 (eval "$ac_try") 2>&5
30950 ac_status=$?
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030953 eval "$as_ac_var=yes"
30954else
30955 echo "$as_me: failed program was:" >&5
30956sed 's/^/| /' conftest.$ac_ext >&5
30957
Reid Spencera773bd52006-08-04 18:18:08 +000030958 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030959fi
Reid Spencera773bd52006-08-04 18:18:08 +000030960
Tanya Lattnercf067672008-01-17 05:57:22 +000030961rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030962 conftest$ac_exeext conftest.$ac_ext
30963fi
Reid Spencera773bd52006-08-04 18:18:08 +000030964ac_res=`eval echo '${'$as_ac_var'}'`
30965 { echo "$as_me:$LINENO: result: $ac_res" >&5
30966echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030967if test `eval echo '${'$as_ac_var'}'` = yes; then
30968 cat >>confdefs.h <<_ACEOF
30969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30970_ACEOF
30971
30972fi
30973done
30974
30975
Reid Spencerba46ca32004-12-31 05:49:15 +000030976
30977
Chris Lattner0b142592005-11-14 06:57:34 +000030978
Chris Lattner511f11d2005-11-14 07:25:50 +000030979for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030980do
30981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030982{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030985 echo $ECHO_N "(cached) $ECHO_C" >&6
30986else
30987 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030988/* confdefs.h. */
30989_ACEOF
30990cat confdefs.h >>conftest.$ac_ext
30991cat >>conftest.$ac_ext <<_ACEOF
30992/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30995#define $ac_func innocuous_$ac_func
30996
30997/* System header to define __stub macros and hopefully few prototypes,
30998 which can conflict with char $ac_func (); below.
30999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31000 <limits.h> exists even on freestanding compilers. */
31001
31002#ifdef __STDC__
31003# include <limits.h>
31004#else
31005# include <assert.h>
31006#endif
31007
31008#undef $ac_func
31009
Reid Spencera773bd52006-08-04 18:18:08 +000031010/* Override any GCC internal prototype to avoid an error.
31011 Use char because int might match the return type of a GCC
31012 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031013#ifdef __cplusplus
31014extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031015#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031016char $ac_func ();
31017/* The GNU C library defines this for functions which it implements
31018 to always fail with ENOSYS. Some functions are actually named
31019 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031020#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031021choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031022#endif
John Criswell7a73b802003-06-30 21:59:07 +000031023
John Criswell7a73b802003-06-30 21:59:07 +000031024int
31025main ()
31026{
Reid Spencera773bd52006-08-04 18:18:08 +000031027return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031028 ;
31029 return 0;
31030}
31031_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031032rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031033if { (ac_try="$ac_link"
31034case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31037esac
31038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031041 grep -v '^ *+' conftest.er1 >conftest.err
31042 rm -f conftest.er1
31043 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031045 (exit $ac_status); } &&
31046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31047 { (case "(($ac_try" in
31048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049 *) ac_try_echo=$ac_try;;
31050esac
31051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052 (eval "$ac_try") 2>&5
31053 ac_status=$?
31054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31055 (exit $ac_status); }; } &&
31056 { ac_try='test -s conftest$ac_exeext'
31057 { (case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31060esac
31061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_try") 2>&5
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031066 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031067else
31068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031069sed 's/^/| /' conftest.$ac_ext >&5
31070
Reid Spencera773bd52006-08-04 18:18:08 +000031071 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031072fi
Reid Spencera773bd52006-08-04 18:18:08 +000031073
Tanya Lattnercf067672008-01-17 05:57:22 +000031074rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031075 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031076fi
Reid Spencera773bd52006-08-04 18:18:08 +000031077ac_res=`eval echo '${'$as_ac_var'}'`
31078 { echo "$as_me:$LINENO: result: $ac_res" >&5
31079echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031080if test `eval echo '${'$as_ac_var'}'` = yes; then
31081 cat >>confdefs.h <<_ACEOF
31082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031083_ACEOF
31084
31085fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031086done
John Criswell7a73b802003-06-30 21:59:07 +000031087
Reid Spencercdb08a32006-06-05 16:11:07 +000031088
31089
31090
31091
Reid Spencerafa22e22006-12-10 23:29:19 +000031092for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031093do
31094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031095{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031098 echo $ECHO_N "(cached) $ECHO_C" >&6
31099else
31100 cat >conftest.$ac_ext <<_ACEOF
31101/* confdefs.h. */
31102_ACEOF
31103cat confdefs.h >>conftest.$ac_ext
31104cat >>conftest.$ac_ext <<_ACEOF
31105/* end confdefs.h. */
31106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31108#define $ac_func innocuous_$ac_func
31109
31110/* System header to define __stub macros and hopefully few prototypes,
31111 which can conflict with char $ac_func (); below.
31112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113 <limits.h> exists even on freestanding compilers. */
31114
31115#ifdef __STDC__
31116# include <limits.h>
31117#else
31118# include <assert.h>
31119#endif
31120
31121#undef $ac_func
31122
Reid Spencera773bd52006-08-04 18:18:08 +000031123/* Override any GCC internal prototype to avoid an error.
31124 Use char because int might match the return type of a GCC
31125 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031126#ifdef __cplusplus
31127extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031128#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031129char $ac_func ();
31130/* The GNU C library defines this for functions which it implements
31131 to always fail with ENOSYS. Some functions are actually named
31132 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031133#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031134choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031135#endif
31136
31137int
31138main ()
31139{
Reid Spencera773bd52006-08-04 18:18:08 +000031140return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031141 ;
31142 return 0;
31143}
31144_ACEOF
31145rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031146if { (ac_try="$ac_link"
31147case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31150esac
31151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031153 ac_status=$?
31154 grep -v '^ *+' conftest.er1 >conftest.err
31155 rm -f conftest.er1
31156 cat conftest.err >&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031158 (exit $ac_status); } &&
31159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160 { (case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31163esac
31164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_try") 2>&5
31166 ac_status=$?
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
31170 { (case "(($ac_try" in
31171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172 *) ac_try_echo=$ac_try;;
31173esac
31174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175 (eval "$ac_try") 2>&5
31176 ac_status=$?
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031179 eval "$as_ac_var=yes"
31180else
31181 echo "$as_me: failed program was:" >&5
31182sed 's/^/| /' conftest.$ac_ext >&5
31183
Reid Spencera773bd52006-08-04 18:18:08 +000031184 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031185fi
Reid Spencera773bd52006-08-04 18:18:08 +000031186
Tanya Lattnercf067672008-01-17 05:57:22 +000031187rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031188 conftest$ac_exeext conftest.$ac_ext
31189fi
Reid Spencera773bd52006-08-04 18:18:08 +000031190ac_res=`eval echo '${'$as_ac_var'}'`
31191 { echo "$as_me:$LINENO: result: $ac_res" >&5
31192echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031193if test `eval echo '${'$as_ac_var'}'` = yes; then
31194 cat >>confdefs.h <<_ACEOF
31195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31196_ACEOF
31197
31198fi
31199done
31200
Reid Spencera773bd52006-08-04 18:18:08 +000031201{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31202echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031203if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031204 echo $ECHO_N "(cached) $ECHO_C" >&6
31205else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031206 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031207ac_cpp='$CPP $CPPFLAGS'
31208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31210ac_compiler_gnu=$ac_cv_c_compiler_gnu
31211
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031212 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031213 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031214else
31215 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031216
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031217 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031218_ACEOF
31219cat confdefs.h >>conftest.$ac_ext
31220cat >>conftest.$ac_ext <<_ACEOF
31221/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031222
John Criswella0137d32003-10-13 16:22:01 +000031223#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031224#include <stdlib.h>
31225
John Criswella0137d32003-10-13 16:22:01 +000031226int
31227main ()
31228{
31229
Reid Spencer2706f8c2004-09-19 23:53:36 +000031230volatile double A, B;
31231char Buffer[100];
31232A = 1;
31233A /= 10.0;
31234sprintf(Buffer, "%a", A);
31235B = atof(Buffer);
31236if (A != B)
31237 return (1);
31238if (A != 0x1.999999999999ap-4)
31239 return (1);
31240return (0);
John Criswella0137d32003-10-13 16:22:01 +000031241 ;
31242 return 0;
31243}
31244_ACEOF
31245rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031246if { (ac_try="$ac_link"
31247case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31250esac
31251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031253 ac_status=$?
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031256 { (case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31259esac
31260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031262 ac_status=$?
31263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031265 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031266else
31267 echo "$as_me: program exited with status $ac_status" >&5
31268echo "$as_me: failed program was:" >&5
31269sed 's/^/| /' conftest.$ac_ext >&5
31270
31271( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031272llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031273fi
Reid Spencera773bd52006-08-04 18:18:08 +000031274rm -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 +000031275fi
Reid Spencera773bd52006-08-04 18:18:08 +000031276
31277
Reid Spencer2706f8c2004-09-19 23:53:36 +000031278 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031279ac_cpp='$CPP $CPPFLAGS'
31280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282ac_compiler_gnu=$ac_cv_c_compiler_gnu
31283
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031284fi
Reid Spencera773bd52006-08-04 18:18:08 +000031285{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31286echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031287 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031288
31289cat >>confdefs.h <<\_ACEOF
31290#define HAVE_PRINTF_A 1
31291_ACEOF
31292
Reid Spencer2706f8c2004-09-19 23:53:36 +000031293 fi
John Criswella0137d32003-10-13 16:22:01 +000031294
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031295# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31296# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031297{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31298echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031299if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031300 echo $ECHO_N "(cached) $ECHO_C" >&6
31301else
John Criswell0021c312004-02-13 21:57:29 +000031302 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031303/* confdefs.h. */
31304_ACEOF
31305cat confdefs.h >>conftest.$ac_ext
31306cat >>conftest.$ac_ext <<_ACEOF
31307/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031308#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031309int
31310main ()
31311{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031312char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031313 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031314 ;
31315 return 0;
31316}
31317_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031318rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031319if { (ac_try="$ac_link"
31320case "(($ac_try" in
31321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322 *) ac_try_echo=$ac_try;;
31323esac
31324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031327 grep -v '^ *+' conftest.er1 >conftest.err
31328 rm -f conftest.er1
31329 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031331 (exit $ac_status); } &&
31332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31333 { (case "(($ac_try" in
31334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31335 *) ac_try_echo=$ac_try;;
31336esac
31337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31338 (eval "$ac_try") 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; } &&
31342 { ac_try='test -s conftest$ac_exeext'
31343 { (case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31346esac
31347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_try") 2>&5
31349 ac_status=$?
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031352 ac_cv_working_alloca_h=yes
31353else
31354 echo "$as_me: failed program was:" >&5
31355sed 's/^/| /' conftest.$ac_ext >&5
31356
Reid Spencera773bd52006-08-04 18:18:08 +000031357 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031358fi
Reid Spencera773bd52006-08-04 18:18:08 +000031359
Tanya Lattnercf067672008-01-17 05:57:22 +000031360rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031361 conftest$ac_exeext conftest.$ac_ext
31362fi
Reid Spencera773bd52006-08-04 18:18:08 +000031363{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31364echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031365if test $ac_cv_working_alloca_h = yes; then
31366
31367cat >>confdefs.h <<\_ACEOF
31368#define HAVE_ALLOCA_H 1
31369_ACEOF
31370
31371fi
31372
Reid Spencera773bd52006-08-04 18:18:08 +000031373{ echo "$as_me:$LINENO: checking for alloca" >&5
31374echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031375if test "${ac_cv_func_alloca_works+set}" = set; then
31376 echo $ECHO_N "(cached) $ECHO_C" >&6
31377else
31378 cat >conftest.$ac_ext <<_ACEOF
31379/* confdefs.h. */
31380_ACEOF
31381cat confdefs.h >>conftest.$ac_ext
31382cat >>conftest.$ac_ext <<_ACEOF
31383/* end confdefs.h. */
31384#ifdef __GNUC__
31385# define alloca __builtin_alloca
31386#else
31387# ifdef _MSC_VER
31388# include <malloc.h>
31389# define alloca _alloca
31390# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031391# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031392# include <alloca.h>
31393# else
31394# ifdef _AIX
31395 #pragma alloca
31396# else
31397# ifndef alloca /* predefined by HP cc +Olibcalls */
31398char *alloca ();
31399# endif
31400# endif
31401# endif
31402# endif
31403#endif
31404
31405int
31406main ()
31407{
31408char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031409 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031410 ;
31411 return 0;
31412}
31413_ACEOF
31414rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031415if { (ac_try="$ac_link"
31416case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31419esac
31420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031422 ac_status=$?
31423 grep -v '^ *+' conftest.er1 >conftest.err
31424 rm -f conftest.er1
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031427 (exit $ac_status); } &&
31428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest$ac_exeext'
31439 { (case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31442esac
31443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_try") 2>&5
31445 ac_status=$?
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031448 ac_cv_func_alloca_works=yes
31449else
31450 echo "$as_me: failed program was:" >&5
31451sed 's/^/| /' conftest.$ac_ext >&5
31452
Reid Spencera773bd52006-08-04 18:18:08 +000031453 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031454fi
Reid Spencera773bd52006-08-04 18:18:08 +000031455
Tanya Lattnercf067672008-01-17 05:57:22 +000031456rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031457 conftest$ac_exeext conftest.$ac_ext
31458fi
Reid Spencera773bd52006-08-04 18:18:08 +000031459{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31460echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031461
31462if test $ac_cv_func_alloca_works = yes; then
31463
31464cat >>confdefs.h <<\_ACEOF
31465#define HAVE_ALLOCA 1
31466_ACEOF
31467
31468else
31469 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31470# that cause trouble. Some versions do not even contain alloca or
31471# contain a buggy version. If you still want to use their alloca,
31472# use ar to extract alloca.o from them instead of compiling alloca.c.
31473
Reid Spencera773bd52006-08-04 18:18:08 +000031474ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031475
31476cat >>confdefs.h <<\_ACEOF
31477#define C_ALLOCA 1
31478_ACEOF
31479
31480
Reid Spencera773bd52006-08-04 18:18:08 +000031481{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31482echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483if test "${ac_cv_os_cray+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485else
31486 cat >conftest.$ac_ext <<_ACEOF
31487/* confdefs.h. */
31488_ACEOF
31489cat confdefs.h >>conftest.$ac_ext
31490cat >>conftest.$ac_ext <<_ACEOF
31491/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031492#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031493webecray
31494#else
31495wenotbecray
31496#endif
31497
31498_ACEOF
31499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31500 $EGREP "webecray" >/dev/null 2>&1; then
31501 ac_cv_os_cray=yes
31502else
31503 ac_cv_os_cray=no
31504fi
31505rm -f conftest*
31506
31507fi
Reid Spencera773bd52006-08-04 18:18:08 +000031508{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31509echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031510if test $ac_cv_os_cray = yes; then
31511 for ac_func in _getb67 GETB67 getb67; do
31512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031513{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31515if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031516 echo $ECHO_N "(cached) $ECHO_C" >&6
31517else
31518 cat >conftest.$ac_ext <<_ACEOF
31519/* confdefs.h. */
31520_ACEOF
31521cat confdefs.h >>conftest.$ac_ext
31522cat >>conftest.$ac_ext <<_ACEOF
31523/* end confdefs.h. */
31524/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31526#define $ac_func innocuous_$ac_func
31527
31528/* System header to define __stub macros and hopefully few prototypes,
31529 which can conflict with char $ac_func (); below.
31530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31531 <limits.h> exists even on freestanding compilers. */
31532
31533#ifdef __STDC__
31534# include <limits.h>
31535#else
31536# include <assert.h>
31537#endif
31538
31539#undef $ac_func
31540
Reid Spencera773bd52006-08-04 18:18:08 +000031541/* Override any GCC internal prototype to avoid an error.
31542 Use char because int might match the return type of a GCC
31543 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031544#ifdef __cplusplus
31545extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031546#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031547char $ac_func ();
31548/* The GNU C library defines this for functions which it implements
31549 to always fail with ENOSYS. Some functions are actually named
31550 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031551#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031552choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031553#endif
31554
31555int
31556main ()
31557{
Reid Spencera773bd52006-08-04 18:18:08 +000031558return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031559 ;
31560 return 0;
31561}
31562_ACEOF
31563rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031564if { (ac_try="$ac_link"
31565case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31568esac
31569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031571 ac_status=$?
31572 grep -v '^ *+' conftest.er1 >conftest.err
31573 rm -f conftest.er1
31574 cat conftest.err >&5
31575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031576 (exit $ac_status); } &&
31577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31578 { (case "(($ac_try" in
31579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31580 *) ac_try_echo=$ac_try;;
31581esac
31582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31583 (eval "$ac_try") 2>&5
31584 ac_status=$?
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; } &&
31587 { ac_try='test -s conftest$ac_exeext'
31588 { (case "(($ac_try" in
31589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31590 *) ac_try_echo=$ac_try;;
31591esac
31592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31593 (eval "$ac_try") 2>&5
31594 ac_status=$?
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031597 eval "$as_ac_var=yes"
31598else
31599 echo "$as_me: failed program was:" >&5
31600sed 's/^/| /' conftest.$ac_ext >&5
31601
Reid Spencera773bd52006-08-04 18:18:08 +000031602 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031603fi
Reid Spencera773bd52006-08-04 18:18:08 +000031604
Tanya Lattnercf067672008-01-17 05:57:22 +000031605rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031606 conftest$ac_exeext conftest.$ac_ext
31607fi
Reid Spencera773bd52006-08-04 18:18:08 +000031608ac_res=`eval echo '${'$as_ac_var'}'`
31609 { echo "$as_me:$LINENO: result: $ac_res" >&5
31610echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031611if test `eval echo '${'$as_ac_var'}'` = yes; then
31612
31613cat >>confdefs.h <<_ACEOF
31614#define CRAY_STACKSEG_END $ac_func
31615_ACEOF
31616
31617 break
31618fi
31619
31620 done
31621fi
31622
Reid Spencera773bd52006-08-04 18:18:08 +000031623{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31624echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031625if test "${ac_cv_c_stack_direction+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31627else
31628 if test "$cross_compiling" = yes; then
31629 ac_cv_c_stack_direction=0
31630else
31631 cat >conftest.$ac_ext <<_ACEOF
31632/* confdefs.h. */
31633_ACEOF
31634cat confdefs.h >>conftest.$ac_ext
31635cat >>conftest.$ac_ext <<_ACEOF
31636/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031637$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031638int
31639find_stack_direction ()
31640{
31641 static char *addr = 0;
31642 auto char dummy;
31643 if (addr == 0)
31644 {
31645 addr = &dummy;
31646 return find_stack_direction ();
31647 }
John Criswell0021c312004-02-13 21:57:29 +000031648 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031649 return (&dummy > addr) ? 1 : -1;
31650}
John Criswell0021c312004-02-13 21:57:29 +000031651
John Criswell0021c312004-02-13 21:57:29 +000031652int
31653main ()
31654{
Reid Spencera773bd52006-08-04 18:18:08 +000031655 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031656}
31657_ACEOF
31658rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031659if { (ac_try="$ac_link"
31660case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31663esac
31664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031669 { (case "(($ac_try" in
31670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671 *) ac_try_echo=$ac_try;;
31672esac
31673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031675 ac_status=$?
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031678 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031679else
31680 echo "$as_me: program exited with status $ac_status" >&5
31681echo "$as_me: failed program was:" >&5
31682sed 's/^/| /' conftest.$ac_ext >&5
31683
31684( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031686fi
Reid Spencera773bd52006-08-04 18:18:08 +000031687rm -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 +000031688fi
Reid Spencera773bd52006-08-04 18:18:08 +000031689
31690
John Criswell0021c312004-02-13 21:57:29 +000031691fi
Reid Spencera773bd52006-08-04 18:18:08 +000031692{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31693echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031694
31695cat >>confdefs.h <<_ACEOF
31696#define STACK_DIRECTION $ac_cv_c_stack_direction
31697_ACEOF
31698
31699
John Criswell0021c312004-02-13 21:57:29 +000031700fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031701
31702
Reid Spencera773bd52006-08-04 18:18:08 +000031703{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31704echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031705if test "${ac_cv_func_rand48+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31707else
Reid Spencera773bd52006-08-04 18:18:08 +000031708 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709ac_cpp='$CXXCPP $CPPFLAGS'
31710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31713
31714 cat >conftest.$ac_ext <<_ACEOF
31715/* confdefs.h. */
31716_ACEOF
31717cat confdefs.h >>conftest.$ac_ext
31718cat >>conftest.$ac_ext <<_ACEOF
31719/* end confdefs.h. */
31720#include <stdlib.h>
31721int
31722main ()
31723{
31724srand48(0);lrand48();drand48();
31725 ;
31726 return 0;
31727}
31728_ACEOF
31729rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031730if { (ac_try="$ac_compile"
31731case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31734esac
31735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031737 ac_status=$?
31738 grep -v '^ *+' conftest.er1 >conftest.err
31739 rm -f conftest.er1
31740 cat conftest.err >&5
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031742 (exit $ac_status); } &&
31743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31744 { (case "(($ac_try" in
31745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746 *) ac_try_echo=$ac_try;;
31747esac
31748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749 (eval "$ac_try") 2>&5
31750 ac_status=$?
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; } &&
31753 { ac_try='test -s conftest.$ac_objext'
31754 { (case "(($ac_try" in
31755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756 *) ac_try_echo=$ac_try;;
31757esac
31758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759 (eval "$ac_try") 2>&5
31760 ac_status=$?
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031763 ac_cv_func_rand48=yes
31764else
31765 echo "$as_me: failed program was:" >&5
31766sed 's/^/| /' conftest.$ac_ext >&5
31767
Reid Spencera773bd52006-08-04 18:18:08 +000031768 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031769fi
Reid Spencera773bd52006-08-04 18:18:08 +000031770
31771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031772 ac_ext=c
31773ac_cpp='$CPP $CPPFLAGS'
31774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776ac_compiler_gnu=$ac_cv_c_compiler_gnu
31777
31778fi
Reid Spencera773bd52006-08-04 18:18:08 +000031779{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31780echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031781
31782if test "$ac_cv_func_rand48" = "yes" ; then
31783
31784cat >>confdefs.h <<\_ACEOF
31785#define HAVE_RAND48 1
31786_ACEOF
31787
31788fi
John Criswell0021c312004-02-13 21:57:29 +000031789
31790
Reid Spencera773bd52006-08-04 18:18:08 +000031791{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31792echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031793if test "${ac_cv_cxx_namespaces+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31795else
Reid Spencera773bd52006-08-04 18:18:08 +000031796 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031797ac_cpp='$CXXCPP $CPPFLAGS'
31798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31801
31802 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031803/* confdefs.h. */
31804_ACEOF
31805cat confdefs.h >>conftest.$ac_ext
31806cat >>conftest.$ac_ext <<_ACEOF
31807/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031808namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031809int
31810main ()
31811{
31812using namespace Outer::Inner; return i;
31813 ;
31814 return 0;
31815}
31816_ACEOF
31817rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031818if { (ac_try="$ac_compile"
31819case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31822esac
31823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031825 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031826 grep -v '^ *+' conftest.er1 >conftest.err
31827 rm -f conftest.er1
31828 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031830 (exit $ac_status); } &&
31831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31832 { (case "(($ac_try" in
31833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834 *) ac_try_echo=$ac_try;;
31835esac
31836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837 (eval "$ac_try") 2>&5
31838 ac_status=$?
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; } &&
31841 { ac_try='test -s conftest.$ac_objext'
31842 { (case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31845esac
31846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031851 ac_cv_cxx_namespaces=yes
31852else
31853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031854sed 's/^/| /' conftest.$ac_ext >&5
31855
Reid Spencera773bd52006-08-04 18:18:08 +000031856 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031857fi
Reid Spencera773bd52006-08-04 18:18:08 +000031858
31859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031860 ac_ext=c
31861ac_cpp='$CPP $CPPFLAGS'
31862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31864ac_compiler_gnu=$ac_cv_c_compiler_gnu
31865
31866
31867fi
Reid Spencera773bd52006-08-04 18:18:08 +000031868{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31869echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031870if test "$ac_cv_cxx_namespaces" = yes; then
31871
31872cat >>confdefs.h <<\_ACEOF
31873#define HAVE_NAMESPACES
31874_ACEOF
31875
31876fi
31877
Reid Spencera773bd52006-08-04 18:18:08 +000031878{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31879echo $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 +000031880if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031881 echo $ECHO_N "(cached) $ECHO_C" >&6
31882else
31883
Reid Spencera773bd52006-08-04 18:18:08 +000031884 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031885ac_cpp='$CXXCPP $CPPFLAGS'
31886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31889
31890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031891/* confdefs.h. */
31892_ACEOF
31893cat confdefs.h >>conftest.$ac_ext
31894cat >>conftest.$ac_ext <<_ACEOF
31895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031896#include <ext/hash_map>
31897#ifdef HAVE_NAMESPACES
31898using namespace std;
31899#endif
John Criswell7a73b802003-06-30 21:59:07 +000031900int
31901main ()
31902{
Brian Gaeke90583492003-11-10 03:06:28 +000031903hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031904 ;
31905 return 0;
31906}
31907_ACEOF
31908rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031909if { (ac_try="$ac_compile"
31910case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31913esac
31914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31915 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031916 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031917 grep -v '^ *+' conftest.er1 >conftest.err
31918 rm -f conftest.er1
31919 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031921 (exit $ac_status); } &&
31922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31923 { (case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31926esac
31927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_try") 2>&5
31929 ac_status=$?
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; } &&
31932 { ac_try='test -s conftest.$ac_objext'
31933 { (case "(($ac_try" in
31934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31935 *) ac_try_echo=$ac_try;;
31936esac
31937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31938 (eval "$ac_try") 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031942 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031943else
31944 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031945sed 's/^/| /' conftest.$ac_ext >&5
31946
Reid Spencera773bd52006-08-04 18:18:08 +000031947 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031948fi
Reid Spencera773bd52006-08-04 18:18:08 +000031949
31950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031951 ac_ext=c
31952ac_cpp='$CPP $CPPFLAGS'
31953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31955ac_compiler_gnu=$ac_cv_c_compiler_gnu
31956
John Criswell7a73b802003-06-30 21:59:07 +000031957fi
Reid Spencera773bd52006-08-04 18:18:08 +000031958{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31959echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031960 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31961 then
John Criswell9f011862004-09-24 18:28:00 +000031962
31963cat >>confdefs.h <<\_ACEOF
31964#define HAVE_STD_EXT_HASH_MAP 1
31965_ACEOF
31966
31967 else
31968
31969cat >>confdefs.h <<\_ACEOF
31970#define HAVE_STD_EXT_HASH_MAP 0
31971_ACEOF
31972
Brian Gaeke90583492003-11-10 03:06:28 +000031973 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031974
Reid Spencera773bd52006-08-04 18:18:08 +000031975 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31976echo $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 +000031977if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31978 echo $ECHO_N "(cached) $ECHO_C" >&6
31979else
31980
Reid Spencera773bd52006-08-04 18:18:08 +000031981 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031982ac_cpp='$CXXCPP $CPPFLAGS'
31983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31986
31987 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031988/* confdefs.h. */
31989_ACEOF
31990cat confdefs.h >>conftest.$ac_ext
31991cat >>conftest.$ac_ext <<_ACEOF
31992/* end confdefs.h. */
31993#include <ext/hash_map>
31994#ifdef HAVE_NAMESPACES
31995using namespace __gnu_cxx;
31996#endif
31997int
31998main ()
31999{
32000hash_map<int,int> t;
32001 ;
32002 return 0;
32003}
32004_ACEOF
32005rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032006if { (ac_try="$ac_compile"
32007case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032014 grep -v '^ *+' conftest.er1 >conftest.err
32015 rm -f conftest.er1
32016 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032018 (exit $ac_status); } &&
32019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32020 { (case "(($ac_try" in
32021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32022 *) ac_try_echo=$ac_try;;
32023esac
32024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32025 (eval "$ac_try") 2>&5
32026 ac_status=$?
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; } &&
32029 { ac_try='test -s conftest.$ac_objext'
32030 { (case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32033esac
32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32035 (eval "$ac_try") 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032039 ac_cv_cxx_have_gnu_ext_hash_map=yes
32040else
32041 echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
Reid Spencera773bd52006-08-04 18:18:08 +000032044 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032045fi
Reid Spencera773bd52006-08-04 18:18:08 +000032046
32047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032048 ac_ext=c
32049ac_cpp='$CPP $CPPFLAGS'
32050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052ac_compiler_gnu=$ac_cv_c_compiler_gnu
32053
32054fi
Reid Spencera773bd52006-08-04 18:18:08 +000032055{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32056echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032057 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32058 then
John Criswell9f011862004-09-24 18:28:00 +000032059
32060cat >>confdefs.h <<\_ACEOF
32061#define HAVE_GNU_EXT_HASH_MAP 1
32062_ACEOF
32063
32064 else
32065
32066cat >>confdefs.h <<\_ACEOF
32067#define HAVE_GNU_EXT_HASH_MAP 0
32068_ACEOF
32069
Brian Gaeke90583492003-11-10 03:06:28 +000032070 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032071
Reid Spencera773bd52006-08-04 18:18:08 +000032072 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32073echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032074if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32075 echo $ECHO_N "(cached) $ECHO_C" >&6
32076else
John Criswell7a73b802003-06-30 21:59:07 +000032077
Reid Spencera773bd52006-08-04 18:18:08 +000032078 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032079ac_cpp='$CXXCPP $CPPFLAGS'
32080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32083
32084 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032085/* confdefs.h. */
32086_ACEOF
32087cat confdefs.h >>conftest.$ac_ext
32088cat >>conftest.$ac_ext <<_ACEOF
32089/* end confdefs.h. */
32090#include <hash_map>
32091int
32092main ()
32093{
32094hash_map<int,int> t;
32095 ;
32096 return 0;
32097}
32098_ACEOF
32099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032100if { (ac_try="$ac_compile"
32101case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32104esac
32105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032108 grep -v '^ *+' conftest.er1 >conftest.err
32109 rm -f conftest.er1
32110 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032112 (exit $ac_status); } &&
32113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32114 { (case "(($ac_try" in
32115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116 *) ac_try_echo=$ac_try;;
32117esac
32118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119 (eval "$ac_try") 2>&5
32120 ac_status=$?
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; } &&
32123 { ac_try='test -s conftest.$ac_objext'
32124 { (case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32127esac
32128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129 (eval "$ac_try") 2>&5
32130 ac_status=$?
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032133 ac_cv_cxx_have_global_hash_map=yes
32134else
32135 echo "$as_me: failed program was:" >&5
32136sed 's/^/| /' conftest.$ac_ext >&5
32137
Reid Spencera773bd52006-08-04 18:18:08 +000032138 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032139fi
Reid Spencera773bd52006-08-04 18:18:08 +000032140
32141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032142 ac_ext=c
32143ac_cpp='$CPP $CPPFLAGS'
32144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32146ac_compiler_gnu=$ac_cv_c_compiler_gnu
32147
32148fi
Reid Spencera773bd52006-08-04 18:18:08 +000032149{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32150echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032151 if test "$ac_cv_cxx_have_global_hash_map" = yes
32152 then
John Criswell9f011862004-09-24 18:28:00 +000032153
32154cat >>confdefs.h <<\_ACEOF
32155#define HAVE_GLOBAL_HASH_MAP 1
32156_ACEOF
32157
32158 else
32159
32160cat >>confdefs.h <<\_ACEOF
32161#define HAVE_GLOBAL_HASH_MAP 0
32162_ACEOF
32163
Brian Gaeke90583492003-11-10 03:06:28 +000032164 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032165
Reid Spencera773bd52006-08-04 18:18:08 +000032166{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32167echo $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 +000032168if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032169 echo $ECHO_N "(cached) $ECHO_C" >&6
32170else
32171
Reid Spencera773bd52006-08-04 18:18:08 +000032172 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032173ac_cpp='$CXXCPP $CPPFLAGS'
32174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32177
32178 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032179/* confdefs.h. */
32180_ACEOF
32181cat confdefs.h >>conftest.$ac_ext
32182cat >>conftest.$ac_ext <<_ACEOF
32183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032184#include <ext/hash_set>
32185#ifdef HAVE_NAMESPACES
32186using namespace std;
32187#endif
John Criswell7a73b802003-06-30 21:59:07 +000032188int
32189main ()
32190{
Brian Gaeke90583492003-11-10 03:06:28 +000032191hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032192 ;
32193 return 0;
32194}
32195_ACEOF
32196rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032197if { (ac_try="$ac_compile"
32198case "(($ac_try" in
32199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200 *) ac_try_echo=$ac_try;;
32201esac
32202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032204 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032205 grep -v '^ *+' conftest.er1 >conftest.err
32206 rm -f conftest.er1
32207 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032209 (exit $ac_status); } &&
32210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32211 { (case "(($ac_try" in
32212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213 *) ac_try_echo=$ac_try;;
32214esac
32215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216 (eval "$ac_try") 2>&5
32217 ac_status=$?
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; } &&
32220 { ac_try='test -s conftest.$ac_objext'
32221 { (case "(($ac_try" in
32222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32223 *) ac_try_echo=$ac_try;;
32224esac
32225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32226 (eval "$ac_try") 2>&5
32227 ac_status=$?
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032230 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032231else
32232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032233sed 's/^/| /' conftest.$ac_ext >&5
32234
Reid Spencera773bd52006-08-04 18:18:08 +000032235 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032236fi
Reid Spencera773bd52006-08-04 18:18:08 +000032237
32238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032239 ac_ext=c
32240ac_cpp='$CPP $CPPFLAGS'
32241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32243ac_compiler_gnu=$ac_cv_c_compiler_gnu
32244
32245fi
Reid Spencera773bd52006-08-04 18:18:08 +000032246{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32247echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032248 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32249 then
John Criswell9f011862004-09-24 18:28:00 +000032250
32251cat >>confdefs.h <<\_ACEOF
32252#define HAVE_STD_EXT_HASH_SET 1
32253_ACEOF
32254
32255 else
32256
32257cat >>confdefs.h <<\_ACEOF
32258#define HAVE_STD_EXT_HASH_SET 0
32259_ACEOF
32260
Brian Gaeke90583492003-11-10 03:06:28 +000032261 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032262
Reid Spencera773bd52006-08-04 18:18:08 +000032263 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32264echo $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 +000032265if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32266 echo $ECHO_N "(cached) $ECHO_C" >&6
32267else
32268
Reid Spencera773bd52006-08-04 18:18:08 +000032269 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032270ac_cpp='$CXXCPP $CPPFLAGS'
32271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32274
John Criswell7a73b802003-06-30 21:59:07 +000032275 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032276/* confdefs.h. */
32277_ACEOF
32278cat confdefs.h >>conftest.$ac_ext
32279cat >>conftest.$ac_ext <<_ACEOF
32280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032281#include <ext/hash_set>
32282#ifdef HAVE_NAMESPACES
32283using namespace __gnu_cxx;
32284#endif
John Criswell7a73b802003-06-30 21:59:07 +000032285int
32286main ()
32287{
Brian Gaeke90583492003-11-10 03:06:28 +000032288hash_set<int> t;
32289 ;
32290 return 0;
32291}
32292_ACEOF
32293rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032294if { (ac_try="$ac_compile"
32295case "(($ac_try" in
32296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297 *) ac_try_echo=$ac_try;;
32298esac
32299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032301 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032302 grep -v '^ *+' conftest.er1 >conftest.err
32303 rm -f conftest.er1
32304 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032306 (exit $ac_status); } &&
32307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32308 { (case "(($ac_try" in
32309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32310 *) ac_try_echo=$ac_try;;
32311esac
32312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32313 (eval "$ac_try") 2>&5
32314 ac_status=$?
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; } &&
32317 { ac_try='test -s conftest.$ac_objext'
32318 { (case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32321esac
32322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_try") 2>&5
32324 ac_status=$?
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032327 ac_cv_cxx_have_gnu_ext_hash_set=yes
32328else
32329 echo "$as_me: failed program was:" >&5
32330sed 's/^/| /' conftest.$ac_ext >&5
32331
Reid Spencera773bd52006-08-04 18:18:08 +000032332 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032333fi
Reid Spencera773bd52006-08-04 18:18:08 +000032334
32335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032336 ac_ext=c
32337ac_cpp='$CPP $CPPFLAGS'
32338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32340ac_compiler_gnu=$ac_cv_c_compiler_gnu
32341
32342fi
Reid Spencera773bd52006-08-04 18:18:08 +000032343{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32344echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032345 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32346 then
John Criswell9f011862004-09-24 18:28:00 +000032347
32348cat >>confdefs.h <<\_ACEOF
32349#define HAVE_GNU_EXT_HASH_SET 1
32350_ACEOF
32351
32352 else
32353
32354cat >>confdefs.h <<\_ACEOF
32355#define HAVE_GNU_EXT_HASH_SET 0
32356_ACEOF
32357
Brian Gaeke90583492003-11-10 03:06:28 +000032358 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032359
Reid Spencera773bd52006-08-04 18:18:08 +000032360 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32361echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032362if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32363 echo $ECHO_N "(cached) $ECHO_C" >&6
32364else
32365
Reid Spencera773bd52006-08-04 18:18:08 +000032366 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032367ac_cpp='$CXXCPP $CPPFLAGS'
32368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32371
32372 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032373/* confdefs.h. */
32374_ACEOF
32375cat confdefs.h >>conftest.$ac_ext
32376cat >>conftest.$ac_ext <<_ACEOF
32377/* end confdefs.h. */
32378#include <hash_set>
32379int
32380main ()
32381{
John Criswell7a73b802003-06-30 21:59:07 +000032382hash_set<int> t; return 0;
32383 ;
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
Tanya Lattnercf067672008-01-17 05:57:22 +000032400 (exit $ac_status); } &&
32401 { 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
32408 ac_status=$?
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); }; } &&
32411 { ac_try='test -s conftest.$ac_objext'
32412 { (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
32418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032421 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032422else
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_global_hash_set=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
John Criswell7a73b802003-06-30 21:59:07 +000032436fi
Reid Spencera773bd52006-08-04 18:18:08 +000032437{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32438echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032439 if test "$ac_cv_cxx_have_global_hash_set" = yes
32440 then
John Criswell9f011862004-09-24 18:28:00 +000032441
32442cat >>confdefs.h <<\_ACEOF
32443#define HAVE_GLOBAL_HASH_SET 1
32444_ACEOF
32445
32446 else
32447
32448cat >>confdefs.h <<\_ACEOF
32449#define HAVE_GLOBAL_HASH_SET 0
32450_ACEOF
32451
Brian Gaeke90583492003-11-10 03:06:28 +000032452 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032453
Reid Spencera773bd52006-08-04 18:18:08 +000032454{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32455echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032456if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32457 echo $ECHO_N "(cached) $ECHO_C" >&6
32458else
32459
Reid Spencera773bd52006-08-04 18:18:08 +000032460 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032461ac_cpp='$CXXCPP $CPPFLAGS'
32462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32465
32466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032467/* confdefs.h. */
32468_ACEOF
32469cat confdefs.h >>conftest.$ac_ext
32470cat >>conftest.$ac_ext <<_ACEOF
32471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032472#include <iterator>
32473#ifdef HAVE_NAMESPACES
32474using namespace std;
32475#endif
John Criswell7a73b802003-06-30 21:59:07 +000032476int
32477main ()
32478{
32479iterator<int,int,int> t; return 0;
32480 ;
32481 return 0;
32482}
32483_ACEOF
32484rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032485if { (ac_try="$ac_compile"
32486case "(($ac_try" in
32487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32488 *) ac_try_echo=$ac_try;;
32489esac
32490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32491 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032492 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032493 grep -v '^ *+' conftest.er1 >conftest.err
32494 rm -f conftest.er1
32495 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032497 (exit $ac_status); } &&
32498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32499 { (case "(($ac_try" in
32500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501 *) ac_try_echo=$ac_try;;
32502esac
32503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504 (eval "$ac_try") 2>&5
32505 ac_status=$?
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; } &&
32508 { ac_try='test -s conftest.$ac_objext'
32509 { (case "(($ac_try" in
32510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511 *) ac_try_echo=$ac_try;;
32512esac
32513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514 (eval "$ac_try") 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032518 ac_cv_cxx_have_std_iterator=yes
32519else
32520 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032521sed 's/^/| /' conftest.$ac_ext >&5
32522
Reid Spencera773bd52006-08-04 18:18:08 +000032523 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032524fi
Reid Spencera773bd52006-08-04 18:18:08 +000032525
32526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032527 ac_ext=c
32528ac_cpp='$CPP $CPPFLAGS'
32529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32531ac_compiler_gnu=$ac_cv_c_compiler_gnu
32532
32533
32534fi
Reid Spencera773bd52006-08-04 18:18:08 +000032535{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32536echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032537if test "$ac_cv_cxx_have_std_iterator" = yes
32538then
John Criswell40468462004-09-24 21:19:06 +000032539
32540cat >>confdefs.h <<\_ACEOF
32541#define HAVE_STD_ITERATOR 1
32542_ACEOF
32543
32544else
32545
32546cat >>confdefs.h <<\_ACEOF
32547#define HAVE_STD_ITERATOR 0
32548_ACEOF
32549
John Criswell7a73b802003-06-30 21:59:07 +000032550fi
32551
Reid Spencera773bd52006-08-04 18:18:08 +000032552{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32553echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032554if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32555 echo $ECHO_N "(cached) $ECHO_C" >&6
32556else
32557
Reid Spencera773bd52006-08-04 18:18:08 +000032558 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032559ac_cpp='$CXXCPP $CPPFLAGS'
32560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32563
32564 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032565/* confdefs.h. */
32566_ACEOF
32567cat confdefs.h >>conftest.$ac_ext
32568cat >>conftest.$ac_ext <<_ACEOF
32569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032570#include <iterator>
32571#ifdef HAVE_NAMESPACES
32572using namespace std;
32573#endif
John Criswell7a73b802003-06-30 21:59:07 +000032574int
32575main ()
32576{
John Criswellc78022e2003-07-29 19:11:58 +000032577bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032578 ;
32579 return 0;
32580}
32581_ACEOF
32582rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032583if { (ac_try="$ac_compile"
32584case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32587esac
32588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032590 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032591 grep -v '^ *+' conftest.er1 >conftest.err
32592 rm -f conftest.er1
32593 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032595 (exit $ac_status); } &&
32596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32597 { (case "(($ac_try" in
32598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599 *) ac_try_echo=$ac_try;;
32600esac
32601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32602 (eval "$ac_try") 2>&5
32603 ac_status=$?
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; } &&
32606 { ac_try='test -s conftest.$ac_objext'
32607 { (case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610esac
32611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_try") 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032616 ac_cv_cxx_have_bi_iterator=yes
32617else
32618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032619sed 's/^/| /' conftest.$ac_ext >&5
32620
Reid Spencera773bd52006-08-04 18:18:08 +000032621 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032622fi
Reid Spencera773bd52006-08-04 18:18:08 +000032623
32624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032625 ac_ext=c
32626ac_cpp='$CPP $CPPFLAGS'
32627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32629ac_compiler_gnu=$ac_cv_c_compiler_gnu
32630
32631
32632fi
Reid Spencera773bd52006-08-04 18:18:08 +000032633{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32634echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032635if test "$ac_cv_cxx_have_bi_iterator" = yes
32636then
John Criswell40468462004-09-24 21:19:06 +000032637
32638cat >>confdefs.h <<\_ACEOF
32639#define HAVE_BI_ITERATOR 1
32640_ACEOF
32641
32642else
32643
32644cat >>confdefs.h <<\_ACEOF
32645#define HAVE_BI_ITERATOR 0
32646_ACEOF
32647
John Criswell7a73b802003-06-30 21:59:07 +000032648fi
32649
Reid Spencera773bd52006-08-04 18:18:08 +000032650{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32651echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032652if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32653 echo $ECHO_N "(cached) $ECHO_C" >&6
32654else
32655
Reid Spencera773bd52006-08-04 18:18:08 +000032656 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032657ac_cpp='$CXXCPP $CPPFLAGS'
32658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32661
32662 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032663/* confdefs.h. */
32664_ACEOF
32665cat confdefs.h >>conftest.$ac_ext
32666cat >>conftest.$ac_ext <<_ACEOF
32667/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032668#include <iterator>
32669#ifdef HAVE_NAMESPACES
32670using namespace std;
32671#endif
John Criswell7a73b802003-06-30 21:59:07 +000032672int
32673main ()
32674{
John Criswellc78022e2003-07-29 19:11:58 +000032675forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032676 ;
32677 return 0;
32678}
32679_ACEOF
32680rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032681if { (ac_try="$ac_compile"
32682case "(($ac_try" in
32683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684 *) ac_try_echo=$ac_try;;
32685esac
32686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032688 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032689 grep -v '^ *+' conftest.er1 >conftest.err
32690 rm -f conftest.er1
32691 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032693 (exit $ac_status); } &&
32694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32695 { (case "(($ac_try" in
32696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697 *) ac_try_echo=$ac_try;;
32698esac
32699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700 (eval "$ac_try") 2>&5
32701 ac_status=$?
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; } &&
32704 { ac_try='test -s conftest.$ac_objext'
32705 { (case "(($ac_try" in
32706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707 *) ac_try_echo=$ac_try;;
32708esac
32709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32710 (eval "$ac_try") 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032714 ac_cv_cxx_have_fwd_iterator=yes
32715else
32716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032717sed 's/^/| /' conftest.$ac_ext >&5
32718
Reid Spencera773bd52006-08-04 18:18:08 +000032719 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032720fi
Reid Spencera773bd52006-08-04 18:18:08 +000032721
32722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032723 ac_ext=c
32724ac_cpp='$CPP $CPPFLAGS'
32725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32727ac_compiler_gnu=$ac_cv_c_compiler_gnu
32728
32729
32730fi
Reid Spencera773bd52006-08-04 18:18:08 +000032731{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32732echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032733if test "$ac_cv_cxx_have_fwd_iterator" = yes
32734then
John Criswell40468462004-09-24 21:19:06 +000032735
32736cat >>confdefs.h <<\_ACEOF
32737#define HAVE_FWD_ITERATOR 1
32738_ACEOF
32739
32740else
32741
32742cat >>confdefs.h <<\_ACEOF
32743#define HAVE_FWD_ITERATOR 0
32744_ACEOF
32745
John Criswell7a73b802003-06-30 21:59:07 +000032746fi
32747
32748
Reid Spencera773bd52006-08-04 18:18:08 +000032749{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32750echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032751if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32752 echo $ECHO_N "(cached) $ECHO_C" >&6
32753else
Reid Spencera773bd52006-08-04 18:18:08 +000032754 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032755ac_cpp='$CXXCPP $CPPFLAGS'
32756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32759
Reid Spencerabec8f92004-10-27 23:03:44 +000032760 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032761/* confdefs.h. */
32762_ACEOF
32763cat confdefs.h >>conftest.$ac_ext
32764cat >>conftest.$ac_ext <<_ACEOF
32765/* end confdefs.h. */
32766#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032767int
32768main ()
32769{
32770float f; isnan(f);
32771 ;
32772 return 0;
32773}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032774_ACEOF
32775rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032776if { (ac_try="$ac_compile"
32777case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32803esac
32804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032809 ac_cv_func_isnan_in_math_h=yes
32810else
32811 echo "$as_me: failed program was:" >&5
32812sed 's/^/| /' conftest.$ac_ext >&5
32813
Reid Spencera773bd52006-08-04 18:18:08 +000032814 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032815fi
Reid Spencera773bd52006-08-04 18:18:08 +000032816
32817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032818 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032819ac_cpp='$CPP $CPPFLAGS'
32820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824fi
Reid Spencera773bd52006-08-04 18:18:08 +000032825{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32826echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032827
32828
32829if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032830
32831cat >>confdefs.h <<\_ACEOF
32832#define HAVE_ISNAN_IN_MATH_H 1
32833_ACEOF
32834
Reid Spencerabec8f92004-10-27 23:03:44 +000032835fi
32836
Reid Spencera773bd52006-08-04 18:18:08 +000032837{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32838echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032839if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32840 echo $ECHO_N "(cached) $ECHO_C" >&6
32841else
Reid Spencera773bd52006-08-04 18:18:08 +000032842 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032843ac_cpp='$CXXCPP $CPPFLAGS'
32844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32847
Reid Spencerabec8f92004-10-27 23:03:44 +000032848 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032849/* confdefs.h. */
32850_ACEOF
32851cat confdefs.h >>conftest.$ac_ext
32852cat >>conftest.$ac_ext <<_ACEOF
32853/* end confdefs.h. */
32854#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032855int
32856main ()
32857{
32858float f; isnan(f);
32859 ;
32860 return 0;
32861}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032862_ACEOF
32863rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032864if { (ac_try="$ac_compile"
32865case "(($ac_try" in
32866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32867 *) ac_try_echo=$ac_try;;
32868esac
32869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32870 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032871 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032872 grep -v '^ *+' conftest.er1 >conftest.err
32873 rm -f conftest.er1
32874 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032876 (exit $ac_status); } &&
32877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32878 { (case "(($ac_try" in
32879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880 *) ac_try_echo=$ac_try;;
32881esac
32882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883 (eval "$ac_try") 2>&5
32884 ac_status=$?
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); }; } &&
32887 { ac_try='test -s conftest.$ac_objext'
32888 { (case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32891esac
32892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32893 (eval "$ac_try") 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032897 ac_cv_func_isnan_in_cmath=yes
32898else
32899 echo "$as_me: failed program was:" >&5
32900sed 's/^/| /' conftest.$ac_ext >&5
32901
Reid Spencera773bd52006-08-04 18:18:08 +000032902 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032903fi
Reid Spencera773bd52006-08-04 18:18:08 +000032904
32905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032906 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032907ac_cpp='$CPP $CPPFLAGS'
32908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910ac_compiler_gnu=$ac_cv_c_compiler_gnu
32911
32912fi
Reid Spencera773bd52006-08-04 18:18:08 +000032913{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32914echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032915
32916if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032917
32918cat >>confdefs.h <<\_ACEOF
32919#define HAVE_ISNAN_IN_CMATH 1
32920_ACEOF
32921
Reid Spencerabec8f92004-10-27 23:03:44 +000032922fi
32923
Reid Spencera773bd52006-08-04 18:18:08 +000032924{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32925echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032926if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32928else
Reid Spencera773bd52006-08-04 18:18:08 +000032929 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032930ac_cpp='$CXXCPP $CPPFLAGS'
32931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32934
Reid Spencerabec8f92004-10-27 23:03:44 +000032935 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032936/* confdefs.h. */
32937_ACEOF
32938cat confdefs.h >>conftest.$ac_ext
32939cat >>conftest.$ac_ext <<_ACEOF
32940/* end confdefs.h. */
32941#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032942int
32943main ()
32944{
32945float f; std::isnan(f);
32946 ;
32947 return 0;
32948}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032949_ACEOF
32950rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032951if { (ac_try="$ac_compile"
32952case "(($ac_try" in
32953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954 *) ac_try_echo=$ac_try;;
32955esac
32956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032959 grep -v '^ *+' conftest.er1 >conftest.err
32960 rm -f conftest.er1
32961 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032963 (exit $ac_status); } &&
32964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32965 { (case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32968esac
32969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_try") 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; } &&
32974 { ac_try='test -s conftest.$ac_objext'
32975 { (case "(($ac_try" in
32976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977 *) ac_try_echo=$ac_try;;
32978esac
32979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980 (eval "$ac_try") 2>&5
32981 ac_status=$?
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032984 ac_cv_func_std_isnan_in_cmath=yes
32985else
32986 echo "$as_me: failed program was:" >&5
32987sed 's/^/| /' conftest.$ac_ext >&5
32988
Reid Spencera773bd52006-08-04 18:18:08 +000032989 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032990fi
Reid Spencera773bd52006-08-04 18:18:08 +000032991
32992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032993 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032994ac_cpp='$CPP $CPPFLAGS'
32995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32997ac_compiler_gnu=$ac_cv_c_compiler_gnu
32998
32999fi
Reid Spencera773bd52006-08-04 18:18:08 +000033000{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33001echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033002
33003if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033004
33005cat >>confdefs.h <<\_ACEOF
33006#define HAVE_STD_ISNAN_IN_CMATH 1
33007_ACEOF
33008
Reid Spencerabec8f92004-10-27 23:03:44 +000033009fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033010
33011
Reid Spencera773bd52006-08-04 18:18:08 +000033012{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33013echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033014if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33015 echo $ECHO_N "(cached) $ECHO_C" >&6
33016else
Reid Spencera773bd52006-08-04 18:18:08 +000033017 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033018ac_cpp='$CXXCPP $CPPFLAGS'
33019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33022
Reid Spencerabec8f92004-10-27 23:03:44 +000033023 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033024/* confdefs.h. */
33025_ACEOF
33026cat confdefs.h >>conftest.$ac_ext
33027cat >>conftest.$ac_ext <<_ACEOF
33028/* end confdefs.h. */
33029#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033030int
33031main ()
33032{
33033float f; isinf(f);
33034 ;
33035 return 0;
33036}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033037_ACEOF
33038rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033039if { (ac_try="$ac_compile"
33040case "(($ac_try" in
33041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33042 *) ac_try_echo=$ac_try;;
33043esac
33044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33045 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033046 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033047 grep -v '^ *+' conftest.er1 >conftest.err
33048 rm -f conftest.er1
33049 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033051 (exit $ac_status); } &&
33052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33053 { (case "(($ac_try" in
33054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33055 *) ac_try_echo=$ac_try;;
33056esac
33057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33058 (eval "$ac_try") 2>&5
33059 ac_status=$?
33060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); }; } &&
33062 { ac_try='test -s conftest.$ac_objext'
33063 { (case "(($ac_try" in
33064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065 *) ac_try_echo=$ac_try;;
33066esac
33067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33068 (eval "$ac_try") 2>&5
33069 ac_status=$?
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033072 ac_cv_func_isinf_in_math_h=yes
33073else
33074 echo "$as_me: failed program was:" >&5
33075sed 's/^/| /' conftest.$ac_ext >&5
33076
Reid Spencera773bd52006-08-04 18:18:08 +000033077 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033078fi
Reid Spencera773bd52006-08-04 18:18:08 +000033079
33080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033081 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033082ac_cpp='$CPP $CPPFLAGS'
33083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33085ac_compiler_gnu=$ac_cv_c_compiler_gnu
33086
33087fi
Reid Spencera773bd52006-08-04 18:18:08 +000033088{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33089echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033090
33091if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033092
33093cat >>confdefs.h <<\_ACEOF
33094#define HAVE_ISINF_IN_MATH_H 1
33095_ACEOF
33096
Reid Spencerabec8f92004-10-27 23:03:44 +000033097fi
33098
Reid Spencera773bd52006-08-04 18:18:08 +000033099{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33100echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033101if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33102 echo $ECHO_N "(cached) $ECHO_C" >&6
33103else
Reid Spencera773bd52006-08-04 18:18:08 +000033104 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033105ac_cpp='$CXXCPP $CPPFLAGS'
33106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33109
Reid Spencerabec8f92004-10-27 23:03:44 +000033110 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033111/* confdefs.h. */
33112_ACEOF
33113cat confdefs.h >>conftest.$ac_ext
33114cat >>conftest.$ac_ext <<_ACEOF
33115/* end confdefs.h. */
33116#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033117int
33118main ()
33119{
33120float f; isinf(f);
33121 ;
33122 return 0;
33123}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033124_ACEOF
33125rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033126if { (ac_try="$ac_compile"
33127case "(($ac_try" in
33128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33129 *) ac_try_echo=$ac_try;;
33130esac
33131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33132 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033133 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033134 grep -v '^ *+' conftest.er1 >conftest.err
33135 rm -f conftest.er1
33136 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033138 (exit $ac_status); } &&
33139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33140 { (case "(($ac_try" in
33141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33142 *) ac_try_echo=$ac_try;;
33143esac
33144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33145 (eval "$ac_try") 2>&5
33146 ac_status=$?
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); }; } &&
33149 { ac_try='test -s conftest.$ac_objext'
33150 { (case "(($ac_try" in
33151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33152 *) ac_try_echo=$ac_try;;
33153esac
33154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33155 (eval "$ac_try") 2>&5
33156 ac_status=$?
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033159 ac_cv_func_isinf_in_cmath=yes
33160else
33161 echo "$as_me: failed program was:" >&5
33162sed 's/^/| /' conftest.$ac_ext >&5
33163
Reid Spencera773bd52006-08-04 18:18:08 +000033164 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033165fi
Reid Spencera773bd52006-08-04 18:18:08 +000033166
33167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033168 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033169ac_cpp='$CPP $CPPFLAGS'
33170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33172ac_compiler_gnu=$ac_cv_c_compiler_gnu
33173
33174fi
Reid Spencera773bd52006-08-04 18:18:08 +000033175{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33176echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033177
33178if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033179
33180cat >>confdefs.h <<\_ACEOF
33181#define HAVE_ISINF_IN_CMATH 1
33182_ACEOF
33183
Reid Spencerabec8f92004-10-27 23:03:44 +000033184fi
33185
Reid Spencera773bd52006-08-04 18:18:08 +000033186{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33187echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033188if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33190else
Reid Spencera773bd52006-08-04 18:18:08 +000033191 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033192ac_cpp='$CXXCPP $CPPFLAGS'
33193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33196
Reid Spencerabec8f92004-10-27 23:03:44 +000033197 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033198/* confdefs.h. */
33199_ACEOF
33200cat confdefs.h >>conftest.$ac_ext
33201cat >>conftest.$ac_ext <<_ACEOF
33202/* end confdefs.h. */
33203#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033204int
33205main ()
33206{
33207float f; std::isinf(f)}
33208 ;
33209 return 0;
33210}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033211_ACEOF
33212rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033213if { (ac_try="$ac_compile"
33214case "(($ac_try" in
33215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33216 *) ac_try_echo=$ac_try;;
33217esac
33218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33219 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033220 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033221 grep -v '^ *+' conftest.er1 >conftest.err
33222 rm -f conftest.er1
33223 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033225 (exit $ac_status); } &&
33226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33227 { (case "(($ac_try" in
33228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33229 *) ac_try_echo=$ac_try;;
33230esac
33231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33232 (eval "$ac_try") 2>&5
33233 ac_status=$?
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; } &&
33236 { ac_try='test -s conftest.$ac_objext'
33237 { (case "(($ac_try" in
33238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239 *) ac_try_echo=$ac_try;;
33240esac
33241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242 (eval "$ac_try") 2>&5
33243 ac_status=$?
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033246 ac_cv_func_std_isinf_in_cmath=yes
33247else
33248 echo "$as_me: failed program was:" >&5
33249sed 's/^/| /' conftest.$ac_ext >&5
33250
Reid Spencera773bd52006-08-04 18:18:08 +000033251 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033252fi
Reid Spencera773bd52006-08-04 18:18:08 +000033253
33254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033255 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033256ac_cpp='$CPP $CPPFLAGS'
33257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33259ac_compiler_gnu=$ac_cv_c_compiler_gnu
33260
33261fi
Reid Spencera773bd52006-08-04 18:18:08 +000033262{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33263echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033264
33265if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033266
33267cat >>confdefs.h <<\_ACEOF
33268#define HAVE_STD_ISINF_IN_CMATH 1
33269_ACEOF
33270
Reid Spencerabec8f92004-10-27 23:03:44 +000033271fi
33272
Reid Spencera773bd52006-08-04 18:18:08 +000033273{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33274echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033275if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33277else
Reid Spencera773bd52006-08-04 18:18:08 +000033278 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033279ac_cpp='$CXXCPP $CPPFLAGS'
33280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33283
Reid Spencerabec8f92004-10-27 23:03:44 +000033284 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033285/* confdefs.h. */
33286_ACEOF
33287cat confdefs.h >>conftest.$ac_ext
33288cat >>conftest.$ac_ext <<_ACEOF
33289/* end confdefs.h. */
33290#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033291int
33292main ()
33293{
33294float f; finite(f);
33295 ;
33296 return 0;
33297}
Brian Gaeked59a6472004-07-21 03:33:58 +000033298_ACEOF
33299rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033300if { (ac_try="$ac_compile"
33301case "(($ac_try" in
33302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303 *) ac_try_echo=$ac_try;;
33304esac
33305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033308 grep -v '^ *+' conftest.er1 >conftest.err
33309 rm -f conftest.er1
33310 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033312 (exit $ac_status); } &&
33313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33314 { (case "(($ac_try" in
33315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33316 *) ac_try_echo=$ac_try;;
33317esac
33318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33319 (eval "$ac_try") 2>&5
33320 ac_status=$?
33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33322 (exit $ac_status); }; } &&
33323 { ac_try='test -s conftest.$ac_objext'
33324 { (case "(($ac_try" in
33325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33326 *) ac_try_echo=$ac_try;;
33327esac
33328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33329 (eval "$ac_try") 2>&5
33330 ac_status=$?
33331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033333 ac_cv_func_finite_in_ieeefp_h=yes
33334else
33335 echo "$as_me: failed program was:" >&5
33336sed 's/^/| /' conftest.$ac_ext >&5
33337
Reid Spencera773bd52006-08-04 18:18:08 +000033338 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033339fi
Reid Spencera773bd52006-08-04 18:18:08 +000033340
33341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033342 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033343ac_cpp='$CPP $CPPFLAGS'
33344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33346ac_compiler_gnu=$ac_cv_c_compiler_gnu
33347
33348fi
Reid Spencera773bd52006-08-04 18:18:08 +000033349{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33350echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033351
Brian Gaeke6802b552004-10-28 05:06:45 +000033352if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033353
33354cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033355#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033356_ACEOF
33357
Reid Spencerabec8f92004-10-27 23:03:44 +000033358fi
33359
33360
33361
Reid Spencer30fe5262007-01-20 07:48:49 +000033362if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033363
33364
33365for ac_header in stdlib.h unistd.h
33366do
33367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033372 echo $ECHO_N "(cached) $ECHO_C" >&6
33373fi
Reid Spencera773bd52006-08-04 18:18:08 +000033374ac_res=`eval echo '${'$as_ac_Header'}'`
33375 { echo "$as_me:$LINENO: result: $ac_res" >&5
33376echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033377else
33378 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033379{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033381cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033382/* confdefs.h. */
33383_ACEOF
33384cat confdefs.h >>conftest.$ac_ext
33385cat >>conftest.$ac_ext <<_ACEOF
33386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033387$ac_includes_default
33388#include <$ac_header>
33389_ACEOF
33390rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033391if { (ac_try="$ac_compile"
33392case "(($ac_try" in
33393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394 *) ac_try_echo=$ac_try;;
33395esac
33396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033399 grep -v '^ *+' conftest.er1 >conftest.err
33400 rm -f conftest.er1
33401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033403 (exit $ac_status); } &&
33404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33405 { (case "(($ac_try" in
33406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407 *) ac_try_echo=$ac_try;;
33408esac
33409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33410 (eval "$ac_try") 2>&5
33411 ac_status=$?
33412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413 (exit $ac_status); }; } &&
33414 { ac_try='test -s conftest.$ac_objext'
33415 { (case "(($ac_try" in
33416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417 *) ac_try_echo=$ac_try;;
33418esac
33419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420 (eval "$ac_try") 2>&5
33421 ac_status=$?
33422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033424 ac_header_compiler=yes
33425else
33426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033427sed 's/^/| /' conftest.$ac_ext >&5
33428
Reid Spencera773bd52006-08-04 18:18:08 +000033429 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033430fi
Reid Spencera773bd52006-08-04 18:18:08 +000033431
33432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33434echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033435
33436# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033437{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033439cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033440/* confdefs.h. */
33441_ACEOF
33442cat confdefs.h >>conftest.$ac_ext
33443cat >>conftest.$ac_ext <<_ACEOF
33444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033445#include <$ac_header>
33446_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033447if { (ac_try="$ac_cpp conftest.$ac_ext"
33448case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33451esac
33452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033454 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033455 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033456 rm -f conftest.er1
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033459 (exit $ac_status); } >/dev/null; then
33460 if test -s conftest.err; then
33461 ac_cpp_err=$ac_c_preproc_warn_flag
33462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33463 else
33464 ac_cpp_err=
33465 fi
33466else
33467 ac_cpp_err=yes
33468fi
33469if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033470 ac_header_preproc=yes
33471else
33472 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033473sed 's/^/| /' conftest.$ac_ext >&5
33474
John Criswell7a73b802003-06-30 21:59:07 +000033475 ac_header_preproc=no
33476fi
Reid Spencera773bd52006-08-04 18:18:08 +000033477
John Criswell7a73b802003-06-30 21:59:07 +000033478rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033479{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33480echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033481
33482# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33484 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33489 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033490 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033491 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033504 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033505## ----------------------------------- ##
33506## Report this to llvmbugs@cs.uiuc.edu ##
33507## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033508_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033509 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033510 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033511esac
Reid Spencera773bd52006-08-04 18:18:08 +000033512{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033515 echo $ECHO_N "(cached) $ECHO_C" >&6
33516else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033517 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033518fi
Reid Spencera773bd52006-08-04 18:18:08 +000033519ac_res=`eval echo '${'$as_ac_Header'}'`
33520 { echo "$as_me:$LINENO: result: $ac_res" >&5
33521echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033522
33523fi
33524if test `eval echo '${'$as_ac_Header'}'` = yes; then
33525 cat >>confdefs.h <<_ACEOF
33526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33527_ACEOF
33528
33529fi
33530
33531done
33532
33533
33534for ac_func in getpagesize
33535do
33536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033537{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033540 echo $ECHO_N "(cached) $ECHO_C" >&6
33541else
33542 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033543/* confdefs.h. */
33544_ACEOF
33545cat confdefs.h >>conftest.$ac_ext
33546cat >>conftest.$ac_ext <<_ACEOF
33547/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33550#define $ac_func innocuous_$ac_func
33551
John Criswell7a73b802003-06-30 21:59:07 +000033552/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033553 which can conflict with char $ac_func (); below.
33554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33555 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033556
John Criswell0c38eaf2003-09-10 15:17:25 +000033557#ifdef __STDC__
33558# include <limits.h>
33559#else
33560# include <assert.h>
33561#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033562
33563#undef $ac_func
33564
Reid Spencera773bd52006-08-04 18:18:08 +000033565/* Override any GCC internal prototype to avoid an error.
33566 Use char because int might match the return type of a GCC
33567 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033568#ifdef __cplusplus
33569extern "C"
33570#endif
John Criswell7a73b802003-06-30 21:59:07 +000033571char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033572/* The GNU C library defines this for functions which it implements
33573 to always fail with ENOSYS. Some functions are actually named
33574 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033575#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033576choke me
John Criswell7a73b802003-06-30 21:59:07 +000033577#endif
33578
John Criswell0c38eaf2003-09-10 15:17:25 +000033579int
33580main ()
33581{
Reid Spencera773bd52006-08-04 18:18:08 +000033582return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033583 ;
33584 return 0;
33585}
33586_ACEOF
33587rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033588if { (ac_try="$ac_link"
33589case "(($ac_try" in
33590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591 *) ac_try_echo=$ac_try;;
33592esac
33593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033595 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033596 grep -v '^ *+' conftest.er1 >conftest.err
33597 rm -f conftest.er1
33598 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033600 (exit $ac_status); } &&
33601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33602 { (case "(($ac_try" in
33603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33604 *) ac_try_echo=$ac_try;;
33605esac
33606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33607 (eval "$ac_try") 2>&5
33608 ac_status=$?
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; } &&
33611 { ac_try='test -s conftest$ac_exeext'
33612 { (case "(($ac_try" in
33613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614 *) ac_try_echo=$ac_try;;
33615esac
33616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617 (eval "$ac_try") 2>&5
33618 ac_status=$?
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033621 eval "$as_ac_var=yes"
33622else
33623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033624sed 's/^/| /' conftest.$ac_ext >&5
33625
Reid Spencera773bd52006-08-04 18:18:08 +000033626 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033627fi
Reid Spencera773bd52006-08-04 18:18:08 +000033628
Tanya Lattnercf067672008-01-17 05:57:22 +000033629rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033630 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033631fi
Reid Spencera773bd52006-08-04 18:18:08 +000033632ac_res=`eval echo '${'$as_ac_var'}'`
33633 { echo "$as_me:$LINENO: result: $ac_res" >&5
33634echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033635if test `eval echo '${'$as_ac_var'}'` = yes; then
33636 cat >>confdefs.h <<_ACEOF
33637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33638_ACEOF
33639
33640fi
33641done
33642
Reid Spencera773bd52006-08-04 18:18:08 +000033643{ echo "$as_me:$LINENO: checking for working mmap" >&5
33644echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033645if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33646 echo $ECHO_N "(cached) $ECHO_C" >&6
33647else
33648 if test "$cross_compiling" = yes; then
33649 ac_cv_func_mmap_fixed_mapped=no
33650else
33651 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033652/* confdefs.h. */
33653_ACEOF
33654cat confdefs.h >>conftest.$ac_ext
33655cat >>conftest.$ac_ext <<_ACEOF
33656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033657$ac_includes_default
33658/* malloc might have been renamed as rpl_malloc. */
33659#undef malloc
33660
33661/* Thanks to Mike Haertel and Jim Avera for this test.
33662 Here is a matrix of mmap possibilities:
33663 mmap private not fixed
33664 mmap private fixed at somewhere currently unmapped
33665 mmap private fixed at somewhere already mapped
33666 mmap shared not fixed
33667 mmap shared fixed at somewhere currently unmapped
33668 mmap shared fixed at somewhere already mapped
33669 For private mappings, we should verify that changes cannot be read()
33670 back from the file, nor mmap's back from the file at a different
33671 address. (There have been systems where private was not correctly
33672 implemented like the infamous i386 svr4.0, and systems where the
33673 VM page cache was not coherent with the file system buffer cache
33674 like early versions of FreeBSD and possibly contemporary NetBSD.)
33675 For shared mappings, we should conversely verify that changes get
33676 propagated back to all the places they're supposed to be.
33677
33678 Grep wants private fixed already mapped.
33679 The main things grep needs to know about mmap are:
33680 * does it exist and is it safe to write into the mmap'd area
33681 * how to use it (BSD variants) */
33682
33683#include <fcntl.h>
33684#include <sys/mman.h>
33685
Tanya Lattnercf067672008-01-17 05:57:22 +000033686#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033687char *malloc ();
33688#endif
33689
33690/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033691#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033692/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033693# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033694# define HAVE_SYS_PARAM_H 1
33695# endif
33696
33697# ifdef _SC_PAGESIZE
33698# define getpagesize() sysconf(_SC_PAGESIZE)
33699# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033700# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033701# include <sys/param.h>
33702# ifdef EXEC_PAGESIZE
33703# define getpagesize() EXEC_PAGESIZE
33704# else /* no EXEC_PAGESIZE */
33705# ifdef NBPG
33706# define getpagesize() NBPG * CLSIZE
33707# ifndef CLSIZE
33708# define CLSIZE 1
33709# endif /* no CLSIZE */
33710# else /* no NBPG */
33711# ifdef NBPC
33712# define getpagesize() NBPC
33713# else /* no NBPC */
33714# ifdef PAGESIZE
33715# define getpagesize() PAGESIZE
33716# endif /* PAGESIZE */
33717# endif /* no NBPC */
33718# endif /* no NBPG */
33719# endif /* no EXEC_PAGESIZE */
33720# else /* no HAVE_SYS_PARAM_H */
33721# define getpagesize() 8192 /* punt totally */
33722# endif /* no HAVE_SYS_PARAM_H */
33723# endif /* no _SC_PAGESIZE */
33724
33725#endif /* no HAVE_GETPAGESIZE */
33726
33727int
33728main ()
33729{
33730 char *data, *data2, *data3;
33731 int i, pagesize;
33732 int fd;
33733
33734 pagesize = getpagesize ();
33735
33736 /* First, make a file with some known garbage in it. */
33737 data = (char *) malloc (pagesize);
33738 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033739 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033740 for (i = 0; i < pagesize; ++i)
33741 *(data + i) = rand ();
33742 umask (0);
33743 fd = creat ("conftest.mmap", 0600);
33744 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033745 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033746 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033747 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033748 close (fd);
33749
33750 /* Next, try to mmap the file at a fixed address which already has
33751 something else allocated at it. If we can, also make sure that
33752 we see the same garbage. */
33753 fd = open ("conftest.mmap", O_RDWR);
33754 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033755 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033756 data2 = (char *) malloc (2 * pagesize);
33757 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033758 return 1;
33759 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033760 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033761 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033762 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033763 for (i = 0; i < pagesize; ++i)
33764 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033765 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033766
33767 /* Finally, make sure that changes to the mapped area do not
33768 percolate back to the file as seen by read(). (This is a bug on
33769 some variants of i386 svr4.0.) */
33770 for (i = 0; i < pagesize; ++i)
33771 *(data2 + i) = *(data2 + i) + 1;
33772 data3 = (char *) malloc (pagesize);
33773 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033774 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033775 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033776 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033777 for (i = 0; i < pagesize; ++i)
33778 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033779 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033780 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033781 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033782}
33783_ACEOF
33784rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033785if { (ac_try="$ac_link"
33786case "(($ac_try" in
33787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788 *) ac_try_echo=$ac_try;;
33789esac
33790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033795 { (case "(($ac_try" in
33796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797 *) ac_try_echo=$ac_try;;
33798esac
33799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33800 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; }; then
33804 ac_cv_func_mmap_fixed_mapped=yes
33805else
33806 echo "$as_me: program exited with status $ac_status" >&5
33807echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033808sed 's/^/| /' conftest.$ac_ext >&5
33809
John Criswell7a73b802003-06-30 21:59:07 +000033810( exit $ac_status )
33811ac_cv_func_mmap_fixed_mapped=no
33812fi
Reid Spencera773bd52006-08-04 18:18:08 +000033813rm -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 +000033814fi
Reid Spencera773bd52006-08-04 18:18:08 +000033815
33816
John Criswell7a73b802003-06-30 21:59:07 +000033817fi
Reid Spencera773bd52006-08-04 18:18:08 +000033818{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33819echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033820if test $ac_cv_func_mmap_fixed_mapped = yes; then
33821
33822cat >>confdefs.h <<\_ACEOF
33823#define HAVE_MMAP 1
33824_ACEOF
33825
33826fi
33827rm -f conftest.mmap
33828
Reid Spencer30fe5262007-01-20 07:48:49 +000033829 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033830echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033831if test "${ac_cv_func_mmap_file+set}" = set; then
33832 echo $ECHO_N "(cached) $ECHO_C" >&6
33833else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033834 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033835ac_cpp='$CPP $CPPFLAGS'
33836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33838ac_compiler_gnu=$ac_cv_c_compiler_gnu
33839
33840 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033841 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033842else
33843 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033844
Reid Spencer777ce172004-09-20 04:09:56 +000033845 /* confdefs.h. */
33846_ACEOF
33847cat confdefs.h >>conftest.$ac_ext
33848cat >>conftest.$ac_ext <<_ACEOF
33849/* end confdefs.h. */
33850
John Criswell7a73b802003-06-30 21:59:07 +000033851#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033852#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033853#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033854
33855int
33856main ()
33857{
John Criswell7a73b802003-06-30 21:59:07 +000033858
33859 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033860 fd = creat ("foo",0777);
33861 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33862 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033863 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033864 ;
33865 return 0;
33866}
John Criswell7a73b802003-06-30 21:59:07 +000033867_ACEOF
33868rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033869if { (ac_try="$ac_link"
33870case "(($ac_try" in
33871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872 *) ac_try_echo=$ac_try;;
33873esac
33874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033876 ac_status=$?
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033879 { (case "(($ac_try" in
33880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881 *) ac_try_echo=$ac_try;;
33882esac
33883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033885 ac_status=$?
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; }; then
33888 ac_cv_func_mmap_file=yes
33889else
33890 echo "$as_me: program exited with status $ac_status" >&5
33891echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033892sed 's/^/| /' conftest.$ac_ext >&5
33893
John Criswell7a73b802003-06-30 21:59:07 +000033894( exit $ac_status )
33895ac_cv_func_mmap_file=no
33896fi
Reid Spencera773bd52006-08-04 18:18:08 +000033897rm -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 +000033898fi
Reid Spencera773bd52006-08-04 18:18:08 +000033899
33900
John Criswell7a73b802003-06-30 21:59:07 +000033901 ac_ext=c
33902ac_cpp='$CPP $CPPFLAGS'
33903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33905ac_compiler_gnu=$ac_cv_c_compiler_gnu
33906
33907
33908fi
Reid Spencera773bd52006-08-04 18:18:08 +000033909{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33910echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033911if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033912
33913cat >>confdefs.h <<\_ACEOF
33914#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033915_ACEOF
33916
33917 MMAP_FILE=yes
33918
33919fi
33920
Reid Spencer30fe5262007-01-20 07:48:49 +000033921 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033922echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033923if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33924 echo $ECHO_N "(cached) $ECHO_C" >&6
33925else
Reid Spencer582a23c2004-12-29 07:07:57 +000033926 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033927 ac_cv_need_dev_zero_for_mmap=yes
33928 else
33929 ac_cv_need_dev_zero_for_mmap=no
33930 fi
33931
33932fi
Reid Spencera773bd52006-08-04 18:18:08 +000033933{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33934echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033935if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33936
33937cat >>confdefs.h <<\_ACEOF
33938#define NEED_DEV_ZERO_FOR_MMAP 1
33939_ACEOF
33940
33941fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033942
Reid Spencer30fe5262007-01-20 07:48:49 +000033943 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33944 then
33945 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033946echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033947 fi
33948 if test "$ac_cv_func_mmap_file" = "no"
33949 then
33950 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033951echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033952 fi
John Criswellb13092b2003-07-22 21:00:24 +000033953fi
John Criswell7a73b802003-06-30 21:59:07 +000033954
33955
Reid Spencer9372f152007-07-30 20:13:24 +000033956
33957for ac_func in __dso_handle
33958do
33959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33963 echo $ECHO_N "(cached) $ECHO_C" >&6
33964else
33965 cat >conftest.$ac_ext <<_ACEOF
33966/* confdefs.h. */
33967_ACEOF
33968cat confdefs.h >>conftest.$ac_ext
33969cat >>conftest.$ac_ext <<_ACEOF
33970/* end confdefs.h. */
33971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33973#define $ac_func innocuous_$ac_func
33974
33975/* System header to define __stub macros and hopefully few prototypes,
33976 which can conflict with char $ac_func (); below.
33977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33978 <limits.h> exists even on freestanding compilers. */
33979
33980#ifdef __STDC__
33981# include <limits.h>
33982#else
33983# include <assert.h>
33984#endif
33985
33986#undef $ac_func
33987
33988/* Override any GCC internal prototype to avoid an error.
33989 Use char because int might match the return type of a GCC
33990 builtin and then its argument prototype would still apply. */
33991#ifdef __cplusplus
33992extern "C"
33993#endif
33994char $ac_func ();
33995/* The GNU C library defines this for functions which it implements
33996 to always fail with ENOSYS. Some functions are actually named
33997 something starting with __ and the normal name is an alias. */
33998#if defined __stub_$ac_func || defined __stub___$ac_func
33999choke me
34000#endif
34001
34002int
34003main ()
34004{
34005return $ac_func ();
34006 ;
34007 return 0;
34008}
34009_ACEOF
34010rm -f conftest.$ac_objext conftest$ac_exeext
34011if { (ac_try="$ac_link"
34012case "(($ac_try" in
34013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34014 *) ac_try_echo=$ac_try;;
34015esac
34016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34017 (eval "$ac_link") 2>conftest.er1
34018 ac_status=$?
34019 grep -v '^ *+' conftest.er1 >conftest.err
34020 rm -f conftest.er1
34021 cat conftest.err >&5
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000034023 (exit $ac_status); } &&
34024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34025 { (case "(($ac_try" in
34026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34027 *) ac_try_echo=$ac_try;;
34028esac
34029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34030 (eval "$ac_try") 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; } &&
34034 { ac_try='test -s conftest$ac_exeext'
34035 { (case "(($ac_try" in
34036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037 *) ac_try_echo=$ac_try;;
34038esac
34039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040 (eval "$ac_try") 2>&5
34041 ac_status=$?
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034044 eval "$as_ac_var=yes"
34045else
34046 echo "$as_me: failed program was:" >&5
34047sed 's/^/| /' conftest.$ac_ext >&5
34048
34049 eval "$as_ac_var=no"
34050fi
34051
Tanya Lattnercf067672008-01-17 05:57:22 +000034052rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034053 conftest$ac_exeext conftest.$ac_ext
34054fi
34055ac_res=`eval echo '${'$as_ac_var'}'`
34056 { echo "$as_me:$LINENO: result: $ac_res" >&5
34057echo "${ECHO_T}$ac_res" >&6; }
34058if test `eval echo '${'$as_ac_var'}'` = yes; then
34059 cat >>confdefs.h <<_ACEOF
34060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34061_ACEOF
34062
34063fi
34064done
34065
34066
Reid Spencera773bd52006-08-04 18:18:08 +000034067{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34068echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034069if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34070 echo $ECHO_N "(cached) $ECHO_C" >&6
34071else
34072 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034073if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034074 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034075 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34076 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034077 if test $? -eq 0 ; then
34078 llvm_cv_llvmgcc_sanity="yes"
34079 fi
34080 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034081fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034082fi
Reid Spencera773bd52006-08-04 18:18:08 +000034083{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34084echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034085
34086if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034087 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34088echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034089 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034090 LLVMCC1=$llvmcc1path
34091
Reid Spencer502935f2004-12-22 05:56:56 +000034092 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034093 LLVMCC1PLUS=$llvmcc1pluspath
34094
Reid Spencer502935f2004-12-22 05:56:56 +000034095 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34096 LLVMGCCDIR=$llvmgccdir
34097
Reid Spencer282d8c12006-12-21 22:55:41 +000034098 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34099 LLVMGCCLIBEXEC=$llvmgcclibexec
34100
Reid Spencerb5d75b82006-05-09 00:31:01 +000034101 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034102 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34103 LLVMGCC_VERSION=$llvmgccversion
34104
34105 LLVMGCC_MAJVERS=$llvmgccmajvers
34106
Reid Spencer0d238182007-04-21 21:28:52 +000034107 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34108 LLVMGCC_LANGS=$llvmgcclangs
34109
34110 { echo "$as_me:$LINENO: result: ok" >&5
34111echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034112fi
34113
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034114SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034115
34116
Reid Spencere9de0912004-08-20 09:03:57 +000034117# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034118# information into substitutions that will end up in Makefile.config.in
34119# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034120if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034121 prefix="/usr/local"
34122fi
Reid Spencere9de0912004-08-20 09:03:57 +000034123eval LLVM_PREFIX="${prefix}";
34124eval LLVM_BINDIR="${prefix}/bin";
34125eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034126eval LLVM_DATADIR="${prefix}/share/llvm";
34127eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34128eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034129eval LLVM_INCLUDEDIR="${prefix}/include";
34130eval LLVM_INFODIR="${prefix}/info";
34131eval LLVM_MANDIR="${prefix}/man";
34132LLVM_CONFIGTIME=`date`
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034144# Place the various directores into the config.h file as #defines so that we
34145# can know about the installation paths within LLVM.
34146
Reid Spencere9de0912004-08-20 09:03:57 +000034147cat >>confdefs.h <<_ACEOF
34148#define LLVM_PREFIX "$LLVM_PREFIX"
34149_ACEOF
34150
34151
34152cat >>confdefs.h <<_ACEOF
34153#define LLVM_BINDIR "$LLVM_BINDIR"
34154_ACEOF
34155
34156
34157cat >>confdefs.h <<_ACEOF
34158#define LLVM_LIBDIR "$LLVM_LIBDIR"
34159_ACEOF
34160
34161
34162cat >>confdefs.h <<_ACEOF
34163#define LLVM_DATADIR "$LLVM_DATADIR"
34164_ACEOF
34165
34166
34167cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034168#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034169_ACEOF
34170
34171
34172cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034173#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034174_ACEOF
34175
34176
34177cat >>confdefs.h <<_ACEOF
34178#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34179_ACEOF
34180
34181
34182cat >>confdefs.h <<_ACEOF
34183#define LLVM_INFODIR "$LLVM_INFODIR"
34184_ACEOF
34185
34186
34187cat >>confdefs.h <<_ACEOF
34188#define LLVM_MANDIR "$LLVM_MANDIR"
34189_ACEOF
34190
34191
34192cat >>confdefs.h <<_ACEOF
34193#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34194_ACEOF
34195
34196
Eric Christopher790e11c2007-12-01 00:34:39 +000034197cat >>confdefs.h <<_ACEOF
34198#define LLVM_HOSTTRIPLE "$host"
34199_ACEOF
34200
34201
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034202# Determine which bindings to build.
34203if test "$BINDINGS_TO_BUILD" = auto ; then
34204 BINDINGS_TO_BUILD=""
34205 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34206 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34207 fi
34208fi
34209BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34210
34211
34212# This isn't really configurey, but it avoids having to repeat the list in
34213# other files.
34214ALL_BINDINGS=ocaml
34215
34216
Gordon Henriksenf0915682007-10-02 16:42:22 +000034217# Do any work necessary to ensure that bindings have what they need.
34218binding_prereqs_failed=0
34219for a_binding in $BINDINGS_TO_BUILD ; do
34220 case "$a_binding" in
34221 ocaml)
34222 if test "x$OCAMLC" = x ; then
34223 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34224echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34225 binding_prereqs_failed=1
34226 fi
34227 if test "x$OCAMLDEP" = x ; then
34228 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34229echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34230 binding_prereqs_failed=1
34231 fi
34232 if test "x$OCAMLOPT" = x ; then
34233 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34234echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34235 fi
34236 if test "x$with_ocaml_libdir" != xauto ; then
34237 OCAML_LIBDIR=$with_ocaml_libdir
34238
34239 else
34240 ocaml_stdlib="`"$OCAMLC" -where`"
34241 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34242 then
34243 # ocaml stdlib is beneath our prefix; use stdlib
34244 OCAML_LIBDIR=$ocaml_stdlib
34245
34246 else
34247 # ocaml stdlib is outside our prefix; use libdir/ocaml
34248 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34249
34250 fi
34251 fi
34252 ;;
34253 esac
34254done
34255if test "$binding_prereqs_failed" = 1 ; then
34256 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34257echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34258 { (exit 1); exit 1; }; }
34259fi
34260
34261
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034262
Reid Spencera773bd52006-08-04 18:18:08 +000034263ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034264
Reid Spencera773bd52006-08-04 18:18:08 +000034265ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034266
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034267ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034268
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034269ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034270
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034271ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034272
34273
Reid Spencera773bd52006-08-04 18:18:08 +000034274ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034275
34276
Reid Spencerea949cf2006-08-16 00:45:38 +000034277ac_config_files="$ac_config_files llvm.spec"
34278
34279
Reid Spencera773bd52006-08-04 18:18:08 +000034280ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034281
34282
Reid Spencera773bd52006-08-04 18:18:08 +000034283ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034284
34285
Reid Spencera773bd52006-08-04 18:18:08 +000034286ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034287
Reid Spencera773bd52006-08-04 18:18:08 +000034288ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034289
34290
Reid Spencera773bd52006-08-04 18:18:08 +000034291ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034292
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034295
34296
Reid Spencera773bd52006-08-04 18:18:08 +000034297ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034298
34299
Reid Spencer8b2e1412006-11-17 03:32:33 +000034300ac_config_commands="$ac_config_commands runtime/Makefile"
34301
34302
Reid Spencera773bd52006-08-04 18:18:08 +000034303ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034304
34305
Reid Spencera773bd52006-08-04 18:18:08 +000034306ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034307
34308
Reid Spencera773bd52006-08-04 18:18:08 +000034309ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034310
34311
Reid Spencera773bd52006-08-04 18:18:08 +000034312ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034313
34314
Reid Spencera773bd52006-08-04 18:18:08 +000034315ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034316
34317
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034318ac_config_commands="$ac_config_commands bindings/Makefile"
34319
34320
34321ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34322
34323
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034324
John Criswell7a73b802003-06-30 21:59:07 +000034325cat >confcache <<\_ACEOF
34326# This file is a shell script that caches the results of configure
34327# tests run on this system so they can be shared between configure
34328# scripts and configure runs, see configure's option --config-cache.
34329# It is not useful on other systems. If it contains results you don't
34330# want to keep, you may remove or edit it.
34331#
34332# config.status only pays attention to the cache file if you give it
34333# the --recheck option to rerun configure.
34334#
John Criswell0c38eaf2003-09-10 15:17:25 +000034335# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034336# loading this file, other *unset* `ac_cv_foo' will be assigned the
34337# following values.
34338
34339_ACEOF
34340
34341# The following way of writing the cache mishandles newlines in values,
34342# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034343# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034344# Ultrix sh set writes to stderr and can't be redirected directly,
34345# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034346(
34347 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34348 eval ac_val=\$$ac_var
34349 case $ac_val in #(
34350 *${as_nl}*)
34351 case $ac_var in #(
34352 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34353echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34354 esac
34355 case $ac_var in #(
34356 _ | IFS | as_nl) ;; #(
34357 *) $as_unset $ac_var ;;
34358 esac ;;
34359 esac
34360 done
34361
John Criswell7a73b802003-06-30 21:59:07 +000034362 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034363 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34364 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034365 # `set' does not quote correctly, so add quotes (double-quote
34366 # substitution turns \\\\ into \\, and sed turns \\ into \).
34367 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034368 "s/'/'\\\\''/g;
34369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034370 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034371 *)
34372 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034374 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034375 esac |
34376 sort
34377) |
John Criswell7a73b802003-06-30 21:59:07 +000034378 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034379 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034380 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034381 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34383 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034384 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34385 :end' >>confcache
34386if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34387 if test -w "$cache_file"; then
34388 test "x$cache_file" != "x/dev/null" &&
34389 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34390echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034391 cat confcache >$cache_file
34392 else
Reid Spencera773bd52006-08-04 18:18:08 +000034393 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34394echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034395 fi
34396fi
34397rm -f confcache
34398
34399test "x$prefix" = xNONE && prefix=$ac_default_prefix
34400# Let make expand exec_prefix.
34401test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34402
John Criswell7a73b802003-06-30 21:59:07 +000034403DEFS=-DHAVE_CONFIG_H
34404
John Criswell0c38eaf2003-09-10 15:17:25 +000034405ac_libobjs=
34406ac_ltlibobjs=
34407for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34408 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034409 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34410 ac_i=`echo "$ac_i" | sed "$ac_script"`
34411 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34412 # will be set to the directory where LIBOBJS objects are built.
34413 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34414 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034415done
34416LIBOBJS=$ac_libobjs
34417
34418LTLIBOBJS=$ac_ltlibobjs
34419
34420
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034421if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34422 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34423Usually this means the macro was only invoked conditionally." >&5
34424echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34425Usually this means the macro was only invoked conditionally." >&2;}
34426 { (exit 1); exit 1; }; }
34427fi
34428if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34429 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34430Usually this means the macro was only invoked conditionally." >&5
34431echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34432Usually this means the macro was only invoked conditionally." >&2;}
34433 { (exit 1); exit 1; }; }
34434fi
John Criswell7a73b802003-06-30 21:59:07 +000034435
34436: ${CONFIG_STATUS=./config.status}
34437ac_clean_files_save=$ac_clean_files
34438ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34439{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34440echo "$as_me: creating $CONFIG_STATUS" >&6;}
34441cat >$CONFIG_STATUS <<_ACEOF
34442#! $SHELL
34443# Generated by $as_me.
34444# Run this file to recreate the current configuration.
34445# Compiler output produced by configure, useful for debugging
34446# configure, is in config.log if it exists.
34447
34448debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034449ac_cs_recheck=false
34450ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034451SHELL=\${CONFIG_SHELL-$SHELL}
34452_ACEOF
34453
34454cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034455## --------------------- ##
34456## M4sh Initialization. ##
34457## --------------------- ##
34458
Tanya Lattnercf067672008-01-17 05:57:22 +000034459# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034460if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34461 emulate sh
34462 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034463 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34464 # is contrary to our usage. Disable this feature.
34465 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034466 setopt NO_GLOB_SUBST
34467else
Tanya Lattnercf067672008-01-17 05:57:22 +000034468 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034469fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034470BIN_SH=xpg4; export BIN_SH # for Tru64
34471DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034472
John Criswell7a73b802003-06-30 21:59:07 +000034473
Reid Spencera773bd52006-08-04 18:18:08 +000034474# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034475# Avoid depending upon Character Ranges.
34476as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34478as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34479as_cr_digits='0123456789'
34480as_cr_alnum=$as_cr_Letters$as_cr_digits
34481
34482# The user is always right.
34483if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034484 echo "#! /bin/sh" >conf$$.sh
34485 echo "exit 0" >>conf$$.sh
34486 chmod +x conf$$.sh
34487 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034488 PATH_SEPARATOR=';'
34489 else
34490 PATH_SEPARATOR=:
34491 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034492 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034493fi
34494
Reid Spencera773bd52006-08-04 18:18:08 +000034495# Support unset when possible.
34496if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34497 as_unset=unset
34498else
34499 as_unset=false
34500fi
John Criswell7a73b802003-06-30 21:59:07 +000034501
Reid Spencera773bd52006-08-04 18:18:08 +000034502
34503# IFS
34504# We need space, tab and new line, in precisely that order. Quoting is
34505# there to prevent editors from complaining about space-tab.
34506# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34507# splitting by setting IFS to empty value.)
34508as_nl='
34509'
34510IFS=" "" $as_nl"
34511
34512# Find who we are. Look in the path if we contain no directory separator.
34513case $0 in
34514 *[\\/]* ) as_myself=$0 ;;
34515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034516for as_dir in $PATH
34517do
34518 IFS=$as_save_IFS
34519 test -z "$as_dir" && as_dir=.
34520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34521done
Reid Spencera773bd52006-08-04 18:18:08 +000034522IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034523
Reid Spencera773bd52006-08-04 18:18:08 +000034524 ;;
34525esac
34526# We did not find ourselves, most probably we were run as `sh COMMAND'
34527# in which case we are not to be found in the path.
34528if test "x$as_myself" = x; then
34529 as_myself=$0
34530fi
34531if test ! -f "$as_myself"; then
34532 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34533 { (exit 1); exit 1; }
34534fi
34535
34536# Work around bugs in pre-3.0 UWIN ksh.
34537for as_var in ENV MAIL MAILPATH
34538do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34539done
34540PS1='$ '
34541PS2='> '
34542PS4='+ '
34543
34544# NLS nuisances.
34545for as_var in \
34546 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34547 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34548 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034549do
Reid Spencera773bd52006-08-04 18:18:08 +000034550 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34551 eval $as_var=C; export $as_var
34552 else
34553 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34554 fi
34555done
34556
34557# Required to use basename.
34558if expr a : '\(a\)' >/dev/null 2>&1 &&
34559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34560 as_expr=expr
34561else
34562 as_expr=false
34563fi
34564
34565if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34566 as_basename=basename
34567else
34568 as_basename=false
34569fi
34570
34571
34572# Name of the executable.
34573as_me=`$as_basename -- "$0" ||
34574$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34575 X"$0" : 'X\(//\)$' \| \
34576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34577echo X/"$0" |
34578 sed '/^.*\/\([^/][^/]*\)\/*$/{
34579 s//\1/
34580 q
34581 }
34582 /^X\/\(\/\/\)$/{
34583 s//\1/
34584 q
34585 }
34586 /^X\/\(\/\).*/{
34587 s//\1/
34588 q
34589 }
34590 s/.*/./; q'`
34591
34592# CDPATH.
34593$as_unset CDPATH
34594
34595
34596
John Criswell7a73b802003-06-30 21:59:07 +000034597 as_lineno_1=$LINENO
34598 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034599 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034600 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034601
34602 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34603 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034604 # line-number line after each line using $LINENO; the second 'sed'
34605 # does the real work. The second script uses 'N' to pair each
34606 # line-number line with the line containing $LINENO, and appends
34607 # trailing '-' during substitution so that $LINENO is not a special
34608 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034610 # scripts with optimization help from Paolo Bonzini. Blame Lee
34611 # E. McMahon (1931-1989) for sed's syntax. :-)
34612 sed -n '
34613 p
34614 /[$]LINENO/=
34615 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034616 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034617 s/[$]LINENO.*/&-/
34618 t lineno
34619 b
34620 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034621 N
Reid Spencera773bd52006-08-04 18:18:08 +000034622 :loop
34623 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034624 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034625 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034626 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034627 chmod +x "$as_me.lineno" ||
34628 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034629 { (exit 1); exit 1; }; }
34630
34631 # Don't try to exec as it changes $[0], causing all sort of problems
34632 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034633 # original and so on. Autoconf is especially sensitive to this).
34634 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034635 # Exit status is that of the last command.
34636 exit
34637}
34638
34639
Reid Spencera773bd52006-08-04 18:18:08 +000034640if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34641 as_dirname=dirname
34642else
34643 as_dirname=false
34644fi
34645
34646ECHO_C= ECHO_N= ECHO_T=
34647case `echo -n x` in
34648-n*)
34649 case `echo 'x\c'` in
34650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34651 *) ECHO_C='\c';;
34652 esac;;
34653*)
34654 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034655esac
34656
Reid Spencera773bd52006-08-04 18:18:08 +000034657if expr a : '\(a\)' >/dev/null 2>&1 &&
34658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034659 as_expr=expr
34660else
34661 as_expr=false
34662fi
34663
34664rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034665if test -d conf$$.dir; then
34666 rm -f conf$$.dir/conf$$.file
34667else
34668 rm -f conf$$.dir
34669 mkdir conf$$.dir
34670fi
John Criswell7a73b802003-06-30 21:59:07 +000034671echo >conf$$.file
34672if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034673 as_ln_s='ln -s'
34674 # ... but there are two gotchas:
34675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34677 # In both cases, we have to default to `cp -p'.
34678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034679 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034680elif ln conf$$.file conf$$ 2>/dev/null; then
34681 as_ln_s=ln
34682else
34683 as_ln_s='cp -p'
34684fi
Reid Spencera773bd52006-08-04 18:18:08 +000034685rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34686rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034687
John Criswell0c38eaf2003-09-10 15:17:25 +000034688if mkdir -p . 2>/dev/null; then
34689 as_mkdir_p=:
34690else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034691 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034692 as_mkdir_p=false
34693fi
34694
Tanya Lattnercf067672008-01-17 05:57:22 +000034695# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34696# systems may use methods other than mode bits to determine executability.
34697cat >conf$$.file <<_ASEOF
34698#! /bin/sh
34699exit 0
34700_ASEOF
34701chmod +x conf$$.file
34702if test -x conf$$.file >/dev/null 2>&1; then
34703 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034704else
Tanya Lattnercf067672008-01-17 05:57:22 +000034705 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034706fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034707rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034708
34709# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034711
34712# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034714
34715
John Criswell7a73b802003-06-30 21:59:07 +000034716exec 6>&1
34717
Reid Spencera773bd52006-08-04 18:18:08 +000034718# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034719# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034720# values after options handling.
34721ac_log="
Tanya Lattner49ff6612008-05-10 04:20:38 +000034722This file was extended by llvm $as_me 2.4svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +000034723generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034724
34725 CONFIG_FILES = $CONFIG_FILES
34726 CONFIG_HEADERS = $CONFIG_HEADERS
34727 CONFIG_LINKS = $CONFIG_LINKS
34728 CONFIG_COMMANDS = $CONFIG_COMMANDS
34729 $ $0 $@
34730
Reid Spencera773bd52006-08-04 18:18:08 +000034731on `(hostname || uname -n) 2>/dev/null | sed 1q`
34732"
34733
John Criswell7a73b802003-06-30 21:59:07 +000034734_ACEOF
34735
Reid Spencera773bd52006-08-04 18:18:08 +000034736cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034737# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034738config_files="$ac_config_files"
34739config_headers="$ac_config_headers"
34740config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034741
Reid Spencera773bd52006-08-04 18:18:08 +000034742_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034743
34744cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034745ac_cs_usage="\
34746\`$as_me' instantiates files from templates according to the
34747current configuration.
34748
34749Usage: $0 [OPTIONS] [FILE]...
34750
34751 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034752 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034753 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034754 -d, --debug don't remove temporary files
34755 --recheck update $as_me by reconfiguring in the same conditions
34756 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034757 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034758 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034759 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034760
34761Configuration files:
34762$config_files
34763
34764Configuration headers:
34765$config_headers
34766
John Criswellc764fbc2003-09-06 15:17:13 +000034767Configuration commands:
34768$config_commands
34769
John Criswell7a73b802003-06-30 21:59:07 +000034770Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034771
Reid Spencera773bd52006-08-04 18:18:08 +000034772_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034773cat >>$CONFIG_STATUS <<_ACEOF
34774ac_cs_version="\\
Tanya Lattner49ff6612008-05-10 04:20:38 +000034775llvm config.status 2.4svn
Tanya Lattnercf067672008-01-17 05:57:22 +000034776configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034777 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034778
Reid Spencera773bd52006-08-04 18:18:08 +000034779Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034780This config.status script is free software; the Free Software Foundation
34781gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034782
34783ac_pwd='$ac_pwd'
34784srcdir='$srcdir'
34785INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034786_ACEOF
34787
34788cat >>$CONFIG_STATUS <<\_ACEOF
34789# If no file are specified by the user, then we need to provide default
34790# value. By we need to know if files were specified by the user.
34791ac_need_defaults=:
34792while test $# != 0
34793do
34794 case $1 in
34795 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034796 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34797 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034798 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034799 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034800 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034801 ac_option=$1
34802 ac_optarg=$2
34803 ac_shift=shift
34804 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034805 esac
34806
John Criswell0c38eaf2003-09-10 15:17:25 +000034807 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034808 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34810 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034811 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34812 echo "$ac_cs_version"; exit ;;
34813 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034814 debug=: ;;
34815 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034816 $ac_shift
34817 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034818 ac_need_defaults=false;;
34819 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034820 $ac_shift
34821 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034822 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034823 --he | --h)
34824 # Conflict between --help and --header
34825 { echo "$as_me: error: ambiguous option: $1
34826Try \`$0 --help' for more information." >&2
34827 { (exit 1); exit 1; }; };;
34828 --help | --hel | -h )
34829 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34832 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034833
34834 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034835 -*) { echo "$as_me: error: unrecognized option: $1
34836Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034837 { (exit 1); exit 1; }; } ;;
34838
Reid Spencera773bd52006-08-04 18:18:08 +000034839 *) ac_config_targets="$ac_config_targets $1"
34840 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034841
34842 esac
34843 shift
34844done
34845
John Criswell0c38eaf2003-09-10 15:17:25 +000034846ac_configure_extra_args=
34847
34848if $ac_cs_silent; then
34849 exec 6>/dev/null
34850 ac_configure_extra_args="$ac_configure_extra_args --silent"
34851fi
34852
34853_ACEOF
34854cat >>$CONFIG_STATUS <<_ACEOF
34855if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034856 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34857 CONFIG_SHELL=$SHELL
34858 export CONFIG_SHELL
34859 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034860fi
34861
John Criswell7a73b802003-06-30 21:59:07 +000034862_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034863cat >>$CONFIG_STATUS <<\_ACEOF
34864exec 5>>config.log
34865{
34866 echo
34867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34868## Running $as_me. ##
34869_ASBOX
34870 echo "$ac_log"
34871} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034872
Reid Spencera773bd52006-08-04 18:18:08 +000034873_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034874cat >>$CONFIG_STATUS <<_ACEOF
34875#
Reid Spencera773bd52006-08-04 18:18:08 +000034876# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034877#
Reid Spencerc0682832005-02-24 19:05:19 +000034878llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034879
34880_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034881
John Criswell7a73b802003-06-30 21:59:07 +000034882cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034883
34884# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034885for ac_config_target in $ac_config_targets
34886do
Reid Spencera773bd52006-08-04 18:18:08 +000034887 case $ac_config_target in
34888 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34889 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034890 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
34891 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
34892 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034893 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034894 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034895 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34896 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34897 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34898 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34899 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34900 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34901 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034902 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034903 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34904 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34905 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34906 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34907 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034908 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34909 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034910
John Criswell7a73b802003-06-30 21:59:07 +000034911 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34912echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34913 { (exit 1); exit 1; }; };;
34914 esac
34915done
34916
Reid Spencera773bd52006-08-04 18:18:08 +000034917
John Criswell7a73b802003-06-30 21:59:07 +000034918# If the user did not use the arguments to specify the items to instantiate,
34919# then the envvar interface is used. Set only those that are not.
34920# We use the long form for the default assignment because of an extremely
34921# bizarre bug on SunOS 4.1.3.
34922if $ac_need_defaults; then
34923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034926fi
34927
John Criswell0c38eaf2003-09-10 15:17:25 +000034928# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034929# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034930# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034931# Hook for its removal unless debugging.
34932# Note that there is a small window in which the directory will not be cleaned:
34933# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034934$debug ||
34935{
Reid Spencera773bd52006-08-04 18:18:08 +000034936 tmp=
34937 trap 'exit_status=$?
34938 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34939' 0
John Criswell7a73b802003-06-30 21:59:07 +000034940 trap '{ (exit 1); exit 1; }' 1 2 13 15
34941}
John Criswell7a73b802003-06-30 21:59:07 +000034942# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034943
John Criswell7a73b802003-06-30 21:59:07 +000034944{
Reid Spencera773bd52006-08-04 18:18:08 +000034945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034946 test -n "$tmp" && test -d "$tmp"
34947} ||
34948{
Reid Spencera773bd52006-08-04 18:18:08 +000034949 tmp=./conf$$-$RANDOM
34950 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034951} ||
34952{
John Criswell0c38eaf2003-09-10 15:17:25 +000034953 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034954 { (exit 1); exit 1; }
34955}
34956
John Criswell7a73b802003-06-30 21:59:07 +000034957#
Reid Spencera773bd52006-08-04 18:18:08 +000034958# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034959#
34960
34961# No need to generate the scripts if there are no CONFIG_FILES.
34962# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034963if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034964
34965_ACEOF
34966
Reid Spencera773bd52006-08-04 18:18:08 +000034967
34968
34969ac_delim='%!_!# '
34970for ac_last_try in false false false false false :; do
34971 cat >conf$$subs.sed <<_ACEOF
34972SHELL!$SHELL$ac_delim
34973PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34974PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34975PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34976PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34977PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34978PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34979exec_prefix!$exec_prefix$ac_delim
34980prefix!$prefix$ac_delim
34981program_transform_name!$program_transform_name$ac_delim
34982bindir!$bindir$ac_delim
34983sbindir!$sbindir$ac_delim
34984libexecdir!$libexecdir$ac_delim
34985datarootdir!$datarootdir$ac_delim
34986datadir!$datadir$ac_delim
34987sysconfdir!$sysconfdir$ac_delim
34988sharedstatedir!$sharedstatedir$ac_delim
34989localstatedir!$localstatedir$ac_delim
34990includedir!$includedir$ac_delim
34991oldincludedir!$oldincludedir$ac_delim
34992docdir!$docdir$ac_delim
34993infodir!$infodir$ac_delim
34994htmldir!$htmldir$ac_delim
34995dvidir!$dvidir$ac_delim
34996pdfdir!$pdfdir$ac_delim
34997psdir!$psdir$ac_delim
34998libdir!$libdir$ac_delim
34999localedir!$localedir$ac_delim
35000mandir!$mandir$ac_delim
35001DEFS!$DEFS$ac_delim
35002ECHO_C!$ECHO_C$ac_delim
35003ECHO_N!$ECHO_N$ac_delim
35004ECHO_T!$ECHO_T$ac_delim
35005LIBS!$LIBS$ac_delim
35006build_alias!$build_alias$ac_delim
35007host_alias!$host_alias$ac_delim
35008target_alias!$target_alias$ac_delim
35009LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35010subdirs!$subdirs$ac_delim
35011build!$build$ac_delim
35012build_cpu!$build_cpu$ac_delim
35013build_vendor!$build_vendor$ac_delim
35014build_os!$build_os$ac_delim
35015host!$host$ac_delim
35016host_cpu!$host_cpu$ac_delim
35017host_vendor!$host_vendor$ac_delim
35018host_os!$host_os$ac_delim
35019target!$target$ac_delim
35020target_cpu!$target_cpu$ac_delim
35021target_vendor!$target_vendor$ac_delim
35022target_os!$target_os$ac_delim
35023OS!$OS$ac_delim
35024LINKALL!$LINKALL$ac_delim
35025NOLINKALL!$NOLINKALL$ac_delim
35026LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35027LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35028ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035029ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035030CC!$CC$ac_delim
35031CFLAGS!$CFLAGS$ac_delim
35032LDFLAGS!$LDFLAGS$ac_delim
35033CPPFLAGS!$CPPFLAGS$ac_delim
35034ac_ct_CC!$ac_ct_CC$ac_delim
35035EXEEXT!$EXEEXT$ac_delim
35036OBJEXT!$OBJEXT$ac_delim
35037CPP!$CPP$ac_delim
35038GREP!$GREP$ac_delim
35039EGREP!$EGREP$ac_delim
35040LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35041BUILD_CC!$BUILD_CC$ac_delim
35042BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35043CVSBUILD!$CVSBUILD$ac_delim
35044ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35045DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035046ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35047EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035048DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035049JIT!$JIT$ac_delim
35050TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35051ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35052ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035053ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035054TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035055ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035056EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35057CXX!$CXX$ac_delim
35058CXXFLAGS!$CXXFLAGS$ac_delim
35059ac_ct_CXX!$ac_ct_CXX$ac_delim
35060LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035061LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035062LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035063FLEX!$FLEX$ac_delim
35064YACC!$YACC$ac_delim
35065YFLAGS!$YFLAGS$ac_delim
35066BISON!$BISON$ac_delim
35067NM!$NM$ac_delim
35068ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035069_ACEOF
35070
35071 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35072 break
35073 elif $ac_last_try; then
35074 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35075echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35076 { (exit 1); exit 1; }; }
35077 else
35078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035079 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035080done
35081
35082ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35083if test -n "$ac_eof"; then
35084 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35085 ac_eof=`expr $ac_eof + 1`
35086fi
35087
35088cat >>$CONFIG_STATUS <<_ACEOF
35089cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35090/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35091_ACEOF
35092sed '
35093s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35094s/^/s,@/; s/!/@,|#_!!_#|/
35095:n
35096t n
35097s/'"$ac_delim"'$/,g/; t
35098s/$/\\/; p
35099N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35100' >>$CONFIG_STATUS <conf$$subs.sed
35101rm -f conf$$subs.sed
35102cat >>$CONFIG_STATUS <<_ACEOF
35103CEOF$ac_eof
35104_ACEOF
35105
35106
35107ac_delim='%!_!# '
35108for ac_last_try in false false false false false :; do
35109 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035110LN_S!$LN_S$ac_delim
35111CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035112CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035113DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035114FIND!$FIND$ac_delim
35115MKDIR!$MKDIR$ac_delim
35116MV!$MV$ac_delim
35117RANLIB!$RANLIB$ac_delim
35118RM!$RM$ac_delim
35119SED!$SED$ac_delim
35120TAR!$TAR$ac_delim
35121BINPWD!$BINPWD$ac_delim
35122GRAPHVIZ!$GRAPHVIZ$ac_delim
35123DOT!$DOT$ac_delim
35124GV!$GV$ac_delim
35125DOTTY!$DOTTY$ac_delim
35126PERL!$PERL$ac_delim
35127HAVE_PERL!$HAVE_PERL$ac_delim
35128INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35129INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35130INSTALL_DATA!$INSTALL_DATA$ac_delim
35131BZIP2!$BZIP2$ac_delim
35132DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035133GROFF!$GROFF$ac_delim
35134GZIP!$GZIP$ac_delim
35135POD2HTML!$POD2HTML$ac_delim
35136POD2MAN!$POD2MAN$ac_delim
35137RUNTEST!$RUNTEST$ac_delim
35138TCLSH!$TCLSH$ac_delim
35139ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035140OCAMLC!$OCAMLC$ac_delim
35141OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035142OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035143OCAMLDOC!$OCAMLDOC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035144INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35145INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35146CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35147CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35148LIBADD_DL!$LIBADD_DL$ac_delim
35149ECHO!$ECHO$ac_delim
35150AR!$AR$ac_delim
35151STRIP!$STRIP$ac_delim
35152CXXCPP!$CXXCPP$ac_delim
35153F77!$F77$ac_delim
35154FFLAGS!$FFLAGS$ac_delim
35155ac_ct_F77!$ac_ct_F77$ac_delim
35156LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035157LLVMGCC!$LLVMGCC$ac_delim
35158LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035159USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035160HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035161HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035162ALLOCA!$ALLOCA$ac_delim
35163MMAP_FILE!$MMAP_FILE$ac_delim
35164LLVMCC1!$LLVMCC1$ac_delim
35165LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35166LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035167LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035168LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35169LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035170LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035171SHLIBEXT!$SHLIBEXT$ac_delim
35172LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35173LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35174LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35175LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35176LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35177LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35178LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35179LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35180LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35181LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035182BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35183ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035184OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035185LIBOBJS!$LIBOBJS$ac_delim
35186LTLIBOBJS!$LTLIBOBJS$ac_delim
35187_ACEOF
35188
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035189 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Reid Spencera773bd52006-08-04 18:18:08 +000035190 break
35191 elif $ac_last_try; then
35192 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35193echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35194 { (exit 1); exit 1; }; }
35195 else
35196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35197 fi
35198done
35199
35200ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35201if test -n "$ac_eof"; then
35202 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35203 ac_eof=`expr $ac_eof + 1`
35204fi
35205
35206cat >>$CONFIG_STATUS <<_ACEOF
35207cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35208/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35209_ACEOF
35210sed '
35211s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35212s/^/s,@/; s/!/@,|#_!!_#|/
35213:n
35214t n
35215s/'"$ac_delim"'$/,g/; t
35216s/$/\\/; p
35217N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35218' >>$CONFIG_STATUS <conf$$subs.sed
35219rm -f conf$$subs.sed
35220cat >>$CONFIG_STATUS <<_ACEOF
35221:end
35222s/|#_!!_#|//g
35223CEOF$ac_eof
35224_ACEOF
35225
35226
35227# VPATH may cause trouble with some makes, so we remove $(srcdir),
35228# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35229# trailing colons and then remove the whole line if VPATH becomes empty
35230# (actually we leave an empty line to preserve line numbers).
35231if test "x$srcdir" = x.; then
35232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35233s/:*\$(srcdir):*/:/
35234s/:*\${srcdir}:*/:/
35235s/:*@srcdir@:*/:/
35236s/^\([^=]*=[ ]*\):*/\1/
35237s/:*$//
35238s/^[^=]*=[ ]*$//
35239}'
35240fi
35241
35242cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035243fi # test -n "$CONFIG_FILES"
35244
Reid Spencera773bd52006-08-04 18:18:08 +000035245
35246for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35247do
35248 case $ac_tag in
35249 :[FHLC]) ac_mode=$ac_tag; continue;;
35250 esac
35251 case $ac_mode$ac_tag in
35252 :[FHL]*:*);;
35253 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35254echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35255 { (exit 1); exit 1; }; };;
35256 :[FH]-) ac_tag=-:-;;
35257 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35258 esac
35259 ac_save_IFS=$IFS
35260 IFS=:
35261 set x $ac_tag
35262 IFS=$ac_save_IFS
35263 shift
35264 ac_file=$1
35265 shift
35266
35267 case $ac_mode in
35268 :L) ac_source=$1;;
35269 :[FH])
35270 ac_file_inputs=
35271 for ac_f
35272 do
35273 case $ac_f in
35274 -) ac_f="$tmp/stdin";;
35275 *) # Look for the file first in the build tree, then in the source tree
35276 # (if the path is not absolute). The absolute path cannot be DOS-style,
35277 # because $ac_f cannot contain `:'.
35278 test -f "$ac_f" ||
35279 case $ac_f in
35280 [\\/$]*) false;;
35281 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35282 esac ||
35283 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35284echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35285 { (exit 1); exit 1; }; };;
35286 esac
35287 ac_file_inputs="$ac_file_inputs $ac_f"
35288 done
35289
35290 # Let's still pretend it is `configure' which instantiates (i.e., don't
35291 # use $as_me), people would be surprised to read:
35292 # /* config.h. Generated by config.status. */
35293 configure_input="Generated from "`IFS=:
35294 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35295 if test x"$ac_file" != x-; then
35296 configure_input="$ac_file. $configure_input"
35297 { echo "$as_me:$LINENO: creating $ac_file" >&5
35298echo "$as_me: creating $ac_file" >&6;}
35299 fi
35300
35301 case $ac_tag in
35302 *:-:* | *:-) cat >"$tmp/stdin";;
35303 esac
35304 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035305 esac
35306
Reid Spencera773bd52006-08-04 18:18:08 +000035307 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035308$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035309 X"$ac_file" : 'X\(//\)[^/]' \| \
35310 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035311 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035312echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35314 s//\1/
35315 q
35316 }
35317 /^X\(\/\/\)[^/].*/{
35318 s//\1/
35319 q
35320 }
35321 /^X\(\/\/\)$/{
35322 s//\1/
35323 q
35324 }
35325 /^X\(\/\).*/{
35326 s//\1/
35327 q
35328 }
35329 s/.*/./; q'`
35330 { as_dir="$ac_dir"
35331 case $as_dir in #(
35332 -*) as_dir=./$as_dir;;
35333 esac
35334 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035335 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035336 while :; do
35337 case $as_dir in #(
35338 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35339 *) as_qdir=$as_dir;;
35340 esac
35341 as_dirs="'$as_qdir' $as_dirs"
35342 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035344 X"$as_dir" : 'X\(//\)[^/]' \| \
35345 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035347echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35349 s//\1/
35350 q
35351 }
35352 /^X\(\/\/\)[^/].*/{
35353 s//\1/
35354 q
35355 }
35356 /^X\(\/\/\)$/{
35357 s//\1/
35358 q
35359 }
35360 /^X\(\/\).*/{
35361 s//\1/
35362 q
35363 }
35364 s/.*/./; q'`
35365 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035366 done
Reid Spencera773bd52006-08-04 18:18:08 +000035367 test -z "$as_dirs" || eval "mkdir $as_dirs"
35368 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35369echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035370 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035371 ac_builddir=.
35372
Reid Spencera773bd52006-08-04 18:18:08 +000035373case "$ac_dir" in
35374.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35375*)
John Criswell7a73b802003-06-30 21:59:07 +000035376 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035377 # A ".." for each directory in $ac_dir_suffix.
35378 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35379 case $ac_top_builddir_sub in
35380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35382 esac ;;
35383esac
35384ac_abs_top_builddir=$ac_pwd
35385ac_abs_builddir=$ac_pwd$ac_dir_suffix
35386# for backward compatibility:
35387ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035388
35389case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035390 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035391 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035392 ac_top_srcdir=$ac_top_builddir_sub
35393 ac_abs_top_srcdir=$ac_pwd ;;
35394 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035395 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035396 ac_top_srcdir=$srcdir
35397 ac_abs_top_srcdir=$srcdir ;;
35398 *) # Relative name.
35399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35400 ac_top_srcdir=$ac_top_build_prefix$srcdir
35401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035402esac
Reid Spencera773bd52006-08-04 18:18:08 +000035403ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035404
John Criswell7a73b802003-06-30 21:59:07 +000035405
Reid Spencera773bd52006-08-04 18:18:08 +000035406 case $ac_mode in
35407 :F)
35408 #
35409 # CONFIG_FILE
35410 #
John Criswell7a73b802003-06-30 21:59:07 +000035411
35412 case $INSTALL in
35413 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035414 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035415 esac
John Criswell7a73b802003-06-30 21:59:07 +000035416_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035417
35418cat >>$CONFIG_STATUS <<\_ACEOF
35419# If the template does not know about datarootdir, expand it.
35420# FIXME: This hack should be removed a few years after 2.60.
35421ac_datarootdir_hack=; ac_datarootdir_seen=
35422
35423case `sed -n '/datarootdir/ {
35424 p
35425 q
35426}
35427/@datadir@/p
35428/@docdir@/p
35429/@infodir@/p
35430/@localedir@/p
35431/@mandir@/p
35432' $ac_file_inputs` in
35433*datarootdir*) ac_datarootdir_seen=yes;;
35434*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35435 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35436echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35437_ACEOF
35438cat >>$CONFIG_STATUS <<_ACEOF
35439 ac_datarootdir_hack='
35440 s&@datadir@&$datadir&g
35441 s&@docdir@&$docdir&g
35442 s&@infodir@&$infodir&g
35443 s&@localedir@&$localedir&g
35444 s&@mandir@&$mandir&g
35445 s&\\\${datarootdir}&$datarootdir&g' ;;
35446esac
35447_ACEOF
35448
35449# Neutralize VPATH when `$srcdir' = `.'.
35450# Shell code in configure.ac might set extrasub.
35451# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035452cat >>$CONFIG_STATUS <<_ACEOF
35453 sed "$ac_vpsub
35454$extrasub
35455_ACEOF
35456cat >>$CONFIG_STATUS <<\_ACEOF
35457:t
35458/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035459s&@configure_input@&$configure_input&;t t
35460s&@top_builddir@&$ac_top_builddir_sub&;t t
35461s&@srcdir@&$ac_srcdir&;t t
35462s&@abs_srcdir@&$ac_abs_srcdir&;t t
35463s&@top_srcdir@&$ac_top_srcdir&;t t
35464s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35465s&@builddir@&$ac_builddir&;t t
35466s&@abs_builddir@&$ac_abs_builddir&;t t
35467s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35468s&@INSTALL@&$ac_INSTALL&;t t
35469$ac_datarootdir_hack
35470" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035471
Reid Spencera773bd52006-08-04 18:18:08 +000035472test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35473 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35475 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35476which seems to be undefined. Please make sure it is defined." >&5
35477echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35478which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035479
Reid Spencera773bd52006-08-04 18:18:08 +000035480 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035481 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035482 -) cat "$tmp/out"; rm -f "$tmp/out";;
35483 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035484 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035485 ;;
35486 :H)
35487 #
35488 # CONFIG_HEADER
35489 #
John Criswell7a73b802003-06-30 21:59:07 +000035490_ACEOF
35491
Reid Spencera773bd52006-08-04 18:18:08 +000035492# Transform confdefs.h into a sed script `conftest.defines', that
35493# substitutes the proper values into config.h.in to produce config.h.
35494rm -f conftest.defines conftest.tail
35495# First, append a space to every undef/define line, to ease matching.
35496echo 's/$/ /' >conftest.defines
35497# Then, protect against being on the right side of a sed subst, or in
35498# an unquoted here document, in config.status. If some macros were
35499# called several times there might be several #defines for the same
35500# symbol, which is useless. But do not sort them, since the last
35501# AC_DEFINE must be honored.
35502ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35503# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35504# NAME is the cpp macro being defined, VALUE is the value it is being given.
35505# PARAMS is the parameter list in the macro definition--in most cases, it's
35506# just an empty string.
35507ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35508ac_dB='\\)[ (].*,\\1define\\2'
35509ac_dC=' '
35510ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035511
Reid Spencera773bd52006-08-04 18:18:08 +000035512uniq confdefs.h |
35513 sed -n '
35514 t rset
35515 :rset
35516 s/^[ ]*#[ ]*define[ ][ ]*//
35517 t ok
35518 d
35519 :ok
35520 s/[\\&,]/\\&/g
35521 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35522 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35523 ' >>conftest.defines
35524
35525# Remove the space that was appended to ease matching.
35526# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035527# example, in the case of _POSIX_SOURCE, which is predefined and required
35528# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035529# (The regexp can be short, since the line contains either #define or #undef.)
35530echo 's/ $//
35531s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035532
Reid Spencera773bd52006-08-04 18:18:08 +000035533# Break up conftest.defines:
35534ac_max_sed_lines=50
35535
35536# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35537# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35538# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35539# et cetera.
35540ac_in='$ac_file_inputs'
35541ac_out='"$tmp/out1"'
35542ac_nxt='"$tmp/out2"'
35543
35544while :
John Criswell7a73b802003-06-30 21:59:07 +000035545do
Reid Spencera773bd52006-08-04 18:18:08 +000035546 # Write a here document:
35547 cat >>$CONFIG_STATUS <<_ACEOF
35548 # First, check the format of the line:
35549 cat >"\$tmp/defines.sed" <<\\CEOF
35550/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35551/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35552b
35553:def
35554_ACEOF
35555 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035556 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035557 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35558 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35559 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35560 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035561 rm -f conftest.defines
35562 mv conftest.tail conftest.defines
35563done
Reid Spencera773bd52006-08-04 18:18:08 +000035564rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035565
Reid Spencera773bd52006-08-04 18:18:08 +000035566echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035567cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035568 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035569 echo "/* $configure_input */" >"$tmp/config.h"
35570 cat "$ac_result" >>"$tmp/config.h"
35571 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35573echo "$as_me: $ac_file is unchanged" >&6;}
35574 else
John Criswell7a73b802003-06-30 21:59:07 +000035575 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035576 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035577 fi
35578 else
Reid Spencera773bd52006-08-04 18:18:08 +000035579 echo "/* $configure_input */"
35580 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035581 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035582 rm -f "$tmp/out12"
35583 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035584
Reid Spencera773bd52006-08-04 18:18:08 +000035585 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35586echo "$as_me: executing $ac_file commands" >&6;}
35587 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035588 esac
John Criswell7a73b802003-06-30 21:59:07 +000035589
Reid Spencera773bd52006-08-04 18:18:08 +000035590
35591 case $ac_file$ac_mode in
35592 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35594 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35596 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35598 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035600 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035602 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35604 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35606 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35608 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35610 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035612 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35613 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35614 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35615 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035616
35617 esac
35618done # for ac_tag
35619
John Criswell7a73b802003-06-30 21:59:07 +000035620
35621{ (exit 0); exit 0; }
35622_ACEOF
35623chmod +x $CONFIG_STATUS
35624ac_clean_files=$ac_clean_files_save
35625
35626
35627# configure is writing to config.log, and then calls config.status.
35628# config.status does its own redirection, appending to config.log.
35629# Unfortunately, on DOS this fails, as config.log is still kept open
35630# by configure, so config.status won't be able to write to it; its
35631# output is simply discarded. So we exec the FD to /dev/null,
35632# effectively closing config.log, so it can be properly (re)opened and
35633# appended to by config.status. When coming back to configure, we
35634# need to make the FD available again.
35635if test "$no_create" != yes; then
35636 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035637 ac_config_status_args=
35638 test "$silent" = yes &&
35639 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035640 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035642 exec 5>>config.log
35643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35644 # would make configure fail if this is the last instruction.
35645 $ac_cs_success || { (exit 1); exit 1; }
35646fi
35647
John Criswell12399a12003-09-30 15:55:44 +000035648#
35649# CONFIG_SUBDIRS section.
35650#
35651if test "$no_recursion" != yes; then
35652
35653 # Remove --cache-file and --srcdir arguments so they do not pile up.
35654 ac_sub_configure_args=
35655 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035656 eval "set x $ac_configure_args"
35657 shift
35658 for ac_arg
35659 do
John Criswell12399a12003-09-30 15:55:44 +000035660 if test -n "$ac_prev"; then
35661 ac_prev=
35662 continue
35663 fi
35664 case $ac_arg in
35665 -cache-file | --cache-file | --cache-fil | --cache-fi \
35666 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35667 ac_prev=cache_file ;;
35668 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35669 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35670 | --c=*)
35671 ;;
35672 --config-cache | -C)
35673 ;;
35674 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35675 ac_prev=srcdir ;;
35676 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35677 ;;
35678 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35679 ac_prev=prefix ;;
35680 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35681 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035682 *)
35683 case $ac_arg in
35684 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35685 esac
35686 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035687 esac
35688 done
35689
35690 # Always prepend --prefix to ensure using the same prefix
35691 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035692 ac_arg="--prefix=$prefix"
35693 case $ac_arg in
35694 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35695 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035696 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035697
35698 ac_popdir=`pwd`
35699 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35700
35701 # Do not complain, so a configure script can configure whichever
35702 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035703 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035704
Reid Spencera773bd52006-08-04 18:18:08 +000035705 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35706 echo "$as_me:$LINENO: $ac_msg" >&5
35707 echo "$ac_msg" >&6
35708 { as_dir="$ac_dir"
35709 case $as_dir in #(
35710 -*) as_dir=./$as_dir;;
35711 esac
35712 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035713 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035714 while :; do
35715 case $as_dir in #(
35716 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35717 *) as_qdir=$as_dir;;
35718 esac
35719 as_dirs="'$as_qdir' $as_dirs"
35720 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035722 X"$as_dir" : 'X\(//\)[^/]' \| \
35723 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035725echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35727 s//\1/
35728 q
35729 }
35730 /^X\(\/\/\)[^/].*/{
35731 s//\1/
35732 q
35733 }
35734 /^X\(\/\/\)$/{
35735 s//\1/
35736 q
35737 }
35738 /^X\(\/\).*/{
35739 s//\1/
35740 q
35741 }
35742 s/.*/./; q'`
35743 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035744 done
Reid Spencera773bd52006-08-04 18:18:08 +000035745 test -z "$as_dirs" || eval "mkdir $as_dirs"
35746 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35747echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035748 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035749 ac_builddir=.
35750
Reid Spencera773bd52006-08-04 18:18:08 +000035751case "$ac_dir" in
35752.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35753*)
John Criswell12399a12003-09-30 15:55:44 +000035754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035755 # A ".." for each directory in $ac_dir_suffix.
35756 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35757 case $ac_top_builddir_sub in
35758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35760 esac ;;
35761esac
35762ac_abs_top_builddir=$ac_pwd
35763ac_abs_builddir=$ac_pwd$ac_dir_suffix
35764# for backward compatibility:
35765ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035766
35767case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035768 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035769 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035770 ac_top_srcdir=$ac_top_builddir_sub
35771 ac_abs_top_srcdir=$ac_pwd ;;
35772 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035773 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035774 ac_top_srcdir=$srcdir
35775 ac_abs_top_srcdir=$srcdir ;;
35776 *) # Relative name.
35777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35778 ac_top_srcdir=$ac_top_build_prefix$srcdir
35779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035780esac
Reid Spencera773bd52006-08-04 18:18:08 +000035781ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035782
35783
Reid Spencera773bd52006-08-04 18:18:08 +000035784 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035785
35786 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035787 if test -f "$ac_srcdir/configure.gnu"; then
35788 ac_sub_configure=$ac_srcdir/configure.gnu
35789 elif test -f "$ac_srcdir/configure"; then
35790 ac_sub_configure=$ac_srcdir/configure
35791 elif test -f "$ac_srcdir/configure.in"; then
35792 # This should be Cygnus configure.
35793 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035794 else
35795 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35796echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35797 ac_sub_configure=
35798 fi
35799
35800 # The recursion is here.
35801 if test -n "$ac_sub_configure"; then
35802 # Make the cache file name correct relative to the subdirectory.
35803 case $cache_file in
35804 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035805 *) # Relative name.
35806 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035807 esac
35808
Reid Spencera773bd52006-08-04 18:18:08 +000035809 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35810echo "$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 +000035811 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035812 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35813 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035814 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035815echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35816 { (exit 1); exit 1; }; }
35817 fi
35818
Reid Spencera773bd52006-08-04 18:18:08 +000035819 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035820 done
35821fi
35822