blob: aa71c77ea3992c147a6495060900772d9e743f80 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00003# Generated by GNU Autoconf 2.60 for llvm 2.5svn.
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 Lattnerd53b4d32008-10-07 04:35:08 +0000718PACKAGE_VERSION='2.5svn'
719PACKAGE_STRING='llvm 2.5svn'
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
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
845CXX
846CXXFLAGS
847ac_ct_CXX
848LEX
Scott Michel96dcd2b2007-12-05 21:24:02 +0000849LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000850LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000851FLEX
852YACC
853YFLAGS
854BISON
855NM
856ifGNUmake
857LN_S
858CMP
859CP
860DATE
861FIND
862MKDIR
863MV
864RANLIB
865RM
866SED
867TAR
868BINPWD
869GRAPHVIZ
870DOT
871GV
872DOTTY
873PERL
874HAVE_PERL
875INSTALL_PROGRAM
876INSTALL_SCRIPT
877INSTALL_DATA
878BZIP2
879DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000880GROFF
881GZIP
882POD2HTML
883POD2MAN
884RUNTEST
885TCLSH
886ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000887OCAMLC
888OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000889OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000890OCAMLDOC
Reid Spencera773bd52006-08-04 18:18:08 +0000891INSTALL_LTDL_TRUE
892INSTALL_LTDL_FALSE
893CONVENIENCE_LTDL_TRUE
894CONVENIENCE_LTDL_FALSE
895LIBADD_DL
896ECHO
897AR
898STRIP
899CXXCPP
900F77
901FFLAGS
902ac_ct_F77
903LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000904LLVMGCC
905LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000906USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000907HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000908HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000909ALLOCA
910MMAP_FILE
911LLVMCC1
912LLVMCC1PLUS
913LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000914LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000915LLVMGCC_VERSION
916LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000917LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000918SHLIBEXT
919LLVM_PREFIX
920LLVM_BINDIR
921LLVM_LIBDIR
922LLVM_DATADIR
923LLVM_DOCSDIR
924LLVM_ETCDIR
925LLVM_INCLUDEDIR
926LLVM_INFODIR
927LLVM_MANDIR
928LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000929BINDINGS_TO_BUILD
930ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000931OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000932ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000933LIBOBJS
934LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000935ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000936 ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942CPPFLAGS
943CPP
944CXX
945CXXFLAGS
946CCC
947YACC
948YFLAGS
949CXXCPP
950F77
951FFLAGS'
952ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000954projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000955projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000956projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000957projects/llvm-reopt
958projects/llvm-gcc
959projects/llvm-java
960projects/llvm-tv
961projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000962projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000990# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000999includedir='${prefix}/include'
1000oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002infodir='${datarootdir}/info'
1003htmldir='${docdir}'
1004dvidir='${docdir}'
1005pdfdir='${docdir}'
1006psdir='${docdir}'
1007libdir='${exec_prefix}/lib'
1008localedir='${datarootdir}/locale'
1009mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001010
1011ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001012ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001013for ac_option
1014do
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001017 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001018 ac_prev=
1019 continue
1020 fi
1021
Reid Spencera773bd52006-08-04 18:18:08 +00001022 case $ac_option in
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *) ac_optarg=yes ;;
1025 esac
John Criswell7a73b802003-06-30 21:59:07 +00001026
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1028
Reid Spencera773bd52006-08-04 18:18:08 +00001029 case $ac_dashdash$ac_option in
1030 --)
1031 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001032
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1037
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1042
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1049
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001054 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001056 datadir=$ac_optarg ;;
1057
Reid Spencera773bd52006-08-04 18:18:08 +00001058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1064
John Criswell7a73b802003-06-30 21:59:07 +00001065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001072 eval enable_$ac_feature=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001083
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001091 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
Reid Spencera773bd52006-08-04 18:18:08 +00001118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
John Criswell7a73b802003-06-30 21:59:07 +00001124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
Reid Spencera773bd52006-08-04 18:18:08 +00001148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
John Criswell7a73b802003-06-30 21:59:07 +00001153 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001154 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
Reid Spencera773bd52006-08-04 18:18:08 +00001222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
John Criswell7a73b802003-06-30 21:59:07 +00001232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001287 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001288 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001296 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001297 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001298
1299 --x)
1300 # Obsolete; use --with-x.
1301 with_x=yes ;;
1302
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1309
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1316
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001328 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001329 export $ac_envvar ;;
1330
1331 *)
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 ;;
1338
1339 esac
1340done
1341
1342if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1346fi
1347
Reid Spencera773bd52006-08-04 18:18:08 +00001348# Be sure to have absolute directory names.
1349for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001353do
Reid Spencera773bd52006-08-04 18:18:08 +00001354 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001355 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001358 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1378 fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
Reid Spencera773bd52006-08-04 18:18:08 +00001387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1395
1396
John Criswell7a73b802003-06-30 21:59:07 +00001397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001402$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001406echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\).*/{
1420 s//\1/
1421 q
1422 }
1423 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001425 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001426 srcdir=..
1427 fi
1428else
1429 ac_srcdir_defaulted=no
1430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001434 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001435fi
Reid Spencera773bd52006-08-04 18:18:08 +00001436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001439 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001440 pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001465\`configure' configures llvm 2.5svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
John Criswell7a73b802003-06-30 21:59:07 +00001485Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001489 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001518_ACEOF
1519
1520 cat <<\_ACEOF
1521
1522System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530 case $ac_init_help in
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001531 short | recursive ) echo "Configuration of llvm 2.5svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001532 esac
1533 cat <<\_ACEOF
1534
1535Optional Features:
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001539 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001540 --enable-expensive-checks
1541
Reid Spencer8b2e1412006-11-17 03:32:33 +00001542 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001544 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001545 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001546 --enable-pic Build LLVM with Position Independent Code (default
1547 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001548 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001549 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001550 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1551 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001552 --enable-bindings Build specific language bindings:
1553 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001554 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001555 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001556 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001557 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001558 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001559 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001560 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001561 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001562 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001563
1564Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001567 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1568 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001569 --with-llvmgcc Specify location of llvm-gcc driver (default
1570 searches PATH)
1571 --with-llvmgxx Specify location of llvm-g++ driver (default
1572 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001573 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001574 --with-ocaml-libdir Specify install location for ocaml bindings (default
1575 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001576 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001580 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001581 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001582
1583Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001584 CC C compiler command
1585 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001588 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001590 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001591 CXX C++ compiler command
1592 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001593 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1594 the first program found out of: `bison -y', `byacc', `yacc'.
1595 YFLAGS The list of arguments that will be passed by default to $YACC.
1596 This script will default YFLAGS to the empty string to avoid a
1597 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001598 CXXCPP C++ preprocessor
1599 F77 Fortran 77 compiler command
1600 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
1605Report bugs to <llvmbugs@cs.uiuc.edu>.
1606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001607ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001608fi
1609
1610if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001613 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001614 ac_builddir=.
1615
Reid Spencera773bd52006-08-04 18:18:08 +00001616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
John Criswell7a73b802003-06-30 21:59:07 +00001619 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001631
1632case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001633 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001638 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1641 *) # Relative name.
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001645esac
Reid Spencera773bd52006-08-04 18:18:08 +00001646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001647
Reid Spencera773bd52006-08-04 18:18:08 +00001648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001656 else
1657 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001658 fi || ac_status=$?
1659 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001660 done
1661fi
1662
Reid Spencera773bd52006-08-04 18:18:08 +00001663test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001664if $ac_init_version; then
1665 cat <<\_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001666llvm configure 2.5svn
Tanya Lattnercf067672008-01-17 05:57:22 +00001667generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001668
Reid Spencera773bd52006-08-04 18:18:08 +00001669Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16702002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001673
Tanya Lattnercf067672008-01-17 05:57:22 +00001674Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001675_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001676 exit
John Criswell7a73b802003-06-30 21:59:07 +00001677fi
Reid Spencera773bd52006-08-04 18:18:08 +00001678cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001679This file contains any messages produced by compilers while
1680running configure, to aid debugging if configure makes a mistake.
1681
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001682It was created by llvm $as_me 2.5svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +00001683generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001684
1685 $ $0 $@
1686
1687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001688exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001689{
1690cat <<_ASUNAME
1691## --------- ##
1692## Platform. ##
1693## --------- ##
1694
1695hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1703
1704/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001707/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001708/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1711
1712_ASUNAME
1713
1714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 echo "PATH: $as_dir"
1720done
Reid Spencera773bd52006-08-04 18:18:08 +00001721IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001722
1723} >&5
1724
1725cat >&5 <<_ACEOF
1726
1727
1728## ----------- ##
1729## Core tests. ##
1730## ----------- ##
1731
1732_ACEOF
1733
1734
1735# Keep a trace of the command line.
1736# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001737# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001738# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001740ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001741ac_configure_args0=
1742ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001743ac_must_keep_next=false
1744for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001745do
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 for ac_arg
1747 do
1748 case $ac_arg in
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1752 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001753 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 esac
1756 case $ac_pass in
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758 2)
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001761 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001762 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001763 case $ac_arg in
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 esac
1771 ;;
1772 -* ) ac_must_keep_next=true ;;
1773 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001774 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001775 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ;;
1777 esac
1778 done
John Criswell7a73b802003-06-30 21:59:07 +00001779done
John Criswell0c38eaf2003-09-10 15:17:25 +00001780$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781$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 +00001782
1783# When interrupted or exit'd, cleanup temporary files, and complete
1784# config.log. We remove comments because anyway the quotes in there
1785# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001786# WARNING: Use '\'' to represent an apostrophe within the trap.
1787# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001788trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1790 {
1791 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001792
John Criswell7a73b802003-06-30 21:59:07 +00001793 cat <<\_ASBOX
1794## ---------------- ##
1795## Cache variables. ##
1796## ---------------- ##
1797_ASBOX
1798 echo
1799 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001800(
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1803 case $ac_val in #(
1804 *${as_nl}*)
1805 case $ac_var in #(
1806 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808 esac
1809 case $ac_var in #(
1810 _ | IFS | as_nl) ;; #(
1811 *) $as_unset $ac_var ;;
1812 esac ;;
1813 esac
1814 done
John Criswell7a73b802003-06-30 21:59:07 +00001815 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001818 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001819 "s/'\''/'\''\\\\'\'''\''/g;
1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001822 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001825 esac |
1826 sort
1827)
John Criswell7a73b802003-06-30 21:59:07 +00001828 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001829
1830 cat <<\_ASBOX
1831## ----------------- ##
1832## Output variables. ##
1833## ----------------- ##
1834_ASBOX
1835 echo
1836 for ac_var in $ac_subst_vars
1837 do
Reid Spencera773bd52006-08-04 18:18:08 +00001838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001843 done | sort
1844 echo
1845
1846 if test -n "$ac_subst_files"; then
1847 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001848## ------------------- ##
1849## File substitutions. ##
1850## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001851_ASBOX
1852 echo
1853 for ac_var in $ac_subst_files
1854 do
Reid Spencera773bd52006-08-04 18:18:08 +00001855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001860 done | sort
1861 echo
1862 fi
1863
John Criswell7a73b802003-06-30 21:59:07 +00001864 if test -s confdefs.h; then
1865 cat <<\_ASBOX
1866## ----------- ##
1867## confdefs.h. ##
1868## ----------- ##
1869_ASBOX
1870 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001871 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001872 echo
1873 fi
1874 test "$ac_signal" != 0 &&
1875 echo "$as_me: caught signal $ac_signal"
1876 echo "$as_me: exit $exit_status"
1877 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001878 rm -f core *.core core.conftest.* &&
1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001880 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001881' 0
John Criswell7a73b802003-06-30 21:59:07 +00001882for ac_signal in 1 2 13 15; do
1883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1884done
1885ac_signal=0
1886
1887# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001888rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001889
1890# Predefined preprocessor variables.
1891
1892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_NAME "$PACKAGE_NAME"
1894_ACEOF
1895
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899_ACEOF
1900
1901
1902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_VERSION "$PACKAGE_VERSION"
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_STRING "$PACKAGE_STRING"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1914_ACEOF
1915
1916
1917# Let the site file select an alternate cache file if it wants to.
1918# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001919if test -n "$CONFIG_SITE"; then
1920 set x "$CONFIG_SITE"
1921elif test "x$prefix" != xNONE; then
1922 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1923else
1924 set x "$ac_default_prefix/share/config.site" \
1925 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001926fi
Reid Spencera773bd52006-08-04 18:18:08 +00001927shift
1928for ac_site_file
1929do
John Criswell7a73b802003-06-30 21:59:07 +00001930 if test -r "$ac_site_file"; then
1931 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1934 . "$ac_site_file"
1935 fi
1936done
1937
1938if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943echo "$as_me: loading cache $cache_file" >&6;}
1944 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001947 esac
1948 fi
1949else
1950 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951echo "$as_me: creating cache $cache_file" >&6;}
1952 >$cache_file
1953fi
1954
1955# Check that the precious variables saved in the cache have kept the same
1956# value.
1957ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001958for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1973 *)
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001980echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001981 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001987 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 esac
1994 fi
1995done
1996if $ac_cache_corrupted; then
1997 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1998echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1999 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2000echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2001 { (exit 1); exit 1; }; }
2002fi
2003
Reid Spencera773bd52006-08-04 18:18:08 +00002004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
John Criswell7a73b802003-06-30 21:59:07 +00002028ac_ext=c
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033
2034
2035
Tanya Lattnercf067672008-01-17 05:57:22 +00002036LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037
2038
2039
2040
2041
2042
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002045for ac_dir in autoconf "$srcdir"/autoconf; do
2046 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
Reid Spencera773bd52006-08-04 18:18:08 +00002050 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
Reid Spencera773bd52006-08-04 18:18:08 +00002054 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2058 fi
2059done
2060if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002061 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2062echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002063 { (exit 1); exit 1; }; }
2064fi
Reid Spencera773bd52006-08-04 18:18:08 +00002065
2066# These three variables are undocumented and unsupported,
2067# and are intended to be withdrawn in a future Autoconf release.
2068# They can cause serious problems if a builder's source tree is in a directory
2069# whose full name contains unusual characters.
2070ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
John Criswell7a73b802003-06-30 21:59:07 +00002074
John Criswell392aaa32003-07-22 19:18:09 +00002075
Reid Spencer2706f8c2004-09-19 23:53:36 +00002076if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2078 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002079echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2080 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 fi
John Criswell93e1c722003-09-15 17:04:06 +00002082fi
2083
John Criswell33a911a2003-11-25 20:36:46 +00002084for i in `ls ${srcdir}/projects`
2085do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 if test -d ${srcdir}/projects/${i} ; then
2087 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 CVS) ;;
2089 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002095 # llvm-test is the old name of the test-suite, kept here for backwards
2096 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002097 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002099 test-suite) subdirs="$subdirs projects/test-suite"
2100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002110 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002111 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002112 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002114 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002116 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2117echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002118 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119 esac
John Criswell33a911a2003-11-25 20:36:46 +00002120 fi
2121done
John Criswell559a6c12003-09-30 16:31:48 +00002122
John Criswell7a73b802003-06-30 21:59:07 +00002123
2124# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002128 { (exit 1); exit 1; }; }
2129
Reid Spencera773bd52006-08-04 18:18:08 +00002130{ echo "$as_me:$LINENO: checking build system type" >&5
2131echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002132if test "${ac_cv_build+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
Reid Spencera773bd52006-08-04 18:18:08 +00002135 ac_build_alias=$build_alias
2136test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002139 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002142ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002145 { (exit 1); exit 1; }; }
2146
2147fi
Reid Spencera773bd52006-08-04 18:18:08 +00002148{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149echo "${ECHO_T}$ac_cv_build" >&6; }
2150case $ac_cv_build in
2151*-*-*) ;;
2152*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
2155esac
John Criswell7a73b802003-06-30 21:59:07 +00002156build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002157ac_save_IFS=$IFS; IFS='-'
2158set x $ac_cv_build
2159shift
2160build_cpu=$1
2161build_vendor=$2
2162shift; shift
2163# Remember, the first character of IFS is used to create $*,
2164# except with old shells:
2165build_os=$*
2166IFS=$ac_save_IFS
2167case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002168
2169
Reid Spencera773bd52006-08-04 18:18:08 +00002170{ echo "$as_me:$LINENO: checking host system type" >&5
2171echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002172if test "${ac_cv_host+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
Reid Spencera773bd52006-08-04 18:18:08 +00002175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2177else
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002182fi
John Criswell7a73b802003-06-30 21:59:07 +00002183
2184fi
Reid Spencera773bd52006-08-04 18:18:08 +00002185{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186echo "${ECHO_T}$ac_cv_host" >&6; }
2187case $ac_cv_host in
2188*-*-*) ;;
2189*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
2192esac
John Criswell7a73b802003-06-30 21:59:07 +00002193host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_host
2196shift
2197host_cpu=$1
2198host_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202host_os=$*
2203IFS=$ac_save_IFS
2204case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002205
2206
Reid Spencera773bd52006-08-04 18:18:08 +00002207{ echo "$as_me:$LINENO: checking target system type" >&5
2208echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002209if test "${ac_cv_target+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
Reid Spencera773bd52006-08-04 18:18:08 +00002212 if test "x$target_alias" = x; then
2213 ac_cv_target=$ac_cv_host
2214else
2215 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2216 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2217echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002218 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002219fi
John Criswell7a73b802003-06-30 21:59:07 +00002220
2221fi
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2223echo "${ECHO_T}$ac_cv_target" >&6; }
2224case $ac_cv_target in
2225*-*-*) ;;
2226*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2227echo "$as_me: error: invalid value of canonical target" >&2;}
2228 { (exit 1); exit 1; }; };;
2229esac
John Criswell7a73b802003-06-30 21:59:07 +00002230target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_target
2233shift
2234target_cpu=$1
2235target_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239target_os=$*
2240IFS=$ac_save_IFS
2241case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002242
2243
2244# The aliases save the names the user supplied, while $host etc.
2245# will get canonicalized.
2246test -n "$target_alias" &&
2247 test "$program_prefix$program_suffix$program_transform_name" = \
2248 NONENONEs,x,x, &&
2249 program_prefix=${target_alias}-
2250
Reid Spencera773bd52006-08-04 18:18:08 +00002251{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2252echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002256 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002257 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="AIX"
2261 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002262 *-*-irix*)
2263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2265 llvm_cv_os_type="IRIX"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="Cygwin"
2271 llvm_cv_platform_type="Unix" ;;
2272 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002274 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="Darwin"
2276 llvm_cv_platform_type="Unix" ;;
2277 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002280 llvm_cv_os_type="FreeBSD"
2281 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002282 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002285 llvm_cv_os_type="OpenBSD"
2286 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002287 *-*-netbsd*)
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="NetBSD"
2291 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002292 *-*-dragonfly*)
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="DragonFly"
2296 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002297 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002300 llvm_cv_os_type="HP-UX"
2301 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305 llvm_cv_os_type="Interix"
2306 llvm_cv_platform_type="Unix" ;;
2307 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310 llvm_cv_os_type="Linux"
2311 llvm_cv_platform_type="Unix" ;;
2312 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002313 llvm_cv_link_all_option="-Wl,-z,allextract"
2314 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002315 llvm_cv_os_type="SunOS"
2316 llvm_cv_platform_type="Unix" ;;
2317 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002318 llvm_cv_link_all_option="-Wl,--whole-archive"
2319 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 llvm_cv_os_type="Win32"
2321 llvm_cv_platform_type="Win32" ;;
2322 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 llvm_cv_os_type="MingW"
2326 llvm_cv_platform_type="Win32" ;;
2327 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002328 llvm_cv_link_all_option=""
2329 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330 llvm_cv_os_type="Unknown"
2331 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002332esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002333fi
Reid Spencera773bd52006-08-04 18:18:08 +00002334{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2335echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002336
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337if test "$llvm_cv_os_type" = "Unknown" ; then
2338 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002340 { (exit 1); exit 1; }; }
2341fi
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344
2345
Reid Spencera773bd52006-08-04 18:18:08 +00002346LINKALL=$llvm_cv_link_all_option
2347
2348NOLINKALL=$llvm_cv_no_link_all_option
2349
2350
Reid Spencer7b3e8512004-12-24 06:29:05 +00002351case $llvm_cv_platform_type in
2352 Unix)
2353
2354cat >>confdefs.h <<\_ACEOF
2355#define LLVM_ON_UNIX 1
2356_ACEOF
2357
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002358 LLVM_ON_UNIX=1
2359
2360 LLVM_ON_WIN32=0
2361
Reid Spencer7b3e8512004-12-24 06:29:05 +00002362 ;;
2363 Win32)
2364
2365cat >>confdefs.h <<\_ACEOF
2366#define LLVM_ON_WIN32 1
2367_ACEOF
2368
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002369 LLVM_ON_UNIX=0
2370
2371 LLVM_ON_WIN32=1
2372
Reid Spencer7b3e8512004-12-24 06:29:05 +00002373 ;;
2374esac
2375
Reid Spencera773bd52006-08-04 18:18:08 +00002376{ echo "$as_me:$LINENO: checking target architecture" >&5
2377echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378if test "${llvm_cv_target_arch+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002382 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002383 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002384 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2385 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002386 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002387 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002388 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002389 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002390 pic16-*) llvm_cv_target_arch="PIC16" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002391 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002392esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393fi
Reid Spencera773bd52006-08-04 18:18:08 +00002394{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2395echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397if test "$llvm_cv_target_arch" = "Unknown" ; then
2398 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2399echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2400fi
John Criswell76595452003-07-01 22:07:39 +00002401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002403
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405ac_ext=c
2406ac_cpp='$CPP $CPPFLAGS'
2407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415if test "${ac_cv_prog_CC+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002427 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 +00002428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432done
2433done
Reid Spencera773bd52006-08-04 18:18:08 +00002434IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435
2436fi
2437fi
2438CC=$ac_cv_prog_CC
2439if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002440 { echo "$as_me:$LINENO: result: $CC" >&5
2441echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442else
Reid Spencera773bd52006-08-04 18:18:08 +00002443 { echo "$as_me:$LINENO: result: no" >&5
2444echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445fi
2446
Reid Spencera773bd52006-08-04 18:18:08 +00002447
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448fi
2449if test -z "$ac_cv_prog_CC"; then
2450 ac_ct_CC=$CC
2451 # Extract the first word of "gcc", so it can be a program name with args.
2452set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002467 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 +00002468 ac_cv_prog_ac_ct_CC="gcc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472done
2473done
Reid Spencera773bd52006-08-04 18:18:08 +00002474IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475
2476fi
2477fi
2478ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002480 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2481echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
Reid Spencera773bd52006-08-04 18:18:08 +00002483 { echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485fi
2486
Reid Spencera773bd52006-08-04 18:18:08 +00002487 if test "x$ac_ct_CC" = x; then
2488 CC=""
2489 else
2490 case $cross_compiling:$ac_tool_warned in
2491yes:)
2492{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493whose name does not start with the host triplet. If you think this
2494configuration is useful to you, please write to autoconf@gnu.org." >&5
2495echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496whose name does not start with the host triplet. If you think this
2497configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498ac_tool_warned=yes ;;
2499esac
2500 CC=$ac_ct_CC
2501 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502else
2503 CC="$ac_cv_prog_CC"
2504fi
2505
2506if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002507 if test -n "$ac_tool_prefix"; then
2508 # 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 +00002509set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512if test "${ac_cv_prog_CC+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002524 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 +00002525 ac_cv_prog_CC="${ac_tool_prefix}cc"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529done
2530done
Reid Spencera773bd52006-08-04 18:18:08 +00002531IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532
2533fi
2534fi
2535CC=$ac_cv_prog_CC
2536if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002537 { echo "$as_me:$LINENO: result: $CC" >&5
2538echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539else
Reid Spencera773bd52006-08-04 18:18:08 +00002540 { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542fi
2543
Reid Spencera773bd52006-08-04 18:18:08 +00002544
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546fi
2547if test -z "$CC"; then
2548 # Extract the first word of "cc", so it can be a program name with args.
2549set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2557else
2558 ac_prog_rejected=no
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002565 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 +00002566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567 ac_prog_rejected=yes
2568 continue
2569 fi
2570 ac_cv_prog_CC="cc"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574done
2575done
Reid Spencera773bd52006-08-04 18:18:08 +00002576IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577
2578if test $ac_prog_rejected = yes; then
2579 # We found a bogon in the path, so make sure we never use it.
2580 set dummy $ac_cv_prog_CC
2581 shift
2582 if test $# != 0; then
2583 # We chose a different compiler from the bogus one.
2584 # However, it has the same basename, so the bogon will be chosen
2585 # first if we set CC to just the basename; use the full file name.
2586 shift
2587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2588 fi
2589fi
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002594 { echo "$as_me:$LINENO: result: $CC" >&5
2595echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596else
Reid Spencera773bd52006-08-04 18:18:08 +00002597 { echo "$as_me:$LINENO: result: no" >&5
2598echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599fi
2600
Reid Spencera773bd52006-08-04 18:18:08 +00002601
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602fi
2603if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002605 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002606 do
2607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002623 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 +00002624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628done
2629done
Reid Spencera773bd52006-08-04 18:18:08 +00002630IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002631
2632fi
2633fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634CC=$ac_cv_prog_CC
2635if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002636 { echo "$as_me:$LINENO: result: $CC" >&5
2637echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencera773bd52006-08-04 18:18:08 +00002639 { echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002641fi
2642
Reid Spencera773bd52006-08-04 18:18:08 +00002643
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002645 done
2646fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647if test -z "$CC"; then
2648 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002649 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002650do
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002667 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 +00002668 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
2673done
Reid Spencera773bd52006-08-04 18:18:08 +00002674IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002675
2676fi
2677fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002680 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002682else
Reid Spencera773bd52006-08-04 18:18:08 +00002683 { echo "$as_me:$LINENO: result: no" >&5
2684echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002685fi
2686
Reid Spencera773bd52006-08-04 18:18:08 +00002687
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002689done
John Criswell7a73b802003-06-30 21:59:07 +00002690
Reid Spencera773bd52006-08-04 18:18:08 +00002691 if test "x$ac_ct_CC" = x; then
2692 CC=""
2693 else
2694 case $cross_compiling:$ac_tool_warned in
2695yes:)
2696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2697whose name does not start with the host triplet. If you think this
2698configuration is useful to you, please write to autoconf@gnu.org." >&5
2699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2700whose name does not start with the host triplet. If you think this
2701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2702ac_tool_warned=yes ;;
2703esac
2704 CC=$ac_ct_CC
2705 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706fi
2707
John Criswell7a73b802003-06-30 21:59:07 +00002708fi
2709
2710
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002711test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&5
2713echo "$as_me: error: no acceptable C compiler found in \$PATH
2714See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2716
John Criswell7a73b802003-06-30 21:59:07 +00002717# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002718echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002719ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002720{ (ac_try="$ac_compiler --version >&5"
2721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002730{ (ac_try="$ac_compiler -v >&5"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002740{ (ac_try="$ac_compiler -V >&5"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750
2751cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002757
John Criswell7a73b802003-06-30 21:59:07 +00002758int
2759main ()
2760{
2761
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002767ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002768# Try to create an executable without -o first, disregard a.out.
2769# It will help us diagnose broken compilers, and finding out an intuition
2770# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002771{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2772echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002773ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002774#
2775# List of possible output files, starting from the most likely.
2776# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2777# only as a last resort. b.out is created by i960 compilers.
2778ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2779#
2780# The IRIX 6 linker writes into existing files which may not be
2781# executable, retaining their permissions. Remove them first so a
2782# subsequent execution test works.
2783ac_rmfiles=
2784for ac_file in $ac_files
2785do
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2788 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2789 esac
2790done
2791rm -f $ac_rmfiles
2792
2793if { (ac_try="$ac_link_default"
2794case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2804# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2805# in a Makefile. We should not override ac_cv_exeext if it was cached,
2806# so that the user can short-circuit this test for compilers unknown to
2807# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002808for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002809do
2810 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002811 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002813 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002814 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002815 # We found the default executable, but exeext='' is most
2816 # certainly right.
2817 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002818 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002819 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2820 then :; else
2821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 fi
2823 # We set ac_cv_exeext here because the later test for it is not
2824 # safe: cross compilers may not add the suffix if given an `-o'
2825 # argument, so we may need to know it at that point already.
2826 # Even if this section looks crufty: it has the advantage of
2827 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002828 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002829 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002830 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002831 esac
2832done
Reid Spencera773bd52006-08-04 18:18:08 +00002833test "$ac_cv_exeext" = no && ac_cv_exeext=
2834
John Criswell7a73b802003-06-30 21:59:07 +00002835else
2836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002837sed 's/^/| /' conftest.$ac_ext >&5
2838
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002839{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002840See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002841echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002842See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002843 { (exit 77); exit 77; }; }
2844fi
2845
2846ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002847{ echo "$as_me:$LINENO: result: $ac_file" >&5
2848echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002849
Reid Spencera773bd52006-08-04 18:18:08 +00002850# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002851# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002852{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2853echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002854# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2855# If not cross compiling, check that we can run a simple program.
2856if test "$cross_compiling" != yes; then
2857 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002858 { (case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861esac
2862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 cross_compiling=no
2868 else
2869 if test "$cross_compiling" = maybe; then
2870 cross_compiling=yes
2871 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002872 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002873If you meant to cross compile, use \`--host'.
2874See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002875echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002876If you meant to cross compile, use \`--host'.
2877See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002878 { (exit 1); exit 1; }; }
2879 fi
2880 fi
2881fi
Reid Spencera773bd52006-08-04 18:18:08 +00002882{ echo "$as_me:$LINENO: result: yes" >&5
2883echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002884
John Criswell0c38eaf2003-09-10 15:17:25 +00002885rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002886ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002887# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002888# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002889{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2890echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2891{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2892echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002893
Reid Spencera773bd52006-08-04 18:18:08 +00002894{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2895echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2896if { (ac_try="$ac_link"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2907# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2908# work properly (i.e., refer to `conftest.exe'), while it won't with
2909# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002910for ac_file in conftest.exe conftest conftest.*; do
2911 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002912 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002915 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002916 * ) break;;
2917 esac
2918done
2919else
John Criswell0c38eaf2003-09-10 15:17:25 +00002920 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details." >&5
2922echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002924 { (exit 1); exit 1; }; }
2925fi
2926
2927rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002928{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2929echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002930
2931rm -f conftest.$ac_ext
2932EXEEXT=$ac_cv_exeext
2933ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002934{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2935echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002936if test "${ac_cv_objext+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002940/* confdefs.h. */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002945
John Criswell7a73b802003-06-30 21:59:07 +00002946int
2947main ()
2948{
2949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002955if { (ac_try="$ac_compile"
2956case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959esac
2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002965 for ac_file in conftest.o conftest.obj conftest.*; do
2966 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002967 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2970 break;;
2971 esac
2972done
2973else
2974 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2978See \`config.log' for more details." >&5
2979echo "$as_me: error: cannot compute suffix of object files: cannot compile
2980See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002981 { (exit 1); exit 1; }; }
2982fi
2983
2984rm -f conftest.$ac_cv_objext conftest.$ac_ext
2985fi
Reid Spencera773bd52006-08-04 18:18:08 +00002986{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2987echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002988OBJEXT=$ac_cv_objext
2989ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002990{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2991echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002992if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003001
John Criswell7a73b802003-06-30 21:59:07 +00003002int
3003main ()
3004{
3005#ifndef __GNUC__
3006 choke me
3007#endif
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003047 ac_compiler_gnu=yes
3048else
3049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003050sed 's/^/| /' conftest.$ac_ext >&5
3051
Reid Spencera773bd52006-08-04 18:18:08 +00003052 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003053fi
Reid Spencera773bd52006-08-04 18:18:08 +00003054
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003056ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003057
3058fi
Reid Spencera773bd52006-08-04 18:18:08 +00003059{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003061GCC=`test $ac_compiler_gnu = yes && echo yes`
3062ac_test_CFLAGS=${CFLAGS+set}
3063ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003064{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003066if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
Reid Spencera773bd52006-08-04 18:18:08 +00003069 ac_save_c_werror_flag=$ac_c_werror_flag
3070 ac_c_werror_flag=yes
3071 ac_cv_prog_cc_g=no
3072 CFLAGS="-g"
3073 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003079
John Criswell7a73b802003-06-30 21:59:07 +00003080int
3081main ()
3082{
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003089if { (ac_try="$ac_compile"
3090case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003101 (exit $ac_status); } &&
3102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3103 { (case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_try") 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_try") 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003122 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003123else
3124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003125sed 's/^/| /' conftest.$ac_ext >&5
3126
Reid Spencera773bd52006-08-04 18:18:08 +00003127 CFLAGS=""
3128 cat >conftest.$ac_ext <<_ACEOF
3129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
3134
3135int
3136main ()
3137{
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
3143rm -f conftest.$ac_objext
3144if { (ac_try="$ac_compile"
3145case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003177 :
3178else
3179 echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
3190
3191int
3192main ()
3193{
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (ac_try="$ac_compile"
3201case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003212 (exit $ac_status); } &&
3213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3214 { (case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_try") 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
3228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_try") 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003233 ac_cv_prog_cc_g=yes
3234else
3235 echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
John Criswell7a73b802003-06-30 21:59:07 +00003239fi
Reid Spencera773bd52006-08-04 18:18:08 +00003240
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003242fi
Reid Spencera773bd52006-08-04 18:18:08 +00003243
3244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245fi
3246
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3249fi
3250{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3251echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252if test "$ac_test_CFLAGS" = set; then
3253 CFLAGS=$ac_save_CFLAGS
3254elif test $ac_cv_prog_cc_g = yes; then
3255 if test "$GCC" = yes; then
3256 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003257 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003259 fi
3260else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261 if test "$GCC" = yes; then
3262 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003263 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003265 fi
3266fi
Reid Spencera773bd52006-08-04 18:18:08 +00003267{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3268echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3269if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
Reid Spencera773bd52006-08-04 18:18:08 +00003272 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273ac_save_CC=$CC
3274cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280#include <stdarg.h>
3281#include <stdio.h>
3282#include <sys/types.h>
3283#include <sys/stat.h>
3284/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3285struct buf { int x; };
3286FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287static char *e (p, i)
3288 char **p;
3289 int i;
3290{
3291 return p[i];
3292}
3293static char *f (char * (*g) (char **, int), char **p, ...)
3294{
3295 char *s;
3296 va_list v;
3297 va_start (v,p);
3298 s = g (p, va_arg (v,int));
3299 va_end (v);
3300 return s;
3301}
3302
3303/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3304 function prototypes and stuff, but not '\xHH' hex character constants.
3305 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003306 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3308 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003309 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311
Reid Spencera773bd52006-08-04 18:18:08 +00003312/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313 inside strings and character constants. */
3314#define FOO(x) 'x'
3315int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317int test (int i, double x);
3318struct s1 {int (*f) (int a);};
3319struct s2 {int (*f) (double a);};
3320int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321int argc;
3322char **argv;
3323int
3324main ()
3325{
3326return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3327 ;
3328 return 0;
3329}
3330_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003331for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333do
3334 CC="$ac_save_CC $ac_arg"
3335 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003336if { (ac_try="$ac_compile"
3337case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_try") 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003369 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370else
3371 echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
Reid Spencera773bd52006-08-04 18:18:08 +00003374
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375fi
Reid Spencera773bd52006-08-04 18:18:08 +00003376
3377rm -f core conftest.err conftest.$ac_objext
3378 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379done
Reid Spencera773bd52006-08-04 18:18:08 +00003380rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381CC=$ac_save_CC
3382
3383fi
Reid Spencera773bd52006-08-04 18:18:08 +00003384# AC_CACHE_VAL
3385case "x$ac_cv_prog_cc_c89" in
3386 x)
3387 { echo "$as_me:$LINENO: result: none needed" >&5
3388echo "${ECHO_T}none needed" >&6; } ;;
3389 xno)
3390 { echo "$as_me:$LINENO: result: unsupported" >&5
3391echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003393 CC="$CC $ac_cv_prog_cc_c89"
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3395echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396esac
3397
John Criswell0c38eaf2003-09-10 15:17:25 +00003398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404
3405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406ac_ext=c
3407ac_cpp='$CPP $CPPFLAGS'
3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003411{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3412echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413# On Suns, sometimes $CPP names a directory.
3414if test -n "$CPP" && test -d "$CPP"; then
3415 CPP=
3416fi
3417if test -z "$CPP"; then
3418 if test "${ac_cv_prog_CPP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421 # Double quotes because CPP needs to be expanded
3422 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423 do
3424 ac_preproc_ok=false
3425for ac_c_preproc_warn_flag in '' yes
3426do
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#ifdef __STDC__
3440# include <limits.h>
3441#else
3442# include <assert.h>
3443#endif
3444 Syntax error
3445_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003446if { (ac_try="$ac_cpp conftest.$ac_ext"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_c_preproc_warn_flag
3461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462 else
3463 ac_cpp_err=
3464 fi
3465else
3466 ac_cpp_err=yes
3467fi
3468if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469 :
3470else
3471 echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 # Broken: fails on valid input.
3475continue
3476fi
Reid Spencera773bd52006-08-04 18:18:08 +00003477
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003478rm -f conftest.err conftest.$ac_ext
3479
Reid Spencera773bd52006-08-04 18:18:08 +00003480 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003481 # can be detected and how.
3482 cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h. */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h. */
3488#include <ac_nonexistent.h>
3489_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003490if { (ac_try="$ac_cpp conftest.$ac_ext"
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494esac
3495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003502 (exit $ac_status); } >/dev/null; then
3503 if test -s conftest.err; then
3504 ac_cpp_err=$ac_c_preproc_warn_flag
3505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3506 else
3507 ac_cpp_err=
3508 fi
3509else
3510 ac_cpp_err=yes
3511fi
3512if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003513 # Broken: success on invalid input.
3514continue
3515else
3516 echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 # Passes both tests.
3520ac_preproc_ok=:
3521break
3522fi
Reid Spencera773bd52006-08-04 18:18:08 +00003523
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524rm -f conftest.err conftest.$ac_ext
3525
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528rm -f conftest.err conftest.$ac_ext
3529if $ac_preproc_ok; then
3530 break
3531fi
3532
3533 done
3534 ac_cv_prog_CPP=$CPP
3535
3536fi
3537 CPP=$ac_cv_prog_CPP
3538else
3539 ac_cv_prog_CPP=$CPP
3540fi
Reid Spencera773bd52006-08-04 18:18:08 +00003541{ echo "$as_me:$LINENO: result: $CPP" >&5
3542echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563 Syntax error
3564_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003565if { (ac_try="$ac_cpp conftest.$ac_ext"
3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581 else
3582 ac_cpp_err=
3583 fi
3584else
3585 ac_cpp_err=yes
3586fi
3587if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588 :
3589else
3590 echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 # Broken: fails on valid input.
3594continue
3595fi
Reid Spencera773bd52006-08-04 18:18:08 +00003596
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003597rm -f conftest.err conftest.$ac_ext
3598
Reid Spencera773bd52006-08-04 18:18:08 +00003599 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
3607#include <ac_nonexistent.h>
3608_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003609if { (ac_try="$ac_cpp conftest.$ac_ext"
3610case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613esac
3614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003621 (exit $ac_status); } >/dev/null; then
3622 if test -s conftest.err; then
3623 ac_cpp_err=$ac_c_preproc_warn_flag
3624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625 else
3626 ac_cpp_err=
3627 fi
3628else
3629 ac_cpp_err=yes
3630fi
3631if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003632 # Broken: success on invalid input.
3633continue
3634else
3635 echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638 # Passes both tests.
3639ac_preproc_ok=:
3640break
3641fi
Reid Spencera773bd52006-08-04 18:18:08 +00003642
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003643rm -f conftest.err conftest.$ac_ext
3644
3645done
3646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647rm -f conftest.err conftest.$ac_ext
3648if $ac_preproc_ok; then
3649 :
3650else
3651 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3652See \`config.log' for more details." >&5
3653echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3654See \`config.log' for more details." >&2;}
3655 { (exit 1); exit 1; }; }
3656fi
3657
John Criswell7a73b802003-06-30 21:59:07 +00003658ac_ext=c
3659ac_cpp='$CPP $CPPFLAGS'
3660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663
John Criswell7a73b802003-06-30 21:59:07 +00003664
Reid Spencera773bd52006-08-04 18:18:08 +00003665{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3666echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003667if test "${ac_cv_path_GREP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
Reid Spencera773bd52006-08-04 18:18:08 +00003670 # Extract the first word of "grep ggrep" to use in msg output
3671if test -z "$GREP"; then
3672set dummy grep ggrep; ac_prog_name=$2
3673if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
Reid Spencera773bd52006-08-04 18:18:08 +00003676 ac_path_GREP_found=false
3677# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003683 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003686 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003687 # Check for GNU ac_path_GREP and select it if it is found.
3688 # Check for GNU $ac_path_GREP
3689case `"$ac_path_GREP" --version 2>&1` in
3690*GNU*)
3691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3692*)
3693 ac_count=0
3694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695 while :
3696 do
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 echo 'GREP' >> "conftest.nl"
3701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 ac_count=`expr $ac_count + 1`
3704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_GREP="$ac_path_GREP"
3707 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003708 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3711 done
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713esac
3714
3715
3716 $ac_path_GREP_found && break 3
3717 done
3718done
3719
3720done
3721IFS=$as_save_IFS
3722
3723
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003724fi
Reid Spencera773bd52006-08-04 18:18:08 +00003725
3726GREP="$ac_cv_path_GREP"
3727if test -z "$GREP"; then
3728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730 { (exit 1); exit 1; }; }
3731fi
3732
3733else
3734 ac_cv_path_GREP=$GREP
3735fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003736
John Criswell7a73b802003-06-30 21:59:07 +00003737
Reid Spencera773bd52006-08-04 18:18:08 +00003738fi
3739{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3740echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3741 GREP="$ac_cv_path_GREP"
3742
3743
3744{ echo "$as_me:$LINENO: checking for egrep" >&5
3745echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3746if test "${ac_cv_path_EGREP+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3750 then ac_cv_path_EGREP="$GREP -E"
3751 else
3752 # Extract the first word of "egrep" to use in msg output
3753if test -z "$EGREP"; then
3754set dummy egrep; ac_prog_name=$2
3755if test "${ac_cv_path_EGREP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758 ac_path_EGREP_found=false
3759# Loop through the user's path and test for each of PROGNAME-LIST
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_prog in egrep; do
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003768 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003769 # Check for GNU ac_path_EGREP and select it if it is found.
3770 # Check for GNU $ac_path_EGREP
3771case `"$ac_path_EGREP" --version 2>&1` in
3772*GNU*)
3773 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3774*)
3775 ac_count=0
3776 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3777 while :
3778 do
3779 cat "conftest.in" "conftest.in" >"conftest.tmp"
3780 mv "conftest.tmp" "conftest.in"
3781 cp "conftest.in" "conftest.nl"
3782 echo 'EGREP' >> "conftest.nl"
3783 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3785 ac_count=`expr $ac_count + 1`
3786 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3787 # Best one so far, save it but keep looking for a better one
3788 ac_cv_path_EGREP="$ac_path_EGREP"
3789 ac_path_EGREP_max=$ac_count
3790 fi
3791 # 10*(2^10) chars as input seems more than enough
3792 test $ac_count -gt 10 && break
3793 done
3794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3795esac
3796
3797
3798 $ac_path_EGREP_found && break 3
3799 done
3800done
3801
3802done
3803IFS=$as_save_IFS
3804
3805
3806fi
3807
3808EGREP="$ac_cv_path_EGREP"
3809if test -z "$EGREP"; then
3810 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3811echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3812 { (exit 1); exit 1; }; }
3813fi
3814
3815else
3816 ac_cv_path_EGREP=$EGREP
3817fi
3818
3819
3820 fi
3821fi
3822{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3823echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3824 EGREP="$ac_cv_path_EGREP"
3825
3826
3827{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3828echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003829if test "${ac_cv_header_stdc+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003833/* confdefs.h. */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003838#include <stdlib.h>
3839#include <stdarg.h>
3840#include <string.h>
3841#include <float.h>
3842
John Criswell0c38eaf2003-09-10 15:17:25 +00003843int
3844main ()
3845{
3846
3847 ;
3848 return 0;
3849}
John Criswell7a73b802003-06-30 21:59:07 +00003850_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003851rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003852if { (ac_try="$ac_compile"
3853case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856esac
3857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003859 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003864 (exit $ac_status); } &&
3865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3866 { (case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869esac
3870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871 (eval "$ac_try") 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879esac
3880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_try") 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003885 ac_cv_header_stdc=yes
3886else
3887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003888sed 's/^/| /' conftest.$ac_ext >&5
3889
Reid Spencera773bd52006-08-04 18:18:08 +00003890 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003891fi
Reid Spencera773bd52006-08-04 18:18:08 +00003892
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003894
3895if test $ac_cv_header_stdc = yes; then
3896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003898/* confdefs.h. */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003903#include <string.h>
3904
3905_ACEOF
3906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003907 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003908 :
3909else
3910 ac_cv_header_stdc=no
3911fi
3912rm -f conftest*
3913
3914fi
3915
3916if test $ac_cv_header_stdc = yes; then
3917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003919/* confdefs.h. */
3920_ACEOF
3921cat confdefs.h >>conftest.$ac_ext
3922cat >>conftest.$ac_ext <<_ACEOF
3923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003924#include <stdlib.h>
3925
3926_ACEOF
3927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003928 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003929 :
3930else
3931 ac_cv_header_stdc=no
3932fi
3933rm -f conftest*
3934
3935fi
3936
3937if test $ac_cv_header_stdc = yes; then
3938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3939 if test "$cross_compiling" = yes; then
3940 :
3941else
3942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003948#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003949#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003950#if ((' ' & 0x0FF) == 0x020)
3951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3953#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003954# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003955 (('a' <= (c) && (c) <= 'i') \
3956 || ('j' <= (c) && (c) <= 'r') \
3957 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3959#endif
3960
3961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3962int
3963main ()
3964{
3965 int i;
3966 for (i = 0; i < 256; i++)
3967 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003968 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003969 return 2;
3970 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003971}
3972_ACEOF
3973rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003974if { (ac_try="$ac_link"
3975case "(($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_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003984 { (case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987esac
3988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3993 :
3994else
3995 echo "$as_me: program exited with status $ac_status" >&5
3996echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003997sed 's/^/| /' conftest.$ac_ext >&5
3998
John Criswell7a73b802003-06-30 21:59:07 +00003999( exit $ac_status )
4000ac_cv_header_stdc=no
4001fi
Reid Spencera773bd52006-08-04 18:18:08 +00004002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4003fi
4004
4005
John Criswell7a73b802003-06-30 21:59:07 +00004006fi
4007fi
Reid Spencera773bd52006-08-04 18:18:08 +00004008{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4009echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004010if test $ac_cv_header_stdc = yes; then
4011
4012cat >>confdefs.h <<\_ACEOF
4013#define STDC_HEADERS 1
4014_ACEOF
4015
4016fi
4017
Reid Spencera773bd52006-08-04 18:18:08 +00004018# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4029 inttypes.h stdint.h unistd.h
4030do
4031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
4037 cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
4043$ac_includes_default
4044
4045#include <$ac_header>
4046_ACEOF
4047rm -f conftest.$ac_objext
4048if { (ac_try="$ac_compile"
4049case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_compile") 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004060 (exit $ac_status); } &&
4061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4062 { (case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_try") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
4076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_try") 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004081 eval "$as_ac_Header=yes"
4082else
4083 echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 eval "$as_ac_Header=no"
4087fi
4088
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090fi
4091ac_res=`eval echo '${'$as_ac_Header'}'`
4092 { echo "$as_me:$LINENO: result: $ac_res" >&5
4093echo "${ECHO_T}$ac_res" >&6; }
4094if test `eval echo '${'$as_ac_Header'}'` = yes; then
4095 cat >>confdefs.h <<_ACEOF
4096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4097_ACEOF
4098
4099fi
4100
4101done
4102
4103
4104{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4105echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4106if test "${ac_cv_c_bigendian+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 # See if sys/param.h defines the BYTE_ORDER macro.
4110cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h. */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h. */
4116#include <sys/types.h>
4117#include <sys/param.h>
4118
4119int
4120main ()
4121{
Tanya Lattnercf067672008-01-17 05:57:22 +00004122#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004123 bogus endian macros
4124#endif
4125
4126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (ac_try="$ac_compile"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004164 # It does; now see whether it defined to BIG_ENDIAN or not.
4165cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */
4171#include <sys/types.h>
4172#include <sys/param.h>
4173
4174int
4175main ()
4176{
4177#if BYTE_ORDER != BIG_ENDIAN
4178 not big endian
4179#endif
4180
4181 ;
4182 return 0;
4183}
4184_ACEOF
4185rm -f conftest.$ac_objext
4186if { (ac_try="$ac_compile"
4187case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_compile") 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4200 { (case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_try") 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try='test -s conftest.$ac_objext'
4210 { (case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
4214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_try") 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004219 ac_cv_c_bigendian=yes
4220else
4221 echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224 ac_cv_c_bigendian=no
4225fi
4226
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228else
4229 echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232 # It does not; compile a test program.
4233if test "$cross_compiling" = yes; then
4234 # try to guess the endianness by grepping values into an object file
4235 ac_cv_c_bigendian=unknown
4236 cat >conftest.$ac_ext <<_ACEOF
4237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h. */
4242short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4243short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4244void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4245short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4246short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4247void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4248int
4249main ()
4250{
4251 _ascii (); _ebcdic ();
4252 ;
4253 return 0;
4254}
4255_ACEOF
4256rm -f conftest.$ac_objext
4257if { (ac_try="$ac_compile"
4258case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004290 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4291 ac_cv_c_bigendian=yes
4292fi
4293if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4294 if test "$ac_cv_c_bigendian" = unknown; then
4295 ac_cv_c_bigendian=no
4296 else
4297 # finding both strings is unlikely to happen, but who knows?
4298 ac_cv_c_bigendian=unknown
4299 fi
4300fi
4301else
4302 echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
4305
4306fi
4307
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309else
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316$ac_includes_default
4317int
4318main ()
4319{
4320
4321 /* Are we little or big endian? From Harbison&Steele. */
4322 union
4323 {
4324 long int l;
4325 char c[sizeof (long int)];
4326 } u;
4327 u.l = 1;
4328 return u.c[sizeof (long int) - 1] == 1;
4329
4330 ;
4331 return 0;
4332}
4333_ACEOF
4334rm -f conftest$ac_exeext
4335if { (ac_try="$ac_link"
4336case "(($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_link") 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4345 { (case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_try") 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 ac_cv_c_bigendian=no
4355else
4356 echo "$as_me: program exited with status $ac_status" >&5
4357echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360( exit $ac_status )
4361ac_cv_c_bigendian=yes
4362fi
4363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4364fi
4365
4366
4367fi
4368
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4372echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4373case $ac_cv_c_bigendian in
4374 yes)
4375 ENDIAN=big
4376 ;;
4377 no)
4378 ENDIAN=little
4379 ;;
4380 *)
4381 { { echo "$as_me:$LINENO: error: unknown endianness
4382presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4383echo "$as_me: error: unknown endianness
4384presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4385 { (exit 1); exit 1; }; } ;;
4386esac
4387
4388
4389if test "$cross_compiling" = yes; then
4390 LLVM_CROSS_COMPILING=1
4391
4392
4393{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4394echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4395if test "${ac_cv_build_exeext+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4399 ac_cv_build_exeext=.exe
4400else
4401 ac_build_prefix=${build_alias}-
4402
4403 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4404set dummy ${ac_build_prefix}gcc; ac_word=$2
4405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410 if test -n "$BUILD_CC"; then
4411 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004419 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 +00004420 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425done
4426IFS=$as_save_IFS
4427
4428fi
4429fi
4430BUILD_CC=$ac_cv_prog_BUILD_CC
4431if test -n "$BUILD_CC"; then
4432 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4433echo "${ECHO_T}$BUILD_CC" >&6; }
4434else
4435 { echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6; }
4437fi
4438
4439
4440 if test -z "$BUILD_CC"; then
4441 # Extract the first word of "gcc", so it can be a program name with args.
4442set dummy gcc; ac_word=$2
4443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448 if test -n "$BUILD_CC"; then
4449 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004457 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 +00004458 ac_cv_prog_BUILD_CC="gcc"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462done
4463done
4464IFS=$as_save_IFS
4465
4466fi
4467fi
4468BUILD_CC=$ac_cv_prog_BUILD_CC
4469if test -n "$BUILD_CC"; then
4470 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4471echo "${ECHO_T}$BUILD_CC" >&6; }
4472else
4473 { echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6; }
4475fi
4476
4477
4478 if test -z "$BUILD_CC"; then
4479 # Extract the first word of "cc", so it can be a program name with args.
4480set dummy cc; ac_word=$2
4481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486 if test -n "$BUILD_CC"; then
4487 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4488else
4489 ac_prog_rejected=no
4490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004496 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 +00004497 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4498 ac_prog_rejected=yes
4499 continue
4500 fi
4501 ac_cv_prog_BUILD_CC="cc"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505done
4506done
4507IFS=$as_save_IFS
4508
4509if test $ac_prog_rejected = yes; then
4510 # We found a bogon in the path, so make sure we never use it.
4511 set dummy $ac_cv_prog_BUILD_CC
4512 shift
4513 if test $# != 0; then
4514 # We chose a different compiler from the bogus one.
4515 # However, it has the same basename, so the bogon will be chosen
4516 # first if we set BUILD_CC to just the basename; use the full file name.
4517 shift
4518 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4519 fi
4520fi
4521fi
4522fi
4523BUILD_CC=$ac_cv_prog_BUILD_CC
4524if test -n "$BUILD_CC"; then
4525 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4526echo "${ECHO_T}$BUILD_CC" >&6; }
4527else
4528 { echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6; }
4530fi
4531
4532
4533 fi
4534 fi
4535 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4536echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4537 { (exit 1); exit 1; }; }
4538 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4539 rm -f conftest*
4540 echo 'int main () { return 0; }' > conftest.$ac_ext
4541 ac_cv_build_exeext=
4542 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4543 (eval $ac_build_link) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; then
4547 for file in conftest.*; do
4548 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004549 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004550 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4551 esac
4552 done
4553 else
4554 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4555echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4556 { (exit 1); exit 1; }; }
4557 fi
4558 rm -f conftest*
4559 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4560fi
4561fi
4562
4563BUILD_EXEEXT=""
4564test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4565{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4566echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4567ac_build_exeext=$BUILD_EXEEXT
4568
Jim Grosbach673612e2008-10-02 22:56:44 +00004569 ac_build_prefix=${build_alias}-
4570 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4571set dummy ${ac_build_prefix}g++; ac_word=$2
4572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 if test -n "$BUILD_CXX"; then
4578 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593IFS=$as_save_IFS
4594
4595fi
4596fi
4597BUILD_CXX=$ac_cv_prog_BUILD_CXX
4598if test -n "$BUILD_CXX"; then
4599 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4600echo "${ECHO_T}$BUILD_CXX" >&6; }
4601else
4602 { echo "$as_me:$LINENO: result: no" >&5
4603echo "${ECHO_T}no" >&6; }
4604fi
4605
4606
4607 if test -z "$BUILD_CXX"; then
4608 # Extract the first word of "g++", so it can be a program name with args.
4609set dummy g++; ac_word=$2
4610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 if test -n "$BUILD_CXX"; then
4616 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_BUILD_CXX="g++"
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629done
4630done
4631IFS=$as_save_IFS
4632
4633fi
4634fi
4635BUILD_CXX=$ac_cv_prog_BUILD_CXX
4636if test -n "$BUILD_CXX"; then
4637 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4638echo "${ECHO_T}$BUILD_CXX" >&6; }
4639else
4640 { echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6; }
4642fi
4643
4644
4645 if test -z "$BUILD_CXX"; then
4646 # Extract the first word of "c++", so it can be a program name with args.
4647set dummy c++; ac_word=$2
4648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -n "$BUILD_CXX"; then
4654 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4655else
4656 ac_prog_rejected=no
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4665 ac_prog_rejected=yes
4666 continue
4667 fi
4668 ac_cv_prog_BUILD_CXX="c++"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673done
4674IFS=$as_save_IFS
4675
4676if test $ac_prog_rejected = yes; then
4677 # We found a bogon in the path, so make sure we never use it.
4678 set dummy $ac_cv_prog_BUILD_CXX
4679 shift
4680 if test $# != 0; then
4681 # We chose a different compiler from the bogus one.
4682 # However, it has the same basename, so the bogon will be chosen
4683 # first if we set BUILD_CXX to just the basename; use the full file name.
4684 shift
4685 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4686 fi
4687fi
4688fi
4689fi
4690BUILD_CXX=$ac_cv_prog_BUILD_CXX
4691if test -n "$BUILD_CXX"; then
4692 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4693echo "${ECHO_T}$BUILD_CXX" >&6; }
4694else
4695 { echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6; }
4697fi
4698
4699
4700 fi
4701 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004702else
4703 LLVM_CROSS_COMPILING=0
4704
4705fi
4706
Reid Spencer0b1e4662007-04-02 15:41:39 +00004707if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004708 cvsbuild="yes"
4709 optimize="no"
4710 CVSBUILD=CVSBUILD=1
4711
4712else
4713 cvsbuild="no"
4714 optimize="yes"
4715fi
4716
4717
4718# Check whether --enable-optimized was given.
4719if test "${enable_optimized+set}" = set; then
4720 enableval=$enable_optimized;
4721else
4722 enableval=$optimize
4723fi
4724
4725if test ${enableval} = "no" ; then
4726 ENABLE_OPTIMIZED=
4727
4728else
4729 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4730
4731fi
4732
4733# Check whether --enable-assertions was given.
4734if test "${enable_assertions+set}" = set; then
4735 enableval=$enable_assertions;
4736else
4737 enableval="yes"
4738fi
4739
4740if test ${enableval} = "yes" ; then
4741 DISABLE_ASSERTIONS=
4742
4743else
4744 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745
4746fi
4747
David Greenea696d242007-06-28 19:36:08 +00004748# Check whether --enable-expensive-checks was given.
4749if test "${enable_expensive_checks+set}" = set; then
4750 enableval=$enable_expensive_checks;
4751else
4752 enableval="no"
4753fi
4754
4755if test ${enableval} = "yes" ; then
4756 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4757
4758 EXPENSIVE_CHECKS=yes
4759
4760else
4761 ENABLE_EXPENSIVE_CHECKS=
4762
4763 EXPENSIVE_CHECKS=no
4764
4765fi
4766
Reid Spencer8b2e1412006-11-17 03:32:33 +00004767# Check whether --enable-debug-runtime was given.
4768if test "${enable_debug_runtime+set}" = set; then
4769 enableval=$enable_debug_runtime;
4770else
4771 enableval=no
4772fi
4773
4774if test ${enableval} = "no" ; then
4775 DEBUG_RUNTIME=
4776
4777else
4778 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779
4780fi
4781
Reid Spencera773bd52006-08-04 18:18:08 +00004782# Check whether --enable-jit was given.
4783if test "${enable_jit+set}" = set; then
4784 enableval=$enable_jit;
4785else
4786 enableval=default
4787fi
4788
4789if test ${enableval} = "no"
4790then
4791 JIT=
4792
4793else
4794 case "$llvm_cv_target_arch" in
4795 x86) TARGET_HAS_JIT=1
4796 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004797 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004798 ;;
4799 PowerPC) TARGET_HAS_JIT=1
4800 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004801 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004802 ;;
4803 Alpha) TARGET_HAS_JIT=1
4804 ;;
4805 IA64) TARGET_HAS_JIT=0
4806 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004807 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004808 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004809 Mips) TARGET_HAS_JIT=0
4810 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004811 PIC16) TARGET_HAS_JIT=0
4812 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004813 *) TARGET_HAS_JIT=0
4814 ;;
4815 esac
4816fi
4817
4818# Check whether --enable-doxygen was given.
4819if test "${enable_doxygen+set}" = set; then
4820 enableval=$enable_doxygen;
4821else
4822 enableval=default
4823fi
4824
4825case "$enableval" in
4826 yes) ENABLE_DOXYGEN=1
4827 ;;
4828 no) ENABLE_DOXYGEN=0
4829 ;;
4830 default) ENABLE_DOXYGEN=0
4831 ;;
4832 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4833echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4834 { (exit 1); exit 1; }; } ;;
4835esac
4836
4837# Check whether --enable-threads was given.
4838if test "${enable_threads+set}" = set; then
4839 enableval=$enable_threads;
4840else
Reid Spencer65c5d752006-11-05 17:08:18 +00004841 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004842fi
4843
4844case "$enableval" in
4845 yes) ENABLE_THREADS=1
4846 ;;
4847 no) ENABLE_THREADS=0
4848 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004849 default) ENABLE_THREADS=1
4850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4852echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
4854esac
4855
4856cat >>confdefs.h <<_ACEOF
4857#define ENABLE_THREADS $ENABLE_THREADS
4858_ACEOF
4859
4860
Reid Spencer89b0d992006-12-16 22:07:52 +00004861# Check whether --enable-pic was given.
4862if test "${enable_pic+set}" = set; then
4863 enableval=$enable_pic;
4864else
4865 enableval=default
4866fi
4867
4868case "$enableval" in
4869 yes) ENABLE_PIC=1
4870 ;;
4871 no) ENABLE_PIC=0
4872 ;;
4873 default) ENABLE_PIC=0
4874 ;;
4875 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4876echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4877 { (exit 1); exit 1; }; } ;;
4878esac
4879
4880cat >>confdefs.h <<_ACEOF
4881#define ENABLE_PIC $ENABLE_PIC
4882_ACEOF
4883
4884
Reid Spencera773bd52006-08-04 18:18:08 +00004885TARGETS_TO_BUILD=""
4886# Check whether --enable-targets was given.
4887if test "${enable_targets+set}" = set; then
4888 enableval=$enable_targets;
4889else
4890 enableval=all
4891fi
4892
4893case "$enableval" in
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004894 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004895 host-only)
4896 case "$llvm_cv_target_arch" in
4897 x86) TARGETS_TO_BUILD="X86" ;;
4898 x86_64) TARGETS_TO_BUILD="X86" ;;
4899 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4900 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4901 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4902 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004903 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004904 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004905 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004906 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004907 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4908echo "$as_me: error: Can not set target to build" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4910 esac
4911 ;;
4912 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4913 case "$a_target" in
4914 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4915 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4916 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4917 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4918 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4919 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004920 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004921 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004922 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004923 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004924 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004926 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004927 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4928echo "$as_me: error: Unrecognized target $a_target" >&2;}
4929 { (exit 1); exit 1; }; } ;;
4930 esac
4931 done
4932 ;;
4933esac
Reid Spencera773bd52006-08-04 18:18:08 +00004934TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4935
4936
Reid Spencer65c5d752006-11-05 17:08:18 +00004937# Check whether --enable-cbe-printf-a was given.
4938if test "${enable_cbe_printf_a+set}" = set; then
4939 enableval=$enable_cbe_printf_a;
4940else
4941 enableval=default
4942fi
4943
4944case "$enableval" in
4945 yes) ENABLE_CBE_PRINTF_A=1
4946 ;;
4947 no) ENABLE_CBE_PRINTF_A=0
4948 ;;
4949 default) ENABLE_CBE_PRINTF_A=1
4950 ;;
4951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4952echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4953 { (exit 1); exit 1; }; } ;;
4954esac
4955
4956cat >>confdefs.h <<_ACEOF
4957#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4958_ACEOF
4959
4960
Reid Spencera773bd52006-08-04 18:18:08 +00004961
4962# Check whether --with-llvmgccdir was given.
4963if test "${with_llvmgccdir+set}" = set; then
4964 withval=$with_llvmgccdir;
4965else
4966 withval=default
4967fi
4968
4969case "$withval" in
4970 default) WITH_LLVMGCCDIR=default ;;
4971 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4972 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4973echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4974 { (exit 1); exit 1; }; } ;;
4975esac
4976
4977
Devang Patel5d28b882007-12-04 22:54:47 +00004978# Check whether --with-llvmgcc was given.
4979if test "${with_llvmgcc+set}" = set; then
4980 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4981 WITH_LLVMGCCDIR=""
4982fi
4983
4984
4985
4986# Check whether --with-llvmgxx was given.
4987if test "${with_llvmgxx+set}" = set; then
4988 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4989 WITH_LLVMGCCDIR=""
4990fi
4991
4992
4993if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4994 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4995echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4996 { (exit 1); exit 1; }; };
4997fi
4998
4999if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5000 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5001echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5002 { (exit 1); exit 1; }; };
5003fi
5004
5005
Reid Spencera773bd52006-08-04 18:18:08 +00005006# Check whether --with-extra-options was given.
5007if test "${with_extra_options+set}" = set; then
5008 withval=$with_extra_options;
5009else
5010 withval=default
5011fi
5012
5013case "$withval" in
5014 default) EXTRA_OPTIONS= ;;
5015 *) EXTRA_OPTIONS=$withval ;;
5016esac
5017EXTRA_OPTIONS=$EXTRA_OPTIONS
5018
5019
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005020# Check whether --enable-bindings was given.
5021if test "${enable_bindings+set}" = set; then
5022 enableval=$enable_bindings;
5023else
5024 enableval=default
5025fi
5026
5027BINDINGS_TO_BUILD=""
5028case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005029 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005030 all ) BINDINGS_TO_BUILD="ocaml" ;;
5031 none | no) BINDINGS_TO_BUILD="" ;;
5032 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5033 case "$a_binding" in
5034 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5035 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5036echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5038 esac
5039 done
5040 ;;
5041esac
5042
Reid Spencera773bd52006-08-04 18:18:08 +00005043
Gordon Henriksenf0915682007-10-02 16:42:22 +00005044# Check whether --with-ocaml-libdir was given.
5045if test "${with_ocaml_libdir+set}" = set; then
5046 withval=$with_ocaml_libdir;
5047else
5048 withval=auto
5049fi
5050
5051case "$withval" in
5052 auto) with_ocaml_libdir="$withval" ;;
5053 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5054 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5055echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5056 { (exit 1); exit 1; }; } ;;
5057esac
5058
5059
Reid Spencera773bd52006-08-04 18:18:08 +00005060ac_ext=c
5061ac_cpp='$CPP $CPPFLAGS'
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067# On Suns, sometimes $CPP names a directory.
5068if test -n "$CPP" && test -d "$CPP"; then
5069 CPP=
5070fi
5071if test -z "$CPP"; then
5072 if test "${ac_cv_prog_CPP+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 # Double quotes because CPP needs to be expanded
5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077 do
5078 ac_preproc_ok=false
5079for ac_c_preproc_warn_flag in '' yes
5080do
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093#ifdef __STDC__
5094# include <limits.h>
5095#else
5096# include <assert.h>
5097#endif
5098 Syntax error
5099_ACEOF
5100if { (ac_try="$ac_cpp conftest.$ac_ext"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_c_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5116 else
5117 ac_cpp_err=
5118 fi
5119else
5120 ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005123 :
5124else
5125 echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 # Broken: fails on valid input.
5129continue
5130fi
5131
5132rm -f conftest.err conftest.$ac_ext
5133
5134 # OK, works on sane cases. Now check whether nonexistent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142#include <ac_nonexistent.h>
5143_ACEOF
5144if { (ac_try="$ac_cpp conftest.$ac_ext"
5145case "(($ac_try" in
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5148esac
5149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005156 (exit $ac_status); } >/dev/null; then
5157 if test -s conftest.err; then
5158 ac_cpp_err=$ac_c_preproc_warn_flag
5159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5160 else
5161 ac_cpp_err=
5162 fi
5163else
5164 ac_cpp_err=yes
5165fi
5166if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005167 # Broken: success on invalid input.
5168continue
5169else
5170 echo "$as_me: failed program was:" >&5
5171sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 # Passes both tests.
5174ac_preproc_ok=:
5175break
5176fi
5177
5178rm -f conftest.err conftest.$ac_ext
5179
5180done
5181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5182rm -f conftest.err conftest.$ac_ext
5183if $ac_preproc_ok; then
5184 break
5185fi
5186
5187 done
5188 ac_cv_prog_CPP=$CPP
5189
5190fi
5191 CPP=$ac_cv_prog_CPP
5192else
5193 ac_cv_prog_CPP=$CPP
5194fi
5195{ echo "$as_me:$LINENO: result: $CPP" >&5
5196echo "${ECHO_T}$CPP" >&6; }
5197ac_preproc_ok=false
5198for ac_c_preproc_warn_flag in '' yes
5199do
5200 # Use a header file that comes with gcc, so configuring glibc
5201 # with a fresh cross-compiler works.
5202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203 # <limits.h> exists even on freestanding compilers.
5204 # On the NeXT, cc -E runs the code through the compiler's parser,
5205 # not just through cpp. "Syntax error" is here to catch this case.
5206 cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h. */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h. */
5212#ifdef __STDC__
5213# include <limits.h>
5214#else
5215# include <assert.h>
5216#endif
5217 Syntax error
5218_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext"
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005231 (exit $ac_status); } >/dev/null; then
5232 if test -s conftest.err; then
5233 ac_cpp_err=$ac_c_preproc_warn_flag
5234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235 else
5236 ac_cpp_err=
5237 fi
5238else
5239 ac_cpp_err=yes
5240fi
5241if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005242 :
5243else
5244 echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 # Broken: fails on valid input.
5248continue
5249fi
5250
5251rm -f conftest.err conftest.$ac_ext
5252
5253 # OK, works on sane cases. Now check whether nonexistent headers
5254 # can be detected and how.
5255 cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
5261#include <ac_nonexistent.h>
5262_ACEOF
5263if { (ac_try="$ac_cpp conftest.$ac_ext"
5264case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5267esac
5268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 else
5280 ac_cpp_err=
5281 fi
5282else
5283 ac_cpp_err=yes
5284fi
5285if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005286 # Broken: success on invalid input.
5287continue
5288else
5289 echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 # Passes both tests.
5293ac_preproc_ok=:
5294break
5295fi
5296
5297rm -f conftest.err conftest.$ac_ext
5298
5299done
5300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301rm -f conftest.err conftest.$ac_ext
5302if $ac_preproc_ok; then
5303 :
5304else
5305 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5306See \`config.log' for more details." >&5
5307echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5308See \`config.log' for more details." >&2;}
5309 { (exit 1); exit 1; }; }
5310fi
5311
5312ac_ext=c
5313ac_cpp='$CPP $CPPFLAGS'
5314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317
5318ac_ext=c
5319ac_cpp='$CPP $CPPFLAGS'
5320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323if test -n "$ac_tool_prefix"; then
5324 for ac_prog in gcc
5325 do
5326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5327set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5330if test "${ac_cv_prog_CC+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 if test -n "$CC"; then
5334 ac_cv_prog_CC="$CC" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005342 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 +00005343 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5346 fi
5347done
5348done
5349IFS=$as_save_IFS
5350
5351fi
5352fi
5353CC=$ac_cv_prog_CC
5354if test -n "$CC"; then
5355 { echo "$as_me:$LINENO: result: $CC" >&5
5356echo "${ECHO_T}$CC" >&6; }
5357else
5358 { echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6; }
5360fi
5361
5362
5363 test -n "$CC" && break
5364 done
5365fi
5366if test -z "$CC"; then
5367 ac_ct_CC=$CC
5368 for ac_prog in gcc
5369do
5370 # Extract the first word of "$ac_prog", so it can be a program name with args.
5371set dummy $ac_prog; ac_word=$2
5372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5374if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377 if test -n "$ac_ct_CC"; then
5378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005386 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 +00005387 ac_cv_prog_ac_ct_CC="$ac_prog"
5388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5390 fi
5391done
5392done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397ac_ct_CC=$ac_cv_prog_ac_ct_CC
5398if test -n "$ac_ct_CC"; then
5399 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5400echo "${ECHO_T}$ac_ct_CC" >&6; }
5401else
5402 { echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6; }
5404fi
5405
5406
5407 test -n "$ac_ct_CC" && break
5408done
5409
5410 if test "x$ac_ct_CC" = x; then
5411 CC=""
5412 else
5413 case $cross_compiling:$ac_tool_warned in
5414yes:)
5415{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5416whose name does not start with the host triplet. If you think this
5417configuration is useful to you, please write to autoconf@gnu.org." >&5
5418echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5419whose name does not start with the host triplet. If you think this
5420configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5421ac_tool_warned=yes ;;
5422esac
5423 CC=$ac_ct_CC
5424 fi
5425fi
5426
5427
5428test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5429See \`config.log' for more details." >&5
5430echo "$as_me: error: no acceptable C compiler found in \$PATH
5431See \`config.log' for more details." >&2;}
5432 { (exit 1); exit 1; }; }
5433
5434# Provide some information about the compiler.
5435echo "$as_me:$LINENO: checking for C compiler version" >&5
5436ac_compiler=`set X $ac_compile; echo $2`
5437{ (ac_try="$ac_compiler --version >&5"
5438case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441esac
5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_compiler --version >&5") 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }
5447{ (ac_try="$ac_compiler -v >&5"
5448case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451esac
5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compiler -v >&5") 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }
5457{ (ac_try="$ac_compiler -V >&5"
5458case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461esac
5462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_compiler -V >&5") 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }
5467
5468{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5469echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5470if test "${ac_cv_c_compiler_gnu+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479
5480int
5481main ()
5482{
5483#ifndef __GNUC__
5484 choke me
5485#endif
5486
5487 ;
5488 return 0;
5489}
5490_ACEOF
5491rm -f conftest.$ac_objext
5492if { (ac_try="$ac_compile"
5493case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005504 (exit $ac_status); } &&
5505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5506 { (case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_try") 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_try") 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005525 ac_compiler_gnu=yes
5526else
5527 echo "$as_me: failed program was:" >&5
5528sed 's/^/| /' conftest.$ac_ext >&5
5529
5530 ac_compiler_gnu=no
5531fi
5532
5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534ac_cv_c_compiler_gnu=$ac_compiler_gnu
5535
5536fi
5537{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5538echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5539GCC=`test $ac_compiler_gnu = yes && echo yes`
5540ac_test_CFLAGS=${CFLAGS+set}
5541ac_save_CFLAGS=$CFLAGS
5542{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5543echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5544if test "${ac_cv_prog_cc_g+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 ac_save_c_werror_flag=$ac_c_werror_flag
5548 ac_c_werror_flag=yes
5549 ac_cv_prog_cc_g=no
5550 CFLAGS="-g"
5551 cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h. */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h. */
5557
5558int
5559main ()
5560{
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566rm -f conftest.$ac_objext
5567if { (ac_try="$ac_compile"
5568case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571esac
5572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5581 { (case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005600 ac_cv_prog_cc_g=yes
5601else
5602 echo "$as_me: failed program was:" >&5
5603sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 CFLAGS=""
5606 cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612
5613int
5614main ()
5615{
5616
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext
5622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639esac
5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005655 :
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_c_werror_flag=$ac_save_c_werror_flag
5661 CFLAGS="-g"
5662 cat >conftest.$ac_ext <<_ACEOF
5663/* confdefs.h. */
5664_ACEOF
5665cat confdefs.h >>conftest.$ac_ext
5666cat >>conftest.$ac_ext <<_ACEOF
5667/* end confdefs.h. */
5668
5669int
5670main ()
5671{
5672
5673 ;
5674 return 0;
5675}
5676_ACEOF
5677rm -f conftest.$ac_objext
5678if { (ac_try="$ac_compile"
5679case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682esac
5683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005690 (exit $ac_status); } &&
5691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5692 { (case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_try") 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_try") 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005711 ac_cv_prog_cc_g=yes
5712else
5713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716
5717fi
5718
5719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720fi
5721
5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723fi
5724
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 ac_c_werror_flag=$ac_save_c_werror_flag
5727fi
5728{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5729echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5730if test "$ac_test_CFLAGS" = set; then
5731 CFLAGS=$ac_save_CFLAGS
5732elif test $ac_cv_prog_cc_g = yes; then
5733 if test "$GCC" = yes; then
5734 CFLAGS="-g -O2"
5735 else
5736 CFLAGS="-g"
5737 fi
5738else
5739 if test "$GCC" = yes; then
5740 CFLAGS="-O2"
5741 else
5742 CFLAGS=
5743 fi
5744fi
5745{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5746echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5747if test "${ac_cv_prog_cc_c89+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749else
5750 ac_cv_prog_cc_c89=no
5751ac_save_CC=$CC
5752cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h. */
5758#include <stdarg.h>
5759#include <stdio.h>
5760#include <sys/types.h>
5761#include <sys/stat.h>
5762/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5763struct buf { int x; };
5764FILE * (*rcsopen) (struct buf *, struct stat *, int);
5765static char *e (p, i)
5766 char **p;
5767 int i;
5768{
5769 return p[i];
5770}
5771static char *f (char * (*g) (char **, int), char **p, ...)
5772{
5773 char *s;
5774 va_list v;
5775 va_start (v,p);
5776 s = g (p, va_arg (v,int));
5777 va_end (v);
5778 return s;
5779}
5780
5781/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5782 function prototypes and stuff, but not '\xHH' hex character constants.
5783 These don't provoke an error unfortunately, instead are silently treated
5784 as 'x'. The following induces an error, until -std is added to get
5785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5786 array size at least. It's necessary to write '\x00'==0 to get something
5787 that's true only with -std. */
5788int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5789
5790/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5791 inside strings and character constants. */
5792#define FOO(x) 'x'
5793int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5794
5795int test (int i, double x);
5796struct s1 {int (*f) (int a);};
5797struct s2 {int (*f) (double a);};
5798int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5799int argc;
5800char **argv;
5801int
5802main ()
5803{
5804return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5805 ;
5806 return 0;
5807}
5808_ACEOF
5809for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5811do
5812 CC="$ac_save_CC $ac_arg"
5813 rm -f conftest.$ac_objext
5814if { (ac_try="$ac_compile"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828 { (case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
5832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_try") 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005847 ac_cv_prog_cc_c89=$ac_arg
5848else
5849 echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852
5853fi
5854
5855rm -f core conftest.err conftest.$ac_objext
5856 test "x$ac_cv_prog_cc_c89" != "xno" && break
5857done
5858rm -f conftest.$ac_ext
5859CC=$ac_save_CC
5860
5861fi
5862# AC_CACHE_VAL
5863case "x$ac_cv_prog_cc_c89" in
5864 x)
5865 { echo "$as_me:$LINENO: result: none needed" >&5
5866echo "${ECHO_T}none needed" >&6; } ;;
5867 xno)
5868 { echo "$as_me:$LINENO: result: unsupported" >&5
5869echo "${ECHO_T}unsupported" >&6; } ;;
5870 *)
5871 CC="$CC $ac_cv_prog_cc_c89"
5872 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5873echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5874esac
5875
5876
5877ac_ext=c
5878ac_cpp='$CPP $CPPFLAGS'
5879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882
5883ac_ext=cpp
5884ac_cpp='$CXXCPP $CPPFLAGS'
5885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5888if test -z "$CXX"; then
5889 if test -n "$CCC"; then
5890 CXX=$CCC
5891 else
5892 if test -n "$ac_tool_prefix"; then
5893 for ac_prog in g++
5894 do
5895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899if test "${ac_cv_prog_CXX+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902 if test -n "$CXX"; then
5903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005911 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 +00005912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922CXX=$ac_cv_prog_CXX
5923if test -n "$CXX"; then
5924 { echo "$as_me:$LINENO: result: $CXX" >&5
5925echo "${ECHO_T}$CXX" >&6; }
5926else
5927 { echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6; }
5929fi
5930
5931
5932 test -n "$CXX" && break
5933 done
5934fi
5935if test -z "$CXX"; then
5936 ac_ct_CXX=$CXX
5937 for ac_prog in g++
5938do
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940set dummy $ac_prog; ac_word=$2
5941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946 if test -n "$ac_ct_CXX"; then
5947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005955 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 +00005956 ac_cv_prog_ac_ct_CXX="$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960done
5961done
5962IFS=$as_save_IFS
5963
5964fi
5965fi
5966ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5967if test -n "$ac_ct_CXX"; then
5968 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5969echo "${ECHO_T}$ac_ct_CXX" >&6; }
5970else
5971 { echo "$as_me:$LINENO: result: no" >&5
5972echo "${ECHO_T}no" >&6; }
5973fi
5974
5975
5976 test -n "$ac_ct_CXX" && break
5977done
5978
5979 if test "x$ac_ct_CXX" = x; then
5980 CXX="g++"
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983yes:)
5984{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985whose name does not start with the host triplet. If you think this
5986configuration is useful to you, please write to autoconf@gnu.org." >&5
5987echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988whose name does not start with the host triplet. If you think this
5989configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990ac_tool_warned=yes ;;
5991esac
5992 CXX=$ac_ct_CXX
5993 fi
5994fi
5995
5996 fi
5997fi
5998# Provide some information about the compiler.
5999echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6000ac_compiler=`set X $ac_compile; echo $2`
6001{ (ac_try="$ac_compiler --version >&5"
6002case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compiler --version >&5") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011{ (ac_try="$ac_compiler -v >&5"
6012case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compiler -v >&5") 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }
6021{ (ac_try="$ac_compiler -V >&5"
6022case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025esac
6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compiler -V >&5") 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }
6031
6032{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6033echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6034if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037 cat >conftest.$ac_ext <<_ACEOF
6038/* confdefs.h. */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h. */
6043
6044int
6045main ()
6046{
6047#ifndef __GNUC__
6048 choke me
6049#endif
6050
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (ac_try="$ac_compile"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006068 (exit $ac_status); } &&
6069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_try") 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006089 ac_compiler_gnu=yes
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ac_compiler_gnu=no
6095fi
6096
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6099
6100fi
6101{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6102echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6103GXX=`test $ac_compiler_gnu = yes && echo yes`
6104ac_test_CXXFLAGS=${CXXFLAGS+set}
6105ac_save_CXXFLAGS=$CXXFLAGS
6106{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6107echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6108if test "${ac_cv_prog_cxx_g+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
6111 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6112 ac_cxx_werror_flag=yes
6113 ac_cv_prog_cxx_g=no
6114 CXXFLAGS="-g"
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121
6122int
6123main ()
6124{
6125
6126 ;
6127 return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext
6131if { (ac_try="$ac_compile"
6132case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148esac
6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006164 ac_cv_prog_cxx_g=yes
6165else
6166 echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
6168
6169 CXXFLAGS=""
6170 cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
6176
6177int
6178main ()
6179{
6180
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185rm -f conftest.$ac_objext
6186if { (ac_try="$ac_compile"
6187case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006198 (exit $ac_status); } &&
6199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6200 { (case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203esac
6204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_try") 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest.$ac_objext'
6210 { (case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_try") 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006219 :
6220else
6221 echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6225 CXXFLAGS="-g"
6226 cat >conftest.$ac_ext <<_ACEOF
6227/* confdefs.h. */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h. */
6232
6233int
6234main ()
6235{
6236
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext
6242if { (ac_try="$ac_compile"
6243case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006254 (exit $ac_status); } &&
6255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest.$ac_objext'
6266 { (case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_try") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006275 ac_cv_prog_cxx_g=yes
6276else
6277 echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280
6281fi
6282
6283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284fi
6285
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287fi
6288
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6291fi
6292{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6293echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6294if test "$ac_test_CXXFLAGS" = set; then
6295 CXXFLAGS=$ac_save_CXXFLAGS
6296elif test $ac_cv_prog_cxx_g = yes; then
6297 if test "$GXX" = yes; then
6298 CXXFLAGS="-g -O2"
6299 else
6300 CXXFLAGS="-g"
6301 fi
6302else
6303 if test "$GXX" = yes; then
6304 CXXFLAGS="-O2"
6305 else
6306 CXXFLAGS=
6307 fi
6308fi
6309ac_ext=c
6310ac_cpp='$CPP $CPPFLAGS'
6311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315{ echo "$as_me:$LINENO: checking " >&5
6316echo $ECHO_N "checking ... $ECHO_C" >&6; }
6317if test "${ac_cv_has_flex+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319else
6320 for ac_prog in flex lex
6321do
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323set dummy $ac_prog; ac_word=$2
6324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326if test "${ac_cv_prog_LEX+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 if test -n "$LEX"; then
6330 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006338 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 +00006339 ac_cv_prog_LEX="$ac_prog"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349LEX=$ac_cv_prog_LEX
6350if test -n "$LEX"; then
6351 { echo "$as_me:$LINENO: result: $LEX" >&5
6352echo "${ECHO_T}$LEX" >&6; }
6353else
6354 { echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6; }
6356fi
6357
6358
6359 test -n "$LEX" && break
6360done
6361test -n "$LEX" || LEX=":"
6362
Tanya Lattnercf067672008-01-17 05:57:22 +00006363if test -z "$LEXLIB"
6364then
6365 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6366echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6367if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370 ac_check_lib_save_LIBS=$LIBS
6371LIBS="-lfl $LIBS"
6372cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h. */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h. */
6378
6379/* Override any GCC internal prototype to avoid an error.
6380 Use char because int might match the return type of a GCC
6381 builtin and then its argument prototype would still apply. */
6382#ifdef __cplusplus
6383extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006384#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006385char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006386int
Tanya Lattnercf067672008-01-17 05:57:22 +00006387main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006388{
Tanya Lattnercf067672008-01-17 05:57:22 +00006389return yywrap ();
6390 ;
6391 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006392}
Reid Spencera773bd52006-08-04 18:18:08 +00006393_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006394rm -f conftest.$ac_objext conftest$ac_exeext
6395if { (ac_try="$ac_link"
6396case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_link") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409 { (case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412esac
6413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_try") 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; } &&
6418 { ac_try='test -s conftest$ac_exeext'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_lib_fl_yywrap=yes
6429else
6430 echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_cv_lib_fl_yywrap=no
6434fi
6435
6436rm -f core conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438LIBS=$ac_check_lib_save_LIBS
6439fi
6440{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6441echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6442if test $ac_cv_lib_fl_yywrap = yes; then
6443 LEXLIB="-lfl"
6444else
6445 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6446echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6447if test "${ac_cv_lib_l_yywrap+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450 ac_check_lib_save_LIBS=$LIBS
6451LIBS="-ll $LIBS"
6452cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h. */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h. */
6458
6459/* Override any GCC internal prototype to avoid an error.
6460 Use char because int might match the return type of a GCC
6461 builtin and then its argument prototype would still apply. */
6462#ifdef __cplusplus
6463extern "C"
6464#endif
6465char yywrap ();
6466int
6467main ()
6468{
6469return yywrap ();
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474rm -f conftest.$ac_objext conftest$ac_exeext
6475if { (ac_try="$ac_link"
6476case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479esac
6480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_link") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (case "(($ac_try" in
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6492esac
6493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494 (eval "$ac_try") 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502esac
6503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_try") 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_cv_lib_l_yywrap=yes
6509else
6510 echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ac_cv_lib_l_yywrap=no
6514fi
6515
6516rm -f core conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6518LIBS=$ac_check_lib_save_LIBS
6519fi
6520{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6521echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6522if test $ac_cv_lib_l_yywrap = yes; then
6523 LEXLIB="-ll"
6524fi
6525
6526fi
6527
6528fi
6529
6530if test "x$LEX" != "x:"; then
6531 { echo "$as_me:$LINENO: checking lex output file root" >&5
6532echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6533if test "${ac_cv_prog_lex_root+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536 # The minimal lex program is just a single line: %%. But some broken lexes
6537# (Solaris, I think it was) want two %% lines, so accommodate them.
6538cat >conftest.l <<_ACEOF
6539%%
6540%%
6541_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006542{ (ac_try="$LEX conftest.l"
6543case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546esac
6547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$LEX conftest.l") 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }
6552if test -f lex.yy.c; then
6553 ac_cv_prog_lex_root=lex.yy
6554elif test -f lexyy.c; then
6555 ac_cv_prog_lex_root=lexyy
6556else
6557 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6558echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6559 { (exit 1); exit 1; }; }
6560fi
6561fi
6562{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6563echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006564rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006565LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6566
Scott Michel96dcd2b2007-12-05 21:24:02 +00006567{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6568echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6569if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006573# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006574# not all implementations provide the %pointer and %array declarations.
6575ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006576echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006577ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006578LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006579cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006580`cat $LEX_OUTPUT_ROOT.c`
6581_ACEOF
6582rm -f conftest.$ac_objext conftest$ac_exeext
6583if { (ac_try="$ac_link"
6584case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587esac
6588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006589 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006590 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6597 { (case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600esac
6601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_try") 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610esac
6611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_try") 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006616 ac_cv_prog_lex_yytext_pointer=yes
6617else
6618 echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621
6622fi
6623
Tanya Lattnercf067672008-01-17 05:57:22 +00006624rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006625 conftest$ac_exeext conftest.$ac_ext
6626LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006627rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006628
6629fi
6630{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6631echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6632if test $ac_cv_prog_lex_yytext_pointer = yes; then
6633
6634cat >>confdefs.h <<\_ACEOF
6635#define YYTEXT_POINTER 1
6636_ACEOF
6637
6638fi
6639
6640fi
6641
6642fi
6643{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6644echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6645if test "$LEX" != "flex"; then
6646 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6647echo "$as_me: error: flex not found but required" >&2;}
6648 { (exit 1); exit 1; }; }
6649else
6650 FLEX=flex
6651
6652fi
6653
6654{ echo "$as_me:$LINENO: checking " >&5
6655echo $ECHO_N "checking ... $ECHO_C" >&6; }
6656if test "${llvm_cv_has_bison+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659 for ac_prog in 'bison -y' byacc
6660do
6661 # Extract the first word of "$ac_prog", so it can be a program name with args.
6662set dummy $ac_prog; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_prog_YACC+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 if test -n "$YACC"; then
6669 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006677 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 +00006678 ac_cv_prog_YACC="$ac_prog"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682done
6683done
6684IFS=$as_save_IFS
6685
6686fi
6687fi
6688YACC=$ac_cv_prog_YACC
6689if test -n "$YACC"; then
6690 { echo "$as_me:$LINENO: result: $YACC" >&5
6691echo "${ECHO_T}$YACC" >&6; }
6692else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6; }
6695fi
6696
6697
6698 test -n "$YACC" && break
6699done
6700test -n "$YACC" || YACC="yacc"
6701
6702fi
6703{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6704echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6705if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006706
6707 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6708echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006709else
6710 BISON=bison
6711
6712fi
6713
6714{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6715echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6716if test "${lt_cv_path_NM+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718else
6719 if test -n "$NM"; then
6720 # Let the user override the test.
6721 lt_cv_path_NM="$NM"
6722else
6723 lt_nm_to_check="${ac_tool_prefix}nm"
6724 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6725 lt_nm_to_check="$lt_nm_to_check nm"
6726 fi
6727 for lt_tmp_nm in $lt_nm_to_check; do
6728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6729 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6730 IFS="$lt_save_ifs"
6731 test -z "$ac_dir" && ac_dir=.
6732 tmp_nm="$ac_dir/$lt_tmp_nm"
6733 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6734 # Check to see if the nm accepts a BSD-compat flag.
6735 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6736 # nm: unknown option "B" ignored
6737 # Tru64's nm complains that /dev/null is an invalid object file
6738 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6739 */dev/null* | *'Invalid file or object type'*)
6740 lt_cv_path_NM="$tmp_nm -B"
6741 break
6742 ;;
6743 *)
6744 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6745 */dev/null*)
6746 lt_cv_path_NM="$tmp_nm -p"
6747 break
6748 ;;
6749 *)
6750 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6751 continue # so that we can try to find one that supports BSD flags
6752 ;;
6753 esac
6754 ;;
6755 esac
6756 fi
6757 done
6758 IFS="$lt_save_ifs"
6759 done
6760 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6761fi
6762fi
6763{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6764echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6765NM="$lt_cv_path_NM"
6766
6767
6768
6769{ echo "$as_me:$LINENO: checking for GNU make" >&5
6770echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6771if test "${llvm_cv_gnu_make_command+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 llvm_cv_gnu_make_command=''
6775 for a in "$MAKE" make gmake gnumake ; do
6776 if test -z "$a" ; then continue ; fi ;
6777 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6778 then
6779 llvm_cv_gnu_make_command=$a ;
6780 break;
6781 fi
6782 done
6783fi
6784{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6785echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6786 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6787 ifGNUmake='' ;
6788 else
6789 ifGNUmake='#' ;
6790 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6791echo "${ECHO_T}\"Not found\"" >&6; };
6792 fi
6793
6794
6795{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6796echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6797LN_S=$as_ln_s
6798if test "$LN_S" = "ln -s"; then
6799 { echo "$as_me:$LINENO: result: yes" >&5
6800echo "${ECHO_T}yes" >&6; }
6801else
6802 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6803echo "${ECHO_T}no, using $LN_S" >&6; }
6804fi
6805
6806# Extract the first word of "cmp", so it can be a program name with args.
6807set dummy cmp; ac_word=$2
6808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_CMP+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 case $CMP in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006824 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 +00006825 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829done
6830done
6831IFS=$as_save_IFS
6832
6833 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6834 ;;
6835esac
6836fi
6837CMP=$ac_cv_path_CMP
6838if test -n "$CMP"; then
6839 { echo "$as_me:$LINENO: result: $CMP" >&5
6840echo "${ECHO_T}$CMP" >&6; }
6841else
6842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
6844fi
6845
6846
6847# Extract the first word of "cp", so it can be a program name with args.
6848set dummy cp; ac_word=$2
6849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_CP+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854 case $CP in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006865 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 +00006866 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6875 ;;
6876esac
6877fi
6878CP=$ac_cv_path_CP
6879if test -n "$CP"; then
6880 { echo "$as_me:$LINENO: result: $CP" >&5
6881echo "${ECHO_T}$CP" >&6; }
6882else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
6885fi
6886
6887
6888# Extract the first word of "date", so it can be a program name with args.
6889set dummy date; ac_word=$2
6890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_path_DATE+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894else
6895 case $DATE in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006906 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 +00006907 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911done
6912done
6913IFS=$as_save_IFS
6914
6915 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6916 ;;
6917esac
6918fi
6919DATE=$ac_cv_path_DATE
6920if test -n "$DATE"; then
6921 { echo "$as_me:$LINENO: result: $DATE" >&5
6922echo "${ECHO_T}$DATE" >&6; }
6923else
6924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
6926fi
6927
6928
6929# Extract the first word of "find", so it can be a program name with args.
6930set dummy find; ac_word=$2
6931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_path_FIND+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936 case $FIND in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006947 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 +00006948 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953done
6954IFS=$as_save_IFS
6955
6956 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6957 ;;
6958esac
6959fi
6960FIND=$ac_cv_path_FIND
6961if test -n "$FIND"; then
6962 { echo "$as_me:$LINENO: result: $FIND" >&5
6963echo "${ECHO_T}$FIND" >&6; }
6964else
6965 { echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6; }
6967fi
6968
6969
6970# Extract the first word of "grep", so it can be a program name with args.
6971set dummy grep; ac_word=$2
6972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_path_GREP+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977 case $GREP in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6980 ;;
6981 *)
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006988 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 +00006989 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993done
6994done
6995IFS=$as_save_IFS
6996
6997 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6998 ;;
6999esac
7000fi
7001GREP=$ac_cv_path_GREP
7002if test -n "$GREP"; then
7003 { echo "$as_me:$LINENO: result: $GREP" >&5
7004echo "${ECHO_T}$GREP" >&6; }
7005else
7006 { echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6; }
7008fi
7009
7010
7011# Extract the first word of "mkdir", so it can be a program name with args.
7012set dummy mkdir; ac_word=$2
7013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015if test "${ac_cv_path_MKDIR+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 case $MKDIR in
7019 [\\/]* | ?:[\\/]*)
7020 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7021 ;;
7022 *)
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007029 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 +00007030 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035done
7036IFS=$as_save_IFS
7037
7038 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7039 ;;
7040esac
7041fi
7042MKDIR=$ac_cv_path_MKDIR
7043if test -n "$MKDIR"; then
7044 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7045echo "${ECHO_T}$MKDIR" >&6; }
7046else
7047 { echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6; }
7049fi
7050
7051
7052# Extract the first word of "mv", so it can be a program name with args.
7053set dummy mv; ac_word=$2
7054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056if test "${ac_cv_path_MV+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059 case $MV in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7062 ;;
7063 *)
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007070 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 +00007071 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075done
7076done
7077IFS=$as_save_IFS
7078
7079 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7080 ;;
7081esac
7082fi
7083MV=$ac_cv_path_MV
7084if test -n "$MV"; then
7085 { echo "$as_me:$LINENO: result: $MV" >&5
7086echo "${ECHO_T}$MV" >&6; }
7087else
7088 { echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6; }
7090fi
7091
7092
7093if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098if test "${ac_cv_prog_RANLIB+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007110 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 +00007111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115done
7116done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121RANLIB=$ac_cv_prog_RANLIB
7122if test -n "$RANLIB"; then
7123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7124echo "${ECHO_T}$RANLIB" >&6; }
7125else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
7128fi
7129
7130
7131fi
7132if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135set dummy ranlib; ac_word=$2
7136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140else
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007150 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 +00007151 ac_cv_prog_ac_ct_RANLIB="ranlib"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155done
7156done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162if test -n "$ac_ct_RANLIB"; then
7163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7164echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170 if test "x$ac_ct_RANLIB" = x; then
7171 RANLIB=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7176whose name does not start with the host triplet. If you think this
7177configuration is useful to you, please write to autoconf@gnu.org." >&5
7178echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7179whose name does not start with the host triplet. If you think this
7180configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7181ac_tool_warned=yes ;;
7182esac
7183 RANLIB=$ac_ct_RANLIB
7184 fi
7185else
7186 RANLIB="$ac_cv_prog_RANLIB"
7187fi
7188
7189# Extract the first word of "rm", so it can be a program name with args.
7190set dummy rm; ac_word=$2
7191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193if test "${ac_cv_path_RM+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 case $RM in
7197 [\\/]* | ?:[\\/]*)
7198 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7199 ;;
7200 *)
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007207 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 +00007208 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214IFS=$as_save_IFS
7215
7216 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7217 ;;
7218esac
7219fi
7220RM=$ac_cv_path_RM
7221if test -n "$RM"; then
7222 { echo "$as_me:$LINENO: result: $RM" >&5
7223echo "${ECHO_T}$RM" >&6; }
7224else
7225 { echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6; }
7227fi
7228
7229
7230# Extract the first word of "sed", so it can be a program name with args.
7231set dummy sed; ac_word=$2
7232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234if test "${ac_cv_path_SED+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236else
7237 case $SED in
7238 [\\/]* | ?:[\\/]*)
7239 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7240 ;;
7241 *)
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007248 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 +00007249 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253done
7254done
7255IFS=$as_save_IFS
7256
7257 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7258 ;;
7259esac
7260fi
7261SED=$ac_cv_path_SED
7262if test -n "$SED"; then
7263 { echo "$as_me:$LINENO: result: $SED" >&5
7264echo "${ECHO_T}$SED" >&6; }
7265else
7266 { echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6; }
7268fi
7269
7270
7271# Extract the first word of "tar", so it can be a program name with args.
7272set dummy tar; ac_word=$2
7273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275if test "${ac_cv_path_TAR+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278 case $TAR in
7279 [\\/]* | ?:[\\/]*)
7280 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7281 ;;
7282 *)
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007289 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 +00007290 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294done
7295done
7296IFS=$as_save_IFS
7297
7298 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7299 ;;
7300esac
7301fi
7302TAR=$ac_cv_path_TAR
7303if test -n "$TAR"; then
7304 { echo "$as_me:$LINENO: result: $TAR" >&5
7305echo "${ECHO_T}$TAR" >&6; }
7306else
7307 { echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6; }
7309fi
7310
7311
7312# Extract the first word of "pwd", so it can be a program name with args.
7313set dummy pwd; ac_word=$2
7314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316if test "${ac_cv_path_BINPWD+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 case $BINPWD in
7320 [\\/]* | ?:[\\/]*)
7321 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7322 ;;
7323 *)
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007330 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 +00007331 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335done
7336done
7337IFS=$as_save_IFS
7338
7339 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7340 ;;
7341esac
7342fi
7343BINPWD=$ac_cv_path_BINPWD
7344if test -n "$BINPWD"; then
7345 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7346echo "${ECHO_T}$BINPWD" >&6; }
7347else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
7350fi
7351
7352
7353
7354# Extract the first word of "Graphviz", so it can be a program name with args.
7355set dummy Graphviz; ac_word=$2
7356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361 case $GRAPHVIZ in
7362 [\\/]* | ?:[\\/]*)
7363 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7364 ;;
7365 *)
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007372 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 +00007373 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377done
7378done
7379IFS=$as_save_IFS
7380
7381 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7382 ;;
7383esac
7384fi
7385GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7386if test -n "$GRAPHVIZ"; then
7387 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7388echo "${ECHO_T}$GRAPHVIZ" >&6; }
7389else
7390 { echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6; }
7392fi
7393
7394
7395if test "$GRAPHVIZ" != "echo Graphviz" ; then
7396
7397cat >>confdefs.h <<\_ACEOF
7398#define HAVE_GRAPHVIZ 1
7399_ACEOF
7400
Jeff Cohen28783c32007-01-12 18:22:38 +00007401 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007402 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7403 fi
7404
7405cat >>confdefs.h <<_ACEOF
7406#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7407_ACEOF
7408
7409fi
7410# Extract the first word of "dot", so it can be a program name with args.
7411set dummy dot; ac_word=$2
7412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414if test "${ac_cv_path_DOT+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416else
7417 case $DOT in
7418 [\\/]* | ?:[\\/]*)
7419 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7420 ;;
7421 *)
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007428 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 +00007429 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433done
7434done
7435IFS=$as_save_IFS
7436
7437 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7438 ;;
7439esac
7440fi
7441DOT=$ac_cv_path_DOT
7442if test -n "$DOT"; then
7443 { echo "$as_me:$LINENO: result: $DOT" >&5
7444echo "${ECHO_T}$DOT" >&6; }
7445else
7446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
7448fi
7449
7450
7451if test "$DOT" != "echo dot" ; then
7452
7453cat >>confdefs.h <<\_ACEOF
7454#define HAVE_DOT 1
7455_ACEOF
7456
Jeff Cohen28783c32007-01-12 18:22:38 +00007457 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007458 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459 fi
7460
7461cat >>confdefs.h <<_ACEOF
7462#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7463_ACEOF
7464
7465fi
7466for ac_prog in gv gsview32
7467do
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469set dummy $ac_prog; ac_word=$2
7470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472if test "${ac_cv_path_GV+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475 case $GV in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7478 ;;
7479 *)
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007486 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 +00007487 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493IFS=$as_save_IFS
7494
7495 ;;
7496esac
7497fi
7498GV=$ac_cv_path_GV
7499if test -n "$GV"; then
7500 { echo "$as_me:$LINENO: result: $GV" >&5
7501echo "${ECHO_T}$GV" >&6; }
7502else
7503 { echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6; }
7505fi
7506
7507
7508 test -n "$GV" && break
7509done
7510test -n "$GV" || GV="echo gv"
7511
7512if test "$GV" != "echo gv" ; then
7513
7514cat >>confdefs.h <<\_ACEOF
7515#define HAVE_GV 1
7516_ACEOF
7517
Jeff Cohen28783c32007-01-12 18:22:38 +00007518 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007519 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7520 fi
7521
7522cat >>confdefs.h <<_ACEOF
7523#define LLVM_PATH_GV "$GV${EXEEXT}"
7524_ACEOF
7525
7526fi
7527# Extract the first word of "dotty", so it can be a program name with args.
7528set dummy dotty; ac_word=$2
7529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_DOTTY+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534 case $DOTTY in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007545 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 +00007546 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550done
7551done
7552IFS=$as_save_IFS
7553
7554 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7555 ;;
7556esac
7557fi
7558DOTTY=$ac_cv_path_DOTTY
7559if test -n "$DOTTY"; then
7560 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7561echo "${ECHO_T}$DOTTY" >&6; }
7562else
7563 { echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6; }
7565fi
7566
7567
7568if test "$DOTTY" != "echo dotty" ; then
7569
7570cat >>confdefs.h <<\_ACEOF
7571#define HAVE_DOTTY 1
7572_ACEOF
7573
Jeff Cohen28783c32007-01-12 18:22:38 +00007574 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007575 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576 fi
7577
7578cat >>confdefs.h <<_ACEOF
7579#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7580_ACEOF
7581
7582fi
7583
7584
7585# Extract the first word of "perl", so it can be a program name with args.
7586set dummy perl; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_PERL+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 case $PERL in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007603 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 +00007604 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7613 ;;
7614esac
7615fi
7616PERL=$ac_cv_path_PERL
7617if test -n "$PERL"; then
7618 { echo "$as_me:$LINENO: result: $PERL" >&5
7619echo "${ECHO_T}$PERL" >&6; }
7620else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
7623fi
7624
7625
7626if test "$PERL" != "none"; then
7627 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7628echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7629 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7630 { echo "$as_me:$LINENO: result: yes" >&5
7631echo "${ECHO_T}yes" >&6; }
7632 else
7633 PERL=none
7634 { echo "$as_me:$LINENO: result: not found" >&5
7635echo "${ECHO_T}not found" >&6; }
7636 fi
7637fi
7638
7639
7640if test x"$PERL" = xnone; then
7641 HAVE_PERL=0
7642
Reid Spencer59807fa2007-05-17 18:11:03 +00007643 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7644echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7645 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007646else
7647 HAVE_PERL=1
7648
7649fi
7650
7651# Find a good install program. We prefer a C program (faster),
7652# so one script is as good as another. But avoid the broken or
7653# incompatible versions:
7654# SysV /etc/install, /usr/sbin/install
7655# SunOS /usr/etc/install
7656# IRIX /sbin/install
7657# AIX /bin/install
7658# AmigaOS /C/install, which installs bootblocks on floppy discs
7659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7662# OS/2's system install, which has a completely different semantic
7663# ./install, which can be erroneously created by make from ./install.sh.
7664{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7666if test -z "$INSTALL"; then
7667if test "${ac_cv_path_install+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 # Account for people who put trailing slashes in PATH elements.
7676case $as_dir/ in
7677 ./ | .// | /cC/* | \
7678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7680 /usr/ucb/* ) ;;
7681 *)
7682 # OSF1 and SCO ODT 3.0 have their own names for install.
7683 # Don't use installbsd from OSF since it installs stuff as root
7684 # by default.
7685 for ac_prog in ginstall scoinst install; do
7686 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007687 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 +00007688 if test $ac_prog = install &&
7689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7690 # AIX install. It has an incompatible calling convention.
7691 :
7692 elif test $ac_prog = install &&
7693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7694 # program-specific install script used by HP pwplus--don't use.
7695 :
7696 else
7697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7698 break 3
7699 fi
7700 fi
7701 done
7702 done
7703 ;;
7704esac
7705done
7706IFS=$as_save_IFS
7707
7708
7709fi
7710 if test "${ac_cv_path_install+set}" = set; then
7711 INSTALL=$ac_cv_path_install
7712 else
7713 # As a last resort, use the slow shell script. Don't cache a
7714 # value for INSTALL within a source directory, because that will
7715 # break other packages using the cache if that directory is
7716 # removed, or if the value is a relative name.
7717 INSTALL=$ac_install_sh
7718 fi
7719fi
7720{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7721echo "${ECHO_T}$INSTALL" >&6; }
7722
7723# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7724# It thinks the first close brace ends the variable substitution.
7725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7726
7727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7728
7729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7730
7731
7732# Extract the first word of "bzip2", so it can be a program name with args.
7733set dummy bzip2; ac_word=$2
7734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736if test "${ac_cv_path_BZIP2+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7738else
7739 case $BZIP2 in
7740 [\\/]* | ?:[\\/]*)
7741 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7742 ;;
7743 *)
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007750 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 +00007751 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757IFS=$as_save_IFS
7758
Reid Spencera773bd52006-08-04 18:18:08 +00007759 ;;
7760esac
7761fi
7762BZIP2=$ac_cv_path_BZIP2
7763if test -n "$BZIP2"; then
7764 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7765echo "${ECHO_T}$BZIP2" >&6; }
7766else
7767 { echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6; }
7769fi
7770
7771
7772# Extract the first word of "doxygen", so it can be a program name with args.
7773set dummy doxygen; ac_word=$2
7774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_DOXYGEN+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778else
7779 case $DOXYGEN in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007790 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 +00007791 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796done
7797IFS=$as_save_IFS
7798
Reid Spencera773bd52006-08-04 18:18:08 +00007799 ;;
7800esac
7801fi
7802DOXYGEN=$ac_cv_path_DOXYGEN
7803if test -n "$DOXYGEN"; then
7804 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7805echo "${ECHO_T}$DOXYGEN" >&6; }
7806else
7807 { echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6; }
7809fi
7810
7811
Reid Spencera773bd52006-08-04 18:18:08 +00007812# Extract the first word of "groff", so it can be a program name with args.
7813set dummy groff; ac_word=$2
7814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816if test "${ac_cv_path_GROFF+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819 case $GROFF in
7820 [\\/]* | ?:[\\/]*)
7821 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7822 ;;
7823 *)
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007830 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 +00007831 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835done
7836done
7837IFS=$as_save_IFS
7838
Reid Spencera773bd52006-08-04 18:18:08 +00007839 ;;
7840esac
7841fi
7842GROFF=$ac_cv_path_GROFF
7843if test -n "$GROFF"; then
7844 { echo "$as_me:$LINENO: result: $GROFF" >&5
7845echo "${ECHO_T}$GROFF" >&6; }
7846else
7847 { echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6; }
7849fi
7850
7851
7852# Extract the first word of "gzip", so it can be a program name with args.
7853set dummy gzip; ac_word=$2
7854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7856if test "${ac_cv_path_GZIP+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859 case $GZIP in
7860 [\\/]* | ?:[\\/]*)
7861 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7862 ;;
7863 *)
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865for as_dir in $PATH
7866do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007870 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 +00007871 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 break 2
7874 fi
7875done
7876done
7877IFS=$as_save_IFS
7878
Reid Spencera773bd52006-08-04 18:18:08 +00007879 ;;
7880esac
7881fi
7882GZIP=$ac_cv_path_GZIP
7883if test -n "$GZIP"; then
7884 { echo "$as_me:$LINENO: result: $GZIP" >&5
7885echo "${ECHO_T}$GZIP" >&6; }
7886else
7887 { echo "$as_me:$LINENO: result: no" >&5
7888echo "${ECHO_T}no" >&6; }
7889fi
7890
7891
7892# Extract the first word of "pod2html", so it can be a program name with args.
7893set dummy pod2html; ac_word=$2
7894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896if test "${ac_cv_path_POD2HTML+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898else
7899 case $POD2HTML in
7900 [\\/]* | ?:[\\/]*)
7901 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7902 ;;
7903 *)
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905for as_dir in $PATH
7906do
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007910 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 +00007911 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7914 fi
7915done
7916done
7917IFS=$as_save_IFS
7918
Reid Spencera773bd52006-08-04 18:18:08 +00007919 ;;
7920esac
7921fi
7922POD2HTML=$ac_cv_path_POD2HTML
7923if test -n "$POD2HTML"; then
7924 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7925echo "${ECHO_T}$POD2HTML" >&6; }
7926else
7927 { echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6; }
7929fi
7930
7931
7932# Extract the first word of "pod2man", so it can be a program name with args.
7933set dummy pod2man; ac_word=$2
7934{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936if test "${ac_cv_path_POD2MAN+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939 case $POD2MAN in
7940 [\\/]* | ?:[\\/]*)
7941 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7942 ;;
7943 *)
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945for as_dir in $PATH
7946do
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007950 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 +00007951 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7954 fi
7955done
7956done
7957IFS=$as_save_IFS
7958
Reid Spencera773bd52006-08-04 18:18:08 +00007959 ;;
7960esac
7961fi
7962POD2MAN=$ac_cv_path_POD2MAN
7963if test -n "$POD2MAN"; then
7964 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7965echo "${ECHO_T}$POD2MAN" >&6; }
7966else
7967 { echo "$as_me:$LINENO: result: no" >&5
7968echo "${ECHO_T}no" >&6; }
7969fi
7970
7971
7972# Extract the first word of "runtest", so it can be a program name with args.
7973set dummy runtest; ac_word=$2
7974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7976if test "${ac_cv_path_RUNTEST+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979 case $RUNTEST in
7980 [\\/]* | ?:[\\/]*)
7981 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7982 ;;
7983 *)
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007990 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 +00007991 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995done
7996done
7997IFS=$as_save_IFS
7998
Reid Spencera773bd52006-08-04 18:18:08 +00007999 ;;
8000esac
8001fi
8002RUNTEST=$ac_cv_path_RUNTEST
8003if test -n "$RUNTEST"; then
8004 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8005echo "${ECHO_T}$RUNTEST" >&6; }
8006else
8007 { echo "$as_me:$LINENO: result: no" >&5
8008echo "${ECHO_T}no" >&6; }
8009fi
8010
8011
8012
8013no_itcl=true
8014{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8015echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8016
8017# Check whether --with-tclinclude was given.
8018if test "${with_tclinclude+set}" = set; then
8019 withval=$with_tclinclude; with_tclinclude=${withval}
8020else
8021 with_tclinclude=''
8022fi
8023
8024if test "${ac_cv_path_tclsh+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027
8028if test x"${with_tclinclude}" != x ; then
8029 if test -f ${with_tclinclude}/tclsh ; then
8030 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8031 elif test -f ${with_tclinclude}/src/tclsh ; then
8032 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8033 else
8034 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8035echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8036 { (exit 1); exit 1; }; }
8037 fi
8038fi
8039
8040if test x"${ac_cv_path_tclsh}" = x ; then
8041 { echo "$as_me:$LINENO: result: none" >&5
8042echo "${ECHO_T}none" >&6; }
8043 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
8044do
8045 # Extract the first word of "$ac_prog", so it can be a program name with args.
8046set dummy $ac_prog; ac_word=$2
8047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049if test "${ac_cv_path_TCLSH+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 case $TCLSH in
8053 [\\/]* | ?:[\\/]*)
8054 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8055 ;;
8056 *)
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008063 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 +00008064 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070IFS=$as_save_IFS
8071
8072 ;;
8073esac
8074fi
8075TCLSH=$ac_cv_path_TCLSH
8076if test -n "$TCLSH"; then
8077 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8078echo "${ECHO_T}$TCLSH" >&6; }
8079else
8080 { echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6; }
8082fi
8083
8084
8085 test -n "$TCLSH" && break
8086done
8087
8088 if test x"${TCLSH}" = x ; then
8089 ac_cv_path_tclsh='';
8090 else
8091 ac_cv_path_tclsh="${TCLSH}";
8092 fi
8093else
8094 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8095echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8096 TCLSH="${ac_cv_path_tclsh}"
8097
8098fi
8099
8100fi
8101
8102# Extract the first word of "zip", so it can be a program name with args.
8103set dummy zip; ac_word=$2
8104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106if test "${ac_cv_path_ZIP+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109 case $ZIP in
8110 [\\/]* | ?:[\\/]*)
8111 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8112 ;;
8113 *)
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008120 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 +00008121 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125done
8126done
8127IFS=$as_save_IFS
8128
Reid Spencera773bd52006-08-04 18:18:08 +00008129 ;;
8130esac
8131fi
8132ZIP=$ac_cv_path_ZIP
8133if test -n "$ZIP"; then
8134 { echo "$as_me:$LINENO: result: $ZIP" >&5
8135echo "${ECHO_T}$ZIP" >&6; }
8136else
8137 { echo "$as_me:$LINENO: result: no" >&5
8138echo "${ECHO_T}no" >&6; }
8139fi
8140
8141
Gordon Henriksene7072162008-03-07 18:20:01 +00008142for ac_prog in ocamlc.opt ocamlc
8143do
8144 # Extract the first word of "$ac_prog", so it can be a program name with args.
8145set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148if test "${ac_cv_path_OCAMLC+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 case $OCAMLC in
8152 [\\/]* | ?:[\\/]*)
8153 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8154 ;;
8155 *)
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157for as_dir in $PATH
8158do
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008162 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 +00008163 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8166 fi
8167done
8168done
8169IFS=$as_save_IFS
8170
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008171 ;;
8172esac
8173fi
8174OCAMLC=$ac_cv_path_OCAMLC
8175if test -n "$OCAMLC"; then
8176 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8177echo "${ECHO_T}$OCAMLC" >&6; }
8178else
8179 { echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6; }
8181fi
8182
8183
Gordon Henriksene7072162008-03-07 18:20:01 +00008184 test -n "$OCAMLC" && break
8185done
8186
8187for ac_prog in ocamlopt.opt ocamlopt
8188do
8189 # Extract the first word of "$ac_prog", so it can be a program name with args.
8190set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8193if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195else
8196 case $OCAMLOPT in
8197 [\\/]* | ?:[\\/]*)
8198 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8199 ;;
8200 *)
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008207 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 +00008208 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212done
8213done
8214IFS=$as_save_IFS
8215
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008216 ;;
8217esac
8218fi
8219OCAMLOPT=$ac_cv_path_OCAMLOPT
8220if test -n "$OCAMLOPT"; then
8221 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8222echo "${ECHO_T}$OCAMLOPT" >&6; }
8223else
8224 { echo "$as_me:$LINENO: result: no" >&5
8225echo "${ECHO_T}no" >&6; }
8226fi
8227
8228
Gordon Henriksene7072162008-03-07 18:20:01 +00008229 test -n "$OCAMLOPT" && break
8230done
8231
8232for ac_prog in ocamldep.opt ocamldep
8233do
8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
8235set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241 case $OCAMLDEP in
8242 [\\/]* | ?:[\\/]*)
8243 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8244 ;;
8245 *)
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008252 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 +00008253 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257done
8258done
8259IFS=$as_save_IFS
8260
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008261 ;;
8262esac
8263fi
8264OCAMLDEP=$ac_cv_path_OCAMLDEP
8265if test -n "$OCAMLDEP"; then
8266 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8267echo "${ECHO_T}$OCAMLDEP" >&6; }
8268else
8269 { echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6; }
8271fi
8272
8273
Gordon Henriksene7072162008-03-07 18:20:01 +00008274 test -n "$OCAMLDEP" && break
8275done
8276
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008277for ac_prog in ocamldoc.opt ocamldoc
8278do
8279 # Extract the first word of "$ac_prog", so it can be a program name with args.
8280set dummy $ac_prog; ac_word=$2
8281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8283if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 case $OCAMLDOC in
8287 [\\/]* | ?:[\\/]*)
8288 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8289 ;;
8290 *)
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302done
8303done
8304IFS=$as_save_IFS
8305
8306 ;;
8307esac
8308fi
8309OCAMLDOC=$ac_cv_path_OCAMLDOC
8310if test -n "$OCAMLDOC"; then
8311 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8312echo "${ECHO_T}$OCAMLDOC" >&6; }
8313else
8314 { echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6; }
8316fi
8317
8318
8319 test -n "$OCAMLDOC" && break
8320done
8321
Reid Spencera773bd52006-08-04 18:18:08 +00008322
8323{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8324echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8325if test "${llvm_cv_link_use_r+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327else
8328 ac_ext=c
8329ac_cpp='$CPP $CPPFLAGS'
8330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8332ac_compiler_gnu=$ac_cv_c_compiler_gnu
8333
8334 oldcflags="$CFLAGS"
8335 CFLAGS="$CFLAGS -Wl,-R."
8336 cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h. */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
8341/* end confdefs.h. */
8342
8343int
8344main ()
8345{
8346int main() { return 0; }
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351rm -f conftest.$ac_objext conftest$ac_exeext
8352if { (ac_try="$ac_link"
8353case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_link") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; } &&
8375 { ac_try='test -s conftest$ac_exeext'
8376 { (case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379esac
8380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_try") 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008385 llvm_cv_link_use_r=yes
8386else
8387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 llvm_cv_link_use_r=no
8391fi
8392
Tanya Lattnercf067672008-01-17 05:57:22 +00008393rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008394 conftest$ac_exeext conftest.$ac_ext
8395 CFLAGS="$oldcflags"
8396 ac_ext=c
8397ac_cpp='$CPP $CPPFLAGS'
8398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8400ac_compiler_gnu=$ac_cv_c_compiler_gnu
8401
8402
8403fi
8404{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8405echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8406if test "$llvm_cv_link_use_r" = yes ; then
8407
8408cat >>confdefs.h <<\_ACEOF
8409#define HAVE_LINK_R 1
8410_ACEOF
8411
8412 fi
8413
8414
8415
8416
8417{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8418echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8419if test "${ac_cv_c_const+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
8428
8429int
8430main ()
8431{
8432/* FIXME: Include the comments suggested by Paul. */
8433#ifndef __cplusplus
8434 /* Ultrix mips cc rejects this. */
8435 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008436 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008437 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008438 char const *const *ccp;
8439 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008440 /* NEC SVR4.0.2 mips cc rejects this. */
8441 struct point {int x, y;};
8442 static struct point const zero = {0,0};
8443 /* AIX XL C 1.02.0.0 rejects this.
8444 It does not let you subtract one const X* pointer from another in
8445 an arm of an if-expression whose if-part is not a constant
8446 expression */
8447 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008448 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008449 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008450 ++ccp;
8451 p = (char**) ccp;
8452 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008453 { /* SCO 3.2v4 cc rejects this. */
8454 char *t;
8455 char const *s = 0 ? (char *) 0 : (char const *) 0;
8456
8457 *t++ = 0;
8458 if (s) return 0;
8459 }
8460 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8461 int x[] = {25, 17};
8462 const int *foo = &x[0];
8463 ++foo;
8464 }
8465 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8466 typedef const int *iptr;
8467 iptr p = 0;
8468 ++p;
8469 }
8470 { /* AIX XL C 1.02.0.0 rejects this saying
8471 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8472 struct s { int j; const int *ap[3]; };
8473 struct s *b; b->j = 5;
8474 }
8475 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8476 const int foo = 10;
8477 if (!foo) return 0;
8478 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008479 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008480#endif
8481
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext
8487if { (ac_try="$ac_compile"
8488case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491esac
8492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008499 (exit $ac_status); } &&
8500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
8505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_try") 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008520 ac_cv_c_const=yes
8521else
8522 echo "$as_me: failed program was:" >&5
8523sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 ac_cv_c_const=no
8526fi
8527
8528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529fi
8530{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8531echo "${ECHO_T}$ac_cv_c_const" >&6; }
8532if test $ac_cv_c_const = no; then
8533
8534cat >>confdefs.h <<\_ACEOF
8535#define const
8536_ACEOF
8537
8538fi
8539
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008540
8541
8542
8543
8544
8545ac_header_dirent=no
8546for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8547 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008548{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8549echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553 cat >conftest.$ac_ext <<_ACEOF
8554/* confdefs.h. */
8555_ACEOF
8556cat confdefs.h >>conftest.$ac_ext
8557cat >>conftest.$ac_ext <<_ACEOF
8558/* end confdefs.h. */
8559#include <sys/types.h>
8560#include <$ac_hdr>
8561
8562int
8563main ()
8564{
8565if ((DIR *) 0)
8566return 0;
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008572if { (ac_try="$ac_compile"
8573case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589esac
8590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599esac
8600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008605 eval "$as_ac_Header=yes"
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
Reid Spencera773bd52006-08-04 18:18:08 +00008610 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008611fi
Reid Spencera773bd52006-08-04 18:18:08 +00008612
8613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008614fi
Reid Spencera773bd52006-08-04 18:18:08 +00008615ac_res=`eval echo '${'$as_ac_Header'}'`
8616 { echo "$as_me:$LINENO: result: $ac_res" >&5
8617echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008618if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8621_ACEOF
8622
8623ac_header_dirent=$ac_hdr; break
8624fi
8625
8626done
8627# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8628if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008629 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8630echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008631if test "${ac_cv_search_opendir+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008635cat >conftest.$ac_ext <<_ACEOF
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
8641
Reid Spencera773bd52006-08-04 18:18:08 +00008642/* Override any GCC internal prototype to avoid an error.
8643 Use char because int might match the return type of a GCC
8644 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008645#ifdef __cplusplus
8646extern "C"
8647#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008648char opendir ();
8649int
8650main ()
8651{
Reid Spencera773bd52006-08-04 18:18:08 +00008652return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008653 ;
8654 return 0;
8655}
8656_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008657for ac_lib in '' dir; do
8658 if test -z "$ac_lib"; then
8659 ac_res="none required"
8660 else
8661 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008663 fi
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665if { (ac_try="$ac_link"
8666case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669esac
8670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (case "(($ac_try" in
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8682esac
8683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_try") 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest$ac_exeext'
8689 { (case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8692esac
8693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_try") 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008698 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699else
8700 echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008703
8704fi
8705
Tanya Lattnercf067672008-01-17 05:57:22 +00008706rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008707 conftest$ac_exeext
8708 if test "${ac_cv_search_opendir+set}" = set; then
8709 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008710fi
John Criswell7a73b802003-06-30 21:59:07 +00008711done
Reid Spencera773bd52006-08-04 18:18:08 +00008712if test "${ac_cv_search_opendir+set}" = set; then
8713 :
8714else
8715 ac_cv_search_opendir=no
8716fi
8717rm conftest.$ac_ext
8718LIBS=$ac_func_search_save_LIBS
8719fi
8720{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8721echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8722ac_res=$ac_cv_search_opendir
8723if test "$ac_res" != no; then
8724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008725
Reid Spencera773bd52006-08-04 18:18:08 +00008726fi
8727
8728else
8729 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8730echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8731if test "${ac_cv_search_opendir+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734 ac_func_search_save_LIBS=$LIBS
8735cat >conftest.$ac_ext <<_ACEOF
8736/* confdefs.h. */
8737_ACEOF
8738cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h. */
8741
8742/* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8745#ifdef __cplusplus
8746extern "C"
8747#endif
8748char opendir ();
8749int
8750main ()
8751{
8752return opendir ();
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757for ac_lib in '' x; do
8758 if test -z "$ac_lib"; then
8759 ac_res="none required"
8760 else
8761 ac_res=-l$ac_lib
8762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765if { (ac_try="$ac_link"
8766case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
8770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_link") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779 { (case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782esac
8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_try") 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (case "(($ac_try" in
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8792esac
8793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_try") 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008798 ac_cv_search_opendir=$ac_res
8799else
8800 echo "$as_me: failed program was:" >&5
8801sed 's/^/| /' conftest.$ac_ext >&5
8802
8803
8804fi
8805
Tanya Lattnercf067672008-01-17 05:57:22 +00008806rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008807 conftest$ac_exeext
8808 if test "${ac_cv_search_opendir+set}" = set; then
8809 break
8810fi
8811done
8812if test "${ac_cv_search_opendir+set}" = set; then
8813 :
8814else
8815 ac_cv_search_opendir=no
8816fi
8817rm conftest.$ac_ext
8818LIBS=$ac_func_search_save_LIBS
8819fi
8820{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8821echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8822ac_res=$ac_cv_search_opendir
8823if test "$ac_res" != no; then
8824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8825
8826fi
8827
8828fi
John Criswell7a73b802003-06-30 21:59:07 +00008829
8830
8831for ac_header in dlfcn.h
8832do
8833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008838 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008839fi
Reid Spencera773bd52006-08-04 18:18:08 +00008840ac_res=`eval echo '${'$as_ac_Header'}'`
8841 { echo "$as_me:$LINENO: result: $ac_res" >&5
8842echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008843else
Brian Gaeke0a621332004-09-08 20:38:05 +00008844 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008845{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008847cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008853$ac_includes_default
8854#include <$ac_header>
8855_ACEOF
8856rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008857if { (ac_try="$ac_compile"
8858case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861esac
8862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874esac
8875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008890 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008891else
8892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008893sed 's/^/| /' conftest.$ac_ext >&5
8894
Reid Spencera773bd52006-08-04 18:18:08 +00008895 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008896fi
Reid Spencera773bd52006-08-04 18:18:08 +00008897
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8900echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008901
8902# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008903{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008905cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911#include <$ac_header>
8912_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008913if { (ac_try="$ac_cpp conftest.$ac_ext"
8914case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917esac
8918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008925 (exit $ac_status); } >/dev/null; then
8926 if test -s conftest.err; then
8927 ac_cpp_err=$ac_c_preproc_warn_flag
8928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8929 else
8930 ac_cpp_err=
8931 fi
8932else
8933 ac_cpp_err=yes
8934fi
8935if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008936 ac_header_preproc=yes
8937else
8938 echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_header_preproc=no
8942fi
Reid Spencera773bd52006-08-04 18:18:08 +00008943
Brian Gaeke0a621332004-09-08 20:38:05 +00008944rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008945{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8946echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008947
8948# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8950 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8955 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008956 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008957 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008970 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008971## ----------------------------------- ##
8972## Report this to llvmbugs@cs.uiuc.edu ##
8973## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008974_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008975 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008976 ;;
8977esac
Reid Spencera773bd52006-08-04 18:18:08 +00008978{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008983 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008984fi
Reid Spencera773bd52006-08-04 18:18:08 +00008985ac_res=`eval echo '${'$as_ac_Header'}'`
8986 { echo "$as_me:$LINENO: result: $ac_res" >&5
8987echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008988
8989fi
John Criswell7a73b802003-06-30 21:59:07 +00008990if test `eval echo '${'$as_ac_Header'}'` = yes; then
8991 cat >>confdefs.h <<_ACEOF
8992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8993_ACEOF
8994
8995fi
8996
8997done
8998
Reid Spencera773bd52006-08-04 18:18:08 +00008999# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009001 enableval=$enable_ltdl_install;
9002fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009003
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009004
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00009005
9006
9007if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009008 INSTALL_LTDL_TRUE=
9009 INSTALL_LTDL_FALSE='#'
9010else
9011 INSTALL_LTDL_TRUE='#'
9012 INSTALL_LTDL_FALSE=
9013fi
9014
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00009015
9016
9017if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009018 CONVENIENCE_LTDL_TRUE=
9019 CONVENIENCE_LTDL_FALSE='#'
9020else
9021 CONVENIENCE_LTDL_TRUE='#'
9022 CONVENIENCE_LTDL_FALSE=
9023fi
9024
9025
Reid Spencera773bd52006-08-04 18:18:08 +00009026{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9027echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009028library_names_spec=
9029libname_spec='lib$name'
9030soname_spec=
9031shrext_cmds=".so"
9032postinstall_cmds=
9033postuninstall_cmds=
9034finish_cmds=
9035finish_eval=
9036shlibpath_var=
9037shlibpath_overrides_runpath=unknown
9038version_type=none
9039dynamic_linker="$host_os ld.so"
9040sys_lib_dlsearch_path_spec="/lib /usr/lib"
9041if test "$GCC" = yes; then
9042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9044 # if the path contains ";" then we assume it to be the separator
9045 # otherwise default to the standard path separator (i.e. ":") - it is
9046 # assumed that no part of a normal pathname contains ";" but that should
9047 # okay in the real world where ";" in dirpaths is itself problematic.
9048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9049 else
9050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9051 fi
9052else
9053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9054fi
9055need_lib_prefix=unknown
9056hardcode_into_libs=no
9057
9058# when you set need_version to no, make sure it does not cause -set_version
9059# flags to be left without arguments
9060need_version=unknown
9061
9062case $host_os in
9063aix3*)
9064 version_type=linux
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9066 shlibpath_var=LIBPATH
9067
9068 # AIX 3 has no versioning support, so we append a major version to the name.
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 ;;
9071
9072aix4* | aix5*)
9073 version_type=linux
9074 need_lib_prefix=no
9075 need_version=no
9076 hardcode_into_libs=yes
9077 if test "$host_cpu" = ia64; then
9078 # AIX 5 supports IA64
9079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 else
9082 # With GCC up to 2.95.x, collect2 would create an import file
9083 # for dependence libraries. The import file would start with
9084 # the line `#! .'. This would cause the generated library to
9085 # depend on `.', always an invalid library. This was fixed in
9086 # development snapshots of GCC prior to 3.0.
9087 case $host_os in
9088 aix4 | aix4.[01] | aix4.[01].*)
9089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9090 echo ' yes '
9091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9092 :
9093 else
9094 can_build_shared=no
9095 fi
9096 ;;
9097 esac
9098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9099 # soname into executable. Probably we can add versioning support to
9100 # collect2, so additional links can be useful in future.
9101 if test "$aix_use_runtimelinking" = yes; then
9102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9103 # instead of lib<name>.a to let people know that these are not
9104 # typical AIX shared libraries.
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106 else
9107 # We preserve .a as extension for shared libraries through AIX4.2
9108 # and later when we are not doing run time linking.
9109 library_names_spec='${libname}${release}.a $libname.a'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 fi
9112 shlibpath_var=LIBPATH
9113 fi
9114 ;;
9115
9116amigaos*)
9117 library_names_spec='$libname.ixlibrary $libname.a'
9118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9119 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'
9120 ;;
9121
9122beos*)
9123 library_names_spec='${libname}${shared_ext}'
9124 dynamic_linker="$host_os ld.so"
9125 shlibpath_var=LIBRARY_PATH
9126 ;;
9127
9128bsdi[45]*)
9129 version_type=linux
9130 need_version=no
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9137 # the default ld.so.conf also contains /usr/contrib/lib and
9138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9139 # libtool to hard-code these into programs
9140 ;;
9141
9142cygwin* | mingw* | pw32*)
9143 version_type=windows
9144 shrext_cmds=".dll"
9145 need_version=no
9146 need_lib_prefix=no
9147
9148 case $GCC,$host_os in
9149 yes,cygwin* | yes,mingw* | yes,pw32*)
9150 library_names_spec='$libname.dll.a'
9151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9152 postinstall_cmds='base_file=`basename \${file}`~
9153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9154 dldir=$destdir/`dirname \$dlpath`~
9155 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009156 $install_prog $dir/$dlname \$dldir/$dlname~
9157 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9159 dlpath=$dir/\$dldll~
9160 $rm \$dlpath'
9161 shlibpath_overrides_runpath=yes
9162
9163 case $host_os in
9164 cygwin*)
9165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9167 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9168 ;;
9169 mingw*)
9170 # MinGW DLLs use traditional 'lib' prefix
9171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9173 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9174 # It is most probably a Windows format PATH printed by
9175 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9176 # path with ; separators, and with drive letters. We can handle the
9177 # drive letters (cygwin fileutils understands them), so leave them,
9178 # especially as we might pass files found there to a mingw objdump,
9179 # which wouldn't understand a cygwinified path. Ahh.
9180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9181 else
9182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9183 fi
9184 ;;
9185 pw32*)
9186 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009187 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 +00009188 ;;
9189 esac
9190 ;;
9191
9192 *)
9193 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9194 ;;
9195 esac
9196 dynamic_linker='Win32 ld.exe'
9197 # FIXME: first we should search . and the directory the executable is in
9198 shlibpath_var=PATH
9199 ;;
9200
9201darwin* | rhapsody*)
9202 dynamic_linker="$host_os dyld"
9203 version_type=darwin
9204 need_lib_prefix=no
9205 need_version=no
9206 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9207 soname_spec='${libname}${release}${major}$shared_ext'
9208 shlibpath_overrides_runpath=yes
9209 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009210 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9212 if test "$GCC" = yes; then
9213 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"`
9214 else
9215 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9216 fi
9217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9218 ;;
9219
9220dgux*)
9221 version_type=linux
9222 need_lib_prefix=no
9223 need_version=no
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9227 ;;
9228
9229freebsd1*)
9230 dynamic_linker=no
9231 ;;
9232
9233kfreebsd*-gnu)
9234 version_type=linux
9235 need_lib_prefix=no
9236 need_version=no
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=no
9241 hardcode_into_libs=yes
9242 dynamic_linker='GNU ld.so'
9243 ;;
9244
Reid Spencera773bd52006-08-04 18:18:08 +00009245freebsd* | dragonfly*)
9246 # DragonFly does not have aout. When/if they implement a new
9247 # versioning mechanism, adjust this.
9248 if test -x /usr/bin/objformat; then
9249 objformat=`/usr/bin/objformat`
9250 else
9251 case $host_os in
9252 freebsd[123]*) objformat=aout ;;
9253 *) objformat=elf ;;
9254 esac
9255 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009256 version_type=freebsd-$objformat
9257 case $version_type in
9258 freebsd-elf*)
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9260 need_version=no
9261 need_lib_prefix=no
9262 ;;
9263 freebsd-*)
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9265 need_version=yes
9266 ;;
9267 esac
9268 shlibpath_var=LD_LIBRARY_PATH
9269 case $host_os in
9270 freebsd2*)
9271 shlibpath_overrides_runpath=yes
9272 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009273 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279 shlibpath_overrides_runpath=no
9280 hardcode_into_libs=yes
9281 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009282 freebsd*) # from 4.6 on
9283 shlibpath_overrides_runpath=yes
9284 hardcode_into_libs=yes
9285 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286 esac
9287 ;;
9288
9289gnu*)
9290 version_type=linux
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 hardcode_into_libs=yes
9297 ;;
9298
9299hpux9* | hpux10* | hpux11*)
9300 # Give a soname corresponding to the major version so that dld.sl refuses to
9301 # link against other versions.
9302 version_type=sunos
9303 need_lib_prefix=no
9304 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009305 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306 ia64*)
9307 shrext_cmds='.so'
9308 hardcode_into_libs=yes
9309 dynamic_linker="$host_os dld.so"
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 if test "X$HPUX_IA64_MODE" = X32; then
9315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9316 else
9317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9318 fi
9319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9320 ;;
9321 hppa*64*)
9322 shrext_cmds='.sl'
9323 hardcode_into_libs=yes
9324 dynamic_linker="$host_os dld.sl"
9325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9331 ;;
9332 *)
9333 shrext_cmds='.sl'
9334 dynamic_linker="$host_os dld.sl"
9335 shlibpath_var=SHLIB_PATH
9336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 ;;
9340 esac
9341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9342 postinstall_cmds='chmod 555 $lib'
9343 ;;
9344
Reid Spencera773bd52006-08-04 18:18:08 +00009345interix3*)
9346 version_type=linux
9347 need_lib_prefix=no
9348 need_version=no
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=no
9354 hardcode_into_libs=yes
9355 ;;
9356
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357irix5* | irix6* | nonstopux*)
9358 case $host_os in
9359 nonstopux*) version_type=nonstopux ;;
9360 *)
9361 if test "$lt_cv_prog_gnu_ld" = yes; then
9362 version_type=linux
9363 else
9364 version_type=irix
9365 fi ;;
9366 esac
9367 need_lib_prefix=no
9368 need_version=no
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9371 case $host_os in
9372 irix5* | nonstopux*)
9373 libsuff= shlibsuff=
9374 ;;
9375 *)
9376 case $LD in # libtool.m4 will add one of these switches to LD
9377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9378 libsuff= shlibsuff= libmagic=32-bit;;
9379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9380 libsuff=32 shlibsuff=N32 libmagic=N32;;
9381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9383 *) libsuff= shlibsuff= libmagic=never-match;;
9384 esac
9385 ;;
9386 esac
9387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9388 shlibpath_overrides_runpath=no
9389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9391 hardcode_into_libs=yes
9392 ;;
9393
9394# No shared lib support for Linux oldld, aout, or coff.
9395linux*oldld* | linux*aout* | linux*coff*)
9396 dynamic_linker=no
9397 ;;
9398
9399# This must be Linux ELF.
9400linux*)
9401 version_type=linux
9402 need_lib_prefix=no
9403 need_version=no
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 shlibpath_overrides_runpath=no
9409 # This implies no fast_install, which is unacceptable.
9410 # Some rework will be needed to allow for fast_install
9411 # before this can be enabled.
9412 hardcode_into_libs=yes
9413
9414 # Append ld.so.conf contents to the search path
9415 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009416 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 +00009417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9418 fi
9419
9420 # We used to test for /lib/ld.so.1 and disable shared libraries on
9421 # powerpc, because MkLinux only supported shared libraries with the
9422 # GNU dynamic linker. Since this was broken with cross compilers,
9423 # most powerpc-linux boxes support dynamic linking these days and
9424 # people can always --disable-shared, the test was removed, and we
9425 # assume the GNU/Linux dynamic linker is in use.
9426 dynamic_linker='GNU/Linux ld.so'
9427 ;;
9428
9429knetbsd*-gnu)
9430 version_type=linux
9431 need_lib_prefix=no
9432 need_version=no
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 shlibpath_overrides_runpath=no
9437 hardcode_into_libs=yes
9438 dynamic_linker='GNU ld.so'
9439 ;;
9440
9441netbsd*)
9442 version_type=sunos
9443 need_lib_prefix=no
9444 need_version=no
9445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9448 dynamic_linker='NetBSD (a.out) ld.so'
9449 else
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 dynamic_linker='NetBSD ld.elf_so'
9453 fi
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 hardcode_into_libs=yes
9457 ;;
9458
9459newsos6)
9460 version_type=linux
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 shlibpath_overrides_runpath=yes
9464 ;;
9465
9466nto-qnx*)
9467 version_type=linux
9468 need_lib_prefix=no
9469 need_version=no
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 soname_spec='${libname}${release}${shared_ext}$major'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 shlibpath_overrides_runpath=yes
9474 ;;
9475
9476openbsd*)
9477 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009478 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009479 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009480 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9481 case $host_os in
9482 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9483 *) need_version=no ;;
9484 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9489 case $host_os in
9490 openbsd2.[89] | openbsd2.[89].*)
9491 shlibpath_overrides_runpath=no
9492 ;;
9493 *)
9494 shlibpath_overrides_runpath=yes
9495 ;;
9496 esac
9497 else
9498 shlibpath_overrides_runpath=yes
9499 fi
9500 ;;
9501
9502os2*)
9503 libname_spec='$name'
9504 shrext_cmds=".dll"
9505 need_lib_prefix=no
9506 library_names_spec='$libname${shared_ext} $libname.a'
9507 dynamic_linker='OS/2 ld.exe'
9508 shlibpath_var=LIBPATH
9509 ;;
9510
9511osf3* | osf4* | osf5*)
9512 version_type=osf
9513 need_lib_prefix=no
9514 need_version=no
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517 shlibpath_var=LD_LIBRARY_PATH
9518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9520 ;;
9521
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522solaris*)
9523 version_type=linux
9524 need_lib_prefix=no
9525 need_version=no
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=yes
9530 hardcode_into_libs=yes
9531 # ldd complains unless libraries are executable
9532 postinstall_cmds='chmod +x $lib'
9533 ;;
9534
9535sunos4*)
9536 version_type=sunos
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 shlibpath_overrides_runpath=yes
9541 if test "$with_gnu_ld" = yes; then
9542 need_lib_prefix=no
9543 fi
9544 need_version=yes
9545 ;;
9546
Reid Spencera773bd52006-08-04 18:18:08 +00009547sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548 version_type=linux
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9552 case $host_vendor in
9553 sni)
9554 shlibpath_overrides_runpath=no
9555 need_lib_prefix=no
9556 export_dynamic_flag_spec='${wl}-Blargedynsym'
9557 runpath_var=LD_RUN_PATH
9558 ;;
9559 siemens)
9560 need_lib_prefix=no
9561 ;;
9562 motorola)
9563 need_lib_prefix=no
9564 need_version=no
9565 shlibpath_overrides_runpath=no
9566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9567 ;;
9568 esac
9569 ;;
9570
9571sysv4*MP*)
9572 if test -d /usr/nec ;then
9573 version_type=linux
9574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9575 soname_spec='$libname${shared_ext}.$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 fi
9578 ;;
9579
Reid Spencera773bd52006-08-04 18:18:08 +00009580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9581 version_type=freebsd-elf
9582 need_lib_prefix=no
9583 need_version=no
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 hardcode_into_libs=yes
9588 if test "$with_gnu_ld" = yes; then
9589 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9590 shlibpath_overrides_runpath=no
9591 else
9592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9593 shlibpath_overrides_runpath=yes
9594 case $host_os in
9595 sco3.2v5*)
9596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9597 ;;
9598 esac
9599 fi
9600 sys_lib_dlsearch_path_spec='/usr/lib'
9601 ;;
9602
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603uts4*)
9604 version_type=linux
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 ;;
9609
9610*)
9611 dynamic_linker=no
9612 ;;
9613esac
Reid Spencera773bd52006-08-04 18:18:08 +00009614{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9615echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009616test "$dynamic_linker" = no && can_build_shared=no
9617
Reid Spencera773bd52006-08-04 18:18:08 +00009618variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9619if test "$GCC" = yes; then
9620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9621fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622
Reid Spencera773bd52006-08-04 18:18:08 +00009623
9624{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9625echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626if test "${libltdl_cv_shlibext+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628else
9629
9630module=yes
9631eval libltdl_cv_shlibext=$shrext_cmds
9632
9633fi
Reid Spencera773bd52006-08-04 18:18:08 +00009634{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9635echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636if test -n "$libltdl_cv_shlibext"; then
9637
9638cat >>confdefs.h <<_ACEOF
9639#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9640_ACEOF
9641
9642fi
9643
9644
Reid Spencera773bd52006-08-04 18:18:08 +00009645{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9646echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647if test "${libltdl_cv_shlibpath_var+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649else
9650 libltdl_cv_shlibpath_var="$shlibpath_var"
9651fi
Reid Spencera773bd52006-08-04 18:18:08 +00009652{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9653echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654if test -n "$libltdl_cv_shlibpath_var"; then
9655
9656cat >>confdefs.h <<_ACEOF
9657#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9658_ACEOF
9659
9660fi
9661
9662
Reid Spencera773bd52006-08-04 18:18:08 +00009663{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9664echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009665if test "${libltdl_cv_sys_search_path+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9669fi
Reid Spencera773bd52006-08-04 18:18:08 +00009670{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9671echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009672if test -n "$libltdl_cv_sys_search_path"; then
9673 sys_search_path=
9674 for dir in $libltdl_cv_sys_search_path; do
9675 if test -z "$sys_search_path"; then
9676 sys_search_path="$dir"
9677 else
9678 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9679 fi
9680 done
9681
9682cat >>confdefs.h <<_ACEOF
9683#define LTDL_SYSSEARCHPATH "$sys_search_path"
9684_ACEOF
9685
9686fi
9687
Reid Spencera773bd52006-08-04 18:18:08 +00009688{ echo "$as_me:$LINENO: checking for objdir" >&5
9689echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690if test "${libltdl_cv_objdir+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692else
9693 libltdl_cv_objdir="$objdir"
9694 if test -n "$objdir"; then
9695 :
9696 else
9697 rm -f .libs 2>/dev/null
9698 mkdir .libs 2>/dev/null
9699 if test -d .libs; then
9700 libltdl_cv_objdir=.libs
9701 else
9702 # MS-DOS does not allow filenames that begin with a dot.
9703 libltdl_cv_objdir=_libs
9704 fi
9705 rmdir .libs 2>/dev/null
9706 fi
9707
9708fi
Reid Spencera773bd52006-08-04 18:18:08 +00009709{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9710echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711
9712cat >>confdefs.h <<_ACEOF
9713#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9714_ACEOF
9715
9716
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009717
9718
9719
9720
9721# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009722{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9723echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726else
9727
9728# These are sane defaults that work on at least a few old systems.
9729# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9730
9731# Character class describing NM global symbol codes.
9732symcode='[BCDEGRST]'
9733
9734# Regexp to match symbols that can be accessed directly from C.
9735sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9736
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009737# Transform an extracted symbol line into a proper C declaration
9738lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9739
9740# Transform an extracted symbol line into symbol name and symbol address
9741lt_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'"
9742
9743# Define system-specific variables.
9744case $host_os in
9745aix*)
9746 symcode='[BCDT]'
9747 ;;
9748cygwin* | mingw* | pw32*)
9749 symcode='[ABCDGISTW]'
9750 ;;
9751hpux*) # Its linker distinguishes data from code symbols
9752 if test "$host_cpu" = ia64; then
9753 symcode='[ABCDEGRST]'
9754 fi
9755 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9756 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'"
9757 ;;
9758linux*)
9759 if test "$host_cpu" = ia64; then
9760 symcode='[ABCDGIRSTW]'
9761 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9762 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'"
9763 fi
9764 ;;
9765irix* | nonstopux*)
9766 symcode='[BCDEGRST]'
9767 ;;
9768osf*)
9769 symcode='[BCDEGQRST]'
9770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009771solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772 symcode='[BDRT]'
9773 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009774sco3.2v5*)
9775 symcode='[DT]'
9776 ;;
9777sysv4.2uw2*)
9778 symcode='[DT]'
9779 ;;
9780sysv5* | sco5v6* | unixware* | OpenUNIX*)
9781 symcode='[ABDT]'
9782 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783sysv4)
9784 symcode='[DFNSTU]'
9785 ;;
9786esac
9787
9788# Handle CRLF in mingw tool chain
9789opt_cr=
9790case $build_os in
9791mingw*)
9792 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9793 ;;
9794esac
9795
9796# If we're using GNU nm, then use its standard symbol codes.
9797case `$NM -V 2>&1` in
9798*GNU* | *'with BFD'*)
9799 symcode='[ABCDGIRSTW]' ;;
9800esac
9801
9802# Try without a prefix undercore, then with it.
9803for ac_symprfx in "" "_"; do
9804
Reid Spencera773bd52006-08-04 18:18:08 +00009805 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9806 symxfrm="\\1 $ac_symprfx\\2 \\2"
9807
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009809 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 +00009810
9811 # Check to see that the pipe works correctly.
9812 pipe_works=no
9813
9814 rm -f conftest*
9815 cat > conftest.$ac_ext <<EOF
9816#ifdef __cplusplus
9817extern "C" {
9818#endif
9819char nm_test_var;
9820void nm_test_func(){}
9821#ifdef __cplusplus
9822}
9823#endif
9824int main(){nm_test_var='a';nm_test_func();return(0);}
9825EOF
9826
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828 (eval $ac_compile) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; then
9832 # Now try to grab the symbols.
9833 nlist=conftest.nm
9834 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9835 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && test -s "$nlist"; then
9839 # Try sorting and uniquifying the output.
9840 if sort "$nlist" | uniq > "$nlist"T; then
9841 mv -f "$nlist"T "$nlist"
9842 else
9843 rm -f "$nlist"T
9844 fi
9845
9846 # Make sure that we snagged all the symbols we need.
9847 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9848 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9849 cat <<EOF > conftest.$ac_ext
9850#ifdef __cplusplus
9851extern "C" {
9852#endif
9853
9854EOF
9855 # Now generate the symbol file.
9856 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9857
9858 cat <<EOF >> conftest.$ac_ext
9859#if defined (__STDC__) && __STDC__
9860# define lt_ptr_t void *
9861#else
9862# define lt_ptr_t char *
9863# define const
9864#endif
9865
9866/* The mapping between symbol names and symbols. */
9867const struct {
9868 const char *name;
9869 lt_ptr_t address;
9870}
9871lt_preloaded_symbols[] =
9872{
9873EOF
9874 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9875 cat <<\EOF >> conftest.$ac_ext
9876 {0, (lt_ptr_t) 0}
9877};
9878
9879#ifdef __cplusplus
9880}
9881#endif
9882EOF
9883 # Now try linking the two files.
9884 mv conftest.$ac_objext conftstm.$ac_objext
9885 lt_save_LIBS="$LIBS"
9886 lt_save_CFLAGS="$CFLAGS"
9887 LIBS="conftstm.$ac_objext"
9888 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9890 (eval $ac_link) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9894 pipe_works=yes
9895 fi
9896 LIBS="$lt_save_LIBS"
9897 CFLAGS="$lt_save_CFLAGS"
9898 else
9899 echo "cannot find nm_test_func in $nlist" >&5
9900 fi
9901 else
9902 echo "cannot find nm_test_var in $nlist" >&5
9903 fi
9904 else
9905 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9906 fi
9907 else
9908 echo "$progname: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 fi
9911 rm -f conftest* conftst*
9912
9913 # Do not use the global_symbol_pipe unless it works.
9914 if test "$pipe_works" = yes; then
9915 break
9916 else
9917 lt_cv_sys_global_symbol_pipe=
9918 fi
9919done
9920
9921fi
9922
9923if test -z "$lt_cv_sys_global_symbol_pipe"; then
9924 lt_cv_sys_global_symbol_to_cdecl=
9925fi
9926if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009927 { echo "$as_me:$LINENO: result: failed" >&5
9928echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929else
Reid Spencera773bd52006-08-04 18:18:08 +00009930 { echo "$as_me:$LINENO: result: ok" >&5
9931echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932fi
9933
9934
Reid Spencera773bd52006-08-04 18:18:08 +00009935{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9936echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9941 libltdl_cv_preloaded_symbols=yes
9942 else
9943 libltdl_cv_preloaded_symbols=no
9944 fi
9945
9946fi
Reid Spencera773bd52006-08-04 18:18:08 +00009947{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9948echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9950
9951cat >>confdefs.h <<\_ACEOF
9952#define HAVE_PRELOADED_SYMBOLS 1
9953_ACEOF
9954
9955fi
9956
9957LIBADD_DL=
9958
9959ac_ext=c
9960ac_cpp='$CPP $CPPFLAGS'
9961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9963ac_compiler_gnu=$ac_cv_c_compiler_gnu
9964
9965
Reid Spencera773bd52006-08-04 18:18:08 +00009966{ echo "$as_me:$LINENO: checking for shl_load" >&5
9967echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968if test "${ac_cv_func_shl_load+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971 cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
9977/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9979#define shl_load innocuous_shl_load
9980
9981/* System header to define __stub macros and hopefully few prototypes,
9982 which can conflict with char shl_load (); below.
9983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9984 <limits.h> exists even on freestanding compilers. */
9985
9986#ifdef __STDC__
9987# include <limits.h>
9988#else
9989# include <assert.h>
9990#endif
9991
9992#undef shl_load
9993
Reid Spencera773bd52006-08-04 18:18:08 +00009994/* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997#ifdef __cplusplus
9998extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000char shl_load ();
10001/* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010004#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006#endif
10007
10008int
10009main ()
10010{
Reid Spencera773bd52006-08-04 18:18:08 +000010011return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012 ;
10013 return 0;
10014}
10015_ACEOF
10016rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010017if { (ac_try="$ac_link"
10018case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021esac
10022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10031 { (case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034esac
10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_try") 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_try") 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050 ac_cv_func_shl_load=yes
10051else
10052 echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
Reid Spencera773bd52006-08-04 18:18:08 +000010055 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056fi
Reid Spencera773bd52006-08-04 18:18:08 +000010057
Tanya Lattnercf067672008-01-17 05:57:22 +000010058rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059 conftest$ac_exeext conftest.$ac_ext
10060fi
Reid Spencera773bd52006-08-04 18:18:08 +000010061{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10062echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063if test $ac_cv_func_shl_load = yes; then
10064
10065cat >>confdefs.h <<\_ACEOF
10066#define HAVE_SHL_LOAD 1
10067_ACEOF
10068
10069else
Reid Spencera773bd52006-08-04 18:18:08 +000010070 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10071echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074else
10075 ac_check_lib_save_LIBS=$LIBS
10076LIBS="-ldld $LIBS"
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083
Reid Spencera773bd52006-08-04 18:18:08 +000010084/* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087#ifdef __cplusplus
10088extern "C"
10089#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090char shl_load ();
10091int
10092main ()
10093{
Reid Spencera773bd52006-08-04 18:18:08 +000010094return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095 ;
10096 return 0;
10097}
10098_ACEOF
10099rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010100if { (ac_try="$ac_link"
10101case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10104esac
10105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107 ac_status=$?
10108 grep -v '^ *+' conftest.er1 >conftest.err
10109 rm -f conftest.er1
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117esac
10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133 ac_cv_lib_dld_shl_load=yes
10134else
10135 echo "$as_me: failed program was:" >&5
10136sed 's/^/| /' conftest.$ac_ext >&5
10137
Reid Spencera773bd52006-08-04 18:18:08 +000010138 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139fi
Reid Spencera773bd52006-08-04 18:18:08 +000010140
Tanya Lattnercf067672008-01-17 05:57:22 +000010141rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142 conftest$ac_exeext conftest.$ac_ext
10143LIBS=$ac_check_lib_save_LIBS
10144fi
Reid Spencera773bd52006-08-04 18:18:08 +000010145{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10146echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010147if test $ac_cv_lib_dld_shl_load = yes; then
10148
10149cat >>confdefs.h <<\_ACEOF
10150#define HAVE_SHL_LOAD 1
10151_ACEOF
10152
10153 LIBADD_DL="$LIBADD_DL -ldld"
10154else
Reid Spencera773bd52006-08-04 18:18:08 +000010155 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10156echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10159else
10160 ac_check_lib_save_LIBS=$LIBS
10161LIBS="-ldl $LIBS"
10162cat >conftest.$ac_ext <<_ACEOF
10163/* confdefs.h. */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
10167/* end confdefs.h. */
10168
Reid Spencera773bd52006-08-04 18:18:08 +000010169/* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172#ifdef __cplusplus
10173extern "C"
10174#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175char dlopen ();
10176int
10177main ()
10178{
Reid Spencera773bd52006-08-04 18:18:08 +000010179return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180 ;
10181 return 0;
10182}
10183_ACEOF
10184rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010185if { (ac_try="$ac_link"
10186case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10189esac
10190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10199 { (case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10202esac
10203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_try") 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest$ac_exeext'
10209 { (case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212esac
10213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_try") 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218 ac_cv_lib_dl_dlopen=yes
10219else
10220 echo "$as_me: failed program was:" >&5
10221sed 's/^/| /' conftest.$ac_ext >&5
10222
Reid Spencera773bd52006-08-04 18:18:08 +000010223 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224fi
Reid Spencera773bd52006-08-04 18:18:08 +000010225
Tanya Lattnercf067672008-01-17 05:57:22 +000010226rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227 conftest$ac_exeext conftest.$ac_ext
10228LIBS=$ac_check_lib_save_LIBS
10229fi
Reid Spencera773bd52006-08-04 18:18:08 +000010230{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10231echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232if test $ac_cv_lib_dl_dlopen = yes; then
10233
10234cat >>confdefs.h <<\_ACEOF
10235#define HAVE_LIBDL 1
10236_ACEOF
10237
10238 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10239else
10240 cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h. */
10246#if HAVE_DLFCN_H
10247# include <dlfcn.h>
10248#endif
10249
10250int
10251main ()
10252{
10253dlopen(0, 0);
10254 ;
10255 return 0;
10256}
10257_ACEOF
10258rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010259if { (ac_try="$ac_link"
10260case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286esac
10287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292
10293cat >>confdefs.h <<\_ACEOF
10294#define HAVE_LIBDL 1
10295_ACEOF
10296 libltdl_cv_func_dlopen="yes"
10297else
10298 echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
Reid Spencera773bd52006-08-04 18:18:08 +000010301 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10302echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305else
10306 ac_check_lib_save_LIBS=$LIBS
10307LIBS="-lsvld $LIBS"
10308cat >conftest.$ac_ext <<_ACEOF
10309/* confdefs.h. */
10310_ACEOF
10311cat confdefs.h >>conftest.$ac_ext
10312cat >>conftest.$ac_ext <<_ACEOF
10313/* end confdefs.h. */
10314
Reid Spencera773bd52006-08-04 18:18:08 +000010315/* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318#ifdef __cplusplus
10319extern "C"
10320#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321char dlopen ();
10322int
10323main ()
10324{
Reid Spencera773bd52006-08-04 18:18:08 +000010325return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010331if { (ac_try="$ac_link"
10332case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335esac
10336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10345 { (case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10348esac
10349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_try") 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try='test -s conftest$ac_exeext'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358esac
10359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364 ac_cv_lib_svld_dlopen=yes
10365else
10366 echo "$as_me: failed program was:" >&5
10367sed 's/^/| /' conftest.$ac_ext >&5
10368
Reid Spencera773bd52006-08-04 18:18:08 +000010369 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370fi
Reid Spencera773bd52006-08-04 18:18:08 +000010371
Tanya Lattnercf067672008-01-17 05:57:22 +000010372rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010373 conftest$ac_exeext conftest.$ac_ext
10374LIBS=$ac_check_lib_save_LIBS
10375fi
Reid Spencera773bd52006-08-04 18:18:08 +000010376{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10377echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378if test $ac_cv_lib_svld_dlopen = yes; then
10379
10380cat >>confdefs.h <<\_ACEOF
10381#define HAVE_LIBDL 1
10382_ACEOF
10383
10384 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10385else
Reid Spencera773bd52006-08-04 18:18:08 +000010386 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10387echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390else
10391 ac_check_lib_save_LIBS=$LIBS
10392LIBS="-ldld $LIBS"
10393cat >conftest.$ac_ext <<_ACEOF
10394/* confdefs.h. */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h. */
10399
Reid Spencera773bd52006-08-04 18:18:08 +000010400/* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403#ifdef __cplusplus
10404extern "C"
10405#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406char dld_link ();
10407int
10408main ()
10409{
Reid Spencera773bd52006-08-04 18:18:08 +000010410return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 ;
10412 return 0;
10413}
10414_ACEOF
10415rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010416if { (ac_try="$ac_link"
10417case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420esac
10421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010428 (exit $ac_status); } &&
10429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10430 { (case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433esac
10434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_try") 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest$ac_exeext'
10440 { (case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443esac
10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_try") 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010449 ac_cv_lib_dld_dld_link=yes
10450else
10451 echo "$as_me: failed program was:" >&5
10452sed 's/^/| /' conftest.$ac_ext >&5
10453
Reid Spencera773bd52006-08-04 18:18:08 +000010454 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455fi
Reid Spencera773bd52006-08-04 18:18:08 +000010456
Tanya Lattnercf067672008-01-17 05:57:22 +000010457rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458 conftest$ac_exeext conftest.$ac_ext
10459LIBS=$ac_check_lib_save_LIBS
10460fi
Reid Spencera773bd52006-08-04 18:18:08 +000010461{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10462echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010463if test $ac_cv_lib_dld_dld_link = yes; then
10464
10465cat >>confdefs.h <<\_ACEOF
10466#define HAVE_DLD 1
10467_ACEOF
10468
10469 LIBADD_DL="$LIBADD_DL -ldld"
10470else
Reid Spencera773bd52006-08-04 18:18:08 +000010471 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10472echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475else
10476 cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
10482/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484#define _dyld_func_lookup innocuous__dyld_func_lookup
10485
10486/* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char _dyld_func_lookup (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10490
10491#ifdef __STDC__
10492# include <limits.h>
10493#else
10494# include <assert.h>
10495#endif
10496
10497#undef _dyld_func_lookup
10498
Reid Spencera773bd52006-08-04 18:18:08 +000010499/* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502#ifdef __cplusplus
10503extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505char _dyld_func_lookup ();
10506/* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010509#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511#endif
10512
10513int
10514main ()
10515{
Reid Spencera773bd52006-08-04 18:18:08 +000010516return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517 ;
10518 return 0;
10519}
10520_ACEOF
10521rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010522if { (ac_try="$ac_link"
10523case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526esac
10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539esac
10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest$ac_exeext'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555 ac_cv_func__dyld_func_lookup=yes
10556else
10557 echo "$as_me: failed program was:" >&5
10558sed 's/^/| /' conftest.$ac_ext >&5
10559
Reid Spencera773bd52006-08-04 18:18:08 +000010560 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561fi
Reid Spencera773bd52006-08-04 18:18:08 +000010562
Tanya Lattnercf067672008-01-17 05:57:22 +000010563rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 conftest$ac_exeext conftest.$ac_ext
10565fi
Reid Spencera773bd52006-08-04 18:18:08 +000010566{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10567echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568if test $ac_cv_func__dyld_func_lookup = yes; then
10569
10570cat >>confdefs.h <<\_ACEOF
10571#define HAVE_DYLD 1
10572_ACEOF
10573
10574fi
10575
10576
10577fi
10578
10579
10580fi
10581
10582
10583fi
Reid Spencera773bd52006-08-04 18:18:08 +000010584
Tanya Lattnercf067672008-01-17 05:57:22 +000010585rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586 conftest$ac_exeext conftest.$ac_ext
10587
10588fi
10589
10590
10591fi
10592
10593
10594fi
10595
10596
10597if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10598then
10599 lt_save_LIBS="$LIBS"
10600 LIBS="$LIBS $LIBADD_DL"
10601
10602for ac_func in dlerror
10603do
10604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010605{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10607if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609else
10610 cat >conftest.$ac_ext <<_ACEOF
10611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h. */
10616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10618#define $ac_func innocuous_$ac_func
10619
10620/* System header to define __stub macros and hopefully few prototypes,
10621 which can conflict with char $ac_func (); below.
10622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623 <limits.h> exists even on freestanding compilers. */
10624
10625#ifdef __STDC__
10626# include <limits.h>
10627#else
10628# include <assert.h>
10629#endif
10630
10631#undef $ac_func
10632
Reid Spencera773bd52006-08-04 18:18:08 +000010633/* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636#ifdef __cplusplus
10637extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010639char $ac_func ();
10640/* The GNU C library defines this for functions which it implements
10641 to always fail with ENOSYS. Some functions are actually named
10642 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010643#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645#endif
10646
10647int
10648main ()
10649{
Reid Spencera773bd52006-08-04 18:18:08 +000010650return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651 ;
10652 return 0;
10653}
10654_ACEOF
10655rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010656if { (ac_try="$ac_link"
10657case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
10661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010668 (exit $ac_status); } &&
10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest$ac_exeext'
10680 { (case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683esac
10684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_try") 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689 eval "$as_ac_var=yes"
10690else
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
Reid Spencera773bd52006-08-04 18:18:08 +000010694 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695fi
Reid Spencera773bd52006-08-04 18:18:08 +000010696
Tanya Lattnercf067672008-01-17 05:57:22 +000010697rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010698 conftest$ac_exeext conftest.$ac_ext
10699fi
Reid Spencera773bd52006-08-04 18:18:08 +000010700ac_res=`eval echo '${'$as_ac_var'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703if test `eval echo '${'$as_ac_var'}'` = yes; then
10704 cat >>confdefs.h <<_ACEOF
10705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10706_ACEOF
10707
10708fi
10709done
10710
10711 LIBS="$lt_save_LIBS"
10712fi
10713ac_ext=c
10714ac_cpp='$CPP $CPPFLAGS'
10715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10717ac_compiler_gnu=$ac_cv_c_compiler_gnu
10718
10719
10720
Reid Spencera773bd52006-08-04 18:18:08 +000010721{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10722echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725else
10726 ac_cv_sys_symbol_underscore=no
10727 cat > conftest.$ac_ext <<EOF
10728void nm_test_func(){}
10729int main(){nm_test_func;return 0;}
10730EOF
10731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; then
10736 # Now try to grab the symbols.
10737 ac_nlist=conftest.nm
10738 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10739 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && test -s "$ac_nlist"; then
10743 # See whether the symbols have a leading underscore.
10744 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10745 ac_cv_sys_symbol_underscore=yes
10746 else
10747 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10748 :
10749 else
10750 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10751 fi
10752 fi
10753 else
10754 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10755 fi
10756 else
10757 echo "configure: failed program was:" >&5
10758 cat conftest.c >&5
10759 fi
10760 rm -rf conftest*
10761
10762fi
Reid Spencera773bd52006-08-04 18:18:08 +000010763{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10764echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765
10766
10767if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10768 if test x"$libltdl_cv_func_dlopen" = xyes ||
10769 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010770 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10771echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772if test "${libltdl_cv_need_uscore+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774else
10775 libltdl_cv_need_uscore=unknown
10776 save_LIBS="$LIBS"
10777 LIBS="$LIBS $LIBADD_DL"
10778 if test "$cross_compiling" = yes; then :
10779 libltdl_cv_need_uscore=cross
10780else
10781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10782 lt_status=$lt_dlunknown
10783 cat > conftest.$ac_ext <<EOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000010784#line 10784 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785#include "confdefs.h"
10786
10787#if HAVE_DLFCN_H
10788#include <dlfcn.h>
10789#endif
10790
10791#include <stdio.h>
10792
10793#ifdef RTLD_GLOBAL
10794# define LT_DLGLOBAL RTLD_GLOBAL
10795#else
10796# ifdef DL_GLOBAL
10797# define LT_DLGLOBAL DL_GLOBAL
10798# else
10799# define LT_DLGLOBAL 0
10800# endif
10801#endif
10802
10803/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10804 find out it does not work in some platform. */
10805#ifndef LT_DLLAZY_OR_NOW
10806# ifdef RTLD_LAZY
10807# define LT_DLLAZY_OR_NOW RTLD_LAZY
10808# else
10809# ifdef DL_LAZY
10810# define LT_DLLAZY_OR_NOW DL_LAZY
10811# else
10812# ifdef RTLD_NOW
10813# define LT_DLLAZY_OR_NOW RTLD_NOW
10814# else
10815# ifdef DL_NOW
10816# define LT_DLLAZY_OR_NOW DL_NOW
10817# else
10818# define LT_DLLAZY_OR_NOW 0
10819# endif
10820# endif
10821# endif
10822# endif
10823#endif
10824
10825#ifdef __cplusplus
10826extern "C" void exit (int);
10827#endif
10828
10829void fnord() { int i=42;}
10830int main ()
10831{
10832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10833 int status = $lt_dlunknown;
10834
10835 if (self)
10836 {
10837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10839 /* dlclose (self); */
10840 }
Reid Spencera773bd52006-08-04 18:18:08 +000010841 else
10842 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843
10844 exit (status);
10845}
10846EOF
10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010852 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853 lt_status=$?
10854 case x$lt_status in
10855 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10856 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010857 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858 esac
10859 else :
10860 # compilation failed
10861
10862 fi
10863fi
10864rm -fr conftest*
10865
10866 LIBS="$save_LIBS"
10867
10868fi
Reid Spencera773bd52006-08-04 18:18:08 +000010869{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10870echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010871 fi
10872fi
10873
10874if test x"$libltdl_cv_need_uscore" = xyes; then
10875
10876cat >>confdefs.h <<\_ACEOF
10877#define NEED_USCORE 1
10878_ACEOF
10879
10880fi
10881
10882
Reid Spencera773bd52006-08-04 18:18:08 +000010883{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10884echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887else
10888 # PORTME does your system automatically load deplibs for dlopen?
10889 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10890 # For now, we just catch OSes we know something about -- in the
10891 # future, we'll try test this programmatically.
10892 libltdl_cv_sys_dlopen_deplibs=unknown
10893 case "$host_os" in
10894 aix3*|aix4.1.*|aix4.2.*)
10895 # Unknown whether this is true for these versions of AIX, but
10896 # we want this `case' here to explicitly catch those versions.
10897 libltdl_cv_sys_dlopen_deplibs=unknown
10898 ;;
10899 aix[45]*)
10900 libltdl_cv_sys_dlopen_deplibs=yes
10901 ;;
10902 darwin*)
10903 # Assuming the user has installed a libdl from somewhere, this is true
10904 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10905 libltdl_cv_sys_dlopen_deplibs=yes
10906 ;;
10907 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10908 # GNU and its variants, using gnu ld.so (Glibc)
10909 libltdl_cv_sys_dlopen_deplibs=yes
10910 ;;
10911 hpux10*|hpux11*)
10912 libltdl_cv_sys_dlopen_deplibs=yes
10913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010914 interix*)
10915 libltdl_cv_sys_dlopen_deplibs=yes
10916 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917 irix[12345]*|irix6.[01]*)
10918 # Catch all versions of IRIX before 6.2, and indicate that we don't
10919 # know how it worked for any of those versions.
10920 libltdl_cv_sys_dlopen_deplibs=unknown
10921 ;;
10922 irix*)
10923 # The case above catches anything before 6.2, and it's known that
10924 # at 6.2 and later dlopen does load deplibs.
10925 libltdl_cv_sys_dlopen_deplibs=yes
10926 ;;
10927 netbsd*)
10928 libltdl_cv_sys_dlopen_deplibs=yes
10929 ;;
10930 openbsd*)
10931 libltdl_cv_sys_dlopen_deplibs=yes
10932 ;;
10933 osf[1234]*)
10934 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10935 # it did *not* use an RPATH in a shared library to find objects the
10936 # library depends on, so we explictly say `no'.
10937 libltdl_cv_sys_dlopen_deplibs=no
10938 ;;
10939 osf5.0|osf5.0a|osf5.1)
10940 # dlopen *does* load deplibs and with the right loader patch applied
10941 # it even uses RPATH in a shared library to search for shared objects
10942 # that the library depends on, but there's no easy way to know if that
10943 # patch is installed. Since this is the case, all we can really
10944 # say is unknown -- it depends on the patch being installed. If
10945 # it is, this changes to `yes'. Without it, it would be `no'.
10946 libltdl_cv_sys_dlopen_deplibs=unknown
10947 ;;
10948 osf*)
10949 # the two cases above should catch all versions of osf <= 5.1. Read
10950 # the comments above for what we know about them.
10951 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10952 # is used to find them so we can finally say `yes'.
10953 libltdl_cv_sys_dlopen_deplibs=yes
10954 ;;
10955 solaris*)
10956 libltdl_cv_sys_dlopen_deplibs=yes
10957 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10959 libltdl_cv_sys_dlopen_deplibs=yes
10960 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961 esac
10962
10963fi
Reid Spencera773bd52006-08-04 18:18:08 +000010964{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10965echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10967
10968cat >>confdefs.h <<\_ACEOF
10969#define LTDL_DLOPEN_DEPLIBS 1
10970_ACEOF
10971
10972fi
10973
10974
10975for ac_header in argz.h
10976do
10977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983fi
Reid Spencera773bd52006-08-04 18:18:08 +000010984ac_res=`eval echo '${'$as_ac_Header'}'`
10985 { echo "$as_me:$LINENO: result: $ac_res" >&5
10986echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987else
10988 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010989{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991cat >conftest.$ac_ext <<_ACEOF
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
10997$ac_includes_default
10998#include <$ac_header>
10999_ACEOF
11000rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011001if { (ac_try="$ac_compile"
11002case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005esac
11006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018esac
11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest.$ac_objext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034 ac_header_compiler=yes
11035else
11036 echo "$as_me: failed program was:" >&5
11037sed 's/^/| /' conftest.$ac_ext >&5
11038
Reid Spencera773bd52006-08-04 18:18:08 +000011039 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011040fi
Reid Spencera773bd52006-08-04 18:18:08 +000011041
11042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11044echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045
11046# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055#include <$ac_header>
11056_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011057if { (ac_try="$ac_cpp conftest.$ac_ext"
11058case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11061esac
11062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011069 (exit $ac_status); } >/dev/null; then
11070 if test -s conftest.err; then
11071 ac_cpp_err=$ac_c_preproc_warn_flag
11072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11073 else
11074 ac_cpp_err=
11075 fi
11076else
11077 ac_cpp_err=yes
11078fi
11079if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080 ac_header_preproc=yes
11081else
11082 echo "$as_me: failed program was:" >&5
11083sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 ac_header_preproc=no
11086fi
Reid Spencera773bd52006-08-04 18:18:08 +000011087
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011089{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091
11092# So? What about this header?
11093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11094 yes:no: )
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099 ac_header_preproc=yes
11100 ;;
11101 no:yes:* )
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011114 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115## ----------------------------------- ##
11116## Report this to llvmbugs@cs.uiuc.edu ##
11117## ----------------------------------- ##
11118_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011119 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120 ;;
11121esac
Reid Spencera773bd52006-08-04 18:18:08 +000011122{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11124if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126else
11127 eval "$as_ac_Header=\$ac_header_preproc"
11128fi
Reid Spencera773bd52006-08-04 18:18:08 +000011129ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011132
11133fi
11134if test `eval echo '${'$as_ac_Header'}'` = yes; then
11135 cat >>confdefs.h <<_ACEOF
11136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11137_ACEOF
11138
11139fi
11140
11141done
11142
11143
Reid Spencera773bd52006-08-04 18:18:08 +000011144{ echo "$as_me:$LINENO: checking for error_t" >&5
11145echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146if test "${ac_cv_type_error_t+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 cat >conftest.$ac_ext <<_ACEOF
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155#if HAVE_ARGZ_H
11156# include <argz.h>
11157#endif
11158
Reid Spencera773bd52006-08-04 18:18:08 +000011159typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160int
11161main ()
11162{
Reid Spencera773bd52006-08-04 18:18:08 +000011163if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011164 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011165if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166 return 0;
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011172if { (ac_try="$ac_compile"
11173case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189esac
11190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest.$ac_objext'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199esac
11200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205 ac_cv_type_error_t=yes
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
Reid Spencera773bd52006-08-04 18:18:08 +000011210 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211fi
Reid Spencera773bd52006-08-04 18:18:08 +000011212
11213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214fi
Reid Spencera773bd52006-08-04 18:18:08 +000011215{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11216echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217if test $ac_cv_type_error_t = yes; then
11218
11219cat >>confdefs.h <<_ACEOF
11220#define HAVE_ERROR_T 1
11221_ACEOF
11222
11223
11224else
11225
11226cat >>confdefs.h <<\_ACEOF
11227#define error_t int
11228_ACEOF
11229
11230fi
11231
11232
11233
11234
11235
11236
11237
11238for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11239do
11240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011241{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245else
11246 cat >conftest.$ac_ext <<_ACEOF
11247/* confdefs.h. */
11248_ACEOF
11249cat confdefs.h >>conftest.$ac_ext
11250cat >>conftest.$ac_ext <<_ACEOF
11251/* end confdefs.h. */
11252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11254#define $ac_func innocuous_$ac_func
11255
11256/* System header to define __stub macros and hopefully few prototypes,
11257 which can conflict with char $ac_func (); below.
11258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11259 <limits.h> exists even on freestanding compilers. */
11260
11261#ifdef __STDC__
11262# include <limits.h>
11263#else
11264# include <assert.h>
11265#endif
11266
11267#undef $ac_func
11268
Reid Spencera773bd52006-08-04 18:18:08 +000011269/* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272#ifdef __cplusplus
11273extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275char $ac_func ();
11276/* The GNU C library defines this for functions which it implements
11277 to always fail with ENOSYS. Some functions are actually named
11278 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011279#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281#endif
11282
11283int
11284main ()
11285{
Reid Spencera773bd52006-08-04 18:18:08 +000011286return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011292if { (ac_try="$ac_link"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest$ac_exeext'
11316 { (case "(($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_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325 eval "$as_ac_var=yes"
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
Reid Spencera773bd52006-08-04 18:18:08 +000011330 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331fi
Reid Spencera773bd52006-08-04 18:18:08 +000011332
Tanya Lattnercf067672008-01-17 05:57:22 +000011333rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011334 conftest$ac_exeext conftest.$ac_ext
11335fi
Reid Spencera773bd52006-08-04 18:18:08 +000011336ac_res=`eval echo '${'$as_ac_var'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011339if test `eval echo '${'$as_ac_var'}'` = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11342_ACEOF
11343
11344fi
11345done
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11375 stdio.h unistd.h
11376do
11377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383fi
Reid Spencera773bd52006-08-04 18:18:08 +000011384ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387else
11388 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391cat >conftest.$ac_ext <<_ACEOF
11392/* confdefs.h. */
11393_ACEOF
11394cat confdefs.h >>conftest.$ac_ext
11395cat >>conftest.$ac_ext <<_ACEOF
11396/* end confdefs.h. */
11397$ac_includes_default
11398#include <$ac_header>
11399_ACEOF
11400rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011401if { (ac_try="$ac_compile"
11402case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418esac
11419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
11429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_try") 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434 ac_header_compiler=yes
11435else
11436 echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
Reid Spencera773bd52006-08-04 18:18:08 +000011439 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440fi
Reid Spencera773bd52006-08-04 18:18:08 +000011441
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445
11446# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011447{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455#include <$ac_header>
11456_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011457if { (ac_try="$ac_cpp conftest.$ac_ext"
11458case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461esac
11462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011469 (exit $ac_status); } >/dev/null; then
11470 if test -s conftest.err; then
11471 ac_cpp_err=$ac_c_preproc_warn_flag
11472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11473 else
11474 ac_cpp_err=
11475 fi
11476else
11477 ac_cpp_err=yes
11478fi
11479if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480 ac_header_preproc=yes
11481else
11482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_header_preproc=no
11486fi
Reid Spencera773bd52006-08-04 18:18:08 +000011487
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011489{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491
11492# So? What about this header?
11493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11494 yes:no: )
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11499 ac_header_preproc=yes
11500 ;;
11501 no:yes:* )
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011514 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515## ----------------------------------- ##
11516## Report this to llvmbugs@cs.uiuc.edu ##
11517## ----------------------------------- ##
11518_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011519 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520 ;;
11521esac
Reid Spencera773bd52006-08-04 18:18:08 +000011522{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526else
11527 eval "$as_ac_Header=\$ac_header_preproc"
11528fi
Reid Spencera773bd52006-08-04 18:18:08 +000011529ac_res=`eval echo '${'$as_ac_Header'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532
11533fi
11534if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11537_ACEOF
11538
11539fi
11540
11541done
11542
11543
11544
11545
11546
11547for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11548do
11549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555fi
Reid Spencera773bd52006-08-04 18:18:08 +000011556ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559else
11560 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011561{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h. */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h. */
11569$ac_includes_default
11570#include <$ac_header>
11571_ACEOF
11572rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011573if { (ac_try="$ac_compile"
11574case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577esac
11578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580 ac_status=$?
11581 grep -v '^ *+' conftest.er1 >conftest.err
11582 rm -f conftest.er1
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590esac
11591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try='test -s conftest.$ac_objext'
11597 { (case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11600esac
11601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_try") 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606 ac_header_compiler=yes
11607else
11608 echo "$as_me: failed program was:" >&5
11609sed 's/^/| /' conftest.$ac_ext >&5
11610
Reid Spencera773bd52006-08-04 18:18:08 +000011611 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612fi
Reid Spencera773bd52006-08-04 18:18:08 +000011613
11614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11616echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011617
11618# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011619{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
11627#include <$ac_header>
11628_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011629if { (ac_try="$ac_cpp conftest.$ac_ext"
11630case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11633esac
11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636 ac_status=$?
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011641 (exit $ac_status); } >/dev/null; then
11642 if test -s conftest.err; then
11643 ac_cpp_err=$ac_c_preproc_warn_flag
11644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11645 else
11646 ac_cpp_err=
11647 fi
11648else
11649 ac_cpp_err=yes
11650fi
11651if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652 ac_header_preproc=yes
11653else
11654 echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 ac_header_preproc=no
11658fi
Reid Spencera773bd52006-08-04 18:18:08 +000011659
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011660rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011661{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11662echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663
11664# So? What about this header?
11665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11666 yes:no: )
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11671 ac_header_preproc=yes
11672 ;;
11673 no:yes:* )
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011686 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687## ----------------------------------- ##
11688## Report this to llvmbugs@cs.uiuc.edu ##
11689## ----------------------------------- ##
11690_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011691 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692 ;;
11693esac
Reid Spencera773bd52006-08-04 18:18:08 +000011694{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
11699 eval "$as_ac_Header=\$ac_header_preproc"
11700fi
Reid Spencera773bd52006-08-04 18:18:08 +000011701ac_res=`eval echo '${'$as_ac_Header'}'`
11702 { echo "$as_me:$LINENO: result: $ac_res" >&5
11703echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704
11705fi
11706if test `eval echo '${'$as_ac_Header'}'` = yes; then
11707 cat >>confdefs.h <<_ACEOF
11708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11709_ACEOF
11710
11711fi
11712
11713done
11714
11715
11716
11717for ac_header in string.h strings.h
11718do
11719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725fi
Reid Spencera773bd52006-08-04 18:18:08 +000011726ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729else
11730 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011731{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
11739$ac_includes_default
11740#include <$ac_header>
11741_ACEOF
11742rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011743if { (ac_try="$ac_compile"
11744case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11747esac
11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11757 { (case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_try") 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770esac
11771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_try") 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776 ac_header_compiler=yes
11777else
11778 echo "$as_me: failed program was:" >&5
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
Reid Spencera773bd52006-08-04 18:18:08 +000011781 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782fi
Reid Spencera773bd52006-08-04 18:18:08 +000011783
11784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11786echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787
11788# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011789{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011791cat >conftest.$ac_ext <<_ACEOF
11792/* confdefs.h. */
11793_ACEOF
11794cat confdefs.h >>conftest.$ac_ext
11795cat >>conftest.$ac_ext <<_ACEOF
11796/* end confdefs.h. */
11797#include <$ac_header>
11798_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011799if { (ac_try="$ac_cpp conftest.$ac_ext"
11800case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011811 (exit $ac_status); } >/dev/null; then
11812 if test -s conftest.err; then
11813 ac_cpp_err=$ac_c_preproc_warn_flag
11814 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11815 else
11816 ac_cpp_err=
11817 fi
11818else
11819 ac_cpp_err=yes
11820fi
11821if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822 ac_header_preproc=yes
11823else
11824 echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
11827 ac_header_preproc=no
11828fi
Reid Spencera773bd52006-08-04 18:18:08 +000011829
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011831{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11832echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833
11834# So? What about this header?
11835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11836 yes:no: )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11841 ac_header_preproc=yes
11842 ;;
11843 no:yes:* )
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011856 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857## ----------------------------------- ##
11858## Report this to llvmbugs@cs.uiuc.edu ##
11859## ----------------------------------- ##
11860_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011861 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011862 ;;
11863esac
Reid Spencera773bd52006-08-04 18:18:08 +000011864{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869 eval "$as_ac_Header=\$ac_header_preproc"
11870fi
Reid Spencera773bd52006-08-04 18:18:08 +000011871ac_res=`eval echo '${'$as_ac_Header'}'`
11872 { echo "$as_me:$LINENO: result: $ac_res" >&5
11873echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011874
11875fi
11876if test `eval echo '${'$as_ac_Header'}'` = yes; then
11877 cat >>confdefs.h <<_ACEOF
11878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11879_ACEOF
11880 break
11881fi
11882
11883done
11884
11885
11886
11887
11888for ac_func in strchr index
11889do
11890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011891{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11893if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895else
11896 cat >conftest.$ac_ext <<_ACEOF
11897/* confdefs.h. */
11898_ACEOF
11899cat confdefs.h >>conftest.$ac_ext
11900cat >>conftest.$ac_ext <<_ACEOF
11901/* end confdefs.h. */
11902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11904#define $ac_func innocuous_$ac_func
11905
11906/* System header to define __stub macros and hopefully few prototypes,
11907 which can conflict with char $ac_func (); below.
11908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11909 <limits.h> exists even on freestanding compilers. */
11910
11911#ifdef __STDC__
11912# include <limits.h>
11913#else
11914# include <assert.h>
11915#endif
11916
11917#undef $ac_func
11918
Reid Spencera773bd52006-08-04 18:18:08 +000011919/* Override any GCC internal prototype to avoid an error.
11920 Use char because int might match the return type of a GCC
11921 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922#ifdef __cplusplus
11923extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925char $ac_func ();
11926/* The GNU C library defines this for functions which it implements
11927 to always fail with ENOSYS. Some functions are actually named
11928 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011929#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011930choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931#endif
11932
11933int
11934main ()
11935{
Reid Spencera773bd52006-08-04 18:18:08 +000011936return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937 ;
11938 return 0;
11939}
11940_ACEOF
11941rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011942if { (ac_try="$ac_link"
11943case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946esac
11947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011954 (exit $ac_status); } &&
11955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11956 { (case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_try") 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest$ac_exeext'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969esac
11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975 eval "$as_ac_var=yes"
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
Reid Spencera773bd52006-08-04 18:18:08 +000011980 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011981fi
Reid Spencera773bd52006-08-04 18:18:08 +000011982
Tanya Lattnercf067672008-01-17 05:57:22 +000011983rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011984 conftest$ac_exeext conftest.$ac_ext
11985fi
Reid Spencera773bd52006-08-04 18:18:08 +000011986ac_res=`eval echo '${'$as_ac_var'}'`
11987 { echo "$as_me:$LINENO: result: $ac_res" >&5
11988echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989if test `eval echo '${'$as_ac_var'}'` = yes; then
11990 cat >>confdefs.h <<_ACEOF
11991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11992_ACEOF
11993 break
11994fi
11995done
11996
11997
11998
11999for ac_func in strrchr rindex
12000do
12001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012002{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12004if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007 cat >conftest.$ac_ext <<_ACEOF
12008/* confdefs.h. */
12009_ACEOF
12010cat confdefs.h >>conftest.$ac_ext
12011cat >>conftest.$ac_ext <<_ACEOF
12012/* end confdefs.h. */
12013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12015#define $ac_func innocuous_$ac_func
12016
12017/* System header to define __stub macros and hopefully few prototypes,
12018 which can conflict with char $ac_func (); below.
12019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12020 <limits.h> exists even on freestanding compilers. */
12021
12022#ifdef __STDC__
12023# include <limits.h>
12024#else
12025# include <assert.h>
12026#endif
12027
12028#undef $ac_func
12029
Reid Spencera773bd52006-08-04 18:18:08 +000012030/* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012033#ifdef __cplusplus
12034extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036char $ac_func ();
12037/* The GNU C library defines this for functions which it implements
12038 to always fail with ENOSYS. Some functions are actually named
12039 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012040#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012041choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042#endif
12043
12044int
12045main ()
12046{
Reid Spencera773bd52006-08-04 18:18:08 +000012047return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012048 ;
12049 return 0;
12050}
12051_ACEOF
12052rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012053if { (ac_try="$ac_link"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070esac
12071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_try") 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086 eval "$as_ac_var=yes"
12087else
12088 echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
Reid Spencera773bd52006-08-04 18:18:08 +000012091 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012092fi
Reid Spencera773bd52006-08-04 18:18:08 +000012093
Tanya Lattnercf067672008-01-17 05:57:22 +000012094rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012095 conftest$ac_exeext conftest.$ac_ext
12096fi
Reid Spencera773bd52006-08-04 18:18:08 +000012097ac_res=`eval echo '${'$as_ac_var'}'`
12098 { echo "$as_me:$LINENO: result: $ac_res" >&5
12099echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012100if test `eval echo '${'$as_ac_var'}'` = yes; then
12101 cat >>confdefs.h <<_ACEOF
12102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12103_ACEOF
12104 break
12105fi
12106done
12107
12108
12109
12110for ac_func in memcpy bcopy
12111do
12112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012113{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12115if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116 echo $ECHO_N "(cached) $ECHO_C" >&6
12117else
12118 cat >conftest.$ac_ext <<_ACEOF
12119/* confdefs.h. */
12120_ACEOF
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h. */
12124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12126#define $ac_func innocuous_$ac_func
12127
12128/* System header to define __stub macros and hopefully few prototypes,
12129 which can conflict with char $ac_func (); below.
12130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 <limits.h> exists even on freestanding compilers. */
12132
12133#ifdef __STDC__
12134# include <limits.h>
12135#else
12136# include <assert.h>
12137#endif
12138
12139#undef $ac_func
12140
Reid Spencera773bd52006-08-04 18:18:08 +000012141/* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144#ifdef __cplusplus
12145extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012146#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012147char $ac_func ();
12148/* The GNU C library defines this for functions which it implements
12149 to always fail with ENOSYS. Some functions are actually named
12150 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012151#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012152choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012153#endif
12154
12155int
12156main ()
12157{
Reid Spencera773bd52006-08-04 18:18:08 +000012158return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159 ;
12160 return 0;
12161}
12162_ACEOF
12163rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012164if { (ac_try="$ac_link"
12165case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168esac
12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181esac
12182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_try") 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest$ac_exeext'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197 eval "$as_ac_var=yes"
12198else
12199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
Reid Spencera773bd52006-08-04 18:18:08 +000012202 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203fi
Reid Spencera773bd52006-08-04 18:18:08 +000012204
Tanya Lattnercf067672008-01-17 05:57:22 +000012205rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206 conftest$ac_exeext conftest.$ac_ext
12207fi
Reid Spencera773bd52006-08-04 18:18:08 +000012208ac_res=`eval echo '${'$as_ac_var'}'`
12209 { echo "$as_me:$LINENO: result: $ac_res" >&5
12210echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211if test `eval echo '${'$as_ac_var'}'` = yes; then
12212 cat >>confdefs.h <<_ACEOF
12213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12214_ACEOF
12215 break
12216fi
12217done
12218
12219
12220
12221for ac_func in memmove strcmp
12222do
12223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012224{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12226if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
12235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237#define $ac_func innocuous_$ac_func
12238
12239/* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12243
12244#ifdef __STDC__
12245# include <limits.h>
12246#else
12247# include <assert.h>
12248#endif
12249
12250#undef $ac_func
12251
Reid Spencera773bd52006-08-04 18:18:08 +000012252/* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255#ifdef __cplusplus
12256extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012258char $ac_func ();
12259/* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012262#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012263choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264#endif
12265
12266int
12267main ()
12268{
Reid Spencera773bd52006-08-04 18:18:08 +000012269return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012270 ;
12271 return 0;
12272}
12273_ACEOF
12274rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012275if { (ac_try="$ac_link"
12276case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279esac
12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_try") 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; } &&
12298 { ac_try='test -s conftest$ac_exeext'
12299 { (case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_try") 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012308 eval "$as_ac_var=yes"
12309else
12310 echo "$as_me: failed program was:" >&5
12311sed 's/^/| /' conftest.$ac_ext >&5
12312
Reid Spencera773bd52006-08-04 18:18:08 +000012313 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314fi
Reid Spencera773bd52006-08-04 18:18:08 +000012315
Tanya Lattnercf067672008-01-17 05:57:22 +000012316rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317 conftest$ac_exeext conftest.$ac_ext
12318fi
Reid Spencera773bd52006-08-04 18:18:08 +000012319ac_res=`eval echo '${'$as_ac_var'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322if test `eval echo '${'$as_ac_var'}'` = yes; then
12323 cat >>confdefs.h <<_ACEOF
12324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12325_ACEOF
12326
12327fi
12328done
12329
12330
12331
12332
12333for ac_func in closedir opendir readdir
12334do
12335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012336{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12338if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340else
12341 cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12349#define $ac_func innocuous_$ac_func
12350
12351/* System header to define __stub macros and hopefully few prototypes,
12352 which can conflict with char $ac_func (); below.
12353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354 <limits.h> exists even on freestanding compilers. */
12355
12356#ifdef __STDC__
12357# include <limits.h>
12358#else
12359# include <assert.h>
12360#endif
12361
12362#undef $ac_func
12363
Reid Spencera773bd52006-08-04 18:18:08 +000012364/* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012367#ifdef __cplusplus
12368extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012369#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012370char $ac_func ();
12371/* The GNU C library defines this for functions which it implements
12372 to always fail with ENOSYS. Some functions are actually named
12373 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012374#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376#endif
12377
12378int
12379main ()
12380{
Reid Spencera773bd52006-08-04 18:18:08 +000012381return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382 ;
12383 return 0;
12384}
12385_ACEOF
12386rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012387if { (ac_try="$ac_link"
12388case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012399 (exit $ac_status); } &&
12400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
12405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try='test -s conftest$ac_exeext'
12411 { (case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414esac
12415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_try") 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012420 eval "$as_ac_var=yes"
12421else
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
Reid Spencera773bd52006-08-04 18:18:08 +000012425 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426fi
Reid Spencera773bd52006-08-04 18:18:08 +000012427
Tanya Lattnercf067672008-01-17 05:57:22 +000012428rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429 conftest$ac_exeext conftest.$ac_ext
12430fi
Reid Spencera773bd52006-08-04 18:18:08 +000012431ac_res=`eval echo '${'$as_ac_var'}'`
12432 { echo "$as_me:$LINENO: result: $ac_res" >&5
12433echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434if test `eval echo '${'$as_ac_var'}'` = yes; then
12435 cat >>confdefs.h <<_ACEOF
12436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12437_ACEOF
12438
12439fi
12440done
12441
12442
Reid Spencera773bd52006-08-04 18:18:08 +000012443# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012445 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446 case $enableval in
12447 yes) enable_shared=yes ;;
12448 no) enable_shared=no ;;
12449 *)
12450 enable_shared=no
12451 # Look at the argument we got. We use all the common list separators.
12452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12453 for pkg in $enableval; do
12454 IFS="$lt_save_ifs"
12455 if test "X$pkg" = "X$p"; then
12456 enable_shared=yes
12457 fi
12458 done
12459 IFS="$lt_save_ifs"
12460 ;;
12461 esac
12462else
12463 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012464fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465
Reid Spencera773bd52006-08-04 18:18:08 +000012466
12467# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012469 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470 case $enableval in
12471 yes) enable_static=yes ;;
12472 no) enable_static=no ;;
12473 *)
12474 enable_static=no
12475 # Look at the argument we got. We use all the common list separators.
12476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12477 for pkg in $enableval; do
12478 IFS="$lt_save_ifs"
12479 if test "X$pkg" = "X$p"; then
12480 enable_static=yes
12481 fi
12482 done
12483 IFS="$lt_save_ifs"
12484 ;;
12485 esac
12486else
12487 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012488fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489
Reid Spencera773bd52006-08-04 18:18:08 +000012490
12491# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012493 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494 case $enableval in
12495 yes) enable_fast_install=yes ;;
12496 no) enable_fast_install=no ;;
12497 *)
12498 enable_fast_install=no
12499 # Look at the argument we got. We use all the common list separators.
12500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12501 for pkg in $enableval; do
12502 IFS="$lt_save_ifs"
12503 if test "X$pkg" = "X$p"; then
12504 enable_fast_install=yes
12505 fi
12506 done
12507 IFS="$lt_save_ifs"
12508 ;;
12509 esac
12510else
12511 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012512fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513
Reid Spencera773bd52006-08-04 18:18:08 +000012514
12515{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12516echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517if test "${lt_cv_path_SED+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
12520 # Loop through the user's path and test for sed and gsed.
12521# Then use that list of sed's as ones to test for truncation.
12522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523for as_dir in $PATH
12524do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for lt_ac_prog in sed gsed; do
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12530 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12531 fi
12532 done
12533 done
12534done
12535lt_ac_max=0
12536lt_ac_count=0
12537# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12538# along with /bin/sed that truncates output.
12539for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012540 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541 cat /dev/null > conftest.in
12542 lt_ac_count=0
12543 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12544 # Check for GNU sed and select it if it is found.
12545 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12546 lt_cv_path_SED=$lt_ac_sed
12547 break
12548 fi
12549 while true; do
12550 cat conftest.in conftest.in >conftest.tmp
12551 mv conftest.tmp conftest.in
12552 cp conftest.in conftest.nl
12553 echo >>conftest.nl
12554 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12555 cmp -s conftest.out conftest.nl || break
12556 # 10000 chars as input seems more than enough
12557 test $lt_ac_count -gt 10 && break
12558 lt_ac_count=`expr $lt_ac_count + 1`
12559 if test $lt_ac_count -gt $lt_ac_max; then
12560 lt_ac_max=$lt_ac_count
12561 lt_cv_path_SED=$lt_ac_sed
12562 fi
12563 done
12564done
12565
12566fi
12567
12568SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012569{ echo "$as_me:$LINENO: result: $SED" >&5
12570echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571
12572
Reid Spencera773bd52006-08-04 18:18:08 +000012573# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012574if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012575 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012576else
12577 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012578fi
12579
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012580ac_prog=ld
12581if test "$GCC" = yes; then
12582 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012583 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12584echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012585 case $host in
12586 *-*-mingw*)
12587 # gcc leaves a trailing carriage return which upsets mingw
12588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12589 *)
12590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12591 esac
12592 case $ac_prog in
12593 # Accept absolute paths.
12594 [\\/]* | ?:[\\/]*)
12595 re_direlt='/[^/][^/]*/\.\./'
12596 # Canonicalize the pathname of ld
12597 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12598 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12599 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12600 done
12601 test -z "$LD" && LD="$ac_prog"
12602 ;;
12603 "")
12604 # If it fails, then pretend we aren't using GCC.
12605 ac_prog=ld
12606 ;;
12607 *)
12608 # If it is relative, then search for the first ld in PATH.
12609 with_gnu_ld=unknown
12610 ;;
12611 esac
12612elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012613 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12614echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012615else
Reid Spencera773bd52006-08-04 18:18:08 +000012616 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12617echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012618fi
12619if test "${lt_cv_path_LD+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621else
12622 if test -z "$LD"; then
12623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12624 for ac_dir in $PATH; do
12625 IFS="$lt_save_ifs"
12626 test -z "$ac_dir" && ac_dir=.
12627 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12628 lt_cv_path_LD="$ac_dir/$ac_prog"
12629 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012630 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631 # Break only if it was the GNU/non-GNU ld that we prefer.
12632 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12633 *GNU* | *'with BFD'*)
12634 test "$with_gnu_ld" != no && break
12635 ;;
12636 *)
12637 test "$with_gnu_ld" != yes && break
12638 ;;
12639 esac
12640 fi
12641 done
12642 IFS="$lt_save_ifs"
12643else
12644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12645fi
12646fi
12647
12648LD="$lt_cv_path_LD"
12649if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012650 { echo "$as_me:$LINENO: result: $LD" >&5
12651echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012652else
Reid Spencera773bd52006-08-04 18:18:08 +000012653 { echo "$as_me:$LINENO: result: no" >&5
12654echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012655fi
12656test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12657echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12658 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012659{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12660echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661if test "${lt_cv_prog_gnu_ld+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663else
Reid Spencera773bd52006-08-04 18:18:08 +000012664 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665case `$LD -v 2>&1 </dev/null` in
12666*GNU* | *'with BFD'*)
12667 lt_cv_prog_gnu_ld=yes
12668 ;;
12669*)
12670 lt_cv_prog_gnu_ld=no
12671 ;;
12672esac
12673fi
Reid Spencera773bd52006-08-04 18:18:08 +000012674{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12675echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012676with_gnu_ld=$lt_cv_prog_gnu_ld
12677
12678
Reid Spencera773bd52006-08-04 18:18:08 +000012679{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12680echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012681if test "${lt_cv_ld_reload_flag+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683else
12684 lt_cv_ld_reload_flag='-r'
12685fi
Reid Spencera773bd52006-08-04 18:18:08 +000012686{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12687echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688reload_flag=$lt_cv_ld_reload_flag
12689case $reload_flag in
12690"" | " "*) ;;
12691*) reload_flag=" $reload_flag" ;;
12692esac
12693reload_cmds='$LD$reload_flag -o $output$reload_objs'
12694case $host_os in
12695 darwin*)
12696 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012697 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698 else
12699 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12700 fi
12701 ;;
12702esac
12703
Reid Spencera773bd52006-08-04 18:18:08 +000012704{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12705echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706if test "${lt_cv_deplibs_check_method+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
12709 lt_cv_file_magic_cmd='$MAGIC_CMD'
12710lt_cv_file_magic_test_file=
12711lt_cv_deplibs_check_method='unknown'
12712# Need to set the preceding variable on all platforms that support
12713# interlibrary dependencies.
12714# 'none' -- dependencies not supported.
12715# `unknown' -- same as none, but documents that we really don't know.
12716# 'pass_all' -- all dependencies passed with no checks.
12717# 'test_compile' -- check by making test program.
12718# 'file_magic [[regex]]' -- check by looking for files in library path
12719# which responds to the $file_magic_cmd with a given extended regex.
12720# If you have `file' or equivalent on your system and you're not sure
12721# whether `pass_all' will *always* work, you probably want this one.
12722
12723case $host_os in
12724aix4* | aix5*)
12725 lt_cv_deplibs_check_method=pass_all
12726 ;;
12727
12728beos*)
12729 lt_cv_deplibs_check_method=pass_all
12730 ;;
12731
12732bsdi[45]*)
12733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12734 lt_cv_file_magic_cmd='/usr/bin/file -L'
12735 lt_cv_file_magic_test_file=/shlib/libc.so
12736 ;;
12737
12738cygwin*)
12739 # func_win32_libid is a shell function defined in ltmain.sh
12740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12741 lt_cv_file_magic_cmd='func_win32_libid'
12742 ;;
12743
12744mingw* | pw32*)
12745 # Base MSYS/MinGW do not provide the 'file' command needed by
12746 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12748 lt_cv_file_magic_cmd='$OBJDUMP -f'
12749 ;;
12750
12751darwin* | rhapsody*)
12752 lt_cv_deplibs_check_method=pass_all
12753 ;;
12754
Reid Spencera773bd52006-08-04 18:18:08 +000012755freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012756 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12757 case $host_cpu in
12758 i*86 )
12759 # Not sure whether the presence of OpenBSD here was a mistake.
12760 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012761 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 +000012762 lt_cv_file_magic_cmd=/usr/bin/file
12763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12764 ;;
12765 esac
12766 else
12767 lt_cv_deplibs_check_method=pass_all
12768 fi
12769 ;;
12770
12771gnu*)
12772 lt_cv_deplibs_check_method=pass_all
12773 ;;
12774
12775hpux10.20* | hpux11*)
12776 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012777 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012778 ia64*)
12779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12780 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12781 ;;
12782 hppa*64*)
12783 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]'
12784 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12785 ;;
12786 *)
12787 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12788 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12789 ;;
12790 esac
12791 ;;
12792
Reid Spencera773bd52006-08-04 18:18:08 +000012793interix3*)
12794 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12796 ;;
12797
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012798irix5* | irix6* | nonstopux*)
12799 case $LD in
12800 *-32|*"-32 ") libmagic=32-bit;;
12801 *-n32|*"-n32 ") libmagic=N32;;
12802 *-64|*"-64 ") libmagic=64-bit;;
12803 *) libmagic=never-match;;
12804 esac
12805 lt_cv_deplibs_check_method=pass_all
12806 ;;
12807
12808# This must be Linux ELF.
12809linux*)
12810 lt_cv_deplibs_check_method=pass_all
12811 ;;
12812
12813netbsd*)
12814 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12816 else
12817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12818 fi
12819 ;;
12820
12821newos6*)
12822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12823 lt_cv_file_magic_cmd=/usr/bin/file
12824 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12825 ;;
12826
12827nto-qnx*)
12828 lt_cv_deplibs_check_method=unknown
12829 ;;
12830
12831openbsd*)
12832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12834 else
12835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12836 fi
12837 ;;
12838
12839osf3* | osf4* | osf5*)
12840 lt_cv_deplibs_check_method=pass_all
12841 ;;
12842
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012843solaris*)
12844 lt_cv_deplibs_check_method=pass_all
12845 ;;
12846
Reid Spencera773bd52006-08-04 18:18:08 +000012847sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012848 case $host_vendor in
12849 motorola)
12850 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]'
12851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12852 ;;
12853 ncr)
12854 lt_cv_deplibs_check_method=pass_all
12855 ;;
12856 sequent)
12857 lt_cv_file_magic_cmd='/bin/file'
12858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12859 ;;
12860 sni)
12861 lt_cv_file_magic_cmd='/bin/file'
12862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12863 lt_cv_file_magic_test_file=/lib/libc.so
12864 ;;
12865 siemens)
12866 lt_cv_deplibs_check_method=pass_all
12867 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012868 pc)
12869 lt_cv_deplibs_check_method=pass_all
12870 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012871 esac
12872 ;;
12873
Reid Spencera773bd52006-08-04 18:18:08 +000012874sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012875 lt_cv_deplibs_check_method=pass_all
12876 ;;
12877esac
12878
12879fi
Reid Spencera773bd52006-08-04 18:18:08 +000012880{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12881echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012882file_magic_cmd=$lt_cv_file_magic_cmd
12883deplibs_check_method=$lt_cv_deplibs_check_method
12884test -z "$deplibs_check_method" && deplibs_check_method=unknown
12885
12886
12887
12888# If no C compiler was specified, use CC.
12889LTCC=${LTCC-"$CC"}
12890
Reid Spencera773bd52006-08-04 18:18:08 +000012891# If no C compiler flags were specified, use CFLAGS.
12892LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12893
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894# Allow CC to be a program name with arguments.
12895compiler=$CC
12896
Reid Spencera773bd52006-08-04 18:18:08 +000012897# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012898if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012899 enableval=$enable_libtool_lock;
12900fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012901
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012902test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12903
12904# Some flags need to be propagated to the compiler or linker for good
12905# libtool support.
12906case $host in
12907ia64-*-hpux*)
12908 # Find out which ABI we are using.
12909 echo 'int i;' > conftest.$ac_ext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; then
12915 case `/usr/bin/file conftest.$ac_objext` in
12916 *ELF-32*)
12917 HPUX_IA64_MODE="32"
12918 ;;
12919 *ELF-64*)
12920 HPUX_IA64_MODE="64"
12921 ;;
12922 esac
12923 fi
12924 rm -rf conftest*
12925 ;;
12926*-*-irix6*)
12927 # Find out which ABI we are using.
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000012928 echo '#line 12928 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12930 (eval $ac_compile) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; then
12934 if test "$lt_cv_prog_gnu_ld" = yes; then
12935 case `/usr/bin/file conftest.$ac_objext` in
12936 *32-bit*)
12937 LD="${LD-ld} -melf32bsmip"
12938 ;;
12939 *N32*)
12940 LD="${LD-ld} -melf32bmipn32"
12941 ;;
12942 *64-bit*)
12943 LD="${LD-ld} -melf64bmip"
12944 ;;
12945 esac
12946 else
12947 case `/usr/bin/file conftest.$ac_objext` in
12948 *32-bit*)
12949 LD="${LD-ld} -32"
12950 ;;
12951 *N32*)
12952 LD="${LD-ld} -n32"
12953 ;;
12954 *64-bit*)
12955 LD="${LD-ld} -64"
12956 ;;
12957 esac
12958 fi
12959 fi
12960 rm -rf conftest*
12961 ;;
12962
12963x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12964 # Find out which ABI we are using.
12965 echo 'int i;' > conftest.$ac_ext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012971 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012972 *32-bit*)
12973 case $host in
12974 x86_64-*linux*)
12975 LD="${LD-ld} -m elf_i386"
12976 ;;
12977 ppc64-*linux*|powerpc64-*linux*)
12978 LD="${LD-ld} -m elf32ppclinux"
12979 ;;
12980 s390x-*linux*)
12981 LD="${LD-ld} -m elf_s390"
12982 ;;
12983 sparc64-*linux*)
12984 LD="${LD-ld} -m elf32_sparc"
12985 ;;
12986 esac
12987 ;;
12988 *64-bit*)
12989 case $host in
12990 x86_64-*linux*)
12991 LD="${LD-ld} -m elf_x86_64"
12992 ;;
12993 ppc*-*linux*|powerpc*-*linux*)
12994 LD="${LD-ld} -m elf64ppc"
12995 ;;
12996 s390*-*linux*)
12997 LD="${LD-ld} -m elf64_s390"
12998 ;;
12999 sparc*-*linux*)
13000 LD="${LD-ld} -m elf64_sparc"
13001 ;;
13002 esac
13003 ;;
13004 esac
13005 fi
13006 rm -rf conftest*
13007 ;;
13008
13009*-*-sco3.2v5*)
13010 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13011 SAVE_CFLAGS="$CFLAGS"
13012 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013013 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13014echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013015if test "${lt_cv_cc_needs_belf+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017else
13018 ac_ext=c
13019ac_cpp='$CPP $CPPFLAGS'
13020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022ac_compiler_gnu=$ac_cv_c_compiler_gnu
13023
13024 cat >conftest.$ac_ext <<_ACEOF
13025/* confdefs.h. */
13026_ACEOF
13027cat confdefs.h >>conftest.$ac_ext
13028cat >>conftest.$ac_ext <<_ACEOF
13029/* end confdefs.h. */
13030
Reid Spencera773bd52006-08-04 18:18:08 +000013031int
13032main ()
13033{
13034
13035 ;
13036 return 0;
13037}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013038_ACEOF
13039rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013040if { (ac_try="$ac_link"
13041case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13044esac
13045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013047 ac_status=$?
13048 grep -v '^ *+' conftest.er1 >conftest.err
13049 rm -f conftest.er1
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013052 (exit $ac_status); } &&
13053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057esac
13058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest$ac_exeext'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013073 lt_cv_cc_needs_belf=yes
13074else
13075 echo "$as_me: failed program was:" >&5
13076sed 's/^/| /' conftest.$ac_ext >&5
13077
Reid Spencera773bd52006-08-04 18:18:08 +000013078 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013079fi
Reid Spencera773bd52006-08-04 18:18:08 +000013080
Tanya Lattnercf067672008-01-17 05:57:22 +000013081rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013082 conftest$ac_exeext conftest.$ac_ext
13083 ac_ext=c
13084ac_cpp='$CPP $CPPFLAGS'
13085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089fi
Reid Spencera773bd52006-08-04 18:18:08 +000013090{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13091echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013092 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13093 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13094 CFLAGS="$SAVE_CFLAGS"
13095 fi
13096 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013097sparc*-*solaris*)
13098 # Find out which ABI we are using.
13099 echo 'int i;' > conftest.$ac_ext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; then
13105 case `/usr/bin/file conftest.o` in
13106 *64-bit*)
13107 case $lt_cv_prog_gnu_ld in
13108 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13109 *) LD="${LD-ld} -64" ;;
13110 esac
13111 ;;
13112 esac
13113 fi
13114 rm -rf conftest*
13115 ;;
13116
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013117
13118esac
13119
13120need_locks="$enable_libtool_lock"
13121
13122
Reid Spencer2706f8c2004-09-19 23:53:36 +000013123
13124
13125if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13126 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13127 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013128 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013129ac_cpp='$CXXCPP $CPPFLAGS'
13130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013133{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13134echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013135if test -z "$CXXCPP"; then
13136 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138else
John Criswell47fdd832003-07-14 16:52:07 +000013139 # Double quotes because CXXCPP needs to be expanded
13140 for CXXCPP in "$CXX -E" "/lib/cpp"
13141 do
13142 ac_preproc_ok=false
13143for ac_cxx_preproc_warn_flag in '' yes
13144do
13145 # Use a header file that comes with gcc, so configuring glibc
13146 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13148 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013149 # On the NeXT, cc -E runs the code through the compiler's parser,
13150 # not just through cpp. "Syntax error" is here to catch this case.
13151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
13157#ifdef __STDC__
13158# include <limits.h>
13159#else
13160# include <assert.h>
13161#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013162 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013163_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013164if { (ac_try="$ac_cpp conftest.$ac_ext"
13165case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168esac
13169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013171 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013172 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013176 (exit $ac_status); } >/dev/null; then
13177 if test -s conftest.err; then
13178 ac_cpp_err=$ac_cxx_preproc_warn_flag
13179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13180 else
13181 ac_cpp_err=
13182 fi
13183else
13184 ac_cpp_err=yes
13185fi
13186if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013187 :
13188else
13189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013190sed 's/^/| /' conftest.$ac_ext >&5
13191
John Criswell47fdd832003-07-14 16:52:07 +000013192 # Broken: fails on valid input.
13193continue
13194fi
Reid Spencera773bd52006-08-04 18:18:08 +000013195
John Criswell47fdd832003-07-14 16:52:07 +000013196rm -f conftest.err conftest.$ac_ext
13197
Reid Spencera773bd52006-08-04 18:18:08 +000013198 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013199 # can be detected and how.
13200 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013206#include <ac_nonexistent.h>
13207_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013208if { (ac_try="$ac_cpp conftest.$ac_ext"
13209case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212esac
13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013215 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013216 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013220 (exit $ac_status); } >/dev/null; then
13221 if test -s conftest.err; then
13222 ac_cpp_err=$ac_cxx_preproc_warn_flag
13223 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13224 else
13225 ac_cpp_err=
13226 fi
13227else
13228 ac_cpp_err=yes
13229fi
13230if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013231 # Broken: success on invalid input.
13232continue
13233else
13234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013235sed 's/^/| /' conftest.$ac_ext >&5
13236
John Criswell47fdd832003-07-14 16:52:07 +000013237 # Passes both tests.
13238ac_preproc_ok=:
13239break
13240fi
Reid Spencera773bd52006-08-04 18:18:08 +000013241
John Criswell47fdd832003-07-14 16:52:07 +000013242rm -f conftest.err conftest.$ac_ext
13243
13244done
13245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13246rm -f conftest.err conftest.$ac_ext
13247if $ac_preproc_ok; then
13248 break
John Criswell7a73b802003-06-30 21:59:07 +000013249fi
13250
John Criswell47fdd832003-07-14 16:52:07 +000013251 done
13252 ac_cv_prog_CXXCPP=$CXXCPP
13253
13254fi
13255 CXXCPP=$ac_cv_prog_CXXCPP
13256else
13257 ac_cv_prog_CXXCPP=$CXXCPP
13258fi
Reid Spencera773bd52006-08-04 18:18:08 +000013259{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13260echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013261ac_preproc_ok=false
13262for ac_cxx_preproc_warn_flag in '' yes
13263do
13264 # Use a header file that comes with gcc, so configuring glibc
13265 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013268 # On the NeXT, cc -E runs the code through the compiler's parser,
13269 # not just through cpp. "Syntax error" is here to catch this case.
13270 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276#ifdef __STDC__
13277# include <limits.h>
13278#else
13279# include <assert.h>
13280#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013281 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013282_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013283if { (ac_try="$ac_cpp conftest.$ac_ext"
13284case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287esac
13288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013290 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013291 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013292 rm -f conftest.er1
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013295 (exit $ac_status); } >/dev/null; then
13296 if test -s conftest.err; then
13297 ac_cpp_err=$ac_cxx_preproc_warn_flag
13298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13299 else
13300 ac_cpp_err=
13301 fi
13302else
13303 ac_cpp_err=yes
13304fi
13305if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013306 :
13307else
13308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013309sed 's/^/| /' conftest.$ac_ext >&5
13310
John Criswell47fdd832003-07-14 16:52:07 +000013311 # Broken: fails on valid input.
13312continue
13313fi
Reid Spencera773bd52006-08-04 18:18:08 +000013314
John Criswell47fdd832003-07-14 16:52:07 +000013315rm -f conftest.err conftest.$ac_ext
13316
Reid Spencera773bd52006-08-04 18:18:08 +000013317 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013318 # can be detected and how.
13319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013320/* confdefs.h. */
13321_ACEOF
13322cat confdefs.h >>conftest.$ac_ext
13323cat >>conftest.$ac_ext <<_ACEOF
13324/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013325#include <ac_nonexistent.h>
13326_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013327if { (ac_try="$ac_cpp conftest.$ac_ext"
13328case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013334 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013335 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013339 (exit $ac_status); } >/dev/null; then
13340 if test -s conftest.err; then
13341 ac_cpp_err=$ac_cxx_preproc_warn_flag
13342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13343 else
13344 ac_cpp_err=
13345 fi
13346else
13347 ac_cpp_err=yes
13348fi
13349if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013350 # Broken: success on invalid input.
13351continue
13352else
13353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013354sed 's/^/| /' conftest.$ac_ext >&5
13355
John Criswell47fdd832003-07-14 16:52:07 +000013356 # Passes both tests.
13357ac_preproc_ok=:
13358break
13359fi
Reid Spencera773bd52006-08-04 18:18:08 +000013360
John Criswell47fdd832003-07-14 16:52:07 +000013361rm -f conftest.err conftest.$ac_ext
13362
13363done
13364# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13365rm -f conftest.err conftest.$ac_ext
13366if $ac_preproc_ok; then
13367 :
13368else
John Criswell0c38eaf2003-09-10 15:17:25 +000013369 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13370See \`config.log' for more details." >&5
13371echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13372See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013373 { (exit 1); exit 1; }; }
13374fi
13375
Reid Spencera773bd52006-08-04 18:18:08 +000013376ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013377ac_cpp='$CXXCPP $CPPFLAGS'
13378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13381
Reid Spencer2706f8c2004-09-19 23:53:36 +000013382fi
13383
John Criswell47fdd832003-07-14 16:52:07 +000013384
13385ac_ext=f
13386ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13387ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13388ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13389if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013390 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 +000013391 do
13392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013396if test "${ac_cv_prog_F77+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398else
13399 if test -n "$F77"; then
13400 ac_cv_prog_F77="$F77" # Let the user override the test.
13401else
13402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403for as_dir in $PATH
13404do
13405 IFS=$as_save_IFS
13406 test -z "$as_dir" && as_dir=.
13407 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013408 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 +000013409 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13411 break 2
13412 fi
13413done
13414done
Reid Spencera773bd52006-08-04 18:18:08 +000013415IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013416
13417fi
13418fi
13419F77=$ac_cv_prog_F77
13420if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013421 { echo "$as_me:$LINENO: result: $F77" >&5
13422echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013423else
Reid Spencera773bd52006-08-04 18:18:08 +000013424 { echo "$as_me:$LINENO: result: no" >&5
13425echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013426fi
13427
Reid Spencera773bd52006-08-04 18:18:08 +000013428
John Criswell47fdd832003-07-14 16:52:07 +000013429 test -n "$F77" && break
13430 done
13431fi
13432if test -z "$F77"; then
13433 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013434 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 +000013435do
13436 # Extract the first word of "$ac_prog", so it can be a program name with args.
13437set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013440if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442else
13443 if test -n "$ac_ct_F77"; then
13444 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13445else
13446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447for as_dir in $PATH
13448do
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013452 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 +000013453 ac_cv_prog_ac_ct_F77="$ac_prog"
13454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13456 fi
13457done
13458done
Reid Spencera773bd52006-08-04 18:18:08 +000013459IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013460
13461fi
13462fi
13463ac_ct_F77=$ac_cv_prog_ac_ct_F77
13464if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013465 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13466echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013467else
Reid Spencera773bd52006-08-04 18:18:08 +000013468 { echo "$as_me:$LINENO: result: no" >&5
13469echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013470fi
13471
Reid Spencera773bd52006-08-04 18:18:08 +000013472
John Criswell47fdd832003-07-14 16:52:07 +000013473 test -n "$ac_ct_F77" && break
13474done
13475
Reid Spencera773bd52006-08-04 18:18:08 +000013476 if test "x$ac_ct_F77" = x; then
13477 F77=""
13478 else
13479 case $cross_compiling:$ac_tool_warned in
13480yes:)
13481{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13482whose name does not start with the host triplet. If you think this
13483configuration is useful to you, please write to autoconf@gnu.org." >&5
13484echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13485whose name does not start with the host triplet. If you think this
13486configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13487ac_tool_warned=yes ;;
13488esac
13489 F77=$ac_ct_F77
13490 fi
John Criswell47fdd832003-07-14 16:52:07 +000013491fi
13492
13493
13494# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013495echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013496ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013497{ (ac_try="$ac_compiler --version >&5"
13498case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13501esac
13502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013507{ (ac_try="$ac_compiler -v >&5"
13508case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013517{ (ac_try="$ac_compiler -V >&5"
13518case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013527rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013528
13529# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013530# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013531ac_save_ext=$ac_ext
13532ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013533{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13534echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013535if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537else
13538 cat >conftest.$ac_ext <<_ACEOF
13539 program main
13540#ifndef __GNUC__
13541 choke me
13542#endif
13543
13544 end
13545_ACEOF
13546rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013547if { (ac_try="$ac_compile"
13548case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551esac
13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13561 { (case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564esac
13565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_try") 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013580 ac_compiler_gnu=yes
13581else
13582 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013583sed 's/^/| /' conftest.$ac_ext >&5
13584
Reid Spencera773bd52006-08-04 18:18:08 +000013585 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013586fi
Reid Spencera773bd52006-08-04 18:18:08 +000013587
13588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013589ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13590
13591fi
Reid Spencera773bd52006-08-04 18:18:08 +000013592{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13593echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013594ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013595ac_test_FFLAGS=${FFLAGS+set}
13596ac_save_FFLAGS=$FFLAGS
13597FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013598{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13599echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013600if test "${ac_cv_prog_f77_g+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602else
13603 FFLAGS=-g
13604cat >conftest.$ac_ext <<_ACEOF
13605 program main
13606
13607 end
13608_ACEOF
13609rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013610if { (ac_try="$ac_compile"
13611case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614esac
13615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013622 (exit $ac_status); } &&
13623 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13624 { (case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13627esac
13628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_try") 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest.$ac_objext'
13634 { (case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637esac
13638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_try") 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013643 ac_cv_prog_f77_g=yes
13644else
13645 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013646sed 's/^/| /' conftest.$ac_ext >&5
13647
Reid Spencera773bd52006-08-04 18:18:08 +000013648 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013649fi
Reid Spencera773bd52006-08-04 18:18:08 +000013650
13651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013652
13653fi
Reid Spencera773bd52006-08-04 18:18:08 +000013654{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13655echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013656if test "$ac_test_FFLAGS" = set; then
13657 FFLAGS=$ac_save_FFLAGS
13658elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013659 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013660 FFLAGS="-g -O2"
13661 else
13662 FFLAGS="-g"
13663 fi
13664else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013665 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013666 FFLAGS="-O2"
13667 else
13668 FFLAGS=
13669 fi
13670fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013671
13672G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013673ac_ext=c
13674ac_cpp='$CPP $CPPFLAGS'
13675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679
13680
13681# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13682
13683# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013684{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13685echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013686if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688else
13689 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013690 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013691
13692 case $build_os in
13693 msdosdjgpp*)
13694 # On DJGPP, this test can blow up pretty badly due to problems in libc
13695 # (any single argument exceeding 2000 bytes causes a buffer overrun
13696 # during glob expansion). Even if it were fixed, the result of this
13697 # check would be larger than it should be.
13698 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13699 ;;
13700
13701 gnu*)
13702 # Under GNU Hurd, this test is not required because there is
13703 # no limit to the length of command line arguments.
13704 # Libtool will interpret -1 as no limit whatsoever
13705 lt_cv_sys_max_cmd_len=-1;
13706 ;;
13707
13708 cygwin* | mingw*)
13709 # On Win9x/ME, this test blows up -- it succeeds, but takes
13710 # about 5 minutes as the teststring grows exponentially.
13711 # Worse, since 9x/ME are not pre-emptively multitasking,
13712 # you end up with a "frozen" computer, even though with patience
13713 # the test eventually succeeds (with a max line length of 256k).
13714 # Instead, let's just punt: use the minimum linelength reported by
13715 # all of the supported platforms: 8192 (on NT/2K/XP).
13716 lt_cv_sys_max_cmd_len=8192;
13717 ;;
13718
Reid Spencer2706f8c2004-09-19 23:53:36 +000013719 amigaos*)
13720 # On AmigaOS with pdksh, this test takes hours, literally.
13721 # So we just punt and use a minimum line length of 8192.
13722 lt_cv_sys_max_cmd_len=8192;
13723 ;;
13724
Reid Spencera773bd52006-08-04 18:18:08 +000013725 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013726 # This has been around since 386BSD, at least. Likely further.
13727 if test -x /sbin/sysctl; then
13728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13729 elif test -x /usr/sbin/sysctl; then
13730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13731 else
Reid Spencera773bd52006-08-04 18:18:08 +000013732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013733 fi
13734 # And add a safety zone
13735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013737 ;;
13738
Reid Spencera773bd52006-08-04 18:18:08 +000013739 interix*)
13740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13741 lt_cv_sys_max_cmd_len=196608
13742 ;;
13743
13744 osf*)
13745 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13746 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13747 # nice to cause kernel panics so lets avoid the loop below.
13748 # First set a reasonable default.
13749 lt_cv_sys_max_cmd_len=16384
13750 #
13751 if test -x /sbin/sysconfig; then
13752 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13753 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13754 esac
13755 fi
13756 ;;
13757 sco3.2v5*)
13758 lt_cv_sys_max_cmd_len=102400
13759 ;;
13760 sysv5* | sco5v6* | sysv4.2uw2*)
13761 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13762 if test -n "$kargmax"; then
13763 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13764 else
13765 lt_cv_sys_max_cmd_len=32768
13766 fi
13767 ;;
13768 *)
John Criswell47fdd832003-07-14 16:52:07 +000013769 # If test is not a shell built-in, we'll probably end up computing a
13770 # maximum length that is only half of the actual maximum length, but
13771 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013772 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13773 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13774 = "XX$teststring") >/dev/null 2>&1 &&
13775 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013776 lt_cv_sys_max_cmd_len=$new_result &&
13777 test $i != 17 # 1/2 MB should be enough
13778 do
13779 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013780 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013781 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013782 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013783 # Add a significant safety factor because C++ compilers can tack on massive
13784 # amounts of additional arguments before passing them to the linker.
13785 # It appears as though 1/2 is a usable value.
13786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13787 ;;
13788 esac
13789
13790fi
13791
13792if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013793 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13794echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013795else
Reid Spencera773bd52006-08-04 18:18:08 +000013796 { echo "$as_me:$LINENO: result: none" >&5
13797echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013798fi
13799
13800
13801
13802
13803# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013804{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13805echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013806if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809
13810# These are sane defaults that work on at least a few old systems.
13811# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13812
13813# Character class describing NM global symbol codes.
13814symcode='[BCDEGRST]'
13815
13816# Regexp to match symbols that can be accessed directly from C.
13817sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13818
John Criswell47fdd832003-07-14 16:52:07 +000013819# Transform an extracted symbol line into a proper C declaration
13820lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13821
13822# Transform an extracted symbol line into symbol name and symbol address
13823lt_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'"
13824
13825# Define system-specific variables.
13826case $host_os in
13827aix*)
13828 symcode='[BCDT]'
13829 ;;
13830cygwin* | mingw* | pw32*)
13831 symcode='[ABCDGISTW]'
13832 ;;
13833hpux*) # Its linker distinguishes data from code symbols
13834 if test "$host_cpu" = ia64; then
13835 symcode='[ABCDEGRST]'
13836 fi
13837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13838 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'"
13839 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013840linux*)
13841 if test "$host_cpu" = ia64; then
13842 symcode='[ABCDGIRSTW]'
13843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13844 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'"
13845 fi
13846 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013847irix* | nonstopux*)
13848 symcode='[BCDEGRST]'
13849 ;;
13850osf*)
13851 symcode='[BCDEGQRST]'
13852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013853solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013854 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013855 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013856sco3.2v5*)
13857 symcode='[DT]'
13858 ;;
13859sysv4.2uw2*)
13860 symcode='[DT]'
13861 ;;
13862sysv5* | sco5v6* | unixware* | OpenUNIX*)
13863 symcode='[ABDT]'
13864 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013865sysv4)
13866 symcode='[DFNSTU]'
13867 ;;
13868esac
13869
13870# Handle CRLF in mingw tool chain
13871opt_cr=
13872case $build_os in
13873mingw*)
13874 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13875 ;;
13876esac
13877
13878# If we're using GNU nm, then use its standard symbol codes.
13879case `$NM -V 2>&1` in
13880*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013881 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013882esac
13883
13884# Try without a prefix undercore, then with it.
13885for ac_symprfx in "" "_"; do
13886
Reid Spencera773bd52006-08-04 18:18:08 +000013887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13888 symxfrm="\\1 $ac_symprfx\\2 \\2"
13889
John Criswell47fdd832003-07-14 16:52:07 +000013890 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013891 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 +000013892
13893 # Check to see that the pipe works correctly.
13894 pipe_works=no
13895
13896 rm -f conftest*
13897 cat > conftest.$ac_ext <<EOF
13898#ifdef __cplusplus
13899extern "C" {
13900#endif
13901char nm_test_var;
13902void nm_test_func(){}
13903#ifdef __cplusplus
13904}
13905#endif
13906int main(){nm_test_var='a';nm_test_func();return(0);}
13907EOF
13908
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; then
13914 # Now try to grab the symbols.
13915 nlist=conftest.nm
13916 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13917 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && test -s "$nlist"; then
13921 # Try sorting and uniquifying the output.
13922 if sort "$nlist" | uniq > "$nlist"T; then
13923 mv -f "$nlist"T "$nlist"
13924 else
13925 rm -f "$nlist"T
13926 fi
13927
13928 # Make sure that we snagged all the symbols we need.
13929 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13930 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13931 cat <<EOF > conftest.$ac_ext
13932#ifdef __cplusplus
13933extern "C" {
13934#endif
13935
13936EOF
13937 # Now generate the symbol file.
13938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13939
13940 cat <<EOF >> conftest.$ac_ext
13941#if defined (__STDC__) && __STDC__
13942# define lt_ptr_t void *
13943#else
13944# define lt_ptr_t char *
13945# define const
13946#endif
13947
13948/* The mapping between symbol names and symbols. */
13949const struct {
13950 const char *name;
13951 lt_ptr_t address;
13952}
13953lt_preloaded_symbols[] =
13954{
13955EOF
13956 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13957 cat <<\EOF >> conftest.$ac_ext
13958 {0, (lt_ptr_t) 0}
13959};
13960
13961#ifdef __cplusplus
13962}
13963#endif
13964EOF
13965 # Now try linking the two files.
13966 mv conftest.$ac_objext conftstm.$ac_objext
13967 lt_save_LIBS="$LIBS"
13968 lt_save_CFLAGS="$CFLAGS"
13969 LIBS="conftstm.$ac_objext"
13970 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13972 (eval $ac_link) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13976 pipe_works=yes
13977 fi
13978 LIBS="$lt_save_LIBS"
13979 CFLAGS="$lt_save_CFLAGS"
13980 else
13981 echo "cannot find nm_test_func in $nlist" >&5
13982 fi
13983 else
13984 echo "cannot find nm_test_var in $nlist" >&5
13985 fi
13986 else
13987 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13988 fi
13989 else
13990 echo "$progname: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13992 fi
13993 rm -f conftest* conftst*
13994
13995 # Do not use the global_symbol_pipe unless it works.
13996 if test "$pipe_works" = yes; then
13997 break
13998 else
13999 lt_cv_sys_global_symbol_pipe=
14000 fi
14001done
14002
14003fi
14004
14005if test -z "$lt_cv_sys_global_symbol_pipe"; then
14006 lt_cv_sys_global_symbol_to_cdecl=
14007fi
14008if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014009 { echo "$as_me:$LINENO: result: failed" >&5
14010echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014011else
Reid Spencera773bd52006-08-04 18:18:08 +000014012 { echo "$as_me:$LINENO: result: ok" >&5
14013echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014014fi
14015
Reid Spencera773bd52006-08-04 18:18:08 +000014016{ echo "$as_me:$LINENO: checking for objdir" >&5
14017echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014018if test "${lt_cv_objdir+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020else
14021 rm -f .libs 2>/dev/null
14022mkdir .libs 2>/dev/null
14023if test -d .libs; then
14024 lt_cv_objdir=.libs
14025else
14026 # MS-DOS does not allow filenames that begin with a dot.
14027 lt_cv_objdir=_libs
14028fi
14029rmdir .libs 2>/dev/null
14030fi
Reid Spencera773bd52006-08-04 18:18:08 +000014031{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14032echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014033objdir=$lt_cv_objdir
14034
14035
14036
14037
14038
14039case $host_os in
14040aix3*)
14041 # AIX sometimes has problems with the GCC collect2 program. For some
14042 # reason, if we set the COLLECT_NAMES environment variable, the problems
14043 # vanish in a puff of smoke.
14044 if test "X${COLLECT_NAMES+set}" != Xset; then
14045 COLLECT_NAMES=
14046 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014047 fi
14048 ;;
14049esac
14050
John Criswell47fdd832003-07-14 16:52:07 +000014051# Sed substitution that helps us do robust quoting. It backslashifies
14052# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014053Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014054sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14055
14056# Same as above, but do not quote variable references.
14057double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14058
14059# Sed substitution to delay expansion of an escaped shell variable in a
14060# double_quote_subst'ed string.
14061delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14062
14063# Sed substitution to avoid accidental globbing in evaled expressions
14064no_glob_subst='s/\*/\\\*/g'
14065
14066# Constants:
14067rm="rm -f"
14068
14069# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014070default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014071can_build_shared=yes
14072
Reid Spencera773bd52006-08-04 18:18:08 +000014073# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014074# which needs '.lib').
14075libext=a
14076ltmain="$ac_aux_dir/ltmain.sh"
14077ofile="$default_ofile"
14078with_gnu_ld="$lt_cv_prog_gnu_ld"
14079
14080if test -n "$ac_tool_prefix"; then
14081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14082set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014085if test "${ac_cv_prog_AR+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087else
14088 if test -n "$AR"; then
14089 ac_cv_prog_AR="$AR" # Let the user override the test.
14090else
14091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092for as_dir in $PATH
14093do
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014097 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 +000014098 ac_cv_prog_AR="${ac_tool_prefix}ar"
14099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14100 break 2
14101 fi
14102done
14103done
Reid Spencera773bd52006-08-04 18:18:08 +000014104IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014105
14106fi
14107fi
14108AR=$ac_cv_prog_AR
14109if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014110 { echo "$as_me:$LINENO: result: $AR" >&5
14111echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014112else
Reid Spencera773bd52006-08-04 18:18:08 +000014113 { echo "$as_me:$LINENO: result: no" >&5
14114echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014115fi
14116
Reid Spencera773bd52006-08-04 18:18:08 +000014117
John Criswell47fdd832003-07-14 16:52:07 +000014118fi
14119if test -z "$ac_cv_prog_AR"; then
14120 ac_ct_AR=$AR
14121 # Extract the first word of "ar", so it can be a program name with args.
14122set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014125if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127else
14128 if test -n "$ac_ct_AR"; then
14129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14130else
14131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132for as_dir in $PATH
14133do
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014137 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 +000014138 ac_cv_prog_ac_ct_AR="ar"
14139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 break 2
14141 fi
14142done
14143done
Reid Spencera773bd52006-08-04 18:18:08 +000014144IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014145
John Criswell47fdd832003-07-14 16:52:07 +000014146fi
14147fi
14148ac_ct_AR=$ac_cv_prog_ac_ct_AR
14149if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014150 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14151echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014152else
Reid Spencera773bd52006-08-04 18:18:08 +000014153 { echo "$as_me:$LINENO: result: no" >&5
14154echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014155fi
14156
Reid Spencera773bd52006-08-04 18:18:08 +000014157 if test "x$ac_ct_AR" = x; then
14158 AR="false"
14159 else
14160 case $cross_compiling:$ac_tool_warned in
14161yes:)
14162{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14163whose name does not start with the host triplet. If you think this
14164configuration is useful to you, please write to autoconf@gnu.org." >&5
14165echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14166whose name does not start with the host triplet. If you think this
14167configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14168ac_tool_warned=yes ;;
14169esac
14170 AR=$ac_ct_AR
14171 fi
John Criswell47fdd832003-07-14 16:52:07 +000014172else
14173 AR="$ac_cv_prog_AR"
14174fi
14175
John Criswell7a73b802003-06-30 21:59:07 +000014176if test -n "$ac_tool_prefix"; then
14177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14178set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014181if test "${ac_cv_prog_RANLIB+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183else
14184 if test -n "$RANLIB"; then
14185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14186else
14187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188for as_dir in $PATH
14189do
14190 IFS=$as_save_IFS
14191 test -z "$as_dir" && as_dir=.
14192 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014193 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 +000014194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14196 break 2
14197 fi
14198done
14199done
Reid Spencera773bd52006-08-04 18:18:08 +000014200IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014201
14202fi
14203fi
14204RANLIB=$ac_cv_prog_RANLIB
14205if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014206 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14207echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014208else
Reid Spencera773bd52006-08-04 18:18:08 +000014209 { echo "$as_me:$LINENO: result: no" >&5
14210echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014211fi
14212
Reid Spencera773bd52006-08-04 18:18:08 +000014213
John Criswell7a73b802003-06-30 21:59:07 +000014214fi
14215if test -z "$ac_cv_prog_RANLIB"; then
14216 ac_ct_RANLIB=$RANLIB
14217 # Extract the first word of "ranlib", so it can be a program name with args.
14218set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014221if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223else
14224 if test -n "$ac_ct_RANLIB"; then
14225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14226else
14227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228for as_dir in $PATH
14229do
14230 IFS=$as_save_IFS
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014233 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 +000014234 ac_cv_prog_ac_ct_RANLIB="ranlib"
14235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 break 2
14237 fi
14238done
14239done
Reid Spencera773bd52006-08-04 18:18:08 +000014240IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014241
John Criswell7a73b802003-06-30 21:59:07 +000014242fi
14243fi
14244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14245if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014246 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14247echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014248else
Reid Spencera773bd52006-08-04 18:18:08 +000014249 { echo "$as_me:$LINENO: result: no" >&5
14250echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014251fi
14252
Reid Spencera773bd52006-08-04 18:18:08 +000014253 if test "x$ac_ct_RANLIB" = x; then
14254 RANLIB=":"
14255 else
14256 case $cross_compiling:$ac_tool_warned in
14257yes:)
14258{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14259whose name does not start with the host triplet. If you think this
14260configuration is useful to you, please write to autoconf@gnu.org." >&5
14261echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14262whose name does not start with the host triplet. If you think this
14263configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14264ac_tool_warned=yes ;;
14265esac
14266 RANLIB=$ac_ct_RANLIB
14267 fi
John Criswell7a73b802003-06-30 21:59:07 +000014268else
14269 RANLIB="$ac_cv_prog_RANLIB"
14270fi
14271
14272if test -n "$ac_tool_prefix"; then
14273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14274set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014277if test "${ac_cv_prog_STRIP+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14279else
14280 if test -n "$STRIP"; then
14281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14282else
14283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284for as_dir in $PATH
14285do
14286 IFS=$as_save_IFS
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014289 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 +000014290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 break 2
14293 fi
14294done
14295done
Reid Spencera773bd52006-08-04 18:18:08 +000014296IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014297
14298fi
14299fi
14300STRIP=$ac_cv_prog_STRIP
14301if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014302 { echo "$as_me:$LINENO: result: $STRIP" >&5
14303echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014304else
Reid Spencera773bd52006-08-04 18:18:08 +000014305 { echo "$as_me:$LINENO: result: no" >&5
14306echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014307fi
14308
Reid Spencera773bd52006-08-04 18:18:08 +000014309
John Criswell7a73b802003-06-30 21:59:07 +000014310fi
14311if test -z "$ac_cv_prog_STRIP"; then
14312 ac_ct_STRIP=$STRIP
14313 # Extract the first word of "strip", so it can be a program name with args.
14314set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014317if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 if test -n "$ac_ct_STRIP"; then
14321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14322else
14323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014329 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 +000014330 ac_cv_prog_ac_ct_STRIP="strip"
14331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334done
14335done
Reid Spencera773bd52006-08-04 18:18:08 +000014336IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014337
John Criswell7a73b802003-06-30 21:59:07 +000014338fi
14339fi
14340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14341if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014342 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14343echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014344else
Reid Spencera773bd52006-08-04 18:18:08 +000014345 { echo "$as_me:$LINENO: result: no" >&5
14346echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014347fi
14348
Reid Spencera773bd52006-08-04 18:18:08 +000014349 if test "x$ac_ct_STRIP" = x; then
14350 STRIP=":"
14351 else
14352 case $cross_compiling:$ac_tool_warned in
14353yes:)
14354{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14355whose name does not start with the host triplet. If you think this
14356configuration is useful to you, please write to autoconf@gnu.org." >&5
14357echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14358whose name does not start with the host triplet. If you think this
14359configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14360ac_tool_warned=yes ;;
14361esac
14362 STRIP=$ac_ct_STRIP
14363 fi
John Criswell7a73b802003-06-30 21:59:07 +000014364else
14365 STRIP="$ac_cv_prog_STRIP"
14366fi
14367
14368
John Criswell7a73b802003-06-30 21:59:07 +000014369old_CC="$CC"
14370old_CFLAGS="$CFLAGS"
14371
14372# Set sane defaults for various variables
14373test -z "$AR" && AR=ar
14374test -z "$AR_FLAGS" && AR_FLAGS=cru
14375test -z "$AS" && AS=as
14376test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014377test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014378test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014379test -z "$DLLTOOL" && DLLTOOL=dlltool
14380test -z "$LD" && LD=ld
14381test -z "$LN_S" && LN_S="ln -s"
14382test -z "$MAGIC_CMD" && MAGIC_CMD=file
14383test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014384test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014385test -z "$OBJDUMP" && OBJDUMP=objdump
14386test -z "$RANLIB" && RANLIB=:
14387test -z "$STRIP" && STRIP=:
14388test -z "$ac_objext" && ac_objext=o
14389
John Criswell7a73b802003-06-30 21:59:07 +000014390# Determine commands to create old-style static archives.
14391old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14392old_postinstall_cmds='chmod 644 $oldlib'
14393old_postuninstall_cmds=
14394
14395if test -n "$RANLIB"; then
14396 case $host_os in
14397 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014399 ;;
14400 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014402 ;;
14403 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014405fi
14406
Reid Spencera773bd52006-08-04 18:18:08 +000014407for cc_temp in $compiler""; do
14408 case $cc_temp in
14409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14411 \-*) ;;
14412 *) break;;
14413 esac
14414done
14415cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14416
Reid Spencer2706f8c2004-09-19 23:53:36 +000014417
John Criswell47fdd832003-07-14 16:52:07 +000014418# Only perform the check for file, if the check method requires it
14419case $deplibs_check_method in
14420file_magic*)
14421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014422 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14423echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014424if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014426else
John Criswell47fdd832003-07-14 16:52:07 +000014427 case $MAGIC_CMD in
14428[\\/*] | ?:[\\/]*)
14429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14430 ;;
14431*)
14432 lt_save_MAGIC_CMD="$MAGIC_CMD"
14433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14435 for ac_dir in $ac_dummy; do
14436 IFS="$lt_save_ifs"
14437 test -z "$ac_dir" && ac_dir=.
14438 if test -f $ac_dir/${ac_tool_prefix}file; then
14439 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14440 if test -n "$file_magic_test_file"; then
14441 case $deplibs_check_method in
14442 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14446 $EGREP "$file_magic_regex" > /dev/null; then
14447 :
14448 else
14449 cat <<EOF 1>&2
14450
14451*** Warning: the command libtool uses to detect shared libraries,
14452*** $file_magic_cmd, produces output that libtool cannot recognize.
14453*** The result is that libtool may fail to recognize shared libraries
14454*** as such. This will affect the creation of libtool libraries that
14455*** depend on shared libraries, but programs linked with such libtool
14456*** libraries will work regardless of this problem. Nevertheless, you
14457*** may want to report the problem to your system manager and/or to
14458*** bug-libtool@gnu.org
14459
14460EOF
14461 fi ;;
14462 esac
14463 fi
14464 break
14465 fi
14466 done
14467 IFS="$lt_save_ifs"
14468 MAGIC_CMD="$lt_save_MAGIC_CMD"
14469 ;;
14470esac
John Criswell7a73b802003-06-30 21:59:07 +000014471fi
John Criswell7a73b802003-06-30 21:59:07 +000014472
John Criswell47fdd832003-07-14 16:52:07 +000014473MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14474if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014475 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14476echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014477else
Reid Spencera773bd52006-08-04 18:18:08 +000014478 { echo "$as_me:$LINENO: result: no" >&5
14479echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014480fi
John Criswell7a73b802003-06-30 21:59:07 +000014481
John Criswell47fdd832003-07-14 16:52:07 +000014482if test -z "$lt_cv_path_MAGIC_CMD"; then
14483 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014484 { echo "$as_me:$LINENO: checking for file" >&5
14485echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014486if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488else
14489 case $MAGIC_CMD in
14490[\\/*] | ?:[\\/]*)
14491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14492 ;;
14493*)
14494 lt_save_MAGIC_CMD="$MAGIC_CMD"
14495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14497 for ac_dir in $ac_dummy; do
14498 IFS="$lt_save_ifs"
14499 test -z "$ac_dir" && ac_dir=.
14500 if test -f $ac_dir/file; then
14501 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14502 if test -n "$file_magic_test_file"; then
14503 case $deplibs_check_method in
14504 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14508 $EGREP "$file_magic_regex" > /dev/null; then
14509 :
14510 else
14511 cat <<EOF 1>&2
14512
14513*** Warning: the command libtool uses to detect shared libraries,
14514*** $file_magic_cmd, produces output that libtool cannot recognize.
14515*** The result is that libtool may fail to recognize shared libraries
14516*** as such. This will affect the creation of libtool libraries that
14517*** depend on shared libraries, but programs linked with such libtool
14518*** libraries will work regardless of this problem. Nevertheless, you
14519*** may want to report the problem to your system manager and/or to
14520*** bug-libtool@gnu.org
14521
14522EOF
14523 fi ;;
14524 esac
14525 fi
14526 break
14527 fi
14528 done
14529 IFS="$lt_save_ifs"
14530 MAGIC_CMD="$lt_save_MAGIC_CMD"
14531 ;;
14532esac
14533fi
14534
14535MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14536if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014537 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14538echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014539else
Reid Spencera773bd52006-08-04 18:18:08 +000014540 { echo "$as_me:$LINENO: result: no" >&5
14541echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014542fi
14543
14544 else
14545 MAGIC_CMD=:
14546 fi
14547fi
14548
14549 fi
14550 ;;
14551esac
14552
Reid Spencer17795972004-11-18 09:47:37 +000014553enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014554enable_win32_dll=no
14555
Reid Spencera773bd52006-08-04 18:18:08 +000014556# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014557if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014558 enableval=$enable_libtool_lock;
14559fi
John Criswell47fdd832003-07-14 16:52:07 +000014560
John Criswell47fdd832003-07-14 16:52:07 +000014561test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14562
John Criswell7a73b802003-06-30 21:59:07 +000014563
Reid Spencera773bd52006-08-04 18:18:08 +000014564# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014565if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014566 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014567else
14568 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014569fi
14570
John Criswell7a73b802003-06-30 21:59:07 +000014571test -z "$pic_mode" && pic_mode=default
14572
John Criswell47fdd832003-07-14 16:52:07 +000014573# Use C for the default configuration in the libtool script
14574tagname=
14575lt_save_CC="$CC"
14576ac_ext=c
14577ac_cpp='$CPP $CPPFLAGS'
14578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580ac_compiler_gnu=$ac_cv_c_compiler_gnu
14581
14582
14583# Source file extension for C test sources.
14584ac_ext=c
14585
14586# Object file extension for compiled C test sources.
14587objext=o
14588objext=$objext
14589
14590# Code to be used in simple compile tests
14591lt_simple_compile_test_code="int some_variable = 0;\n"
14592
14593# Code to be used in simple link tests
14594lt_simple_link_test_code='int main(){return(0);}\n'
14595
14596
14597# If no C compiler was specified, use CC.
14598LTCC=${LTCC-"$CC"}
14599
Reid Spencera773bd52006-08-04 18:18:08 +000014600# If no C compiler flags were specified, use CFLAGS.
14601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14602
John Criswell47fdd832003-07-14 16:52:07 +000014603# Allow CC to be a program name with arguments.
14604compiler=$CC
14605
14606
Reid Spencera773bd52006-08-04 18:18:08 +000014607# save warnings/boilerplate of simple test code
14608ac_outfile=conftest.$ac_objext
14609printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14611_lt_compiler_boilerplate=`cat conftest.err`
14612$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014613
Reid Spencera773bd52006-08-04 18:18:08 +000014614ac_outfile=conftest.$ac_objext
14615printf "$lt_simple_link_test_code" >conftest.$ac_ext
14616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14617_lt_linker_boilerplate=`cat conftest.err`
14618$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014619
14620
John Criswell47fdd832003-07-14 16:52:07 +000014621
14622lt_prog_compiler_no_builtin_flag=
14623
14624if test "$GCC" = yes; then
14625 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14626
Reid Spencer2706f8c2004-09-19 23:53:36 +000014627
Reid Spencera773bd52006-08-04 18:18:08 +000014628{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14629echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014630if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633 lt_cv_prog_compiler_rtti_exceptions=no
14634 ac_outfile=conftest.$ac_objext
14635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14636 lt_compiler_flag="-fno-rtti -fno-exceptions"
14637 # Insert the option either (1) after the last *FLAGS variable, or
14638 # (2) before a word containing "conftest.", or (3) at the end.
14639 # Note that $ac_compile itself does not contain backslashes and begins
14640 # with a dollar sign (not a hyphen), so the echo should work correctly.
14641 # The option is referenced via a variable to avoid confusing sed.
14642 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14645 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000014646 (eval echo "\"\$as_me:14646: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014647 (eval "$lt_compile" 2>conftest.err)
14648 ac_status=$?
14649 cat conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000014650 echo "$as_me:14650: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014651 if (exit $ac_status) && test -s "$ac_outfile"; then
14652 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014653 # So say no if there are warnings other than the usual output.
14654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014657 lt_cv_prog_compiler_rtti_exceptions=yes
14658 fi
14659 fi
14660 $rm conftest*
14661
14662fi
Reid Spencera773bd52006-08-04 18:18:08 +000014663{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14664echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014665
14666if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14667 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14668else
14669 :
14670fi
14671
14672fi
14673
14674lt_prog_compiler_wl=
14675lt_prog_compiler_pic=
14676lt_prog_compiler_static=
14677
Reid Spencera773bd52006-08-04 18:18:08 +000014678{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14679echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014680
14681 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014682 lt_prog_compiler_wl='-Wl,'
14683 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014684
14685 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014686 aix*)
14687 # All AIX code is PIC.
14688 if test "$host_cpu" = ia64; then
14689 # AIX 5 now supports IA64 processor
14690 lt_prog_compiler_static='-Bstatic'
14691 fi
John Criswell7a73b802003-06-30 21:59:07 +000014692 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014693
John Criswell7a73b802003-06-30 21:59:07 +000014694 amigaos*)
14695 # FIXME: we need at least 68020 code to build shared libraries, but
14696 # adding the `-m68020' flag to GCC prevents building anything better,
14697 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014698 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014699 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014700
14701 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014702 # PIC is the default for these OSes.
14703 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014704
14705 mingw* | pw32* | os2*)
14706 # This hack is so that the source file can tell whether it is being
14707 # built for inclusion in a dll (and should export symbols for example).
14708 lt_prog_compiler_pic='-DDLL_EXPORT'
14709 ;;
14710
John Criswell7a73b802003-06-30 21:59:07 +000014711 darwin* | rhapsody*)
14712 # PIC is the default on this platform
14713 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014714 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014715 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014716
Reid Spencera773bd52006-08-04 18:18:08 +000014717 interix3*)
14718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14719 # Instead, we relocate shared libraries at runtime.
14720 ;;
14721
John Criswell47fdd832003-07-14 16:52:07 +000014722 msdosdjgpp*)
14723 # Just because we use GCC doesn't mean we suddenly get shared libraries
14724 # on systems that don't support them.
14725 lt_prog_compiler_can_build_shared=no
14726 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014727 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014728
John Criswell7a73b802003-06-30 21:59:07 +000014729 sysv4*MP*)
14730 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014731 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014732 fi
14733 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014734
14735 hpux*)
14736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14737 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014738 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014739 hppa*64*|ia64*)
14740 # +Z the default
14741 ;;
14742 *)
14743 lt_prog_compiler_pic='-fPIC'
14744 ;;
14745 esac
14746 ;;
14747
John Criswell7a73b802003-06-30 21:59:07 +000014748 *)
John Criswell47fdd832003-07-14 16:52:07 +000014749 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014750 ;;
14751 esac
14752 else
John Criswell47fdd832003-07-14 16:52:07 +000014753 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014754 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014755 aix*)
14756 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014757 if test "$host_cpu" = ia64; then
14758 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014759 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014760 else
John Criswell47fdd832003-07-14 16:52:07 +000014761 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014762 fi
14763 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014764 darwin*)
14765 # PIC is the default on this platform
14766 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014767 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014768 xlc*)
14769 lt_prog_compiler_pic='-qnocommon'
14770 lt_prog_compiler_wl='-Wl,'
14771 ;;
14772 esac
14773 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014774
John Criswell47fdd832003-07-14 16:52:07 +000014775 mingw* | pw32* | os2*)
14776 # This hack is so that the source file can tell whether it is being
14777 # built for inclusion in a dll (and should export symbols for example).
14778 lt_prog_compiler_pic='-DDLL_EXPORT'
14779 ;;
14780
John Criswell7a73b802003-06-30 21:59:07 +000014781 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014782 lt_prog_compiler_wl='-Wl,'
14783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014785 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014786 hppa*64*|ia64*)
14787 # +Z the default
14788 ;;
14789 *)
14790 lt_prog_compiler_pic='+Z'
14791 ;;
14792 esac
14793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14794 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014795 ;;
14796
John Criswell47fdd832003-07-14 16:52:07 +000014797 irix5* | irix6* | nonstopux*)
14798 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014799 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014800 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014801 ;;
14802
14803 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014804 lt_prog_compiler_pic='-KPIC'
14805 lt_prog_compiler_static='-Bstatic'
14806 ;;
14807
14808 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014809 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014810 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014811 lt_prog_compiler_wl='-Wl,'
14812 lt_prog_compiler_pic='-KPIC'
14813 lt_prog_compiler_static='-static'
14814 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014815 pgcc* | pgf77* | pgf90* | pgf95*)
14816 # Portland Group compilers (*not* the Pentium gcc compiler,
14817 # which looks to be a dead project)
14818 lt_prog_compiler_wl='-Wl,'
14819 lt_prog_compiler_pic='-fpic'
14820 lt_prog_compiler_static='-Bstatic'
14821 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014822 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014823 lt_prog_compiler_wl='-Wl,'
14824 # All Alpha code is PIC.
14825 lt_prog_compiler_static='-non_shared'
14826 ;;
14827 esac
John Criswell7a73b802003-06-30 21:59:07 +000014828 ;;
14829
14830 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014831 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014832 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014833 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014834 ;;
14835
John Criswell7a73b802003-06-30 21:59:07 +000014836 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014837 lt_prog_compiler_pic='-KPIC'
14838 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014839 case $cc_basename in
14840 f77* | f90* | f95*)
14841 lt_prog_compiler_wl='-Qoption ld ';;
14842 *)
14843 lt_prog_compiler_wl='-Wl,';;
14844 esac
John Criswell7a73b802003-06-30 21:59:07 +000014845 ;;
14846
14847 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014848 lt_prog_compiler_wl='-Qoption ld '
14849 lt_prog_compiler_pic='-PIC'
14850 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014851 ;;
14852
Reid Spencera773bd52006-08-04 18:18:08 +000014853 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014854 lt_prog_compiler_wl='-Wl,'
14855 lt_prog_compiler_pic='-KPIC'
14856 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014857 ;;
14858
14859 sysv4*MP*)
14860 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014861 lt_prog_compiler_pic='-Kconform_pic'
14862 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014863 fi
14864 ;;
14865
Reid Spencera773bd52006-08-04 18:18:08 +000014866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14867 lt_prog_compiler_wl='-Wl,'
14868 lt_prog_compiler_pic='-KPIC'
14869 lt_prog_compiler_static='-Bstatic'
14870 ;;
14871
14872 unicos*)
14873 lt_prog_compiler_wl='-Wl,'
14874 lt_prog_compiler_can_build_shared=no
14875 ;;
14876
John Criswell47fdd832003-07-14 16:52:07 +000014877 uts4*)
14878 lt_prog_compiler_pic='-pic'
14879 lt_prog_compiler_static='-Bstatic'
14880 ;;
14881
John Criswell7a73b802003-06-30 21:59:07 +000014882 *)
John Criswell47fdd832003-07-14 16:52:07 +000014883 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014884 ;;
14885 esac
14886 fi
14887
Reid Spencera773bd52006-08-04 18:18:08 +000014888{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14889echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014890
John Criswell47fdd832003-07-14 16:52:07 +000014891#
14892# Check to make sure the PIC flag actually works.
14893#
14894if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014895
Reid Spencera773bd52006-08-04 18:18:08 +000014896{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14897echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014898if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014899 echo $ECHO_N "(cached) $ECHO_C" >&6
14900else
John Criswell47fdd832003-07-14 16:52:07 +000014901 lt_prog_compiler_pic_works=no
14902 ac_outfile=conftest.$ac_objext
14903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14905 # Insert the option either (1) after the last *FLAGS variable, or
14906 # (2) before a word containing "conftest.", or (3) at the end.
14907 # Note that $ac_compile itself does not contain backslashes and begins
14908 # with a dollar sign (not a hyphen), so the echo should work correctly.
14909 # The option is referenced via a variable to avoid confusing sed.
14910 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14913 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000014914 (eval echo "\"\$as_me:14914: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014915 (eval "$lt_compile" 2>conftest.err)
14916 ac_status=$?
14917 cat conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000014918 echo "$as_me:14918: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014919 if (exit $ac_status) && test -s "$ac_outfile"; then
14920 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014921 # So say no if there are warnings other than the usual output.
14922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014925 lt_prog_compiler_pic_works=yes
14926 fi
14927 fi
14928 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014929
John Criswell47fdd832003-07-14 16:52:07 +000014930fi
Reid Spencera773bd52006-08-04 18:18:08 +000014931{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14932echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014933
John Criswell47fdd832003-07-14 16:52:07 +000014934if test x"$lt_prog_compiler_pic_works" = xyes; then
14935 case $lt_prog_compiler_pic in
14936 "" | " "*) ;;
14937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14938 esac
John Criswell7a73b802003-06-30 21:59:07 +000014939else
John Criswell47fdd832003-07-14 16:52:07 +000014940 lt_prog_compiler_pic=
14941 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014942fi
14943
John Criswell7a73b802003-06-30 21:59:07 +000014944fi
Reid Spencera773bd52006-08-04 18:18:08 +000014945case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014946 # For platforms which do not support PIC, -DPIC is meaningless:
14947 *djgpp*)
14948 lt_prog_compiler_pic=
14949 ;;
14950 *)
14951 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14952 ;;
14953esac
John Criswell7a73b802003-06-30 21:59:07 +000014954
Reid Spencera773bd52006-08-04 18:18:08 +000014955#
14956# Check to make sure the static flag actually works.
14957#
14958wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14959{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14960echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14961if test "${lt_prog_compiler_static_works+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14963else
14964 lt_prog_compiler_static_works=no
14965 save_LDFLAGS="$LDFLAGS"
14966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14967 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14969 # The linker can only warn and ignore the option if not recognized
14970 # So say no if there are warnings
14971 if test -s conftest.err; then
14972 # Append any errors to the config.log.
14973 cat conftest.err 1>&5
14974 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14976 if diff conftest.exp conftest.er2 >/dev/null; then
14977 lt_prog_compiler_static_works=yes
14978 fi
14979 else
14980 lt_prog_compiler_static_works=yes
14981 fi
14982 fi
14983 $rm conftest*
14984 LDFLAGS="$save_LDFLAGS"
14985
14986fi
14987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14988echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14989
14990if test x"$lt_prog_compiler_static_works" = xyes; then
14991 :
14992else
14993 lt_prog_compiler_static=
14994fi
14995
14996
14997{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014999if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001else
John Criswell47fdd832003-07-14 16:52:07 +000015002 lt_cv_prog_compiler_c_o=no
15003 $rm -r conftest 2>/dev/null
15004 mkdir conftest
15005 cd conftest
15006 mkdir out
15007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015008
John Criswell47fdd832003-07-14 16:52:07 +000015009 lt_compiler_flag="-o out/conftest2.$ac_objext"
15010 # Insert the option either (1) after the last *FLAGS variable, or
15011 # (2) before a word containing "conftest.", or (3) at the end.
15012 # Note that $ac_compile itself does not contain backslashes and begins
15013 # with a dollar sign (not a hyphen), so the echo should work correctly.
15014 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15017 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000015018 (eval echo "\"\$as_me:15018: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015019 (eval "$lt_compile" 2>out/conftest.err)
15020 ac_status=$?
15021 cat out/conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000015022 echo "$as_me:15022: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15024 then
15025 # The compiler can only warn and ignore the option if not recognized
15026 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015030 lt_cv_prog_compiler_c_o=yes
15031 fi
15032 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015033 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015034 $rm conftest*
15035 # SGI C++ compiler will create directory out/ii_files/ for
15036 # template instantiation
15037 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15038 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015039 cd ..
15040 rmdir conftest
15041 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015042
15043fi
Reid Spencera773bd52006-08-04 18:18:08 +000015044{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15045echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015046
John Criswell7a73b802003-06-30 21:59:07 +000015047
John Criswell7a73b802003-06-30 21:59:07 +000015048hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015049if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015050 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015051 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15052echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015053 hard_links=yes
15054 $rm conftest*
15055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15056 touch conftest.a
15057 ln conftest.a conftest.b 2>&5 || hard_links=no
15058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015059 { echo "$as_me:$LINENO: result: $hard_links" >&5
15060echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015061 if test "$hard_links" = no; then
15062 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15063echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15064 need_locks=warn
15065 fi
15066else
15067 need_locks=no
15068fi
John Criswell7a73b802003-06-30 21:59:07 +000015069
Reid Spencera773bd52006-08-04 18:18:08 +000015070{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15071echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015072
15073 runpath_var=
15074 allow_undefined_flag=
15075 enable_shared_with_static_runtimes=no
15076 archive_cmds=
15077 archive_expsym_cmds=
15078 old_archive_From_new_cmds=
15079 old_archive_from_expsyms_cmds=
15080 export_dynamic_flag_spec=
15081 whole_archive_flag_spec=
15082 thread_safe_flag_spec=
15083 hardcode_libdir_flag_spec=
15084 hardcode_libdir_flag_spec_ld=
15085 hardcode_libdir_separator=
15086 hardcode_direct=no
15087 hardcode_minus_L=no
15088 hardcode_shlibpath_var=unsupported
15089 link_all_deplibs=unknown
15090 hardcode_automatic=no
15091 module_cmds=
15092 module_expsym_cmds=
15093 always_export_symbols=no
15094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15095 # include_expsyms should be a list of space-separated symbols to be *always*
15096 # included in the symbol list
15097 include_expsyms=
15098 # exclude_expsyms can be an extended regexp of symbols to exclude
15099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15101 # as well as any symbol that contains `d'.
15102 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15104 # platforms (ab)use it in PIC code, but their linkers get confused if
15105 # the symbol is explicitly referenced. Since portable code cannot
15106 # rely on this symbol name, it's probably fine to never include it in
15107 # preloaded symbol tables.
15108 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015109 # Just being paranoid about ensuring that cc_basename is set.
15110 for cc_temp in $compiler""; do
15111 case $cc_temp in
15112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15114 \-*) ;;
15115 *) break;;
15116 esac
15117done
15118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015119
15120 case $host_os in
15121 cygwin* | mingw* | pw32*)
15122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15123 # When not using gcc, we currently assume that we are using
15124 # Microsoft Visual C++.
15125 if test "$GCC" != yes; then
15126 with_gnu_ld=no
15127 fi
15128 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015129 interix*)
15130 # we just hope/assume this is gcc and not c89 (= MSVC++)
15131 with_gnu_ld=yes
15132 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015133 openbsd*)
15134 with_gnu_ld=no
15135 ;;
15136 esac
15137
15138 ld_shlibs=yes
15139 if test "$with_gnu_ld" = yes; then
15140 # If archive_cmds runs LD, not CC, wlarc should be empty
15141 wlarc='${wl}'
15142
Reid Spencera773bd52006-08-04 18:18:08 +000015143 # Set some defaults for GNU ld with shared library support. These
15144 # are reset later if shared libraries are not supported. Putting them
15145 # here allows them to be overridden if necessary.
15146 runpath_var=LD_RUN_PATH
15147 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15148 export_dynamic_flag_spec='${wl}--export-dynamic'
15149 # ancient GNU ld didn't support --whole-archive et. al.
15150 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15151 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15152 else
15153 whole_archive_flag_spec=
15154 fi
15155 supports_anon_versioning=no
15156 case `$LD -v 2>/dev/null` in
15157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15160 *\ 2.11.*) ;; # other 2.11 versions
15161 *) supports_anon_versioning=yes ;;
15162 esac
15163
John Criswell47fdd832003-07-14 16:52:07 +000015164 # See if GNU ld supports shared libraries.
15165 case $host_os in
15166 aix3* | aix4* | aix5*)
15167 # On AIX/PPC, the GNU linker is very broken
15168 if test "$host_cpu" != ia64; then
15169 ld_shlibs=no
15170 cat <<EOF 1>&2
15171
15172*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15173*** to be unable to reliably create shared libraries on AIX.
15174*** Therefore, libtool is disabling shared libraries support. If you
15175*** really care for shared libraries, you may want to modify your PATH
15176*** so that a non-GNU linker is found, and then restart.
15177
15178EOF
15179 fi
15180 ;;
15181
15182 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015183 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 +000015184 hardcode_libdir_flag_spec='-L$libdir'
15185 hardcode_minus_L=yes
15186
15187 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15188 # that the semantics of dynamic libraries on AmigaOS, at least up
15189 # to version 4, is to share data among multiple programs linked
15190 # with the same dynamic library. Since this doesn't match the
15191 # behavior of shared libraries on other platforms, we can't use
15192 # them.
15193 ld_shlibs=no
15194 ;;
15195
15196 beos*)
15197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15198 allow_undefined_flag=unsupported
15199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15200 # support --undefined. This deserves some investigation. FIXME
15201 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202 else
15203 ld_shlibs=no
15204 fi
15205 ;;
15206
15207 cygwin* | mingw* | pw32*)
15208 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15209 # as there is no search path for DLLs.
15210 hardcode_libdir_flag_spec='-L$libdir'
15211 allow_undefined_flag=unsupported
15212 always_export_symbols=no
15213 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015214 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 +000015215
15216 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015217 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 +000015218 # If the export-symbols file already is a .def file (1st line
15219 # is EXPORTS), use it as is; otherwise, prepend...
15220 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15221 cp $export_symbols $output_objdir/$soname.def;
15222 else
15223 echo EXPORTS > $output_objdir/$soname.def;
15224 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015225 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15227 else
15228 ld_shlibs=no
15229 fi
15230 ;;
15231
15232 interix3*)
15233 hardcode_direct=no
15234 hardcode_shlibpath_var=no
15235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15236 export_dynamic_flag_spec='${wl}-E'
15237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15238 # Instead, shared libraries are loaded at an image base (0x10000000 by
15239 # default) and relocated if they conflict, which is a slow very memory
15240 # consuming and fragmenting process. To avoid this, we pick a random,
15241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15244 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'
15245 ;;
15246
15247 linux*)
15248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249 tmp_addflag=
15250 case $cc_basename,$host_cpu in
15251 pgcc*) # Portland Group C compiler
15252 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'
15253 tmp_addflag=' $pic_flag'
15254 ;;
15255 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15256 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'
15257 tmp_addflag=' $pic_flag -Mnomain' ;;
15258 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15259 tmp_addflag=' -i_dynamic' ;;
15260 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15261 tmp_addflag=' -i_dynamic -nofor_main' ;;
15262 ifc* | ifort*) # Intel Fortran compiler
15263 tmp_addflag=' -nofor_main' ;;
15264 esac
15265 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266
15267 if test $supports_anon_versioning = yes; then
15268 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15270 $echo "local: *; };" >> $output_objdir/$libname.ver~
15271 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15272 fi
John Criswell47fdd832003-07-14 16:52:07 +000015273 else
15274 ld_shlibs=no
15275 fi
15276 ;;
15277
15278 netbsd*)
15279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15280 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15281 wlarc=
15282 else
15283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15285 fi
15286 ;;
15287
Reid Spencera773bd52006-08-04 18:18:08 +000015288 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015289 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15290 ld_shlibs=no
15291 cat <<EOF 1>&2
15292
15293*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15294*** create shared libraries on Solaris systems. Therefore, libtool
15295*** is disabling shared libraries support. We urge you to upgrade GNU
15296*** binutils to release 2.9.1 or newer. Another option is to modify
15297*** your PATH or compiler configuration so that the native linker is
15298*** used, and then restart.
15299
15300EOF
15301 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15304 else
15305 ld_shlibs=no
15306 fi
15307 ;;
15308
Reid Spencera773bd52006-08-04 18:18:08 +000015309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15310 case `$LD -v 2>&1` in
15311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15312 ld_shlibs=no
15313 cat <<_LT_EOF 1>&2
15314
15315*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15316*** reliably create shared libraries on SCO systems. Therefore, libtool
15317*** is disabling shared libraries support. We urge you to upgrade GNU
15318*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15319*** your PATH or compiler configuration so that the native linker is
15320*** used, and then restart.
15321
15322_LT_EOF
15323 ;;
15324 *)
15325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15326 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15329 else
15330 ld_shlibs=no
15331 fi
15332 ;;
15333 esac
15334 ;;
15335
John Criswell47fdd832003-07-14 16:52:07 +000015336 sunos4*)
15337 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15338 wlarc=
15339 hardcode_direct=yes
15340 hardcode_shlibpath_var=no
15341 ;;
15342
15343 *)
15344 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15347 else
15348 ld_shlibs=no
15349 fi
15350 ;;
15351 esac
15352
Reid Spencera773bd52006-08-04 18:18:08 +000015353 if test "$ld_shlibs" = no; then
15354 runpath_var=
15355 hardcode_libdir_flag_spec=
15356 export_dynamic_flag_spec=
15357 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015358 fi
15359 else
15360 # PORTME fill in a description of your system's linker (not GNU ld)
15361 case $host_os in
15362 aix3*)
15363 allow_undefined_flag=unsupported
15364 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015365 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 +000015366 # Note: this linker hardcodes the directories in LIBPATH if there
15367 # are no directories specified by -L.
15368 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015369 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015370 # Neither direct hardcoding nor static linking is supported with a
15371 # broken collect2.
15372 hardcode_direct=unsupported
15373 fi
15374 ;;
15375
15376 aix4* | aix5*)
15377 if test "$host_cpu" = ia64; then
15378 # On IA64, the linker does run time linking by default, so we don't
15379 # have to do anything special.
15380 aix_use_runtimelinking=no
15381 exp_sym_flag='-Bexport'
15382 no_entry_flag=""
15383 else
15384 # If we're using GNU nm, then we don't want the "-C" option.
15385 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15386 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15387 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'
15388 else
15389 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'
15390 fi
15391 aix_use_runtimelinking=no
15392
15393 # Test if we are trying to use run time linking or normal
15394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15395 # need to do runtime linking.
15396 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15397 for ld_flag in $LDFLAGS; do
15398 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15399 aix_use_runtimelinking=yes
15400 break
15401 fi
15402 done
Reid Spencera773bd52006-08-04 18:18:08 +000015403 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015404 esac
15405
15406 exp_sym_flag='-bexport'
15407 no_entry_flag='-bnoentry'
15408 fi
15409
15410 # When large executables or shared objects are built, AIX ld can
15411 # have problems creating the table of contents. If linking a library
15412 # or program results in "error TOC overflow" add -mminimal-toc to
15413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15415
15416 archive_cmds=''
15417 hardcode_direct=yes
15418 hardcode_libdir_separator=':'
15419 link_all_deplibs=yes
15420
15421 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015422 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015423 # We only want to do this on AIX 4.2 and lower, the check
15424 # below for broken collect2 doesn't work under 4.3+
15425 collect2name=`${CC} -print-prog-name=collect2`
15426 if test -f "$collect2name" && \
15427 strings "$collect2name" | grep resolve_lib_name >/dev/null
15428 then
15429 # We have reworked collect2
15430 hardcode_direct=yes
15431 else
15432 # We have old collect2
15433 hardcode_direct=unsupported
15434 # It fails to find uninstalled libraries when the uninstalled
15435 # path is not listed in the libpath. Setting hardcode_minus_L
15436 # to unsupported forces relinking
15437 hardcode_minus_L=yes
15438 hardcode_libdir_flag_spec='-L$libdir'
15439 hardcode_libdir_separator=
15440 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015441 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015442 esac
15443 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015444 if test "$aix_use_runtimelinking" = yes; then
15445 shared_flag="$shared_flag "'${wl}-G'
15446 fi
John Criswell47fdd832003-07-14 16:52:07 +000015447 else
15448 # not using gcc
15449 if test "$host_cpu" = ia64; then
15450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15451 # chokes on -Wl,-G. The following line is correct:
15452 shared_flag='-G'
15453 else
Reid Spencera773bd52006-08-04 18:18:08 +000015454 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015455 shared_flag='${wl}-G'
15456 else
15457 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015458 fi
John Criswell47fdd832003-07-14 16:52:07 +000015459 fi
15460 fi
15461
15462 # It seems that -bexpall does not export symbols beginning with
15463 # underscore (_), so it is better to generate a list of symbols to export.
15464 always_export_symbols=yes
15465 if test "$aix_use_runtimelinking" = yes; then
15466 # Warning - without using the other runtime loading flags (-brtl),
15467 # -berok will link without error, but may produce a broken library.
15468 allow_undefined_flag='-berok'
15469 # Determine the default libpath from the value encoded in an empty executable.
15470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015476
John Criswell7a73b802003-06-30 21:59:07 +000015477int
15478main ()
15479{
John Criswell47fdd832003-07-14 16:52:07 +000015480
John Criswell7a73b802003-06-30 21:59:07 +000015481 ;
15482 return 0;
15483}
15484_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015485rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015486if { (ac_try="$ac_link"
15487case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490esac
15491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015498 (exit $ac_status); } &&
15499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15500 { (case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503esac
15504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_try") 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15513esac
15514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_try") 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015519
John Criswell47fdd832003-07-14 16:52:07 +000015520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15521}'`
15522# Check for a 64-bit object if we didn't find anything.
15523if 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; }
15524}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015525else
15526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015527sed 's/^/| /' conftest.$ac_ext >&5
15528
Reid Spencera773bd52006-08-04 18:18:08 +000015529
John Criswell7a73b802003-06-30 21:59:07 +000015530fi
Reid Spencera773bd52006-08-04 18:18:08 +000015531
Tanya Lattnercf067672008-01-17 05:57:22 +000015532rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015535
John Criswell47fdd832003-07-14 16:52:07 +000015536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015537 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 +000015538 else
15539 if test "$host_cpu" = ia64; then
15540 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15541 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015542 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 +000015543 else
15544 # Determine the default libpath from the value encoded in an empty executable.
15545 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
15550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015551
John Criswell47fdd832003-07-14 16:52:07 +000015552int
15553main ()
15554{
John Criswell7a73b802003-06-30 21:59:07 +000015555
John Criswell47fdd832003-07-14 16:52:07 +000015556 ;
15557 return 0;
15558}
15559_ACEOF
15560rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015561if { (ac_try="$ac_link"
15562case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565esac
15566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015569 grep -v '^ *+' conftest.er1 >conftest.err
15570 rm -f conftest.er1
15571 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015573 (exit $ac_status); } &&
15574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest$ac_exeext'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588esac
15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015594
John Criswell47fdd832003-07-14 16:52:07 +000015595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15596}'`
15597# Check for a 64-bit object if we didn't find anything.
15598if 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; }
15599}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015600else
John Criswell47fdd832003-07-14 16:52:07 +000015601 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015602sed 's/^/| /' conftest.$ac_ext >&5
15603
Reid Spencera773bd52006-08-04 18:18:08 +000015604
John Criswell47fdd832003-07-14 16:52:07 +000015605fi
Reid Spencera773bd52006-08-04 18:18:08 +000015606
Tanya Lattnercf067672008-01-17 05:57:22 +000015607rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015608 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015609if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015610
John Criswell47fdd832003-07-14 16:52:07 +000015611 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15612 # Warning - without using the other run time loading flags,
15613 # -berok will link without error, but may produce a broken library.
15614 no_undefined_flag=' ${wl}-bernotok'
15615 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015616 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015617 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015618 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015619 # This is similar to how AIX traditionally builds its shared libraries.
15620 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 +000015621 fi
15622 fi
John Criswell7a73b802003-06-30 21:59:07 +000015623 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015624
15625 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015626 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 +000015627 hardcode_libdir_flag_spec='-L$libdir'
15628 hardcode_minus_L=yes
15629 # see comment about different semantics on the GNU ld section
15630 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015631 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015632
Reid Spencer2706f8c2004-09-19 23:53:36 +000015633 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015634 export_dynamic_flag_spec=-rdynamic
15635 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015636
John Criswell47fdd832003-07-14 16:52:07 +000015637 cygwin* | mingw* | pw32*)
15638 # When not using gcc, we currently assume that we are using
15639 # Microsoft Visual C++.
15640 # hardcode_libdir_flag_spec is actually meaningless, as there is
15641 # no search path for DLLs.
15642 hardcode_libdir_flag_spec=' '
15643 allow_undefined_flag=unsupported
15644 # Tell ltmain to make .lib files, not .a files.
15645 libext=lib
15646 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015647 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015648 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015649 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015650 # The linker will automatically build a .lib file if we build a DLL.
15651 old_archive_From_new_cmds='true'
15652 # FIXME: Should let the user specify the lib program.
15653 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15654 fix_srcfile_path='`cygpath -w "$srcfile"`'
15655 enable_shared_with_static_runtimes=yes
15656 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015657
John Criswell47fdd832003-07-14 16:52:07 +000015658 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015659 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015660 rhapsody* | darwin1.[012])
15661 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15662 ;;
15663 *) # Darwin 1.3 on
15664 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15665 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15666 else
15667 case ${MACOSX_DEPLOYMENT_TARGET} in
15668 10.[012])
15669 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15670 ;;
15671 10.*)
15672 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15673 ;;
15674 esac
15675 fi
15676 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015677 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015678 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015679 hardcode_direct=no
15680 hardcode_automatic=yes
15681 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015682 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015683 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015684 if test "$GCC" = yes ; then
15685 output_verbose_link_cmd='echo'
15686 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15687 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015688 # 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 +000015689 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}'
15690 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 +000015691 else
Reid Spencera773bd52006-08-04 18:18:08 +000015692 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015693 xlc*)
15694 output_verbose_link_cmd='echo'
15695 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15696 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015697 # 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 +000015698 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}'
15699 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 +000015700 ;;
15701 *)
15702 ld_shlibs=no
15703 ;;
15704 esac
John Criswell7a73b802003-06-30 21:59:07 +000015705 fi
John Criswell47fdd832003-07-14 16:52:07 +000015706 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015707
John Criswell47fdd832003-07-14 16:52:07 +000015708 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015710 hardcode_libdir_flag_spec='-L$libdir'
15711 hardcode_shlibpath_var=no
15712 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015713
John Criswell47fdd832003-07-14 16:52:07 +000015714 freebsd1*)
15715 ld_shlibs=no
15716 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015717
John Criswell47fdd832003-07-14 16:52:07 +000015718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15719 # support. Future versions do this automatically, but an explicit c++rt0.o
15720 # does not break anything, and helps significantly (at the cost of a little
15721 # extra space).
15722 freebsd2.2*)
15723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15724 hardcode_libdir_flag_spec='-R$libdir'
15725 hardcode_direct=yes
15726 hardcode_shlibpath_var=no
15727 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015728
John Criswell47fdd832003-07-14 16:52:07 +000015729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15730 freebsd2*)
15731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732 hardcode_direct=yes
15733 hardcode_minus_L=yes
15734 hardcode_shlibpath_var=no
15735 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015736
John Criswell47fdd832003-07-14 16:52:07 +000015737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015738 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15740 hardcode_libdir_flag_spec='-R$libdir'
15741 hardcode_direct=yes
15742 hardcode_shlibpath_var=no
15743 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015744
John Criswell47fdd832003-07-14 16:52:07 +000015745 hpux9*)
15746 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015747 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 +000015748 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015749 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 +000015750 fi
15751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15752 hardcode_libdir_separator=:
15753 hardcode_direct=yes
15754
15755 # hardcode_minus_L: Not really in the search PATH,
15756 # but as the default location of the library.
15757 hardcode_minus_L=yes
15758 export_dynamic_flag_spec='${wl}-E'
15759 ;;
15760
Reid Spencera773bd52006-08-04 18:18:08 +000015761 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15764 else
15765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15766 fi
15767 if test "$with_gnu_ld" = no; then
15768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15769 hardcode_libdir_separator=:
15770
15771 hardcode_direct=yes
15772 export_dynamic_flag_spec='${wl}-E'
15773
15774 # hardcode_minus_L: Not really in the search PATH,
15775 # but as the default location of the library.
15776 hardcode_minus_L=yes
15777 fi
15778 ;;
15779
15780 hpux11*)
15781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15782 case $host_cpu in
15783 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015786 ia64*)
15787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15788 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015789 *)
15790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15791 ;;
15792 esac
15793 else
Reid Spencera773bd52006-08-04 18:18:08 +000015794 case $host_cpu in
15795 hppa*64*)
15796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15797 ;;
15798 ia64*)
15799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015800 ;;
15801 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015802 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 +000015803 ;;
15804 esac
15805 fi
15806 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15808 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015809
Reid Spencera773bd52006-08-04 18:18:08 +000015810 case $host_cpu in
15811 hppa*64*|ia64*)
15812 hardcode_libdir_flag_spec_ld='+b $libdir'
15813 hardcode_direct=no
15814 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015815 ;;
15816 *)
John Criswell47fdd832003-07-14 16:52:07 +000015817 hardcode_direct=yes
15818 export_dynamic_flag_spec='${wl}-E'
15819
15820 # hardcode_minus_L: Not really in the search PATH,
15821 # but as the default location of the library.
15822 hardcode_minus_L=yes
15823 ;;
15824 esac
15825 fi
15826 ;;
15827
15828 irix5* | irix6* | nonstopux*)
15829 if test "$GCC" = yes; then
15830 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'
15831 else
15832 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'
15833 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15834 fi
15835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15836 hardcode_libdir_separator=:
15837 link_all_deplibs=yes
15838 ;;
15839
15840 netbsd*)
15841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15843 else
15844 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15845 fi
15846 hardcode_libdir_flag_spec='-R$libdir'
15847 hardcode_direct=yes
15848 hardcode_shlibpath_var=no
15849 ;;
15850
15851 newsos6)
15852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_direct=yes
15854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15855 hardcode_libdir_separator=:
15856 hardcode_shlibpath_var=no
15857 ;;
15858
15859 openbsd*)
15860 hardcode_direct=yes
15861 hardcode_shlibpath_var=no
15862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015864 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 +000015865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15866 export_dynamic_flag_spec='${wl}-E'
15867 else
15868 case $host_os in
15869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_libdir_flag_spec='-R$libdir'
15872 ;;
15873 *)
15874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15876 ;;
15877 esac
15878 fi
15879 ;;
15880
15881 os2*)
15882 hardcode_libdir_flag_spec='-L$libdir'
15883 hardcode_minus_L=yes
15884 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015885 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 +000015886 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15887 ;;
15888
15889 osf3*)
15890 if test "$GCC" = yes; then
15891 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15892 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'
15893 else
15894 allow_undefined_flag=' -expect_unresolved \*'
15895 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'
15896 fi
15897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15898 hardcode_libdir_separator=:
15899 ;;
15900
15901 osf4* | osf5*) # as osf3* with the addition of -msym flag
15902 if test "$GCC" = yes; then
15903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15904 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'
15905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15906 else
15907 allow_undefined_flag=' -expect_unresolved \*'
15908 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 +000015909 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 +000015910 $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 +000015911
John Criswell47fdd832003-07-14 16:52:07 +000015912 # Both c and cxx compiler support -rpath directly
15913 hardcode_libdir_flag_spec='-rpath $libdir'
15914 fi
15915 hardcode_libdir_separator=:
15916 ;;
15917
John Criswell47fdd832003-07-14 16:52:07 +000015918 solaris*)
15919 no_undefined_flag=' -z text'
15920 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015921 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015922 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015923 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15924 $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 +000015925 else
Reid Spencera773bd52006-08-04 18:18:08 +000015926 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15929 $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 +000015930 fi
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_shlibpath_var=no
15933 case $host_os in
15934 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015935 *)
15936 # The compiler driver will combine linker options so we
15937 # cannot just pass the convience library names through
15938 # without $wl, iff we do not link with $LD.
15939 # Luckily, gcc supports the same syntax we need for Sun Studio.
15940 # Supported since Solaris 2.6 (maybe 2.5.1?)
15941 case $wlarc in
15942 '')
15943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15944 *)
15945 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' ;;
15946 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015947 esac
15948 link_all_deplibs=yes
15949 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015950
John Criswell47fdd832003-07-14 16:52:07 +000015951 sunos4*)
15952 if test "x$host_vendor" = xsequent; then
15953 # Use $CC to link under sequent, because it throws in some extra .o
15954 # files that make .init and .fini sections work.
15955 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15956 else
15957 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15958 fi
15959 hardcode_libdir_flag_spec='-L$libdir'
15960 hardcode_direct=yes
15961 hardcode_minus_L=yes
15962 hardcode_shlibpath_var=no
15963 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015964
John Criswell47fdd832003-07-14 16:52:07 +000015965 sysv4)
15966 case $host_vendor in
15967 sni)
15968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15969 hardcode_direct=yes # is this really true???
15970 ;;
15971 siemens)
15972 ## LD is ld it makes a PLAMLIB
15973 ## CC just makes a GrossModule.
15974 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15975 reload_cmds='$CC -r -o $output$reload_objs'
15976 hardcode_direct=no
15977 ;;
15978 motorola)
15979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15981 ;;
15982 esac
15983 runpath_var='LD_RUN_PATH'
15984 hardcode_shlibpath_var=no
15985 ;;
15986
15987 sysv4.3*)
15988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15989 hardcode_shlibpath_var=no
15990 export_dynamic_flag_spec='-Bexport'
15991 ;;
15992
15993 sysv4*MP*)
15994 if test -d /usr/nec; then
15995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15996 hardcode_shlibpath_var=no
15997 runpath_var=LD_RUN_PATH
15998 hardcode_runpath_var=yes
15999 ld_shlibs=yes
16000 fi
16001 ;;
16002
Reid Spencera773bd52006-08-04 18:18:08 +000016003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16004 no_undefined_flag='${wl}-z,text'
16005 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016006 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016007 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016008
John Criswell47fdd832003-07-14 16:52:07 +000016009 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011 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 +000016012 else
Reid Spencera773bd52006-08-04 18:18:08 +000016013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 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 +000016015 fi
John Criswell47fdd832003-07-14 16:52:07 +000016016 ;;
16017
Reid Spencera773bd52006-08-04 18:18:08 +000016018 sysv5* | sco3.2v5* | sco5v6*)
16019 # Note: We can NOT use -z defs as we might desire, because we do not
16020 # link with -lc, and that would cause any symbols used from libc to
16021 # always be unresolved, which means just about no library would
16022 # ever link correctly. If we're not using GNU ld we use -z text
16023 # though, which does catch some bad symbols but isn't as heavy-handed
16024 # as -z defs.
16025 no_undefined_flag='${wl}-z,text'
16026 allow_undefined_flag='${wl}-z,nodefs'
16027 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016028 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016029 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16030 hardcode_libdir_separator=':'
16031 link_all_deplibs=yes
16032 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016033 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016034
16035 if test "$GCC" = yes; then
16036 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16038 else
16039 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16041 fi
John Criswell47fdd832003-07-14 16:52:07 +000016042 ;;
16043
16044 uts4*)
16045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_libdir_flag_spec='-L$libdir'
16047 hardcode_shlibpath_var=no
16048 ;;
16049
16050 *)
16051 ld_shlibs=no
16052 ;;
16053 esac
16054 fi
16055
Reid Spencera773bd52006-08-04 18:18:08 +000016056{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16057echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016058test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016059
John Criswell47fdd832003-07-14 16:52:07 +000016060#
16061# Do we need to explicitly link libc?
16062#
16063case "x$archive_cmds_need_lc" in
16064x|xyes)
16065 # Assume -lc should be added
16066 archive_cmds_need_lc=yes
16067
16068 if test "$enable_shared" = yes && test "$GCC" = yes; then
16069 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016070 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016071 # FIXME: we may have to deal with multi-command sequences.
16072 ;;
16073 '$CC '*)
16074 # Test whether the compiler implicitly links with -lc since on some
16075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16076 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016077 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16078echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016079 $rm conftest*
16080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16081
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } 2>conftest.err; then
16087 soname=conftest
16088 lib=conftest
16089 libobjs=conftest.$ac_objext
16090 deplibs=
16091 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016092 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016093 compiler_flags=-v
16094 linker_flags=-v
16095 verstring=
16096 output_objdir=.
16097 libname=conftest
16098 lt_save_allow_undefined_flag=$allow_undefined_flag
16099 allow_undefined_flag=
16100 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16101 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }
16105 then
16106 archive_cmds_need_lc=no
16107 else
16108 archive_cmds_need_lc=yes
16109 fi
16110 allow_undefined_flag=$lt_save_allow_undefined_flag
16111 else
16112 cat conftest.err 1>&5
16113 fi
16114 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016115 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16116echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016117 ;;
16118 esac
16119 fi
16120 ;;
16121esac
16122
Reid Spencera773bd52006-08-04 18:18:08 +000016123{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16124echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016125library_names_spec=
16126libname_spec='lib$name'
16127soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016128shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016129postinstall_cmds=
16130postuninstall_cmds=
16131finish_cmds=
16132finish_eval=
16133shlibpath_var=
16134shlibpath_overrides_runpath=unknown
16135version_type=none
16136dynamic_linker="$host_os ld.so"
16137sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016138if test "$GCC" = yes; then
16139 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16140 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16141 # if the path contains ";" then we assume it to be the separator
16142 # otherwise default to the standard path separator (i.e. ":") - it is
16143 # assumed that no part of a normal pathname contains ";" but that should
16144 # okay in the real world where ";" in dirpaths is itself problematic.
16145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16146 else
16147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16148 fi
16149else
16150 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16151fi
16152need_lib_prefix=unknown
16153hardcode_into_libs=no
16154
16155# when you set need_version to no, make sure it does not cause -set_version
16156# flags to be left without arguments
16157need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016158
16159case $host_os in
16160aix3*)
16161 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016163 shlibpath_var=LIBPATH
16164
John Criswell47fdd832003-07-14 16:52:07 +000016165 # AIX 3 has no versioning support, so we append a major version to the name.
16166 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016167 ;;
16168
16169aix4* | aix5*)
16170 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016171 need_lib_prefix=no
16172 need_version=no
16173 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016174 if test "$host_cpu" = ia64; then
16175 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016177 shlibpath_var=LD_LIBRARY_PATH
16178 else
16179 # With GCC up to 2.95.x, collect2 would create an import file
16180 # for dependence libraries. The import file would start with
16181 # the line `#! .'. This would cause the generated library to
16182 # depend on `.', always an invalid library. This was fixed in
16183 # development snapshots of GCC prior to 3.0.
16184 case $host_os in
16185 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16187 echo ' yes '
16188 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16189 :
16190 else
16191 can_build_shared=no
16192 fi
16193 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016194 esac
John Criswell47fdd832003-07-14 16:52:07 +000016195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16196 # soname into executable. Probably we can add versioning support to
16197 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016198 if test "$aix_use_runtimelinking" = yes; then
16199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16200 # instead of lib<name>.a to let people know that these are not
16201 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016203 else
16204 # We preserve .a as extension for shared libraries through AIX4.2
16205 # and later when we are not doing run time linking.
16206 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016207 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016208 fi
16209 shlibpath_var=LIBPATH
16210 fi
16211 ;;
16212
16213amigaos*)
16214 library_names_spec='$libname.ixlibrary $libname.a'
16215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016216 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 +000016217 ;;
16218
16219beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016220 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016221 dynamic_linker="$host_os ld.so"
16222 shlibpath_var=LIBRARY_PATH
16223 ;;
16224
Reid Spencer2706f8c2004-09-19 23:53:36 +000016225bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016226 version_type=linux
16227 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016234 # the default ld.so.conf also contains /usr/contrib/lib and
16235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16236 # libtool to hard-code these into programs
16237 ;;
16238
16239cygwin* | mingw* | pw32*)
16240 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016241 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016242 need_version=no
16243 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016244
John Criswell7a73b802003-06-30 21:59:07 +000016245 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016246 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016247 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016249 postinstall_cmds='base_file=`basename \${file}`~
16250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16251 dldir=$destdir/`dirname \$dlpath`~
16252 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016253 $install_prog $dir/$dlname \$dldir/$dlname~
16254 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16256 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016257 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016258 shlibpath_overrides_runpath=yes
16259
16260 case $host_os in
16261 cygwin*)
16262 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16263 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 +000016264 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016265 ;;
16266 mingw*)
16267 # MinGW DLLs use traditional 'lib' prefix
16268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16269 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16270 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16271 # It is most probably a Windows format PATH printed by
16272 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16273 # path with ; separators, and with drive letters. We can handle the
16274 # drive letters (cygwin fileutils understands them), so leave them,
16275 # especially as we might pass files found there to a mingw objdump,
16276 # which wouldn't understand a cygwinified path. Ahh.
16277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16278 else
16279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16280 fi
16281 ;;
16282 pw32*)
16283 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016284 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 +000016285 ;;
16286 esac
John Criswell7a73b802003-06-30 21:59:07 +000016287 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016288
John Criswell7a73b802003-06-30 21:59:07 +000016289 *)
John Criswell47fdd832003-07-14 16:52:07 +000016290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016291 ;;
16292 esac
16293 dynamic_linker='Win32 ld.exe'
16294 # FIXME: first we should search . and the directory the executable is in
16295 shlibpath_var=PATH
16296 ;;
16297
16298darwin* | rhapsody*)
16299 dynamic_linker="$host_os dyld"
16300 version_type=darwin
16301 need_lib_prefix=no
16302 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016303 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016304 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016305 shlibpath_overrides_runpath=yes
16306 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016307 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016308 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016309 if test "$GCC" = yes; then
16310 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"`
16311 else
16312 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016313 fi
16314 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16315 ;;
16316
16317dgux*)
16318 version_type=linux
16319 need_lib_prefix=no
16320 need_version=no
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016324 ;;
16325
16326freebsd1*)
16327 dynamic_linker=no
16328 ;;
16329
Reid Spencer2706f8c2004-09-19 23:53:36 +000016330kfreebsd*-gnu)
16331 version_type=linux
16332 need_lib_prefix=no
16333 need_version=no
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=no
16338 hardcode_into_libs=yes
16339 dynamic_linker='GNU ld.so'
16340 ;;
16341
Reid Spencera773bd52006-08-04 18:18:08 +000016342freebsd* | dragonfly*)
16343 # DragonFly does not have aout. When/if they implement a new
16344 # versioning mechanism, adjust this.
16345 if test -x /usr/bin/objformat; then
16346 objformat=`/usr/bin/objformat`
16347 else
16348 case $host_os in
16349 freebsd[123]*) objformat=aout ;;
16350 *) objformat=elf ;;
16351 esac
16352 fi
John Criswell7a73b802003-06-30 21:59:07 +000016353 version_type=freebsd-$objformat
16354 case $version_type in
16355 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016357 need_version=no
16358 need_lib_prefix=no
16359 ;;
16360 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016362 need_version=yes
16363 ;;
16364 esac
16365 shlibpath_var=LD_LIBRARY_PATH
16366 case $host_os in
16367 freebsd2*)
16368 shlibpath_overrides_runpath=yes
16369 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016370 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016371 shlibpath_overrides_runpath=yes
16372 hardcode_into_libs=yes
16373 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016374 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16375 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016376 shlibpath_overrides_runpath=no
16377 hardcode_into_libs=yes
16378 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016379 freebsd*) # from 4.6 on
16380 shlibpath_overrides_runpath=yes
16381 hardcode_into_libs=yes
16382 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016383 esac
16384 ;;
16385
16386gnu*)
16387 version_type=linux
16388 need_lib_prefix=no
16389 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016392 shlibpath_var=LD_LIBRARY_PATH
16393 hardcode_into_libs=yes
16394 ;;
16395
16396hpux9* | hpux10* | hpux11*)
16397 # Give a soname corresponding to the major version so that dld.sl refuses to
16398 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016399 version_type=sunos
16400 need_lib_prefix=no
16401 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016402 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016403 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016404 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016405 hardcode_into_libs=yes
16406 dynamic_linker="$host_os dld.so"
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 if test "X$HPUX_IA64_MODE" = X32; then
16412 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16413 else
16414 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16415 fi
16416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16417 ;;
16418 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016419 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016420 hardcode_into_libs=yes
16421 dynamic_linker="$host_os dld.sl"
16422 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 soname_spec='${libname}${release}${shared_ext}$major'
16426 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16428 ;;
16429 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016430 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016431 dynamic_linker="$host_os dld.sl"
16432 shlibpath_var=SHLIB_PATH
16433 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 soname_spec='${libname}${release}${shared_ext}$major'
16436 ;;
16437 esac
John Criswell7a73b802003-06-30 21:59:07 +000016438 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16439 postinstall_cmds='chmod 555 $lib'
16440 ;;
16441
Reid Spencera773bd52006-08-04 18:18:08 +000016442interix3*)
16443 version_type=linux
16444 need_lib_prefix=no
16445 need_version=no
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=no
16451 hardcode_into_libs=yes
16452 ;;
16453
John Criswell47fdd832003-07-14 16:52:07 +000016454irix5* | irix6* | nonstopux*)
16455 case $host_os in
16456 nonstopux*) version_type=nonstopux ;;
16457 *)
16458 if test "$lt_cv_prog_gnu_ld" = yes; then
16459 version_type=linux
16460 else
16461 version_type=irix
16462 fi ;;
16463 esac
John Criswell7a73b802003-06-30 21:59:07 +000016464 need_lib_prefix=no
16465 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016466 soname_spec='${libname}${release}${shared_ext}$major'
16467 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 +000016468 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016469 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016470 libsuff= shlibsuff=
16471 ;;
16472 *)
16473 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16475 libsuff= shlibsuff= libmagic=32-bit;;
16476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16477 libsuff=32 shlibsuff=N32 libmagic=N32;;
16478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16479 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016480 *) libsuff= shlibsuff= libmagic=never-match;;
16481 esac
16482 ;;
16483 esac
16484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16485 shlibpath_overrides_runpath=no
16486 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16487 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016488 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016489 ;;
16490
16491# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016492linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016493 dynamic_linker=no
16494 ;;
16495
16496# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016497linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016498 version_type=linux
16499 need_lib_prefix=no
16500 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=no
16506 # This implies no fast_install, which is unacceptable.
16507 # Some rework will be needed to allow for fast_install
16508 # before this can be enabled.
16509 hardcode_into_libs=yes
16510
Reid Spencer2706f8c2004-09-19 23:53:36 +000016511 # Append ld.so.conf contents to the search path
16512 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016513 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 +000016514 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16515 fi
16516
John Criswell7a73b802003-06-30 21:59:07 +000016517 # We used to test for /lib/ld.so.1 and disable shared libraries on
16518 # powerpc, because MkLinux only supported shared libraries with the
16519 # GNU dynamic linker. Since this was broken with cross compilers,
16520 # most powerpc-linux boxes support dynamic linking these days and
16521 # people can always --disable-shared, the test was removed, and we
16522 # assume the GNU/Linux dynamic linker is in use.
16523 dynamic_linker='GNU/Linux ld.so'
16524 ;;
16525
Reid Spencer2706f8c2004-09-19 23:53:36 +000016526knetbsd*-gnu)
16527 version_type=linux
16528 need_lib_prefix=no
16529 need_version=no
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 shlibpath_overrides_runpath=no
16534 hardcode_into_libs=yes
16535 dynamic_linker='GNU ld.so'
16536 ;;
16537
John Criswell7a73b802003-06-30 21:59:07 +000016538netbsd*)
16539 version_type=sunos
16540 need_lib_prefix=no
16541 need_version=no
16542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16545 dynamic_linker='NetBSD (a.out) ld.so'
16546 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016548 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016549 dynamic_linker='NetBSD ld.elf_so'
16550 fi
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553 hardcode_into_libs=yes
16554 ;;
16555
16556newsos6)
16557 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=yes
16561 ;;
16562
Reid Spencer2706f8c2004-09-19 23:53:36 +000016563nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016564 version_type=linux
16565 need_lib_prefix=no
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016569 shlibpath_var=LD_LIBRARY_PATH
16570 shlibpath_overrides_runpath=yes
16571 ;;
16572
16573openbsd*)
16574 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016575 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016576 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16578 case $host_os in
16579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16580 *) need_version=no ;;
16581 esac
John Criswell47fdd832003-07-14 16:52:07 +000016582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16584 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016585 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 +000016586 case $host_os in
16587 openbsd2.[89] | openbsd2.[89].*)
16588 shlibpath_overrides_runpath=no
16589 ;;
16590 *)
16591 shlibpath_overrides_runpath=yes
16592 ;;
16593 esac
John Criswell7a73b802003-06-30 21:59:07 +000016594 else
16595 shlibpath_overrides_runpath=yes
16596 fi
John Criswell7a73b802003-06-30 21:59:07 +000016597 ;;
16598
16599os2*)
16600 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016601 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016602 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016603 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016604 dynamic_linker='OS/2 ld.exe'
16605 shlibpath_var=LIBPATH
16606 ;;
16607
16608osf3* | osf4* | osf5*)
16609 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016610 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016611 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016612 soname_spec='${libname}${release}${shared_ext}$major'
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016614 shlibpath_var=LD_LIBRARY_PATH
16615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16617 ;;
16618
John Criswell7a73b802003-06-30 21:59:07 +000016619solaris*)
16620 version_type=linux
16621 need_lib_prefix=no
16622 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=yes
16627 hardcode_into_libs=yes
16628 # ldd complains unless libraries are executable
16629 postinstall_cmds='chmod +x $lib'
16630 ;;
16631
16632sunos4*)
16633 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=yes
16638 if test "$with_gnu_ld" = yes; then
16639 need_lib_prefix=no
16640 fi
16641 need_version=yes
16642 ;;
16643
Reid Spencera773bd52006-08-04 18:18:08 +000016644sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016645 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016648 shlibpath_var=LD_LIBRARY_PATH
16649 case $host_vendor in
16650 sni)
16651 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016652 need_lib_prefix=no
16653 export_dynamic_flag_spec='${wl}-Blargedynsym'
16654 runpath_var=LD_RUN_PATH
16655 ;;
16656 siemens)
16657 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016658 ;;
16659 motorola)
16660 need_lib_prefix=no
16661 need_version=no
16662 shlibpath_overrides_runpath=no
16663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16664 ;;
16665 esac
16666 ;;
16667
John Criswell7a73b802003-06-30 21:59:07 +000016668sysv4*MP*)
16669 if test -d /usr/nec ;then
16670 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16672 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016673 shlibpath_var=LD_LIBRARY_PATH
16674 fi
16675 ;;
16676
Reid Spencera773bd52006-08-04 18:18:08 +000016677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16678 version_type=freebsd-elf
16679 need_lib_prefix=no
16680 need_version=no
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 shlibpath_var=LD_LIBRARY_PATH
16684 hardcode_into_libs=yes
16685 if test "$with_gnu_ld" = yes; then
16686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16687 shlibpath_overrides_runpath=no
16688 else
16689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16690 shlibpath_overrides_runpath=yes
16691 case $host_os in
16692 sco3.2v5*)
16693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16694 ;;
16695 esac
16696 fi
16697 sys_lib_dlsearch_path_spec='/usr/lib'
16698 ;;
16699
John Criswell47fdd832003-07-14 16:52:07 +000016700uts4*)
16701 version_type=linux
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 soname_spec='${libname}${release}${shared_ext}$major'
16704 shlibpath_var=LD_LIBRARY_PATH
16705 ;;
16706
John Criswell7a73b802003-06-30 21:59:07 +000016707*)
16708 dynamic_linker=no
16709 ;;
16710esac
Reid Spencera773bd52006-08-04 18:18:08 +000016711{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16712echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016713test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016714
Reid Spencera773bd52006-08-04 18:18:08 +000016715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16716if test "$GCC" = yes; then
16717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16718fi
16719
16720{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16721echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016722hardcode_action=
16723if test -n "$hardcode_libdir_flag_spec" || \
16724 test -n "$runpath_var" || \
16725 test "X$hardcode_automatic" = "Xyes" ; then
16726
16727 # We can hardcode non-existant directories.
16728 if test "$hardcode_direct" != no &&
16729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16730 # have to relink, otherwise we might link with an installed library
16731 # when we should be linking with a yet-to-be-installed one
16732 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16733 test "$hardcode_minus_L" != no; then
16734 # Linking always hardcodes the temporary library directory.
16735 hardcode_action=relink
16736 else
16737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16738 hardcode_action=immediate
16739 fi
16740else
16741 # We cannot hardcode anything, or else we can only hardcode existing
16742 # directories.
16743 hardcode_action=unsupported
16744fi
Reid Spencera773bd52006-08-04 18:18:08 +000016745{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16746echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016747
16748if test "$hardcode_action" = relink; then
16749 # Fast installation is not supported
16750 enable_fast_install=no
16751elif test "$shlibpath_overrides_runpath" = yes ||
16752 test "$enable_shared" = no; then
16753 # Fast installation is not necessary
16754 enable_fast_install=needless
16755fi
16756
16757striplib=
16758old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016759{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16760echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016761if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016764 { echo "$as_me:$LINENO: result: yes" >&5
16765echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016766else
16767# FIXME - insert some real tests, host_os isn't really good enough
16768 case $host_os in
16769 darwin*)
16770 if test -n "$STRIP" ; then
16771 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016772 { echo "$as_me:$LINENO: result: yes" >&5
16773echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016774 else
Reid Spencera773bd52006-08-04 18:18:08 +000016775 { echo "$as_me:$LINENO: result: no" >&5
16776echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016777fi
16778 ;;
16779 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016780 { echo "$as_me:$LINENO: result: no" >&5
16781echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016782 ;;
16783 esac
16784fi
16785
John Criswell7a73b802003-06-30 21:59:07 +000016786if test "x$enable_dlopen" != xyes; then
16787 enable_dlopen=unknown
16788 enable_dlopen_self=unknown
16789 enable_dlopen_self_static=unknown
16790else
16791 lt_cv_dlopen=no
16792 lt_cv_dlopen_libs=
16793
16794 case $host_os in
16795 beos*)
16796 lt_cv_dlopen="load_add_on"
16797 lt_cv_dlopen_libs=
16798 lt_cv_dlopen_self=yes
16799 ;;
16800
John Criswell47fdd832003-07-14 16:52:07 +000016801 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016802 lt_cv_dlopen="LoadLibrary"
16803 lt_cv_dlopen_libs=
16804 ;;
16805
John Criswell47fdd832003-07-14 16:52:07 +000016806 cygwin*)
16807 lt_cv_dlopen="dlopen"
16808 lt_cv_dlopen_libs=
16809 ;;
16810
16811 darwin*)
16812 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016813 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16814echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016815if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16817else
16818 ac_check_lib_save_LIBS=$LIBS
16819LIBS="-ldl $LIBS"
16820cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016826
Reid Spencera773bd52006-08-04 18:18:08 +000016827/* Override any GCC internal prototype to avoid an error.
16828 Use char because int might match the return type of a GCC
16829 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016830#ifdef __cplusplus
16831extern "C"
16832#endif
John Criswell47fdd832003-07-14 16:52:07 +000016833char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016834int
16835main ()
16836{
Reid Spencera773bd52006-08-04 18:18:08 +000016837return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016838 ;
16839 return 0;
16840}
16841_ACEOF
16842rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016843if { (ac_try="$ac_link"
16844case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016851 grep -v '^ *+' conftest.er1 >conftest.err
16852 rm -f conftest.er1
16853 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857 { (case "(($ac_try" in
16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16860esac
16861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_try") 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest$ac_exeext'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016876 ac_cv_lib_dl_dlopen=yes
16877else
16878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016879sed 's/^/| /' conftest.$ac_ext >&5
16880
Reid Spencera773bd52006-08-04 18:18:08 +000016881 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016882fi
Reid Spencera773bd52006-08-04 18:18:08 +000016883
Tanya Lattnercf067672008-01-17 05:57:22 +000016884rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016885 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016886LIBS=$ac_check_lib_save_LIBS
16887fi
Reid Spencera773bd52006-08-04 18:18:08 +000016888{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16889echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016890if test $ac_cv_lib_dl_dlopen = yes; then
16891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16892else
16893
16894 lt_cv_dlopen="dyld"
16895 lt_cv_dlopen_libs=
16896 lt_cv_dlopen_self=yes
16897
16898fi
16899
16900 ;;
16901
John Criswell7a73b802003-06-30 21:59:07 +000016902 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016903 { echo "$as_me:$LINENO: checking for shl_load" >&5
16904echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016905if test "${ac_cv_func_shl_load+set}" = set; then
16906 echo $ECHO_N "(cached) $ECHO_C" >&6
16907else
16908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016914/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16916#define shl_load innocuous_shl_load
16917
John Criswell7a73b802003-06-30 21:59:07 +000016918/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016919 which can conflict with char shl_load (); below.
16920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16921 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016922
John Criswell0c38eaf2003-09-10 15:17:25 +000016923#ifdef __STDC__
16924# include <limits.h>
16925#else
16926# include <assert.h>
16927#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016928
16929#undef shl_load
16930
Reid Spencera773bd52006-08-04 18:18:08 +000016931/* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016934#ifdef __cplusplus
16935extern "C"
16936#endif
John Criswell7a73b802003-06-30 21:59:07 +000016937char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016938/* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016941#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016942choke me
John Criswell7a73b802003-06-30 21:59:07 +000016943#endif
16944
John Criswell0c38eaf2003-09-10 15:17:25 +000016945int
16946main ()
16947{
Reid Spencera773bd52006-08-04 18:18:08 +000016948return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016949 ;
16950 return 0;
16951}
16952_ACEOF
16953rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016954if { (ac_try="$ac_link"
16955case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958esac
16959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016961 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016966 (exit $ac_status); } &&
16967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16968 { (case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_try") 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest$ac_exeext'
16978 { (case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_try") 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016987 ac_cv_func_shl_load=yes
16988else
16989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016990sed 's/^/| /' conftest.$ac_ext >&5
16991
Reid Spencera773bd52006-08-04 18:18:08 +000016992 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016993fi
Reid Spencera773bd52006-08-04 18:18:08 +000016994
Tanya Lattnercf067672008-01-17 05:57:22 +000016995rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016996 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016997fi
Reid Spencera773bd52006-08-04 18:18:08 +000016998{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16999echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017000if test $ac_cv_func_shl_load = yes; then
17001 lt_cv_dlopen="shl_load"
17002else
Reid Spencera773bd52006-08-04 18:18:08 +000017003 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17004echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017005if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007else
17008 ac_check_lib_save_LIBS=$LIBS
17009LIBS="-ldld $LIBS"
17010cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017011/* confdefs.h. */
17012_ACEOF
17013cat confdefs.h >>conftest.$ac_ext
17014cat >>conftest.$ac_ext <<_ACEOF
17015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017016
Reid Spencera773bd52006-08-04 18:18:08 +000017017/* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017020#ifdef __cplusplus
17021extern "C"
17022#endif
John Criswell7a73b802003-06-30 21:59:07 +000017023char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017024int
17025main ()
17026{
Reid Spencera773bd52006-08-04 18:18:08 +000017027return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017028 ;
17029 return 0;
17030}
17031_ACEOF
17032rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017033if { (ac_try="$ac_link"
17034case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037esac
17038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050esac
17051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_try") 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest$ac_exeext'
17057 { (case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_try") 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017066 ac_cv_lib_dld_shl_load=yes
17067else
17068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017069sed 's/^/| /' conftest.$ac_ext >&5
17070
Reid Spencera773bd52006-08-04 18:18:08 +000017071 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017072fi
Reid Spencera773bd52006-08-04 18:18:08 +000017073
Tanya Lattnercf067672008-01-17 05:57:22 +000017074rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017075 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017076LIBS=$ac_check_lib_save_LIBS
17077fi
Reid Spencera773bd52006-08-04 18:18:08 +000017078{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17079echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017080if test $ac_cv_lib_dld_shl_load = yes; then
17081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17082else
Reid Spencera773bd52006-08-04 18:18:08 +000017083 { echo "$as_me:$LINENO: checking for dlopen" >&5
17084echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017085if test "${ac_cv_func_dlopen+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087else
17088 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017094/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17096#define dlopen innocuous_dlopen
17097
John Criswell7a73b802003-06-30 21:59:07 +000017098/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017099 which can conflict with char dlopen (); below.
17100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017102
John Criswell0c38eaf2003-09-10 15:17:25 +000017103#ifdef __STDC__
17104# include <limits.h>
17105#else
17106# include <assert.h>
17107#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017108
17109#undef dlopen
17110
Reid Spencera773bd52006-08-04 18:18:08 +000017111/* Override any GCC internal prototype to avoid an error.
17112 Use char because int might match the return type of a GCC
17113 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017114#ifdef __cplusplus
17115extern "C"
17116#endif
John Criswell7a73b802003-06-30 21:59:07 +000017117char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017118/* The GNU C library defines this for functions which it implements
17119 to always fail with ENOSYS. Some functions are actually named
17120 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017121#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017122choke me
John Criswell7a73b802003-06-30 21:59:07 +000017123#endif
17124
John Criswell0c38eaf2003-09-10 15:17:25 +000017125int
17126main ()
17127{
Reid Spencera773bd52006-08-04 18:18:08 +000017128return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017129 ;
17130 return 0;
17131}
17132_ACEOF
17133rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017134if { (ac_try="$ac_link"
17135case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17138esac
17139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017141 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017142 grep -v '^ *+' conftest.er1 >conftest.err
17143 rm -f conftest.er1
17144 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017146 (exit $ac_status); } &&
17147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; } &&
17157 { ac_try='test -s conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161esac
17162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017167 ac_cv_func_dlopen=yes
17168else
17169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017170sed 's/^/| /' conftest.$ac_ext >&5
17171
Reid Spencera773bd52006-08-04 18:18:08 +000017172 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017173fi
Reid Spencera773bd52006-08-04 18:18:08 +000017174
Tanya Lattnercf067672008-01-17 05:57:22 +000017175rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017176 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017177fi
Reid Spencera773bd52006-08-04 18:18:08 +000017178{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17179echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017180if test $ac_cv_func_dlopen = yes; then
17181 lt_cv_dlopen="dlopen"
17182else
Reid Spencera773bd52006-08-04 18:18:08 +000017183 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17184echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017185if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187else
17188 ac_check_lib_save_LIBS=$LIBS
17189LIBS="-ldl $LIBS"
17190cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017191/* confdefs.h. */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017196
Reid Spencera773bd52006-08-04 18:18:08 +000017197/* Override any GCC internal prototype to avoid an error.
17198 Use char because int might match the return type of a GCC
17199 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017200#ifdef __cplusplus
17201extern "C"
17202#endif
John Criswell7a73b802003-06-30 21:59:07 +000017203char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017204int
17205main ()
17206{
Reid Spencera773bd52006-08-04 18:18:08 +000017207return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017208 ;
17209 return 0;
17210}
17211_ACEOF
17212rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017213if { (ac_try="$ac_link"
17214case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217esac
17218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017220 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230esac
17231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240esac
17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_try") 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017246 ac_cv_lib_dl_dlopen=yes
17247else
17248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017249sed 's/^/| /' conftest.$ac_ext >&5
17250
Reid Spencera773bd52006-08-04 18:18:08 +000017251 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017252fi
Reid Spencera773bd52006-08-04 18:18:08 +000017253
Tanya Lattnercf067672008-01-17 05:57:22 +000017254rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017255 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017256LIBS=$ac_check_lib_save_LIBS
17257fi
Reid Spencera773bd52006-08-04 18:18:08 +000017258{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17259echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017260if test $ac_cv_lib_dl_dlopen = yes; then
17261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17262else
Reid Spencera773bd52006-08-04 18:18:08 +000017263 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17264echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017265if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267else
17268 ac_check_lib_save_LIBS=$LIBS
17269LIBS="-lsvld $LIBS"
17270cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017276
Reid Spencera773bd52006-08-04 18:18:08 +000017277/* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017280#ifdef __cplusplus
17281extern "C"
17282#endif
John Criswell7a73b802003-06-30 21:59:07 +000017283char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017284int
17285main ()
17286{
Reid Spencera773bd52006-08-04 18:18:08 +000017287return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017293if { (ac_try="$ac_link"
17294case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310esac
17311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest$ac_exeext'
17317 { (case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320esac
17321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017326 ac_cv_lib_svld_dlopen=yes
17327else
17328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017329sed 's/^/| /' conftest.$ac_ext >&5
17330
Reid Spencera773bd52006-08-04 18:18:08 +000017331 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017332fi
Reid Spencera773bd52006-08-04 18:18:08 +000017333
Tanya Lattnercf067672008-01-17 05:57:22 +000017334rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017335 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017336LIBS=$ac_check_lib_save_LIBS
17337fi
Reid Spencera773bd52006-08-04 18:18:08 +000017338{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17339echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017340if test $ac_cv_lib_svld_dlopen = yes; then
17341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17342else
Reid Spencera773bd52006-08-04 18:18:08 +000017343 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17344echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017345if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347else
17348 ac_check_lib_save_LIBS=$LIBS
17349LIBS="-ldld $LIBS"
17350cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017356
Reid Spencera773bd52006-08-04 18:18:08 +000017357/* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017360#ifdef __cplusplus
17361extern "C"
17362#endif
John Criswell7a73b802003-06-30 21:59:07 +000017363char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017364int
17365main ()
17366{
Reid Spencera773bd52006-08-04 18:18:08 +000017367return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017368 ;
17369 return 0;
17370}
17371_ACEOF
17372rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017373if { (ac_try="$ac_link"
17374case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377esac
17378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017380 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400esac
17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017406 ac_cv_lib_dld_dld_link=yes
17407else
17408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017409sed 's/^/| /' conftest.$ac_ext >&5
17410
Reid Spencera773bd52006-08-04 18:18:08 +000017411 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017412fi
Reid Spencera773bd52006-08-04 18:18:08 +000017413
Tanya Lattnercf067672008-01-17 05:57:22 +000017414rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017415 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017416LIBS=$ac_check_lib_save_LIBS
17417fi
Reid Spencera773bd52006-08-04 18:18:08 +000017418{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17419echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017420if test $ac_cv_lib_dld_dld_link = yes; then
17421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17422fi
17423
17424
17425fi
17426
17427
17428fi
17429
17430
17431fi
17432
17433
17434fi
17435
17436
17437fi
17438
17439 ;;
17440 esac
17441
17442 if test "x$lt_cv_dlopen" != xno; then
17443 enable_dlopen=yes
17444 else
17445 enable_dlopen=no
17446 fi
17447
17448 case $lt_cv_dlopen in
17449 dlopen)
17450 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017452
17453 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017455
17456 save_LIBS="$LIBS"
17457 LIBS="$lt_cv_dlopen_libs $LIBS"
17458
Reid Spencera773bd52006-08-04 18:18:08 +000017459 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17460echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017461if test "${lt_cv_dlopen_self+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463else
17464 if test "$cross_compiling" = yes; then :
17465 lt_cv_dlopen_self=cross
17466else
John Criswell47fdd832003-07-14 16:52:07 +000017467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017468 lt_status=$lt_dlunknown
17469 cat > conftest.$ac_ext <<EOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000017470#line 17470 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017471#include "confdefs.h"
17472
17473#if HAVE_DLFCN_H
17474#include <dlfcn.h>
17475#endif
17476
17477#include <stdio.h>
17478
17479#ifdef RTLD_GLOBAL
17480# define LT_DLGLOBAL RTLD_GLOBAL
17481#else
17482# ifdef DL_GLOBAL
17483# define LT_DLGLOBAL DL_GLOBAL
17484# else
17485# define LT_DLGLOBAL 0
17486# endif
17487#endif
17488
17489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17490 find out it does not work in some platform. */
17491#ifndef LT_DLLAZY_OR_NOW
17492# ifdef RTLD_LAZY
17493# define LT_DLLAZY_OR_NOW RTLD_LAZY
17494# else
17495# ifdef DL_LAZY
17496# define LT_DLLAZY_OR_NOW DL_LAZY
17497# else
17498# ifdef RTLD_NOW
17499# define LT_DLLAZY_OR_NOW RTLD_NOW
17500# else
17501# ifdef DL_NOW
17502# define LT_DLLAZY_OR_NOW DL_NOW
17503# else
17504# define LT_DLLAZY_OR_NOW 0
17505# endif
17506# endif
17507# endif
17508# endif
17509#endif
17510
17511#ifdef __cplusplus
17512extern "C" void exit (int);
17513#endif
17514
17515void fnord() { int i=42;}
17516int main ()
17517{
17518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17519 int status = $lt_dlunknown;
17520
17521 if (self)
17522 {
17523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17525 /* dlclose (self); */
17526 }
Reid Spencera773bd52006-08-04 18:18:08 +000017527 else
17528 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017529
17530 exit (status);
17531}
17532EOF
17533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17534 (eval $ac_link) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017538 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017539 lt_status=$?
17540 case x$lt_status in
17541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017543 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017544 esac
17545 else :
17546 # compilation failed
17547 lt_cv_dlopen_self=no
17548 fi
17549fi
17550rm -fr conftest*
17551
17552
17553fi
Reid Spencera773bd52006-08-04 18:18:08 +000017554{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17555echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017556
17557 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17559 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17560echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017561if test "${lt_cv_dlopen_self_static+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17563else
17564 if test "$cross_compiling" = yes; then :
17565 lt_cv_dlopen_self_static=cross
17566else
John Criswell47fdd832003-07-14 16:52:07 +000017567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017568 lt_status=$lt_dlunknown
17569 cat > conftest.$ac_ext <<EOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000017570#line 17570 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017571#include "confdefs.h"
17572
17573#if HAVE_DLFCN_H
17574#include <dlfcn.h>
17575#endif
17576
17577#include <stdio.h>
17578
17579#ifdef RTLD_GLOBAL
17580# define LT_DLGLOBAL RTLD_GLOBAL
17581#else
17582# ifdef DL_GLOBAL
17583# define LT_DLGLOBAL DL_GLOBAL
17584# else
17585# define LT_DLGLOBAL 0
17586# endif
17587#endif
17588
17589/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17590 find out it does not work in some platform. */
17591#ifndef LT_DLLAZY_OR_NOW
17592# ifdef RTLD_LAZY
17593# define LT_DLLAZY_OR_NOW RTLD_LAZY
17594# else
17595# ifdef DL_LAZY
17596# define LT_DLLAZY_OR_NOW DL_LAZY
17597# else
17598# ifdef RTLD_NOW
17599# define LT_DLLAZY_OR_NOW RTLD_NOW
17600# else
17601# ifdef DL_NOW
17602# define LT_DLLAZY_OR_NOW DL_NOW
17603# else
17604# define LT_DLLAZY_OR_NOW 0
17605# endif
17606# endif
17607# endif
17608# endif
17609#endif
17610
17611#ifdef __cplusplus
17612extern "C" void exit (int);
17613#endif
17614
17615void fnord() { int i=42;}
17616int main ()
17617{
17618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17619 int status = $lt_dlunknown;
17620
17621 if (self)
17622 {
17623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17625 /* dlclose (self); */
17626 }
Reid Spencera773bd52006-08-04 18:18:08 +000017627 else
17628 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017629
17630 exit (status);
17631}
17632EOF
17633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17634 (eval $ac_link) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017638 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017639 lt_status=$?
17640 case x$lt_status in
17641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017644 esac
17645 else :
17646 # compilation failed
17647 lt_cv_dlopen_self_static=no
17648 fi
17649fi
17650rm -fr conftest*
17651
17652
17653fi
Reid Spencera773bd52006-08-04 18:18:08 +000017654{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17655echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017656 fi
17657
17658 CPPFLAGS="$save_CPPFLAGS"
17659 LDFLAGS="$save_LDFLAGS"
17660 LIBS="$save_LIBS"
17661 ;;
17662 esac
17663
17664 case $lt_cv_dlopen_self in
17665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17666 *) enable_dlopen_self=unknown ;;
17667 esac
17668
17669 case $lt_cv_dlopen_self_static in
17670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17671 *) enable_dlopen_self_static=unknown ;;
17672 esac
17673fi
17674
17675
Reid Spencera773bd52006-08-04 18:18:08 +000017676# Report which library types will actually be built
17677{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17678echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17679{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17680echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017681
Reid Spencera773bd52006-08-04 18:18:08 +000017682{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17683echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017684test "$can_build_shared" = "no" && enable_shared=no
17685
17686# On AIX, shared libraries and static libraries use the same namespace, and
17687# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017688case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017689aix3*)
17690 test "$enable_shared" = yes && enable_static=no
17691 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017693 postinstall_cmds='$RANLIB $lib'
17694 fi
17695 ;;
17696
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17699 test "$enable_shared" = yes && enable_static=no
17700 fi
John Criswell7a73b802003-06-30 21:59:07 +000017701 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017702esac
Reid Spencera773bd52006-08-04 18:18:08 +000017703{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17704echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017705
Reid Spencera773bd52006-08-04 18:18:08 +000017706{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17707echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017708# Make sure either enable_shared or enable_static is yes.
17709test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017710{ echo "$as_me:$LINENO: result: $enable_static" >&5
17711echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017712
17713# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017714# libtool distribution, otherwise you forgot to ship ltmain.sh
17715# with your package, and you will get complaints that there are
17716# no rules to generate ltmain.sh.
17717if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017718 # See if we are running on zsh, and set the options which allow our commands through
17719 # without removal of \ escapes.
17720 if test -n "${ZSH_VERSION+set}" ; then
17721 setopt NO_GLOB_SUBST
17722 fi
John Criswell7a73b802003-06-30 21:59:07 +000017723 # Now quote all the things that may contain metacharacters while being
17724 # careful not to overquote the AC_SUBSTed values. We take copies of the
17725 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017726 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 +000017727 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017728 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17729 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17730 deplibs_check_method reload_flag reload_cmds need_locks \
17731 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17732 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017734 old_postinstall_cmds old_postuninstall_cmds \
17735 compiler \
17736 CC \
17737 LD \
17738 lt_prog_compiler_wl \
17739 lt_prog_compiler_pic \
17740 lt_prog_compiler_static \
17741 lt_prog_compiler_no_builtin_flag \
17742 export_dynamic_flag_spec \
17743 thread_safe_flag_spec \
17744 whole_archive_flag_spec \
17745 enable_shared_with_static_runtimes \
17746 old_archive_cmds \
17747 old_archive_from_new_cmds \
17748 predep_objects \
17749 postdep_objects \
17750 predeps \
17751 postdeps \
17752 compiler_lib_search_path \
17753 archive_cmds \
17754 archive_expsym_cmds \
17755 postinstall_cmds \
17756 postuninstall_cmds \
17757 old_archive_from_expsyms_cmds \
17758 allow_undefined_flag \
17759 no_undefined_flag \
17760 export_symbols_cmds \
17761 hardcode_libdir_flag_spec \
17762 hardcode_libdir_flag_spec_ld \
17763 hardcode_libdir_separator \
17764 hardcode_automatic \
17765 module_cmds \
17766 module_expsym_cmds \
17767 lt_cv_prog_compiler_c_o \
17768 exclude_expsyms \
17769 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017770
17771 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017772 old_archive_cmds | \
17773 old_archive_from_new_cmds | \
17774 archive_cmds | \
17775 archive_expsym_cmds | \
17776 module_cmds | \
17777 module_expsym_cmds | \
17778 old_archive_from_expsyms_cmds | \
17779 export_symbols_cmds | \
17780 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017781 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017782 old_postinstall_cmds | old_postuninstall_cmds | \
17783 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017784 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017785 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 +000017786 ;;
17787 *)
17788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17789 ;;
17790 esac
17791 done
17792
John Criswell47fdd832003-07-14 16:52:07 +000017793 case $lt_echo in
17794 *'\$0 --fallback-echo"')
17795 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17796 ;;
17797 esac
17798
17799cfgfile="${ofile}T"
17800 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17801 $rm -f "$cfgfile"
17802 { echo "$as_me:$LINENO: creating $ofile" >&5
17803echo "$as_me: creating $ofile" >&6;}
17804
17805 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017806#! $SHELL
17807
John Criswell47fdd832003-07-14 16:52:07 +000017808# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017809# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17810# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17811#
John Criswell47fdd832003-07-14 16:52:07 +000017812# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17813# Free Software Foundation, Inc.
17814#
17815# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017816# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17817#
17818# This program is free software; you can redistribute it and/or modify
17819# it under the terms of the GNU General Public License as published by
17820# the Free Software Foundation; either version 2 of the License, or
17821# (at your option) any later version.
17822#
17823# This program is distributed in the hope that it will be useful, but
17824# WITHOUT ANY WARRANTY; without even the implied warranty of
17825# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17826# General Public License for more details.
17827#
17828# You should have received a copy of the GNU General Public License
17829# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017830# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017831#
17832# As a special exception to the GNU General Public License, if you
17833# distribute this file as part of a program that contains a
17834# configuration script generated by Autoconf, you may include it under
17835# the same distribution terms that you use for the rest of that program.
17836
John Criswell47fdd832003-07-14 16:52:07 +000017837# A sed program that does not truncate output.
17838SED=$lt_SED
17839
John Criswell7a73b802003-06-30 21:59:07 +000017840# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017841Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017842
17843# The HP-UX ksh and POSIX shell print the target directory to stdout
17844# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017845(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017846
John Criswell47fdd832003-07-14 16:52:07 +000017847# The names of the tagged configurations supported by this script.
17848available_tags=
17849
John Criswell7a73b802003-06-30 21:59:07 +000017850# ### BEGIN LIBTOOL CONFIG
17851
17852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17853
17854# Shell to use when invoking shell scripts.
17855SHELL=$lt_SHELL
17856
17857# Whether or not to build shared libraries.
17858build_libtool_libs=$enable_shared
17859
17860# Whether or not to build static libraries.
17861build_old_libs=$enable_static
17862
17863# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017864build_libtool_need_lc=$archive_cmds_need_lc
17865
17866# Whether or not to disallow shared libs when runtime libs are static
17867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017868
17869# Whether or not to optimize for fast installation.
17870fast_install=$enable_fast_install
17871
17872# The host system.
17873host_alias=$host_alias
17874host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017875host_os=$host_os
17876
17877# The build system.
17878build_alias=$build_alias
17879build=$build
17880build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017881
17882# An echo program that does not interpret backslashes.
17883echo=$lt_echo
17884
17885# The archiver.
17886AR=$lt_AR
17887AR_FLAGS=$lt_AR_FLAGS
17888
John Criswell47fdd832003-07-14 16:52:07 +000017889# A C compiler.
17890LTCC=$lt_LTCC
17891
Reid Spencera773bd52006-08-04 18:18:08 +000017892# LTCC compiler flags.
17893LTCFLAGS=$lt_LTCFLAGS
17894
John Criswell47fdd832003-07-14 16:52:07 +000017895# A language-specific compiler.
17896CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017897
17898# Is the compiler the GNU C compiler?
17899with_gcc=$GCC
17900
John Criswell47fdd832003-07-14 16:52:07 +000017901# An ERE matcher.
17902EGREP=$lt_EGREP
17903
John Criswell7a73b802003-06-30 21:59:07 +000017904# The linker used to build libraries.
17905LD=$lt_LD
17906
17907# Whether we need hard or soft links.
17908LN_S=$lt_LN_S
17909
17910# A BSD-compatible nm program.
17911NM=$lt_NM
17912
17913# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017914STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017915
17916# Used to examine libraries when file_magic_cmd begins "file"
17917MAGIC_CMD=$MAGIC_CMD
17918
17919# Used on cygwin: DLL creation program.
17920DLLTOOL="$DLLTOOL"
17921
17922# Used on cygwin: object dumper.
17923OBJDUMP="$OBJDUMP"
17924
17925# Used on cygwin: assembler.
17926AS="$AS"
17927
17928# The name of the directory that contains temporary libtool files.
17929objdir=$objdir
17930
17931# How to create reloadable object files.
17932reload_flag=$lt_reload_flag
17933reload_cmds=$lt_reload_cmds
17934
17935# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017936wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017937
17938# Object file suffix (normally "o").
17939objext="$ac_objext"
17940
17941# Old archive suffix (normally "a").
17942libext="$libext"
17943
John Criswell47fdd832003-07-14 16:52:07 +000017944# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017945shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017946
John Criswell7a73b802003-06-30 21:59:07 +000017947# Executable file suffix (normally "").
17948exeext="$exeext"
17949
17950# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017951pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017952pic_mode=$pic_mode
17953
John Criswell47fdd832003-07-14 16:52:07 +000017954# What is the maximum length of a command?
17955max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017956
John Criswell47fdd832003-07-14 16:52:07 +000017957# Does compiler simultaneously support -c and -o options?
17958compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017959
Reid Spencera773bd52006-08-04 18:18:08 +000017960# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017961need_locks=$lt_need_locks
17962
17963# Do we need the lib prefix for modules?
17964need_lib_prefix=$need_lib_prefix
17965
17966# Do we need a version for libraries?
17967need_version=$need_version
17968
17969# Whether dlopen is supported.
17970dlopen_support=$enable_dlopen
17971
17972# Whether dlopen of programs is supported.
17973dlopen_self=$enable_dlopen_self
17974
17975# Whether dlopen of statically linked programs is supported.
17976dlopen_self_static=$enable_dlopen_self_static
17977
17978# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017979link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017980
17981# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017982no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017983
17984# Compiler flag to allow reflexive dlopens.
17985export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17986
17987# Compiler flag to generate shared objects directly from archives.
17988whole_archive_flag_spec=$lt_whole_archive_flag_spec
17989
17990# Compiler flag to generate thread-safe objects.
17991thread_safe_flag_spec=$lt_thread_safe_flag_spec
17992
17993# Library versioning type.
17994version_type=$version_type
17995
17996# Format of library name prefix.
17997libname_spec=$lt_libname_spec
17998
17999# List of archive names. First name is the real one, the rest are links.
18000# The last name is the one that the linker finds with -lNAME.
18001library_names_spec=$lt_library_names_spec
18002
18003# The coded name of the library, if different from the real name.
18004soname_spec=$lt_soname_spec
18005
18006# Commands used to build and install an old-style archive.
18007RANLIB=$lt_RANLIB
18008old_archive_cmds=$lt_old_archive_cmds
18009old_postinstall_cmds=$lt_old_postinstall_cmds
18010old_postuninstall_cmds=$lt_old_postuninstall_cmds
18011
18012# Create an old-style archive from a shared archive.
18013old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18014
18015# Create a temporary old-style archive to link instead of a shared archive.
18016old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18017
18018# Commands used to build and install a shared archive.
18019archive_cmds=$lt_archive_cmds
18020archive_expsym_cmds=$lt_archive_expsym_cmds
18021postinstall_cmds=$lt_postinstall_cmds
18022postuninstall_cmds=$lt_postuninstall_cmds
18023
John Criswell47fdd832003-07-14 16:52:07 +000018024# Commands used to build a loadable module (assumed same as above if empty)
18025module_cmds=$lt_module_cmds
18026module_expsym_cmds=$lt_module_expsym_cmds
18027
John Criswell7a73b802003-06-30 21:59:07 +000018028# Commands to strip libraries.
18029old_striplib=$lt_old_striplib
18030striplib=$lt_striplib
18031
John Criswell47fdd832003-07-14 16:52:07 +000018032# Dependencies to place before the objects being linked to create a
18033# shared library.
18034predep_objects=$lt_predep_objects
18035
18036# Dependencies to place after the objects being linked to create a
18037# shared library.
18038postdep_objects=$lt_postdep_objects
18039
18040# Dependencies to place before the objects being linked to create a
18041# shared library.
18042predeps=$lt_predeps
18043
18044# Dependencies to place after the objects being linked to create a
18045# shared library.
18046postdeps=$lt_postdeps
18047
18048# The library search path used internally by the compiler when linking
18049# a shared library.
18050compiler_lib_search_path=$lt_compiler_lib_search_path
18051
John Criswell7a73b802003-06-30 21:59:07 +000018052# Method to check whether dependent libraries are shared objects.
18053deplibs_check_method=$lt_deplibs_check_method
18054
18055# Command to use when deplibs_check_method == file_magic.
18056file_magic_cmd=$lt_file_magic_cmd
18057
18058# Flag that allows shared libraries with undefined symbols to be built.
18059allow_undefined_flag=$lt_allow_undefined_flag
18060
18061# Flag that forces no undefined symbols.
18062no_undefined_flag=$lt_no_undefined_flag
18063
18064# Commands used to finish a libtool library installation in a directory.
18065finish_cmds=$lt_finish_cmds
18066
18067# Same as above, but a single script fragment to be evaled but not shown.
18068finish_eval=$lt_finish_eval
18069
18070# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018071global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018072
18073# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018074global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018075
18076# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018077global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018078
18079# This is the shared library runtime path variable.
18080runpath_var=$runpath_var
18081
18082# This is the shared library path variable.
18083shlibpath_var=$shlibpath_var
18084
18085# Is shlibpath searched before the hard-coded library search path?
18086shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18087
18088# How to hardcode a shared library path into an executable.
18089hardcode_action=$hardcode_action
18090
18091# Whether we should hardcode library paths into libraries.
18092hardcode_into_libs=$hardcode_into_libs
18093
18094# Flag to hardcode \$libdir into a binary during linking.
18095# This must work even if \$libdir does not exist.
18096hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18097
John Criswell47fdd832003-07-14 16:52:07 +000018098# If ld is used when linking, flag to hardcode \$libdir into
18099# a binary during linking. This must work even if \$libdir does
18100# not exist.
18101hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18102
John Criswell7a73b802003-06-30 21:59:07 +000018103# Whether we need a single -rpath flag with a separated argument.
18104hardcode_libdir_separator=$lt_hardcode_libdir_separator
18105
John Criswell47fdd832003-07-14 16:52:07 +000018106# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018107# resulting binary.
18108hardcode_direct=$hardcode_direct
18109
18110# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18111# resulting binary.
18112hardcode_minus_L=$hardcode_minus_L
18113
18114# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18115# the resulting binary.
18116hardcode_shlibpath_var=$hardcode_shlibpath_var
18117
John Criswell47fdd832003-07-14 16:52:07 +000018118# Set to yes if building a shared library automatically hardcodes DIR into the library
18119# and all subsequent libraries and executables linked against it.
18120hardcode_automatic=$hardcode_automatic
18121
John Criswell7a73b802003-06-30 21:59:07 +000018122# Variables whose values should be saved in libtool wrapper scripts and
18123# restored at relink time.
18124variables_saved_for_relink="$variables_saved_for_relink"
18125
18126# Whether libtool must link a program against all its dependency libraries.
18127link_all_deplibs=$link_all_deplibs
18128
18129# Compile-time system search path for libraries
18130sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18131
18132# Run-time system search path for libraries
18133sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18134
18135# Fix the shell variable \$srcfile for the compiler.
18136fix_srcfile_path="$fix_srcfile_path"
18137
18138# Set to yes if exported symbols are required.
18139always_export_symbols=$always_export_symbols
18140
18141# The commands to list exported symbols.
18142export_symbols_cmds=$lt_export_symbols_cmds
18143
18144# The commands to extract the exported symbol list from a shared archive.
18145extract_expsyms_cmds=$lt_extract_expsyms_cmds
18146
18147# Symbols that should not be listed in the preloaded symbols.
18148exclude_expsyms=$lt_exclude_expsyms
18149
18150# Symbols that must always be exported.
18151include_expsyms=$lt_include_expsyms
18152
18153# ### END LIBTOOL CONFIG
18154
18155__EOF__
18156
John Criswell47fdd832003-07-14 16:52:07 +000018157
John Criswell7a73b802003-06-30 21:59:07 +000018158 case $host_os in
18159 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018160 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018161
18162# AIX sometimes has problems with the GCC collect2 program. For some
18163# reason, if we set the COLLECT_NAMES environment variable, the problems
18164# vanish in a puff of smoke.
18165if test "X${COLLECT_NAMES+set}" != Xset; then
18166 COLLECT_NAMES=
18167 export COLLECT_NAMES
18168fi
18169EOF
18170 ;;
18171 esac
18172
John Criswell7a73b802003-06-30 21:59:07 +000018173 # We use sed instead of cat because bash on DJGPP gets confused if
18174 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18175 # text mode, it properly converts lines to CR/LF. This bash problem
18176 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018177 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018178
John Criswell47fdd832003-07-14 16:52:07 +000018179 mv -f "$cfgfile" "$ofile" || \
18180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018181 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018182
18183else
18184 # If there is no Makefile yet, we rely on a make rule to execute
18185 # `config.status --recheck' to rerun these tests and create the
18186 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018187 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18188 if test -f "$ltmain_in"; then
18189 test -f Makefile && make "$ltmain"
18190 fi
John Criswell7a73b802003-06-30 21:59:07 +000018191fi
John Criswell7a73b802003-06-30 21:59:07 +000018192
18193
John Criswell47fdd832003-07-14 16:52:07 +000018194ac_ext=c
18195ac_cpp='$CPP $CPPFLAGS'
18196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18198ac_compiler_gnu=$ac_cv_c_compiler_gnu
18199
18200CC="$lt_save_CC"
18201
18202
Reid Spencera773bd52006-08-04 18:18:08 +000018203# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018204if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018205 withval=$with_tags; tagnames="$withval"
18206fi
18207
John Criswell47fdd832003-07-14 16:52:07 +000018208
18209if test -f "$ltmain" && test -n "$tagnames"; then
18210 if test ! -f "${ofile}"; then
18211 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18212echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18213 fi
18214
18215 if test -z "$LTCC"; then
18216 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18217 if test -z "$LTCC"; then
18218 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18219echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18220 else
18221 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18222echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18223 fi
18224 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018225 if test -z "$LTCFLAGS"; then
18226 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18227 fi
John Criswell47fdd832003-07-14 16:52:07 +000018228
18229 # Extract list of available tagged configurations in $ofile.
18230 # Note that this assumes the entire list is on one line.
18231 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18232
18233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18234 for tagname in $tagnames; do
18235 IFS="$lt_save_ifs"
18236 # Check whether tagname contains only valid characters
18237 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18238 "") ;;
18239 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18240echo "$as_me: error: invalid tag name: $tagname" >&2;}
18241 { (exit 1); exit 1; }; }
18242 ;;
18243 esac
18244
18245 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18246 then
18247 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18248echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18249 { (exit 1); exit 1; }; }
18250 fi
18251
18252 # Update the list of available tags.
18253 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018254 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018255
18256 case $tagname in
18257 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018258 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18259 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18260 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018261 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018262ac_cpp='$CXXCPP $CPPFLAGS'
18263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18266
18267
18268
18269
18270archive_cmds_need_lc_CXX=no
18271allow_undefined_flag_CXX=
18272always_export_symbols_CXX=no
18273archive_expsym_cmds_CXX=
18274export_dynamic_flag_spec_CXX=
18275hardcode_direct_CXX=no
18276hardcode_libdir_flag_spec_CXX=
18277hardcode_libdir_flag_spec_ld_CXX=
18278hardcode_libdir_separator_CXX=
18279hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018280hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018281hardcode_automatic_CXX=no
18282module_cmds_CXX=
18283module_expsym_cmds_CXX=
18284link_all_deplibs_CXX=unknown
18285old_archive_cmds_CXX=$old_archive_cmds
18286no_undefined_flag_CXX=
18287whole_archive_flag_spec_CXX=
18288enable_shared_with_static_runtimes_CXX=no
18289
18290# Dependencies to place before and after the object being linked:
18291predep_objects_CXX=
18292postdep_objects_CXX=
18293predeps_CXX=
18294postdeps_CXX=
18295compiler_lib_search_path_CXX=
18296
18297# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018298ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018299
18300# Object file extension for compiled C++ test sources.
18301objext=o
18302objext_CXX=$objext
18303
18304# Code to be used in simple compile tests
18305lt_simple_compile_test_code="int some_variable = 0;\n"
18306
18307# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018308lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018309
18310# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18311
18312# If no C compiler was specified, use CC.
18313LTCC=${LTCC-"$CC"}
18314
Reid Spencera773bd52006-08-04 18:18:08 +000018315# If no C compiler flags were specified, use CFLAGS.
18316LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18317
John Criswell47fdd832003-07-14 16:52:07 +000018318# Allow CC to be a program name with arguments.
18319compiler=$CC
18320
18321
Reid Spencera773bd52006-08-04 18:18:08 +000018322# save warnings/boilerplate of simple test code
18323ac_outfile=conftest.$ac_objext
18324printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18325eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18326_lt_compiler_boilerplate=`cat conftest.err`
18327$rm conftest*
18328
18329ac_outfile=conftest.$ac_objext
18330printf "$lt_simple_link_test_code" >conftest.$ac_ext
18331eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18332_lt_linker_boilerplate=`cat conftest.err`
18333$rm conftest*
18334
18335
John Criswell47fdd832003-07-14 16:52:07 +000018336# Allow CC to be a program name with arguments.
18337lt_save_CC=$CC
18338lt_save_LD=$LD
18339lt_save_GCC=$GCC
18340GCC=$GXX
18341lt_save_with_gnu_ld=$with_gnu_ld
18342lt_save_path_LD=$lt_cv_path_LD
18343if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18344 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18345else
Reid Spencera773bd52006-08-04 18:18:08 +000018346 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018347fi
18348if test -n "${lt_cv_path_LDCXX+set}"; then
18349 lt_cv_path_LD=$lt_cv_path_LDCXX
18350else
Reid Spencera773bd52006-08-04 18:18:08 +000018351 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018352fi
18353test -z "${LDCXX+set}" || LD=$LDCXX
18354CC=${CXX-"c++"}
18355compiler=$CC
18356compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018357for cc_temp in $compiler""; do
18358 case $cc_temp in
18359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18361 \-*) ;;
18362 *) break;;
18363 esac
18364done
18365cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18366
John Criswell47fdd832003-07-14 16:52:07 +000018367
18368# We don't want -fno-exception wen compiling C++ code, so set the
18369# no_builtin_flag separately
18370if test "$GXX" = yes; then
18371 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18372else
18373 lt_prog_compiler_no_builtin_flag_CXX=
18374fi
18375
18376if test "$GXX" = yes; then
18377 # Set up default GNU C++ configuration
18378
18379
Reid Spencera773bd52006-08-04 18:18:08 +000018380# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018381if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018382 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018383else
18384 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018385fi
18386
John Criswell47fdd832003-07-14 16:52:07 +000018387ac_prog=ld
18388if test "$GCC" = yes; then
18389 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018390 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18391echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018392 case $host in
18393 *-*-mingw*)
18394 # gcc leaves a trailing carriage return which upsets mingw
18395 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18396 *)
18397 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18398 esac
18399 case $ac_prog in
18400 # Accept absolute paths.
18401 [\\/]* | ?:[\\/]*)
18402 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018403 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018404 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18405 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18406 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18407 done
18408 test -z "$LD" && LD="$ac_prog"
18409 ;;
18410 "")
18411 # If it fails, then pretend we aren't using GCC.
18412 ac_prog=ld
18413 ;;
18414 *)
18415 # If it is relative, then search for the first ld in PATH.
18416 with_gnu_ld=unknown
18417 ;;
18418 esac
18419elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018420 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18421echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018422else
Reid Spencera773bd52006-08-04 18:18:08 +000018423 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18424echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018425fi
18426if test "${lt_cv_path_LD+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18428else
18429 if test -z "$LD"; then
18430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18431 for ac_dir in $PATH; do
18432 IFS="$lt_save_ifs"
18433 test -z "$ac_dir" && ac_dir=.
18434 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18435 lt_cv_path_LD="$ac_dir/$ac_prog"
18436 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018437 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018438 # Break only if it was the GNU/non-GNU ld that we prefer.
18439 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18440 *GNU* | *'with BFD'*)
18441 test "$with_gnu_ld" != no && break
18442 ;;
18443 *)
18444 test "$with_gnu_ld" != yes && break
18445 ;;
18446 esac
18447 fi
18448 done
18449 IFS="$lt_save_ifs"
18450else
18451 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18452fi
18453fi
18454
18455LD="$lt_cv_path_LD"
18456if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018457 { echo "$as_me:$LINENO: result: $LD" >&5
18458echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018459else
Reid Spencera773bd52006-08-04 18:18:08 +000018460 { echo "$as_me:$LINENO: result: no" >&5
18461echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018462fi
18463test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18464echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18465 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018466{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18467echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018468if test "${lt_cv_prog_gnu_ld+set}" = set; then
18469 echo $ECHO_N "(cached) $ECHO_C" >&6
18470else
Reid Spencera773bd52006-08-04 18:18:08 +000018471 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018472case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018473*GNU* | *'with BFD'*)
18474 lt_cv_prog_gnu_ld=yes
18475 ;;
18476*)
18477 lt_cv_prog_gnu_ld=no
18478 ;;
18479esac
18480fi
Reid Spencera773bd52006-08-04 18:18:08 +000018481{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18482echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018483with_gnu_ld=$lt_cv_prog_gnu_ld
18484
18485
18486
18487 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18488 # archiving commands below assume that GNU ld is being used.
18489 if test "$with_gnu_ld" = yes; then
18490 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18491 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'
18492
18493 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18495
18496 # If archive_cmds runs LD, not CC, wlarc should be empty
18497 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18498 # investigate it a little bit more. (MM)
18499 wlarc='${wl}'
18500
18501 # ancient GNU ld didn't support --whole-archive et. al.
18502 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18503 grep 'no-whole-archive' > /dev/null; then
18504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18505 else
18506 whole_archive_flag_spec_CXX=
18507 fi
18508 else
18509 with_gnu_ld=no
18510 wlarc=
18511
18512 # A generic and very simple default shared library creation
18513 # command for GNU C++ for the case where it uses the native
18514 # linker, instead of GNU ld. If possible, this setting should
18515 # overridden to take advantage of the native linker features on
18516 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018517 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018518 fi
18519
18520 # Commands to make compiler produce verbose output that lists
18521 # what "hidden" libraries, object files and flags are used when
18522 # linking a shared library.
18523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18524
18525else
18526 GXX=no
18527 with_gnu_ld=no
18528 wlarc=
18529fi
18530
18531# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018532{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18533echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018534ld_shlibs_CXX=yes
18535case $host_os in
18536 aix3*)
18537 # FIXME: insert proper C++ library support
18538 ld_shlibs_CXX=no
18539 ;;
18540 aix4* | aix5*)
18541 if test "$host_cpu" = ia64; then
18542 # On IA64, the linker does run time linking by default, so we don't
18543 # have to do anything special.
18544 aix_use_runtimelinking=no
18545 exp_sym_flag='-Bexport'
18546 no_entry_flag=""
18547 else
18548 aix_use_runtimelinking=no
18549
18550 # Test if we are trying to use run time linking or normal
18551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18552 # need to do runtime linking.
18553 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18554 for ld_flag in $LDFLAGS; do
18555 case $ld_flag in
18556 *-brtl*)
18557 aix_use_runtimelinking=yes
18558 break
18559 ;;
18560 esac
18561 done
Reid Spencera773bd52006-08-04 18:18:08 +000018562 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018563 esac
18564
18565 exp_sym_flag='-bexport'
18566 no_entry_flag='-bnoentry'
18567 fi
18568
18569 # When large executables or shared objects are built, AIX ld can
18570 # have problems creating the table of contents. If linking a library
18571 # or program results in "error TOC overflow" add -mminimal-toc to
18572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18574
18575 archive_cmds_CXX=''
18576 hardcode_direct_CXX=yes
18577 hardcode_libdir_separator_CXX=':'
18578 link_all_deplibs_CXX=yes
18579
18580 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018581 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018582 # We only want to do this on AIX 4.2 and lower, the check
18583 # below for broken collect2 doesn't work under 4.3+
18584 collect2name=`${CC} -print-prog-name=collect2`
18585 if test -f "$collect2name" && \
18586 strings "$collect2name" | grep resolve_lib_name >/dev/null
18587 then
18588 # We have reworked collect2
18589 hardcode_direct_CXX=yes
18590 else
18591 # We have old collect2
18592 hardcode_direct_CXX=unsupported
18593 # It fails to find uninstalled libraries when the uninstalled
18594 # path is not listed in the libpath. Setting hardcode_minus_L
18595 # to unsupported forces relinking
18596 hardcode_minus_L_CXX=yes
18597 hardcode_libdir_flag_spec_CXX='-L$libdir'
18598 hardcode_libdir_separator_CXX=
18599 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018600 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018601 esac
18602 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018603 if test "$aix_use_runtimelinking" = yes; then
18604 shared_flag="$shared_flag "'${wl}-G'
18605 fi
John Criswell47fdd832003-07-14 16:52:07 +000018606 else
18607 # not using gcc
18608 if test "$host_cpu" = ia64; then
18609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18610 # chokes on -Wl,-G. The following line is correct:
18611 shared_flag='-G'
18612 else
18613 if test "$aix_use_runtimelinking" = yes; then
18614 shared_flag='${wl}-G'
18615 else
18616 shared_flag='${wl}-bM:SRE'
18617 fi
18618 fi
18619 fi
18620
18621 # It seems that -bexpall does not export symbols beginning with
18622 # underscore (_), so it is better to generate a list of symbols to export.
18623 always_export_symbols_CXX=yes
18624 if test "$aix_use_runtimelinking" = yes; then
18625 # Warning - without using the other runtime loading flags (-brtl),
18626 # -berok will link without error, but may produce a broken library.
18627 allow_undefined_flag_CXX='-berok'
18628 # Determine the default libpath from the value encoded in an empty executable.
18629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018630/* confdefs.h. */
18631_ACEOF
18632cat confdefs.h >>conftest.$ac_ext
18633cat >>conftest.$ac_ext <<_ACEOF
18634/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018635
John Criswell47fdd832003-07-14 16:52:07 +000018636int
18637main ()
18638{
18639
18640 ;
18641 return 0;
18642}
18643_ACEOF
18644rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018645if { (ac_try="$ac_link"
18646case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18649esac
18650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018657 (exit $ac_status); } &&
18658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662esac
18663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest$ac_exeext'
18669 { (case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18672esac
18673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674 (eval "$ac_try") 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018678
18679aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18680}'`
18681# Check for a 64-bit object if we didn't find anything.
18682if 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; }
18683}'`; fi
18684else
18685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018686sed 's/^/| /' conftest.$ac_ext >&5
18687
Reid Spencera773bd52006-08-04 18:18:08 +000018688
John Criswell47fdd832003-07-14 16:52:07 +000018689fi
Reid Spencera773bd52006-08-04 18:18:08 +000018690
Tanya Lattnercf067672008-01-17 05:57:22 +000018691rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018692 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18694
18695 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18696
Reid Spencera773bd52006-08-04 18:18:08 +000018697 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 +000018698 else
18699 if test "$host_cpu" = ia64; then
18700 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18701 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018702 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 +000018703 else
18704 # Determine the default libpath from the value encoded in an empty executable.
18705 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018711
John Criswell47fdd832003-07-14 16:52:07 +000018712int
18713main ()
18714{
18715
18716 ;
18717 return 0;
18718}
18719_ACEOF
18720rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018721if { (ac_try="$ac_link"
18722case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725esac
18726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018733 (exit $ac_status); } &&
18734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18738esac
18739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest$ac_exeext'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018754
18755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18756}'`
18757# Check for a 64-bit object if we didn't find anything.
18758if 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; }
18759}'`; fi
18760else
18761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018762sed 's/^/| /' conftest.$ac_ext >&5
18763
Reid Spencera773bd52006-08-04 18:18:08 +000018764
John Criswell47fdd832003-07-14 16:52:07 +000018765fi
Reid Spencera773bd52006-08-04 18:18:08 +000018766
Tanya Lattnercf067672008-01-17 05:57:22 +000018767rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018768 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18770
18771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18772 # Warning - without using the other run time loading flags,
18773 # -berok will link without error, but may produce a broken library.
18774 no_undefined_flag_CXX=' ${wl}-bernotok'
18775 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018776 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018777 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018778 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018779 # This is similar to how AIX traditionally builds its shared libraries.
18780 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 +000018781 fi
18782 fi
18783 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018784
18785 beos*)
18786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18787 allow_undefined_flag_CXX=unsupported
18788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18789 # support --undefined. This deserves some investigation. FIXME
18790 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18791 else
18792 ld_shlibs_CXX=no
18793 fi
18794 ;;
18795
John Criswell47fdd832003-07-14 16:52:07 +000018796 chorus*)
18797 case $cc_basename in
18798 *)
18799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18801 ;;
18802 esac
18803 ;;
18804
18805 cygwin* | mingw* | pw32*)
18806 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18807 # as there is no search path for DLLs.
18808 hardcode_libdir_flag_spec_CXX='-L$libdir'
18809 allow_undefined_flag_CXX=unsupported
18810 always_export_symbols_CXX=no
18811 enable_shared_with_static_runtimes_CXX=yes
18812
18813 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018814 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 +000018815 # If the export-symbols file already is a .def file (1st line
18816 # is EXPORTS), use it as is; otherwise, prepend...
18817 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18818 cp $export_symbols $output_objdir/$soname.def;
18819 else
18820 echo EXPORTS > $output_objdir/$soname.def;
18821 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018822 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018823 $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 +000018824 else
18825 ld_shlibs_CXX=no
18826 fi
18827 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018828 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018829 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018830 rhapsody* | darwin1.[012])
18831 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18832 ;;
18833 *) # Darwin 1.3 on
18834 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18835 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18836 else
18837 case ${MACOSX_DEPLOYMENT_TARGET} in
18838 10.[012])
18839 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18840 ;;
18841 10.*)
18842 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18843 ;;
18844 esac
18845 fi
18846 ;;
18847 esac
18848 archive_cmds_need_lc_CXX=no
18849 hardcode_direct_CXX=no
18850 hardcode_automatic_CXX=yes
18851 hardcode_shlibpath_var_CXX=unsupported
18852 whole_archive_flag_spec_CXX=''
18853 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018854
Reid Spencer2706f8c2004-09-19 23:53:36 +000018855 if test "$GXX" = yes ; then
18856 lt_int_apple_cc_single_mod=no
18857 output_verbose_link_cmd='echo'
18858 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18859 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018860 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018861 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018862 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 +000018863 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018864 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 +000018865 fi
18866 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018867 # 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 +000018868 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018869 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 +000018870 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018871 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 +000018872 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018873 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 +000018874 else
Reid Spencera773bd52006-08-04 18:18:08 +000018875 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018876 xlc*)
18877 output_verbose_link_cmd='echo'
18878 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'
18879 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018880 # 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 +000018881 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}'
18882 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 +000018883 ;;
18884 *)
18885 ld_shlibs_CXX=no
18886 ;;
18887 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018888 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018889 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018890
18891 dgux*)
18892 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018893 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018894 # FIXME: insert proper C++ library support
18895 ld_shlibs_CXX=no
18896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018897 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018898 # Green Hills C++ Compiler
18899 # FIXME: insert proper C++ library support
18900 ld_shlibs_CXX=no
18901 ;;
18902 *)
18903 # FIXME: insert proper C++ library support
18904 ld_shlibs_CXX=no
18905 ;;
18906 esac
18907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018908 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018909 # C++ shared libraries reported to be fairly broken before switch to ELF
18910 ld_shlibs_CXX=no
18911 ;;
18912 freebsd-elf*)
18913 archive_cmds_need_lc_CXX=no
18914 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018915 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018916 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18917 # conventions
18918 ld_shlibs_CXX=yes
18919 ;;
18920 gnu*)
18921 ;;
18922 hpux9*)
18923 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18924 hardcode_libdir_separator_CXX=:
18925 export_dynamic_flag_spec_CXX='${wl}-E'
18926 hardcode_direct_CXX=yes
18927 hardcode_minus_L_CXX=yes # Not in the search PATH,
18928 # but as the default
18929 # location of the library.
18930
18931 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018932 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018933 # FIXME: insert proper C++ library support
18934 ld_shlibs_CXX=no
18935 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018936 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018937 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 +000018938 # Commands to make compiler produce verbose output that lists
18939 # what "hidden" libraries, object files and flags are used when
18940 # linking a shared library.
18941 #
18942 # There doesn't appear to be a way to prevent this compiler from
18943 # explicitly linking system object files so we need to strip them
18944 # from the output so that they don't get included in the library
18945 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018946 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 +000018947 ;;
18948 *)
18949 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018950 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 +000018951 else
18952 # FIXME: insert proper C++ library support
18953 ld_shlibs_CXX=no
18954 fi
18955 ;;
18956 esac
18957 ;;
18958 hpux10*|hpux11*)
18959 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18961 hardcode_libdir_separator_CXX=:
18962
18963 case $host_cpu in
18964 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018965 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018966 ;;
18967 *)
John Criswell47fdd832003-07-14 16:52:07 +000018968 export_dynamic_flag_spec_CXX='${wl}-E'
18969 ;;
18970 esac
18971 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018972 case $host_cpu in
18973 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018974 hardcode_direct_CXX=no
18975 hardcode_shlibpath_var_CXX=no
18976 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018977 *)
18978 hardcode_direct_CXX=yes
18979 hardcode_minus_L_CXX=yes # Not in the search PATH,
18980 # but as the default
18981 # location of the library.
18982 ;;
18983 esac
18984
18985 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018986 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018987 # FIXME: insert proper C++ library support
18988 ld_shlibs_CXX=no
18989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018990 aCC*)
18991 case $host_cpu in
18992 hppa*64*)
18993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18994 ;;
18995 ia64*)
18996 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 +000018997 ;;
18998 *)
18999 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19000 ;;
19001 esac
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 -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'
19011 ;;
19012 *)
19013 if test "$GXX" = yes; then
19014 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019015 case $host_cpu in
19016 hppa*64*)
19017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19018 ;;
19019 ia64*)
19020 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 +000019021 ;;
19022 *)
19023 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'
19024 ;;
19025 esac
19026 fi
19027 else
19028 # FIXME: insert proper C++ library support
19029 ld_shlibs_CXX=no
19030 fi
19031 ;;
19032 esac
19033 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019034 interix3*)
19035 hardcode_direct_CXX=no
19036 hardcode_shlibpath_var_CXX=no
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19038 export_dynamic_flag_spec_CXX='${wl}-E'
19039 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19040 # Instead, shared libraries are loaded at an image base (0x10000000 by
19041 # default) and relocated if they conflict, which is a slow very memory
19042 # consuming and fragmenting process. To avoid this, we pick a random,
19043 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19044 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19045 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'
19046 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'
19047 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019048 irix5* | irix6*)
19049 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019050 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019051 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019052 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 +000019053
19054 # Archives containing C++ object files must be created using
19055 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19056 # necessary to make sure instantiated templates are included
19057 # in the archive.
19058 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19059 ;;
19060 *)
19061 if test "$GXX" = yes; then
19062 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019063 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 +000019064 else
19065 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'
19066 fi
19067 fi
19068 link_all_deplibs_CXX=yes
19069 ;;
19070 esac
19071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19072 hardcode_libdir_separator_CXX=:
19073 ;;
19074 linux*)
19075 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019076 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019077 # Kuck and Associates, Inc. (KAI) C++ Compiler
19078
19079 # KCC will only create a shared library if the output file
19080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19081 # to its proper name (with version) after linking.
19082 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'
19083 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'
19084 # Commands to make compiler produce verbose output that lists
19085 # what "hidden" libraries, object files and flags are used when
19086 # linking a shared library.
19087 #
19088 # There doesn't appear to be a way to prevent this compiler from
19089 # explicitly linking system object files so we need to strip them
19090 # from the output so that they don't get included in the library
19091 # dependencies.
19092 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'
19093
19094 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19096
19097 # Archives containing C++ object files must be created using
19098 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019101 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019102 # Intel C++
19103 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019104 # version 8.0 and above of icpc choke on multiply defined symbols
19105 # if we add $predep_objects and $postdep_objects, however 7.1 and
19106 # earlier do not add the objects themselves.
19107 case `$CC -V 2>&1` in
19108 *"Version 7."*)
19109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110 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'
19111 ;;
19112 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019113 tmp_idyn=
19114 case $host_cpu in
19115 ia64*) tmp_idyn=' -i_dynamic';;
19116 esac
19117 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19118 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 +000019119 ;;
19120 esac
John Criswell47fdd832003-07-14 16:52:07 +000019121 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19124 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019126 pgCC*)
19127 # Portland Group C++ compiler
19128 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19129 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'
19130
19131 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19133 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'
19134 ;;
19135 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019136 # Compaq C++
19137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138 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'
19139
19140 runpath_var=LD_RUN_PATH
19141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19142 hardcode_libdir_separator_CXX=:
19143
19144 # Commands to make compiler produce verbose output that lists
19145 # what "hidden" libraries, object files and flags are used when
19146 # linking a shared library.
19147 #
19148 # There doesn't appear to be a way to prevent this compiler from
19149 # explicitly linking system object files so we need to strip them
19150 # from the output so that they don't get included in the library
19151 # dependencies.
19152 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'
19153 ;;
19154 esac
19155 ;;
19156 lynxos*)
19157 # FIXME: insert proper C++ library support
19158 ld_shlibs_CXX=no
19159 ;;
19160 m88k*)
19161 # FIXME: insert proper C++ library support
19162 ld_shlibs_CXX=no
19163 ;;
19164 mvs*)
19165 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019166 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019167 # FIXME: insert proper C++ library support
19168 ld_shlibs_CXX=no
19169 ;;
19170 *)
19171 # FIXME: insert proper C++ library support
19172 ld_shlibs_CXX=no
19173 ;;
19174 esac
19175 ;;
19176 netbsd*)
19177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19178 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19179 wlarc=
19180 hardcode_libdir_flag_spec_CXX='-R$libdir'
19181 hardcode_direct_CXX=yes
19182 hardcode_shlibpath_var_CXX=no
19183 fi
19184 # Workaround some broken pre-1.5 toolchains
19185 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19186 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019187 openbsd2*)
19188 # C++ shared libraries are fairly broken
19189 ld_shlibs_CXX=no
19190 ;;
19191 openbsd*)
19192 hardcode_direct_CXX=yes
19193 hardcode_shlibpath_var_CXX=no
19194 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19197 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19198 export_dynamic_flag_spec_CXX='${wl}-E'
19199 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19200 fi
19201 output_verbose_link_cmd='echo'
19202 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019203 osf3*)
19204 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019205 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019206 # Kuck and Associates, Inc. (KAI) C++ Compiler
19207
19208 # KCC will only create a shared library if the output file
19209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19210 # to its proper name (with version) after linking.
19211 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'
19212
19213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19214 hardcode_libdir_separator_CXX=:
19215
19216 # Archives containing C++ object files must be created using
19217 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19218 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19219
19220 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019221 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019222 # Rational C++ 2.4.1
19223 # FIXME: insert proper C++ library support
19224 ld_shlibs_CXX=no
19225 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019226 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019227 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019228 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 +000019229
19230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19231 hardcode_libdir_separator_CXX=:
19232
19233 # Commands to make compiler produce verbose output that lists
19234 # what "hidden" libraries, object files and flags are used when
19235 # linking a shared library.
19236 #
19237 # There doesn't appear to be a way to prevent this compiler from
19238 # explicitly linking system object files so we need to strip them
19239 # from the output so that they don't get included in the library
19240 # dependencies.
19241 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'
19242 ;;
19243 *)
19244 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19245 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019246 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 +000019247
19248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19249 hardcode_libdir_separator_CXX=:
19250
19251 # Commands to make compiler produce verbose output that lists
19252 # what "hidden" libraries, object files and flags are used when
19253 # linking a shared library.
19254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19255
19256 else
19257 # FIXME: insert proper C++ library support
19258 ld_shlibs_CXX=no
19259 fi
19260 ;;
19261 esac
19262 ;;
19263 osf4* | osf5*)
19264 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019265 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019266 # Kuck and Associates, Inc. (KAI) C++ Compiler
19267
19268 # KCC will only create a shared library if the output file
19269 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19270 # to its proper name (with version) after linking.
19271 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'
19272
19273 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19274 hardcode_libdir_separator_CXX=:
19275
19276 # Archives containing C++ object files must be created using
19277 # the KAI C++ compiler.
19278 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19279 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019280 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019281 # Rational C++ 2.4.1
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019285 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019286 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019287 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 +000019288 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19289 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019290 $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 +000019291 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019292
19293 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19294 hardcode_libdir_separator_CXX=:
19295
19296 # Commands to make compiler produce verbose output that lists
19297 # what "hidden" libraries, object files and flags are used when
19298 # linking a shared library.
19299 #
19300 # There doesn't appear to be a way to prevent this compiler from
19301 # explicitly linking system object files so we need to strip them
19302 # from the output so that they don't get included in the library
19303 # dependencies.
19304 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'
19305 ;;
19306 *)
19307 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19308 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019309 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 +000019310
19311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19312 hardcode_libdir_separator_CXX=:
19313
19314 # Commands to make compiler produce verbose output that lists
19315 # what "hidden" libraries, object files and flags are used when
19316 # linking a shared library.
19317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19318
19319 else
19320 # FIXME: insert proper C++ library support
19321 ld_shlibs_CXX=no
19322 fi
19323 ;;
19324 esac
19325 ;;
19326 psos*)
19327 # FIXME: insert proper C++ library support
19328 ld_shlibs_CXX=no
19329 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019330 sunos4*)
19331 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019332 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019333 # Sun C++ 4.x
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19336 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019337 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019338 # Lucid
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342 *)
19343 # FIXME: insert proper C++ library support
19344 ld_shlibs_CXX=no
19345 ;;
19346 esac
19347 ;;
19348 solaris*)
19349 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019350 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019351 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019352 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019353 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019354 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 +000019355 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 +000019356 $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 +000019357
19358 hardcode_libdir_flag_spec_CXX='-R$libdir'
19359 hardcode_shlibpath_var_CXX=no
19360 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019361 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019362 *)
19363 # The C++ compiler is used as linker so we must use $wl
19364 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019365 # linker. We must also pass each convience library through
19366 # to the system linker between allextract/defaultextract.
19367 # The C++ compiler will combine linker options so we
19368 # cannot just pass the convience library names through
19369 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019370 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019371 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 +000019372 ;;
19373 esac
19374 link_all_deplibs_CXX=yes
19375
Reid Spencera773bd52006-08-04 18:18:08 +000019376 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019377
19378 # Archives containing C++ object files must be created using
19379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19380 # necessary to make sure instantiated templates are included
19381 # in the archive.
19382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019384 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019385 # Green Hills C++ Compiler
19386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19387
19388 # The C++ compiler must be used to create the archive.
19389 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19390 ;;
19391 *)
19392 # GNU C++ compiler with Solaris linker
19393 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19394 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19395 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019396 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 +000019397 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19398 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19399
John Criswell47fdd832003-07-14 16:52:07 +000019400 # Commands to make compiler produce verbose output that lists
19401 # what "hidden" libraries, object files and flags are used when
19402 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019403 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019404 else
19405 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19406 # platform.
19407 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 +000019408 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19409 $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 +000019410
19411 # Commands to make compiler produce verbose output that lists
19412 # what "hidden" libraries, object files and flags are used when
19413 # linking a shared library.
19414 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19415 fi
19416
19417 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19418 fi
19419 ;;
19420 esac
19421 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19423 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019424 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019425 hardcode_shlibpath_var_CXX=no
19426 runpath_var='LD_RUN_PATH'
19427
19428 case $cc_basename in
19429 CC*)
19430 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19431 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19432 ;;
19433 *)
19434 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19435 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19436 ;;
19437 esac
19438 ;;
19439 sysv5* | sco3.2v5* | sco5v6*)
19440 # Note: We can NOT use -z defs as we might desire, because we do not
19441 # link with -lc, and that would cause any symbols used from libc to
19442 # always be unresolved, which means just about no library would
19443 # ever link correctly. If we're not using GNU ld we use -z text
19444 # though, which does catch some bad symbols but isn't as heavy-handed
19445 # as -z defs.
19446 # For security reasons, it is highly recommended that you always
19447 # use absolute paths for naming shared libraries, and exclude the
19448 # DT_RUNPATH tag from executables and libraries. But doing so
19449 # requires that you compile everything twice, which is a pain.
19450 # So that behaviour is only enabled if SCOABSPATH is set to a
19451 # non-empty value in the environment. Most likely only useful for
19452 # creating official distributions of packages.
19453 # This is a hack until libtool officially supports absolute path
19454 # names for shared libraries.
19455 no_undefined_flag_CXX='${wl}-z,text'
19456 allow_undefined_flag_CXX='${wl}-z,nodefs'
19457 archive_cmds_need_lc_CXX=no
19458 hardcode_shlibpath_var_CXX=no
19459 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19460 hardcode_libdir_separator_CXX=':'
19461 link_all_deplibs_CXX=yes
19462 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19463 runpath_var='LD_RUN_PATH'
19464
19465 case $cc_basename in
19466 CC*)
19467 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19469 ;;
19470 *)
19471 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19472 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19473 ;;
19474 esac
John Criswell47fdd832003-07-14 16:52:07 +000019475 ;;
19476 tandem*)
19477 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019478 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019479 # NonStop-UX NCC 3.20
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19482 ;;
19483 *)
19484 # FIXME: insert proper C++ library support
19485 ld_shlibs_CXX=no
19486 ;;
19487 esac
19488 ;;
19489 vxworks*)
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19492 ;;
19493 *)
19494 # FIXME: insert proper C++ library support
19495 ld_shlibs_CXX=no
19496 ;;
19497esac
Reid Spencera773bd52006-08-04 18:18:08 +000019498{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19499echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019500test "$ld_shlibs_CXX" = no && can_build_shared=no
19501
19502GCC_CXX="$GXX"
19503LD_CXX="$LD"
19504
John Criswell47fdd832003-07-14 16:52:07 +000019505
19506cat > conftest.$ac_ext <<EOF
19507class Foo
19508{
19509public:
19510 Foo (void) { a = 0; }
19511private:
19512 int a;
19513};
19514EOF
19515
19516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19517 (eval $ac_compile) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; then
19521 # Parse the compiler output and extract the necessary
19522 # objects, libraries and library flags.
19523
19524 # Sentinel used to keep track of whether or not we are before
19525 # the conftest object file.
19526 pre_test_object_deps_done=no
19527
19528 # The `*' in the case matches for architectures that use `case' in
19529 # $output_verbose_cmd can trigger glob expansion during the loop
19530 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019531 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019532
19533 for p in `eval $output_verbose_link_cmd`; do
19534 case $p in
19535
19536 -L* | -R* | -l*)
19537 # Some compilers place space between "-{L,R}" and the path.
19538 # Remove the space.
19539 if test $p = "-L" \
19540 || test $p = "-R"; then
19541 prev=$p
19542 continue
19543 else
19544 prev=
19545 fi
19546
19547 if test "$pre_test_object_deps_done" = no; then
19548 case $p in
19549 -L* | -R*)
19550 # Internal compiler library paths should come after those
19551 # provided the user. The postdeps already come after the
19552 # user supplied libs so there is no need to process them.
19553 if test -z "$compiler_lib_search_path_CXX"; then
19554 compiler_lib_search_path_CXX="${prev}${p}"
19555 else
19556 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19557 fi
19558 ;;
19559 # The "-l" case would never come before the object being
19560 # linked, so don't bother handling this case.
19561 esac
19562 else
19563 if test -z "$postdeps_CXX"; then
19564 postdeps_CXX="${prev}${p}"
19565 else
19566 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19567 fi
19568 fi
19569 ;;
19570
19571 *.$objext)
19572 # This assumes that the test object file only shows up
19573 # once in the compiler output.
19574 if test "$p" = "conftest.$objext"; then
19575 pre_test_object_deps_done=yes
19576 continue
19577 fi
19578
19579 if test "$pre_test_object_deps_done" = no; then
19580 if test -z "$predep_objects_CXX"; then
19581 predep_objects_CXX="$p"
19582 else
19583 predep_objects_CXX="$predep_objects_CXX $p"
19584 fi
19585 else
19586 if test -z "$postdep_objects_CXX"; then
19587 postdep_objects_CXX="$p"
19588 else
19589 postdep_objects_CXX="$postdep_objects_CXX $p"
19590 fi
19591 fi
19592 ;;
19593
19594 *) ;; # Ignore the rest.
19595
19596 esac
19597 done
19598
19599 # Clean up.
19600 rm -f a.out a.exe
19601else
19602 echo "libtool.m4: error: problem compiling CXX test program"
19603fi
19604
19605$rm -f confest.$objext
19606
Reid Spencera773bd52006-08-04 18:18:08 +000019607# PORTME: override above test on systems where it is broken
19608case $host_os in
19609interix3*)
19610 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19611 # hack all around it, let's just trust "g++" to DTRT.
19612 predep_objects_CXX=
19613 postdep_objects_CXX=
19614 postdeps_CXX=
19615 ;;
19616
19617solaris*)
19618 case $cc_basename in
19619 CC*)
19620 # Adding this requires a known-good setup of shared libraries for
19621 # Sun compiler versions before 5.6, else PIC objects from an old
19622 # archive will be linked into the output, leading to subtle bugs.
19623 postdeps_CXX='-lCstd -lCrun'
19624 ;;
19625 esac
19626 ;;
19627esac
19628
19629
John Criswell47fdd832003-07-14 16:52:07 +000019630case " $postdeps_CXX " in
19631*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19632esac
19633
19634lt_prog_compiler_wl_CXX=
19635lt_prog_compiler_pic_CXX=
19636lt_prog_compiler_static_CXX=
19637
Reid Spencera773bd52006-08-04 18:18:08 +000019638{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19639echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019640
19641 # C++ specific cases for pic, static, wl, etc.
19642 if test "$GXX" = yes; then
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_static_CXX='-static'
19645
19646 case $host_os in
19647 aix*)
19648 # All AIX code is PIC.
19649 if test "$host_cpu" = ia64; then
19650 # AIX 5 now supports IA64 processor
19651 lt_prog_compiler_static_CXX='-Bstatic'
19652 fi
19653 ;;
19654 amigaos*)
19655 # FIXME: we need at least 68020 code to build shared libraries, but
19656 # adding the `-m68020' flag to GCC prevents building anything better,
19657 # like `-m68040'.
19658 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19659 ;;
19660 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19661 # PIC is the default for these OSes.
19662 ;;
19663 mingw* | os2* | pw32*)
19664 # This hack is so that the source file can tell whether it is being
19665 # built for inclusion in a dll (and should export symbols for example).
19666 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19667 ;;
19668 darwin* | rhapsody*)
19669 # PIC is the default on this platform
19670 # Common symbols not allowed in MH_DYLIB files
19671 lt_prog_compiler_pic_CXX='-fno-common'
19672 ;;
19673 *djgpp*)
19674 # DJGPP does not support shared libraries at all
19675 lt_prog_compiler_pic_CXX=
19676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019677 interix3*)
19678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19679 # Instead, we relocate shared libraries at runtime.
19680 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019681 sysv4*MP*)
19682 if test -d /usr/nec; then
19683 lt_prog_compiler_pic_CXX=-Kconform_pic
19684 fi
19685 ;;
19686 hpux*)
19687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19688 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019689 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019690 hppa*64*|ia64*)
19691 ;;
19692 *)
19693 lt_prog_compiler_pic_CXX='-fPIC'
19694 ;;
19695 esac
19696 ;;
19697 *)
19698 lt_prog_compiler_pic_CXX='-fPIC'
19699 ;;
19700 esac
19701 else
19702 case $host_os in
19703 aix4* | aix5*)
19704 # All AIX code is PIC.
19705 if test "$host_cpu" = ia64; then
19706 # AIX 5 now supports IA64 processor
19707 lt_prog_compiler_static_CXX='-Bstatic'
19708 else
19709 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19710 fi
19711 ;;
19712 chorus*)
19713 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019714 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019715 # Green Hills C++ Compiler
19716 # _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"
19717 ;;
19718 esac
19719 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019720 darwin*)
19721 # PIC is the default on this platform
19722 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019723 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019724 xlc*)
19725 lt_prog_compiler_pic_CXX='-qnocommon'
19726 lt_prog_compiler_wl_CXX='-Wl,'
19727 ;;
19728 esac
19729 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019730 dgux*)
19731 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019732 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019733 lt_prog_compiler_pic_CXX='-KPIC'
19734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019735 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019736 # Green Hills C++ Compiler
19737 lt_prog_compiler_pic_CXX='-pic'
19738 ;;
19739 *)
19740 ;;
19741 esac
19742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019743 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019744 # FreeBSD uses GNU C++
19745 ;;
19746 hpux9* | hpux10* | hpux11*)
19747 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019748 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019749 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019750 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019751 if test "$host_cpu" != ia64; then
19752 lt_prog_compiler_pic_CXX='+Z'
19753 fi
19754 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019755 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019756 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019757 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19758 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019759 hppa*64*|ia64*)
19760 # +Z the default
19761 ;;
19762 *)
19763 lt_prog_compiler_pic_CXX='+Z'
19764 ;;
19765 esac
19766 ;;
19767 *)
19768 ;;
19769 esac
19770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019771 interix*)
19772 # This is c89, which is MS Visual C++ (no shared libs)
19773 # Anyone wants to do a port?
19774 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019775 irix5* | irix6* | nonstopux*)
19776 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019777 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019778 lt_prog_compiler_wl_CXX='-Wl,'
19779 lt_prog_compiler_static_CXX='-non_shared'
19780 # CC pic flag -KPIC is the default.
19781 ;;
19782 *)
19783 ;;
19784 esac
19785 ;;
19786 linux*)
19787 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019788 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019789 # KAI C++ Compiler
19790 lt_prog_compiler_wl_CXX='--backend -Wl,'
19791 lt_prog_compiler_pic_CXX='-fPIC'
19792 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019793 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019794 # Intel C++
19795 lt_prog_compiler_wl_CXX='-Wl,'
19796 lt_prog_compiler_pic_CXX='-KPIC'
19797 lt_prog_compiler_static_CXX='-static'
19798 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019799 pgCC*)
19800 # Portland Group C++ compiler.
19801 lt_prog_compiler_wl_CXX='-Wl,'
19802 lt_prog_compiler_pic_CXX='-fpic'
19803 lt_prog_compiler_static_CXX='-Bstatic'
19804 ;;
19805 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019806 # Compaq C++
19807 # Make sure the PIC flag is empty. It appears that all Alpha
19808 # Linux and Compaq Tru64 Unix objects are PIC.
19809 lt_prog_compiler_pic_CXX=
19810 lt_prog_compiler_static_CXX='-non_shared'
19811 ;;
19812 *)
19813 ;;
19814 esac
19815 ;;
19816 lynxos*)
19817 ;;
19818 m88k*)
19819 ;;
19820 mvs*)
19821 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019822 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019823 lt_prog_compiler_pic_CXX='-W c,exportall'
19824 ;;
19825 *)
19826 ;;
19827 esac
19828 ;;
19829 netbsd*)
19830 ;;
19831 osf3* | osf4* | osf5*)
19832 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019833 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019834 lt_prog_compiler_wl_CXX='--backend -Wl,'
19835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019836 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019837 # Rational C++ 2.4.1
19838 lt_prog_compiler_pic_CXX='-pic'
19839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019840 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019841 # Digital/Compaq C++
19842 lt_prog_compiler_wl_CXX='-Wl,'
19843 # Make sure the PIC flag is empty. It appears that all Alpha
19844 # Linux and Compaq Tru64 Unix objects are PIC.
19845 lt_prog_compiler_pic_CXX=
19846 lt_prog_compiler_static_CXX='-non_shared'
19847 ;;
19848 *)
19849 ;;
19850 esac
19851 ;;
19852 psos*)
19853 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019854 solaris*)
19855 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019856 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019857 # Sun C++ 4.2, 5.x and Centerline C++
19858 lt_prog_compiler_pic_CXX='-KPIC'
19859 lt_prog_compiler_static_CXX='-Bstatic'
19860 lt_prog_compiler_wl_CXX='-Qoption ld '
19861 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019862 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019863 # Green Hills C++ Compiler
19864 lt_prog_compiler_pic_CXX='-PIC'
19865 ;;
19866 *)
19867 ;;
19868 esac
19869 ;;
19870 sunos4*)
19871 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019872 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019873 # Sun C++ 4.x
19874 lt_prog_compiler_pic_CXX='-pic'
19875 lt_prog_compiler_static_CXX='-Bstatic'
19876 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019877 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019878 # Lucid
19879 lt_prog_compiler_pic_CXX='-pic'
19880 ;;
19881 *)
19882 ;;
19883 esac
19884 ;;
19885 tandem*)
19886 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019887 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019888 # NonStop-UX NCC 3.20
19889 lt_prog_compiler_pic_CXX='-KPIC'
19890 ;;
19891 *)
19892 ;;
19893 esac
19894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019895 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19896 case $cc_basename in
19897 CC*)
19898 lt_prog_compiler_wl_CXX='-Wl,'
19899 lt_prog_compiler_pic_CXX='-KPIC'
19900 lt_prog_compiler_static_CXX='-Bstatic'
19901 ;;
19902 esac
John Criswell47fdd832003-07-14 16:52:07 +000019903 ;;
19904 vxworks*)
19905 ;;
19906 *)
19907 lt_prog_compiler_can_build_shared_CXX=no
19908 ;;
19909 esac
19910 fi
19911
Reid Spencera773bd52006-08-04 18:18:08 +000019912{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19913echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019914
19915#
19916# Check to make sure the PIC flag actually works.
19917#
19918if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019919
Reid Spencera773bd52006-08-04 18:18:08 +000019920{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19921echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019922if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924else
19925 lt_prog_compiler_pic_works_CXX=no
19926 ac_outfile=conftest.$ac_objext
19927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19928 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19929 # Insert the option either (1) after the last *FLAGS variable, or
19930 # (2) before a word containing "conftest.", or (3) at the end.
19931 # Note that $ac_compile itself does not contain backslashes and begins
19932 # with a dollar sign (not a hyphen), so the echo should work correctly.
19933 # The option is referenced via a variable to avoid confusing sed.
19934 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19937 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000019938 (eval echo "\"\$as_me:19938: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019939 (eval "$lt_compile" 2>conftest.err)
19940 ac_status=$?
19941 cat conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000019942 echo "$as_me:19942: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019943 if (exit $ac_status) && test -s "$ac_outfile"; then
19944 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019945 # So say no if there are warnings other than the usual output.
19946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019949 lt_prog_compiler_pic_works_CXX=yes
19950 fi
19951 fi
19952 $rm conftest*
19953
19954fi
Reid Spencera773bd52006-08-04 18:18:08 +000019955{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19956echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019957
19958if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19959 case $lt_prog_compiler_pic_CXX in
19960 "" | " "*) ;;
19961 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19962 esac
19963else
19964 lt_prog_compiler_pic_CXX=
19965 lt_prog_compiler_can_build_shared_CXX=no
19966fi
19967
19968fi
Reid Spencera773bd52006-08-04 18:18:08 +000019969case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019970 # For platforms which do not support PIC, -DPIC is meaningless:
19971 *djgpp*)
19972 lt_prog_compiler_pic_CXX=
19973 ;;
19974 *)
19975 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19976 ;;
19977esac
19978
Reid Spencera773bd52006-08-04 18:18:08 +000019979#
19980# Check to make sure the static flag actually works.
19981#
19982wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19983{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19984echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19985if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987else
19988 lt_prog_compiler_static_works_CXX=no
19989 save_LDFLAGS="$LDFLAGS"
19990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19991 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19993 # The linker can only warn and ignore the option if not recognized
19994 # So say no if there are warnings
19995 if test -s conftest.err; then
19996 # Append any errors to the config.log.
19997 cat conftest.err 1>&5
19998 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20000 if diff conftest.exp conftest.er2 >/dev/null; then
20001 lt_prog_compiler_static_works_CXX=yes
20002 fi
20003 else
20004 lt_prog_compiler_static_works_CXX=yes
20005 fi
20006 fi
20007 $rm conftest*
20008 LDFLAGS="$save_LDFLAGS"
20009
20010fi
20011{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20012echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20013
20014if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20015 :
20016else
20017 lt_prog_compiler_static_CXX=
20018fi
20019
20020
20021{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20022echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020023if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025else
20026 lt_cv_prog_compiler_c_o_CXX=no
20027 $rm -r conftest 2>/dev/null
20028 mkdir conftest
20029 cd conftest
20030 mkdir out
20031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20032
John Criswell47fdd832003-07-14 16:52:07 +000020033 lt_compiler_flag="-o out/conftest2.$ac_objext"
20034 # Insert the option either (1) after the last *FLAGS variable, or
20035 # (2) before a word containing "conftest.", or (3) at the end.
20036 # Note that $ac_compile itself does not contain backslashes and begins
20037 # with a dollar sign (not a hyphen), so the echo should work correctly.
20038 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20041 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000020042 (eval echo "\"\$as_me:20042: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020043 (eval "$lt_compile" 2>out/conftest.err)
20044 ac_status=$?
20045 cat out/conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000020046 echo "$as_me:20046: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20048 then
20049 # The compiler can only warn and ignore the option if not recognized
20050 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020051 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020054 lt_cv_prog_compiler_c_o_CXX=yes
20055 fi
20056 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020057 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020058 $rm conftest*
20059 # SGI C++ compiler will create directory out/ii_files/ for
20060 # template instantiation
20061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20062 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020063 cd ..
20064 rmdir conftest
20065 $rm conftest*
20066
20067fi
Reid Spencera773bd52006-08-04 18:18:08 +000020068{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20069echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020070
20071
20072hard_links="nottested"
20073if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20074 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020075 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20076echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020077 hard_links=yes
20078 $rm conftest*
20079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20080 touch conftest.a
20081 ln conftest.a conftest.b 2>&5 || hard_links=no
20082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020083 { echo "$as_me:$LINENO: result: $hard_links" >&5
20084echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020085 if test "$hard_links" = no; then
20086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20087echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20088 need_locks=warn
20089 fi
20090else
20091 need_locks=no
20092fi
20093
Reid Spencera773bd52006-08-04 18:18:08 +000020094{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20095echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020096
20097 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20098 case $host_os in
20099 aix4* | aix5*)
20100 # If we're using GNU nm, then we don't want the "-C" option.
20101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20102 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20103 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'
20104 else
20105 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'
20106 fi
20107 ;;
20108 pw32*)
20109 export_symbols_cmds_CXX="$ltdll_cmds"
20110 ;;
20111 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020112 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 +000020113 ;;
20114 *)
20115 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20116 ;;
20117 esac
20118
Reid Spencera773bd52006-08-04 18:18:08 +000020119{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20120echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020121test "$ld_shlibs_CXX" = no && can_build_shared=no
20122
John Criswell47fdd832003-07-14 16:52:07 +000020123#
20124# Do we need to explicitly link libc?
20125#
20126case "x$archive_cmds_need_lc_CXX" in
20127x|xyes)
20128 # Assume -lc should be added
20129 archive_cmds_need_lc_CXX=yes
20130
20131 if test "$enable_shared" = yes && test "$GCC" = yes; then
20132 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020133 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020134 # FIXME: we may have to deal with multi-command sequences.
20135 ;;
20136 '$CC '*)
20137 # Test whether the compiler implicitly links with -lc since on some
20138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20139 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020140 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20141echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020142 $rm conftest*
20143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20144
20145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146 (eval $ac_compile) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } 2>conftest.err; then
20150 soname=conftest
20151 lib=conftest
20152 libobjs=conftest.$ac_objext
20153 deplibs=
20154 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020155 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020156 compiler_flags=-v
20157 linker_flags=-v
20158 verstring=
20159 output_objdir=.
20160 libname=conftest
20161 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20162 allow_undefined_flag_CXX=
20163 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20164 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }
20168 then
20169 archive_cmds_need_lc_CXX=no
20170 else
20171 archive_cmds_need_lc_CXX=yes
20172 fi
20173 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20174 else
20175 cat conftest.err 1>&5
20176 fi
20177 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020178 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20179echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020180 ;;
20181 esac
20182 fi
20183 ;;
20184esac
20185
Reid Spencera773bd52006-08-04 18:18:08 +000020186{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20187echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020188library_names_spec=
20189libname_spec='lib$name'
20190soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020191shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020192postinstall_cmds=
20193postuninstall_cmds=
20194finish_cmds=
20195finish_eval=
20196shlibpath_var=
20197shlibpath_overrides_runpath=unknown
20198version_type=none
20199dynamic_linker="$host_os ld.so"
20200sys_lib_dlsearch_path_spec="/lib /usr/lib"
20201if test "$GCC" = yes; then
20202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20203 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20204 # if the path contains ";" then we assume it to be the separator
20205 # otherwise default to the standard path separator (i.e. ":") - it is
20206 # assumed that no part of a normal pathname contains ";" but that should
20207 # okay in the real world where ";" in dirpaths is itself problematic.
20208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20209 else
20210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20211 fi
20212else
20213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20214fi
20215need_lib_prefix=unknown
20216hardcode_into_libs=no
20217
20218# when you set need_version to no, make sure it does not cause -set_version
20219# flags to be left without arguments
20220need_version=unknown
20221
20222case $host_os in
20223aix3*)
20224 version_type=linux
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20226 shlibpath_var=LIBPATH
20227
20228 # AIX 3 has no versioning support, so we append a major version to the name.
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 ;;
20231
20232aix4* | aix5*)
20233 version_type=linux
20234 need_lib_prefix=no
20235 need_version=no
20236 hardcode_into_libs=yes
20237 if test "$host_cpu" = ia64; then
20238 # AIX 5 supports IA64
20239 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20240 shlibpath_var=LD_LIBRARY_PATH
20241 else
20242 # With GCC up to 2.95.x, collect2 would create an import file
20243 # for dependence libraries. The import file would start with
20244 # the line `#! .'. This would cause the generated library to
20245 # depend on `.', always an invalid library. This was fixed in
20246 # development snapshots of GCC prior to 3.0.
20247 case $host_os in
20248 aix4 | aix4.[01] | aix4.[01].*)
20249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20250 echo ' yes '
20251 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20252 :
20253 else
20254 can_build_shared=no
20255 fi
20256 ;;
20257 esac
20258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20259 # soname into executable. Probably we can add versioning support to
20260 # collect2, so additional links can be useful in future.
20261 if test "$aix_use_runtimelinking" = yes; then
20262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20263 # instead of lib<name>.a to let people know that these are not
20264 # typical AIX shared libraries.
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266 else
20267 # We preserve .a as extension for shared libraries through AIX4.2
20268 # and later when we are not doing run time linking.
20269 library_names_spec='${libname}${release}.a $libname.a'
20270 soname_spec='${libname}${release}${shared_ext}$major'
20271 fi
20272 shlibpath_var=LIBPATH
20273 fi
20274 ;;
20275
20276amigaos*)
20277 library_names_spec='$libname.ixlibrary $libname.a'
20278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020279 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 +000020280 ;;
20281
20282beos*)
20283 library_names_spec='${libname}${shared_ext}'
20284 dynamic_linker="$host_os ld.so"
20285 shlibpath_var=LIBRARY_PATH
20286 ;;
20287
Reid Spencer2706f8c2004-09-19 23:53:36 +000020288bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020289 version_type=linux
20290 need_version=no
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292 soname_spec='${libname}${release}${shared_ext}$major'
20293 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20294 shlibpath_var=LD_LIBRARY_PATH
20295 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20296 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20297 # the default ld.so.conf also contains /usr/contrib/lib and
20298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20299 # libtool to hard-code these into programs
20300 ;;
20301
20302cygwin* | mingw* | pw32*)
20303 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020304 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020305 need_version=no
20306 need_lib_prefix=no
20307
20308 case $GCC,$host_os in
20309 yes,cygwin* | yes,mingw* | yes,pw32*)
20310 library_names_spec='$libname.dll.a'
20311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020312 postinstall_cmds='base_file=`basename \${file}`~
20313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20314 dldir=$destdir/`dirname \$dlpath`~
20315 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020316 $install_prog $dir/$dlname \$dldir/$dlname~
20317 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20319 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020320 $rm \$dlpath'
20321 shlibpath_overrides_runpath=yes
20322
20323 case $host_os in
20324 cygwin*)
20325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20326 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 +000020327 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020328 ;;
20329 mingw*)
20330 # MinGW DLLs use traditional 'lib' prefix
20331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20333 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20334 # It is most probably a Windows format PATH printed by
20335 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20336 # path with ; separators, and with drive letters. We can handle the
20337 # drive letters (cygwin fileutils understands them), so leave them,
20338 # especially as we might pass files found there to a mingw objdump,
20339 # which wouldn't understand a cygwinified path. Ahh.
20340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20341 else
20342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20343 fi
20344 ;;
20345 pw32*)
20346 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020347 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 +000020348 ;;
20349 esac
20350 ;;
20351
20352 *)
20353 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20354 ;;
20355 esac
20356 dynamic_linker='Win32 ld.exe'
20357 # FIXME: first we should search . and the directory the executable is in
20358 shlibpath_var=PATH
20359 ;;
20360
20361darwin* | rhapsody*)
20362 dynamic_linker="$host_os dyld"
20363 version_type=darwin
20364 need_lib_prefix=no
20365 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020366 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020367 soname_spec='${libname}${release}${major}$shared_ext'
20368 shlibpath_overrides_runpath=yes
20369 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020370 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020371 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372 if test "$GCC" = yes; then
20373 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"`
20374 else
20375 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020376 fi
20377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20378 ;;
20379
20380dgux*)
20381 version_type=linux
20382 need_lib_prefix=no
20383 need_version=no
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20385 soname_spec='${libname}${release}${shared_ext}$major'
20386 shlibpath_var=LD_LIBRARY_PATH
20387 ;;
20388
20389freebsd1*)
20390 dynamic_linker=no
20391 ;;
20392
Reid Spencer2706f8c2004-09-19 23:53:36 +000020393kfreebsd*-gnu)
20394 version_type=linux
20395 need_lib_prefix=no
20396 need_version=no
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20398 soname_spec='${libname}${release}${shared_ext}$major'
20399 shlibpath_var=LD_LIBRARY_PATH
20400 shlibpath_overrides_runpath=no
20401 hardcode_into_libs=yes
20402 dynamic_linker='GNU ld.so'
20403 ;;
20404
Reid Spencera773bd52006-08-04 18:18:08 +000020405freebsd* | dragonfly*)
20406 # DragonFly does not have aout. When/if they implement a new
20407 # versioning mechanism, adjust this.
20408 if test -x /usr/bin/objformat; then
20409 objformat=`/usr/bin/objformat`
20410 else
20411 case $host_os in
20412 freebsd[123]*) objformat=aout ;;
20413 *) objformat=elf ;;
20414 esac
20415 fi
John Criswell47fdd832003-07-14 16:52:07 +000020416 version_type=freebsd-$objformat
20417 case $version_type in
20418 freebsd-elf*)
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20420 need_version=no
20421 need_lib_prefix=no
20422 ;;
20423 freebsd-*)
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20425 need_version=yes
20426 ;;
20427 esac
20428 shlibpath_var=LD_LIBRARY_PATH
20429 case $host_os in
20430 freebsd2*)
20431 shlibpath_overrides_runpath=yes
20432 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020433 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020434 shlibpath_overrides_runpath=yes
20435 hardcode_into_libs=yes
20436 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020437 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20438 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020439 shlibpath_overrides_runpath=no
20440 hardcode_into_libs=yes
20441 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020442 freebsd*) # from 4.6 on
20443 shlibpath_overrides_runpath=yes
20444 hardcode_into_libs=yes
20445 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020446 esac
20447 ;;
20448
20449gnu*)
20450 version_type=linux
20451 need_lib_prefix=no
20452 need_version=no
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20454 soname_spec='${libname}${release}${shared_ext}$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20456 hardcode_into_libs=yes
20457 ;;
20458
20459hpux9* | hpux10* | hpux11*)
20460 # Give a soname corresponding to the major version so that dld.sl refuses to
20461 # link against other versions.
20462 version_type=sunos
20463 need_lib_prefix=no
20464 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020465 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020466 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020467 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020468 hardcode_into_libs=yes
20469 dynamic_linker="$host_os dld.so"
20470 shlibpath_var=LD_LIBRARY_PATH
20471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 soname_spec='${libname}${release}${shared_ext}$major'
20474 if test "X$HPUX_IA64_MODE" = X32; then
20475 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20476 else
20477 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20478 fi
20479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20480 ;;
20481 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020482 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020483 hardcode_into_libs=yes
20484 dynamic_linker="$host_os dld.sl"
20485 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 soname_spec='${libname}${release}${shared_ext}$major'
20489 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20491 ;;
20492 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020493 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020494 dynamic_linker="$host_os dld.sl"
20495 shlibpath_var=SHLIB_PATH
20496 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 ;;
20500 esac
20501 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20502 postinstall_cmds='chmod 555 $lib'
20503 ;;
20504
Reid Spencera773bd52006-08-04 18:18:08 +000020505interix3*)
20506 version_type=linux
20507 need_lib_prefix=no
20508 need_version=no
20509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20510 soname_spec='${libname}${release}${shared_ext}$major'
20511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20512 shlibpath_var=LD_LIBRARY_PATH
20513 shlibpath_overrides_runpath=no
20514 hardcode_into_libs=yes
20515 ;;
20516
John Criswell47fdd832003-07-14 16:52:07 +000020517irix5* | irix6* | nonstopux*)
20518 case $host_os in
20519 nonstopux*) version_type=nonstopux ;;
20520 *)
20521 if test "$lt_cv_prog_gnu_ld" = yes; then
20522 version_type=linux
20523 else
20524 version_type=irix
20525 fi ;;
20526 esac
20527 need_lib_prefix=no
20528 need_version=no
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20531 case $host_os in
20532 irix5* | nonstopux*)
20533 libsuff= shlibsuff=
20534 ;;
20535 *)
20536 case $LD in # libtool.m4 will add one of these switches to LD
20537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20538 libsuff= shlibsuff= libmagic=32-bit;;
20539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20540 libsuff=32 shlibsuff=N32 libmagic=N32;;
20541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20542 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20543 *) libsuff= shlibsuff= libmagic=never-match;;
20544 esac
20545 ;;
20546 esac
20547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20548 shlibpath_overrides_runpath=no
20549 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20550 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20551 hardcode_into_libs=yes
20552 ;;
20553
20554# No shared lib support for Linux oldld, aout, or coff.
20555linux*oldld* | linux*aout* | linux*coff*)
20556 dynamic_linker=no
20557 ;;
20558
20559# This must be Linux ELF.
20560linux*)
20561 version_type=linux
20562 need_lib_prefix=no
20563 need_version=no
20564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20565 soname_spec='${libname}${release}${shared_ext}$major'
20566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20567 shlibpath_var=LD_LIBRARY_PATH
20568 shlibpath_overrides_runpath=no
20569 # This implies no fast_install, which is unacceptable.
20570 # Some rework will be needed to allow for fast_install
20571 # before this can be enabled.
20572 hardcode_into_libs=yes
20573
Reid Spencer2706f8c2004-09-19 23:53:36 +000020574 # Append ld.so.conf contents to the search path
20575 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020576 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 +000020577 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20578 fi
20579
John Criswell47fdd832003-07-14 16:52:07 +000020580 # We used to test for /lib/ld.so.1 and disable shared libraries on
20581 # powerpc, because MkLinux only supported shared libraries with the
20582 # GNU dynamic linker. Since this was broken with cross compilers,
20583 # most powerpc-linux boxes support dynamic linking these days and
20584 # people can always --disable-shared, the test was removed, and we
20585 # assume the GNU/Linux dynamic linker is in use.
20586 dynamic_linker='GNU/Linux ld.so'
20587 ;;
20588
Reid Spencer2706f8c2004-09-19 23:53:36 +000020589knetbsd*-gnu)
20590 version_type=linux
20591 need_lib_prefix=no
20592 need_version=no
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 shlibpath_var=LD_LIBRARY_PATH
20596 shlibpath_overrides_runpath=no
20597 hardcode_into_libs=yes
20598 dynamic_linker='GNU ld.so'
20599 ;;
20600
John Criswell47fdd832003-07-14 16:52:07 +000020601netbsd*)
20602 version_type=sunos
20603 need_lib_prefix=no
20604 need_version=no
20605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20608 dynamic_linker='NetBSD (a.out) ld.so'
20609 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020611 soname_spec='${libname}${release}${shared_ext}$major'
20612 dynamic_linker='NetBSD ld.elf_so'
20613 fi
20614 shlibpath_var=LD_LIBRARY_PATH
20615 shlibpath_overrides_runpath=yes
20616 hardcode_into_libs=yes
20617 ;;
20618
20619newsos6)
20620 version_type=linux
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622 shlibpath_var=LD_LIBRARY_PATH
20623 shlibpath_overrides_runpath=yes
20624 ;;
20625
Reid Spencer2706f8c2004-09-19 23:53:36 +000020626nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020627 version_type=linux
20628 need_lib_prefix=no
20629 need_version=no
20630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20631 soname_spec='${libname}${release}${shared_ext}$major'
20632 shlibpath_var=LD_LIBRARY_PATH
20633 shlibpath_overrides_runpath=yes
20634 ;;
20635
20636openbsd*)
20637 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020638 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020639 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020640 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20641 case $host_os in
20642 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20643 *) need_version=no ;;
20644 esac
John Criswell47fdd832003-07-14 16:52:07 +000020645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20647 shlibpath_var=LD_LIBRARY_PATH
20648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20649 case $host_os in
20650 openbsd2.[89] | openbsd2.[89].*)
20651 shlibpath_overrides_runpath=no
20652 ;;
20653 *)
20654 shlibpath_overrides_runpath=yes
20655 ;;
20656 esac
20657 else
20658 shlibpath_overrides_runpath=yes
20659 fi
20660 ;;
20661
20662os2*)
20663 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020664 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020665 need_lib_prefix=no
20666 library_names_spec='$libname${shared_ext} $libname.a'
20667 dynamic_linker='OS/2 ld.exe'
20668 shlibpath_var=LIBPATH
20669 ;;
20670
20671osf3* | osf4* | osf5*)
20672 version_type=osf
20673 need_lib_prefix=no
20674 need_version=no
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677 shlibpath_var=LD_LIBRARY_PATH
20678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20680 ;;
20681
John Criswell47fdd832003-07-14 16:52:07 +000020682solaris*)
20683 version_type=linux
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 shlibpath_overrides_runpath=yes
20690 hardcode_into_libs=yes
20691 # ldd complains unless libraries are executable
20692 postinstall_cmds='chmod +x $lib'
20693 ;;
20694
20695sunos4*)
20696 version_type=sunos
20697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20698 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20699 shlibpath_var=LD_LIBRARY_PATH
20700 shlibpath_overrides_runpath=yes
20701 if test "$with_gnu_ld" = yes; then
20702 need_lib_prefix=no
20703 fi
20704 need_version=yes
20705 ;;
20706
Reid Spencera773bd52006-08-04 18:18:08 +000020707sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020708 version_type=linux
20709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20710 soname_spec='${libname}${release}${shared_ext}$major'
20711 shlibpath_var=LD_LIBRARY_PATH
20712 case $host_vendor in
20713 sni)
20714 shlibpath_overrides_runpath=no
20715 need_lib_prefix=no
20716 export_dynamic_flag_spec='${wl}-Blargedynsym'
20717 runpath_var=LD_RUN_PATH
20718 ;;
20719 siemens)
20720 need_lib_prefix=no
20721 ;;
20722 motorola)
20723 need_lib_prefix=no
20724 need_version=no
20725 shlibpath_overrides_runpath=no
20726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20727 ;;
20728 esac
20729 ;;
20730
20731sysv4*MP*)
20732 if test -d /usr/nec ;then
20733 version_type=linux
20734 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20735 soname_spec='$libname${shared_ext}.$major'
20736 shlibpath_var=LD_LIBRARY_PATH
20737 fi
20738 ;;
20739
Reid Spencera773bd52006-08-04 18:18:08 +000020740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20741 version_type=freebsd-elf
20742 need_lib_prefix=no
20743 need_version=no
20744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20745 soname_spec='${libname}${release}${shared_ext}$major'
20746 shlibpath_var=LD_LIBRARY_PATH
20747 hardcode_into_libs=yes
20748 if test "$with_gnu_ld" = yes; then
20749 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20750 shlibpath_overrides_runpath=no
20751 else
20752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20753 shlibpath_overrides_runpath=yes
20754 case $host_os in
20755 sco3.2v5*)
20756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20757 ;;
20758 esac
20759 fi
20760 sys_lib_dlsearch_path_spec='/usr/lib'
20761 ;;
20762
John Criswell47fdd832003-07-14 16:52:07 +000020763uts4*)
20764 version_type=linux
20765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20766 soname_spec='${libname}${release}${shared_ext}$major'
20767 shlibpath_var=LD_LIBRARY_PATH
20768 ;;
20769
20770*)
20771 dynamic_linker=no
20772 ;;
20773esac
Reid Spencera773bd52006-08-04 18:18:08 +000020774{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20775echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020776test "$dynamic_linker" = no && can_build_shared=no
20777
Reid Spencera773bd52006-08-04 18:18:08 +000020778variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20779if test "$GCC" = yes; then
20780 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20781fi
20782
20783{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20784echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020785hardcode_action_CXX=
20786if test -n "$hardcode_libdir_flag_spec_CXX" || \
20787 test -n "$runpath_var_CXX" || \
20788 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20789
20790 # We can hardcode non-existant directories.
20791 if test "$hardcode_direct_CXX" != no &&
20792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20793 # have to relink, otherwise we might link with an installed library
20794 # when we should be linking with a yet-to-be-installed one
20795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20796 test "$hardcode_minus_L_CXX" != no; then
20797 # Linking always hardcodes the temporary library directory.
20798 hardcode_action_CXX=relink
20799 else
20800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20801 hardcode_action_CXX=immediate
20802 fi
20803else
20804 # We cannot hardcode anything, or else we can only hardcode existing
20805 # directories.
20806 hardcode_action_CXX=unsupported
20807fi
Reid Spencera773bd52006-08-04 18:18:08 +000020808{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20809echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020810
20811if test "$hardcode_action_CXX" = relink; then
20812 # Fast installation is not supported
20813 enable_fast_install=no
20814elif test "$shlibpath_overrides_runpath" = yes ||
20815 test "$enable_shared" = no; then
20816 # Fast installation is not necessary
20817 enable_fast_install=needless
20818fi
20819
John Criswell47fdd832003-07-14 16:52:07 +000020820
20821# The else clause should only fire when bootstrapping the
20822# libtool distribution, otherwise you forgot to ship ltmain.sh
20823# with your package, and you will get complaints that there are
20824# no rules to generate ltmain.sh.
20825if test -f "$ltmain"; then
20826 # See if we are running on zsh, and set the options which allow our commands through
20827 # without removal of \ escapes.
20828 if test -n "${ZSH_VERSION+set}" ; then
20829 setopt NO_GLOB_SUBST
20830 fi
20831 # Now quote all the things that may contain metacharacters while being
20832 # careful not to overquote the AC_SUBSTed values. We take copies of the
20833 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020834 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 +000020835 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20838 deplibs_check_method reload_flag reload_cmds need_locks \
20839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20840 lt_cv_sys_global_symbol_to_c_name_address \
20841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20842 old_postinstall_cmds old_postuninstall_cmds \
20843 compiler_CXX \
20844 CC_CXX \
20845 LD_CXX \
20846 lt_prog_compiler_wl_CXX \
20847 lt_prog_compiler_pic_CXX \
20848 lt_prog_compiler_static_CXX \
20849 lt_prog_compiler_no_builtin_flag_CXX \
20850 export_dynamic_flag_spec_CXX \
20851 thread_safe_flag_spec_CXX \
20852 whole_archive_flag_spec_CXX \
20853 enable_shared_with_static_runtimes_CXX \
20854 old_archive_cmds_CXX \
20855 old_archive_from_new_cmds_CXX \
20856 predep_objects_CXX \
20857 postdep_objects_CXX \
20858 predeps_CXX \
20859 postdeps_CXX \
20860 compiler_lib_search_path_CXX \
20861 archive_cmds_CXX \
20862 archive_expsym_cmds_CXX \
20863 postinstall_cmds_CXX \
20864 postuninstall_cmds_CXX \
20865 old_archive_from_expsyms_cmds_CXX \
20866 allow_undefined_flag_CXX \
20867 no_undefined_flag_CXX \
20868 export_symbols_cmds_CXX \
20869 hardcode_libdir_flag_spec_CXX \
20870 hardcode_libdir_flag_spec_ld_CXX \
20871 hardcode_libdir_separator_CXX \
20872 hardcode_automatic_CXX \
20873 module_cmds_CXX \
20874 module_expsym_cmds_CXX \
20875 lt_cv_prog_compiler_c_o_CXX \
20876 exclude_expsyms_CXX \
20877 include_expsyms_CXX; do
20878
20879 case $var in
20880 old_archive_cmds_CXX | \
20881 old_archive_from_new_cmds_CXX | \
20882 archive_cmds_CXX | \
20883 archive_expsym_cmds_CXX | \
20884 module_cmds_CXX | \
20885 module_expsym_cmds_CXX | \
20886 old_archive_from_expsyms_cmds_CXX | \
20887 export_symbols_cmds_CXX | \
20888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20889 postinstall_cmds | postuninstall_cmds | \
20890 old_postinstall_cmds | old_postuninstall_cmds | \
20891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20892 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020893 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 +000020894 ;;
20895 *)
20896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20897 ;;
20898 esac
20899 done
20900
20901 case $lt_echo in
20902 *'\$0 --fallback-echo"')
20903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20904 ;;
20905 esac
20906
20907cfgfile="$ofile"
20908
20909 cat <<__EOF__ >> "$cfgfile"
20910# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20911
20912# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20913
20914# Shell to use when invoking shell scripts.
20915SHELL=$lt_SHELL
20916
20917# Whether or not to build shared libraries.
20918build_libtool_libs=$enable_shared
20919
20920# Whether or not to build static libraries.
20921build_old_libs=$enable_static
20922
20923# Whether or not to add -lc for building shared libraries.
20924build_libtool_need_lc=$archive_cmds_need_lc_CXX
20925
20926# Whether or not to disallow shared libs when runtime libs are static
20927allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20928
20929# Whether or not to optimize for fast installation.
20930fast_install=$enable_fast_install
20931
20932# The host system.
20933host_alias=$host_alias
20934host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020935host_os=$host_os
20936
20937# The build system.
20938build_alias=$build_alias
20939build=$build
20940build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020941
20942# An echo program that does not interpret backslashes.
20943echo=$lt_echo
20944
20945# The archiver.
20946AR=$lt_AR
20947AR_FLAGS=$lt_AR_FLAGS
20948
20949# A C compiler.
20950LTCC=$lt_LTCC
20951
Reid Spencera773bd52006-08-04 18:18:08 +000020952# LTCC compiler flags.
20953LTCFLAGS=$lt_LTCFLAGS
20954
John Criswell47fdd832003-07-14 16:52:07 +000020955# A language-specific compiler.
20956CC=$lt_compiler_CXX
20957
20958# Is the compiler the GNU C compiler?
20959with_gcc=$GCC_CXX
20960
20961# An ERE matcher.
20962EGREP=$lt_EGREP
20963
20964# The linker used to build libraries.
20965LD=$lt_LD_CXX
20966
20967# Whether we need hard or soft links.
20968LN_S=$lt_LN_S
20969
20970# A BSD-compatible nm program.
20971NM=$lt_NM
20972
20973# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020974STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020975
20976# Used to examine libraries when file_magic_cmd begins "file"
20977MAGIC_CMD=$MAGIC_CMD
20978
20979# Used on cygwin: DLL creation program.
20980DLLTOOL="$DLLTOOL"
20981
20982# Used on cygwin: object dumper.
20983OBJDUMP="$OBJDUMP"
20984
20985# Used on cygwin: assembler.
20986AS="$AS"
20987
20988# The name of the directory that contains temporary libtool files.
20989objdir=$objdir
20990
20991# How to create reloadable object files.
20992reload_flag=$lt_reload_flag
20993reload_cmds=$lt_reload_cmds
20994
20995# How to pass a linker flag through the compiler.
20996wl=$lt_lt_prog_compiler_wl_CXX
20997
20998# Object file suffix (normally "o").
20999objext="$ac_objext"
21000
21001# Old archive suffix (normally "a").
21002libext="$libext"
21003
21004# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021005shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021006
21007# Executable file suffix (normally "").
21008exeext="$exeext"
21009
21010# Additional compiler flags for building library objects.
21011pic_flag=$lt_lt_prog_compiler_pic_CXX
21012pic_mode=$pic_mode
21013
21014# What is the maximum length of a command?
21015max_cmd_len=$lt_cv_sys_max_cmd_len
21016
21017# Does compiler simultaneously support -c and -o options?
21018compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21019
Reid Spencera773bd52006-08-04 18:18:08 +000021020# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021021need_locks=$lt_need_locks
21022
21023# Do we need the lib prefix for modules?
21024need_lib_prefix=$need_lib_prefix
21025
21026# Do we need a version for libraries?
21027need_version=$need_version
21028
21029# Whether dlopen is supported.
21030dlopen_support=$enable_dlopen
21031
21032# Whether dlopen of programs is supported.
21033dlopen_self=$enable_dlopen_self
21034
21035# Whether dlopen of statically linked programs is supported.
21036dlopen_self_static=$enable_dlopen_self_static
21037
21038# Compiler flag to prevent dynamic linking.
21039link_static_flag=$lt_lt_prog_compiler_static_CXX
21040
21041# Compiler flag to turn off builtin functions.
21042no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21043
21044# Compiler flag to allow reflexive dlopens.
21045export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21046
21047# Compiler flag to generate shared objects directly from archives.
21048whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21049
21050# Compiler flag to generate thread-safe objects.
21051thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21052
21053# Library versioning type.
21054version_type=$version_type
21055
21056# Format of library name prefix.
21057libname_spec=$lt_libname_spec
21058
21059# List of archive names. First name is the real one, the rest are links.
21060# The last name is the one that the linker finds with -lNAME.
21061library_names_spec=$lt_library_names_spec
21062
21063# The coded name of the library, if different from the real name.
21064soname_spec=$lt_soname_spec
21065
21066# Commands used to build and install an old-style archive.
21067RANLIB=$lt_RANLIB
21068old_archive_cmds=$lt_old_archive_cmds_CXX
21069old_postinstall_cmds=$lt_old_postinstall_cmds
21070old_postuninstall_cmds=$lt_old_postuninstall_cmds
21071
21072# Create an old-style archive from a shared archive.
21073old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21074
21075# Create a temporary old-style archive to link instead of a shared archive.
21076old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21077
21078# Commands used to build and install a shared archive.
21079archive_cmds=$lt_archive_cmds_CXX
21080archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21081postinstall_cmds=$lt_postinstall_cmds
21082postuninstall_cmds=$lt_postuninstall_cmds
21083
21084# Commands used to build a loadable module (assumed same as above if empty)
21085module_cmds=$lt_module_cmds_CXX
21086module_expsym_cmds=$lt_module_expsym_cmds_CXX
21087
21088# Commands to strip libraries.
21089old_striplib=$lt_old_striplib
21090striplib=$lt_striplib
21091
21092# Dependencies to place before the objects being linked to create a
21093# shared library.
21094predep_objects=$lt_predep_objects_CXX
21095
21096# Dependencies to place after the objects being linked to create a
21097# shared library.
21098postdep_objects=$lt_postdep_objects_CXX
21099
21100# Dependencies to place before the objects being linked to create a
21101# shared library.
21102predeps=$lt_predeps_CXX
21103
21104# Dependencies to place after the objects being linked to create a
21105# shared library.
21106postdeps=$lt_postdeps_CXX
21107
21108# The library search path used internally by the compiler when linking
21109# a shared library.
21110compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21111
21112# Method to check whether dependent libraries are shared objects.
21113deplibs_check_method=$lt_deplibs_check_method
21114
21115# Command to use when deplibs_check_method == file_magic.
21116file_magic_cmd=$lt_file_magic_cmd
21117
21118# Flag that allows shared libraries with undefined symbols to be built.
21119allow_undefined_flag=$lt_allow_undefined_flag_CXX
21120
21121# Flag that forces no undefined symbols.
21122no_undefined_flag=$lt_no_undefined_flag_CXX
21123
21124# Commands used to finish a libtool library installation in a directory.
21125finish_cmds=$lt_finish_cmds
21126
21127# Same as above, but a single script fragment to be evaled but not shown.
21128finish_eval=$lt_finish_eval
21129
21130# Take the output of nm and produce a listing of raw symbols and C names.
21131global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21132
21133# Transform the output of nm in a proper C declaration
21134global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21135
21136# Transform the output of nm in a C name address pair
21137global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21138
21139# This is the shared library runtime path variable.
21140runpath_var=$runpath_var
21141
21142# This is the shared library path variable.
21143shlibpath_var=$shlibpath_var
21144
21145# Is shlibpath searched before the hard-coded library search path?
21146shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21147
21148# How to hardcode a shared library path into an executable.
21149hardcode_action=$hardcode_action_CXX
21150
21151# Whether we should hardcode library paths into libraries.
21152hardcode_into_libs=$hardcode_into_libs
21153
21154# Flag to hardcode \$libdir into a binary during linking.
21155# This must work even if \$libdir does not exist.
21156hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21157
21158# If ld is used when linking, flag to hardcode \$libdir into
21159# a binary during linking. This must work even if \$libdir does
21160# not exist.
21161hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21162
21163# Whether we need a single -rpath flag with a separated argument.
21164hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21165
21166# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21167# resulting binary.
21168hardcode_direct=$hardcode_direct_CXX
21169
21170# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21171# resulting binary.
21172hardcode_minus_L=$hardcode_minus_L_CXX
21173
21174# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21175# the resulting binary.
21176hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21177
21178# Set to yes if building a shared library automatically hardcodes DIR into the library
21179# and all subsequent libraries and executables linked against it.
21180hardcode_automatic=$hardcode_automatic_CXX
21181
21182# Variables whose values should be saved in libtool wrapper scripts and
21183# restored at relink time.
21184variables_saved_for_relink="$variables_saved_for_relink"
21185
21186# Whether libtool must link a program against all its dependency libraries.
21187link_all_deplibs=$link_all_deplibs_CXX
21188
21189# Compile-time system search path for libraries
21190sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21191
21192# Run-time system search path for libraries
21193sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21194
21195# Fix the shell variable \$srcfile for the compiler.
21196fix_srcfile_path="$fix_srcfile_path_CXX"
21197
21198# Set to yes if exported symbols are required.
21199always_export_symbols=$always_export_symbols_CXX
21200
21201# The commands to list exported symbols.
21202export_symbols_cmds=$lt_export_symbols_cmds_CXX
21203
21204# The commands to extract the exported symbol list from a shared archive.
21205extract_expsyms_cmds=$lt_extract_expsyms_cmds
21206
21207# Symbols that should not be listed in the preloaded symbols.
21208exclude_expsyms=$lt_exclude_expsyms_CXX
21209
21210# Symbols that must always be exported.
21211include_expsyms=$lt_include_expsyms_CXX
21212
21213# ### END LIBTOOL TAG CONFIG: $tagname
21214
21215__EOF__
21216
21217
21218else
21219 # If there is no Makefile yet, we rely on a make rule to execute
21220 # `config.status --recheck' to rerun these tests and create the
21221 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021222 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21223 if test -f "$ltmain_in"; then
21224 test -f Makefile && make "$ltmain"
21225 fi
John Criswell47fdd832003-07-14 16:52:07 +000021226fi
21227
21228
21229ac_ext=c
21230ac_cpp='$CPP $CPPFLAGS'
21231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233ac_compiler_gnu=$ac_cv_c_compiler_gnu
21234
21235CC=$lt_save_CC
21236LDCXX=$LD
21237LD=$lt_save_LD
21238GCC=$lt_save_GCC
21239with_gnu_ldcxx=$with_gnu_ld
21240with_gnu_ld=$lt_save_with_gnu_ld
21241lt_cv_path_LDCXX=$lt_cv_path_LD
21242lt_cv_path_LD=$lt_save_path_LD
21243lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21244lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21245
21246 else
21247 tagname=""
21248 fi
21249 ;;
21250
21251 F77)
21252 if test -n "$F77" && test "X$F77" != "Xno"; then
21253
21254ac_ext=f
21255ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21256ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21258
21259
21260archive_cmds_need_lc_F77=no
21261allow_undefined_flag_F77=
21262always_export_symbols_F77=no
21263archive_expsym_cmds_F77=
21264export_dynamic_flag_spec_F77=
21265hardcode_direct_F77=no
21266hardcode_libdir_flag_spec_F77=
21267hardcode_libdir_flag_spec_ld_F77=
21268hardcode_libdir_separator_F77=
21269hardcode_minus_L_F77=no
21270hardcode_automatic_F77=no
21271module_cmds_F77=
21272module_expsym_cmds_F77=
21273link_all_deplibs_F77=unknown
21274old_archive_cmds_F77=$old_archive_cmds
21275no_undefined_flag_F77=
21276whole_archive_flag_spec_F77=
21277enable_shared_with_static_runtimes_F77=no
21278
21279# Source file extension for f77 test sources.
21280ac_ext=f
21281
21282# Object file extension for compiled f77 test sources.
21283objext=o
21284objext_F77=$objext
21285
21286# Code to be used in simple compile tests
21287lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21288
21289# Code to be used in simple link tests
21290lt_simple_link_test_code=" program t\n end\n"
21291
21292# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21293
21294# If no C compiler was specified, use CC.
21295LTCC=${LTCC-"$CC"}
21296
Reid Spencera773bd52006-08-04 18:18:08 +000021297# If no C compiler flags were specified, use CFLAGS.
21298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21299
John Criswell47fdd832003-07-14 16:52:07 +000021300# Allow CC to be a program name with arguments.
21301compiler=$CC
21302
21303
Reid Spencera773bd52006-08-04 18:18:08 +000021304# save warnings/boilerplate of simple test code
21305ac_outfile=conftest.$ac_objext
21306printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21307eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21308_lt_compiler_boilerplate=`cat conftest.err`
21309$rm conftest*
21310
21311ac_outfile=conftest.$ac_objext
21312printf "$lt_simple_link_test_code" >conftest.$ac_ext
21313eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21314_lt_linker_boilerplate=`cat conftest.err`
21315$rm conftest*
21316
21317
John Criswell47fdd832003-07-14 16:52:07 +000021318# Allow CC to be a program name with arguments.
21319lt_save_CC="$CC"
21320CC=${F77-"f77"}
21321compiler=$CC
21322compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021323for cc_temp in $compiler""; do
21324 case $cc_temp in
21325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21327 \-*) ;;
21328 *) break;;
21329 esac
21330done
21331cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021332
John Criswell47fdd832003-07-14 16:52:07 +000021333
Reid Spencera773bd52006-08-04 18:18:08 +000021334{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21335echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21336{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21337echo "${ECHO_T}$can_build_shared" >&6; }
21338
21339{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21340echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021341test "$can_build_shared" = "no" && enable_shared=no
21342
21343# On AIX, shared libraries and static libraries use the same namespace, and
21344# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021345case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021346aix3*)
21347 test "$enable_shared" = yes && enable_static=no
21348 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021350 postinstall_cmds='$RANLIB $lib'
21351 fi
21352 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021353aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21355 test "$enable_shared" = yes && enable_static=no
21356 fi
John Criswell47fdd832003-07-14 16:52:07 +000021357 ;;
21358esac
Reid Spencera773bd52006-08-04 18:18:08 +000021359{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21360echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021361
Reid Spencera773bd52006-08-04 18:18:08 +000021362{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21363echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021364# Make sure either enable_shared or enable_static is yes.
21365test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021366{ echo "$as_me:$LINENO: result: $enable_static" >&5
21367echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021368
21369GCC_F77="$G77"
21370LD_F77="$LD"
21371
21372lt_prog_compiler_wl_F77=
21373lt_prog_compiler_pic_F77=
21374lt_prog_compiler_static_F77=
21375
Reid Spencera773bd52006-08-04 18:18:08 +000021376{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21377echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021378
21379 if test "$GCC" = yes; then
21380 lt_prog_compiler_wl_F77='-Wl,'
21381 lt_prog_compiler_static_F77='-static'
21382
21383 case $host_os in
21384 aix*)
21385 # All AIX code is PIC.
21386 if test "$host_cpu" = ia64; then
21387 # AIX 5 now supports IA64 processor
21388 lt_prog_compiler_static_F77='-Bstatic'
21389 fi
21390 ;;
21391
21392 amigaos*)
21393 # FIXME: we need at least 68020 code to build shared libraries, but
21394 # adding the `-m68020' flag to GCC prevents building anything better,
21395 # like `-m68040'.
21396 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21397 ;;
21398
21399 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21400 # PIC is the default for these OSes.
21401 ;;
21402
21403 mingw* | pw32* | os2*)
21404 # This hack is so that the source file can tell whether it is being
21405 # built for inclusion in a dll (and should export symbols for example).
21406 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21407 ;;
21408
21409 darwin* | rhapsody*)
21410 # PIC is the default on this platform
21411 # Common symbols not allowed in MH_DYLIB files
21412 lt_prog_compiler_pic_F77='-fno-common'
21413 ;;
21414
Reid Spencera773bd52006-08-04 18:18:08 +000021415 interix3*)
21416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21417 # Instead, we relocate shared libraries at runtime.
21418 ;;
21419
John Criswell47fdd832003-07-14 16:52:07 +000021420 msdosdjgpp*)
21421 # Just because we use GCC doesn't mean we suddenly get shared libraries
21422 # on systems that don't support them.
21423 lt_prog_compiler_can_build_shared_F77=no
21424 enable_shared=no
21425 ;;
21426
21427 sysv4*MP*)
21428 if test -d /usr/nec; then
21429 lt_prog_compiler_pic_F77=-Kconform_pic
21430 fi
21431 ;;
21432
21433 hpux*)
21434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21435 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021436 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021437 hppa*64*|ia64*)
21438 # +Z the default
21439 ;;
21440 *)
21441 lt_prog_compiler_pic_F77='-fPIC'
21442 ;;
21443 esac
21444 ;;
21445
21446 *)
21447 lt_prog_compiler_pic_F77='-fPIC'
21448 ;;
21449 esac
21450 else
21451 # PORTME Check for flag to pass linker flags through the system compiler.
21452 case $host_os in
21453 aix*)
21454 lt_prog_compiler_wl_F77='-Wl,'
21455 if test "$host_cpu" = ia64; then
21456 # AIX 5 now supports IA64 processor
21457 lt_prog_compiler_static_F77='-Bstatic'
21458 else
21459 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21460 fi
21461 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021462 darwin*)
21463 # PIC is the default on this platform
21464 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021465 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021466 xlc*)
21467 lt_prog_compiler_pic_F77='-qnocommon'
21468 lt_prog_compiler_wl_F77='-Wl,'
21469 ;;
21470 esac
21471 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021472
21473 mingw* | pw32* | os2*)
21474 # This hack is so that the source file can tell whether it is being
21475 # built for inclusion in a dll (and should export symbols for example).
21476 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21477 ;;
21478
21479 hpux9* | hpux10* | hpux11*)
21480 lt_prog_compiler_wl_F77='-Wl,'
21481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21482 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021483 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021484 hppa*64*|ia64*)
21485 # +Z the default
21486 ;;
21487 *)
21488 lt_prog_compiler_pic_F77='+Z'
21489 ;;
21490 esac
21491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21492 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21493 ;;
21494
21495 irix5* | irix6* | nonstopux*)
21496 lt_prog_compiler_wl_F77='-Wl,'
21497 # PIC (with -KPIC) is the default.
21498 lt_prog_compiler_static_F77='-non_shared'
21499 ;;
21500
21501 newsos6)
21502 lt_prog_compiler_pic_F77='-KPIC'
21503 lt_prog_compiler_static_F77='-Bstatic'
21504 ;;
21505
21506 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021507 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021508 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021509 lt_prog_compiler_wl_F77='-Wl,'
21510 lt_prog_compiler_pic_F77='-KPIC'
21511 lt_prog_compiler_static_F77='-static'
21512 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021513 pgcc* | pgf77* | pgf90* | pgf95*)
21514 # Portland Group compilers (*not* the Pentium gcc compiler,
21515 # which looks to be a dead project)
21516 lt_prog_compiler_wl_F77='-Wl,'
21517 lt_prog_compiler_pic_F77='-fpic'
21518 lt_prog_compiler_static_F77='-Bstatic'
21519 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021520 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021521 lt_prog_compiler_wl_F77='-Wl,'
21522 # All Alpha code is PIC.
21523 lt_prog_compiler_static_F77='-non_shared'
21524 ;;
21525 esac
21526 ;;
21527
21528 osf3* | osf4* | osf5*)
21529 lt_prog_compiler_wl_F77='-Wl,'
21530 # All OSF/1 code is PIC.
21531 lt_prog_compiler_static_F77='-non_shared'
21532 ;;
21533
John Criswell47fdd832003-07-14 16:52:07 +000021534 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021535 lt_prog_compiler_pic_F77='-KPIC'
21536 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021537 case $cc_basename in
21538 f77* | f90* | f95*)
21539 lt_prog_compiler_wl_F77='-Qoption ld ';;
21540 *)
21541 lt_prog_compiler_wl_F77='-Wl,';;
21542 esac
John Criswell47fdd832003-07-14 16:52:07 +000021543 ;;
21544
21545 sunos4*)
21546 lt_prog_compiler_wl_F77='-Qoption ld '
21547 lt_prog_compiler_pic_F77='-PIC'
21548 lt_prog_compiler_static_F77='-Bstatic'
21549 ;;
21550
Reid Spencera773bd52006-08-04 18:18:08 +000021551 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021552 lt_prog_compiler_wl_F77='-Wl,'
21553 lt_prog_compiler_pic_F77='-KPIC'
21554 lt_prog_compiler_static_F77='-Bstatic'
21555 ;;
21556
21557 sysv4*MP*)
21558 if test -d /usr/nec ;then
21559 lt_prog_compiler_pic_F77='-Kconform_pic'
21560 lt_prog_compiler_static_F77='-Bstatic'
21561 fi
21562 ;;
21563
Reid Spencera773bd52006-08-04 18:18:08 +000021564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21565 lt_prog_compiler_wl_F77='-Wl,'
21566 lt_prog_compiler_pic_F77='-KPIC'
21567 lt_prog_compiler_static_F77='-Bstatic'
21568 ;;
21569
21570 unicos*)
21571 lt_prog_compiler_wl_F77='-Wl,'
21572 lt_prog_compiler_can_build_shared_F77=no
21573 ;;
21574
John Criswell47fdd832003-07-14 16:52:07 +000021575 uts4*)
21576 lt_prog_compiler_pic_F77='-pic'
21577 lt_prog_compiler_static_F77='-Bstatic'
21578 ;;
21579
21580 *)
21581 lt_prog_compiler_can_build_shared_F77=no
21582 ;;
21583 esac
21584 fi
21585
Reid Spencera773bd52006-08-04 18:18:08 +000021586{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21587echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021588
21589#
21590# Check to make sure the PIC flag actually works.
21591#
21592if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021593
Reid Spencera773bd52006-08-04 18:18:08 +000021594{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21595echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021596if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21598else
21599 lt_prog_compiler_pic_works_F77=no
21600 ac_outfile=conftest.$ac_objext
21601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21602 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21603 # Insert the option either (1) after the last *FLAGS variable, or
21604 # (2) before a word containing "conftest.", or (3) at the end.
21605 # Note that $ac_compile itself does not contain backslashes and begins
21606 # with a dollar sign (not a hyphen), so the echo should work correctly.
21607 # The option is referenced via a variable to avoid confusing sed.
21608 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21611 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000021612 (eval echo "\"\$as_me:21612: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021613 (eval "$lt_compile" 2>conftest.err)
21614 ac_status=$?
21615 cat conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000021616 echo "$as_me:21616: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021617 if (exit $ac_status) && test -s "$ac_outfile"; then
21618 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021619 # So say no if there are warnings other than the usual output.
21620 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21621 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21622 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021623 lt_prog_compiler_pic_works_F77=yes
21624 fi
21625 fi
21626 $rm conftest*
21627
21628fi
Reid Spencera773bd52006-08-04 18:18:08 +000021629{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21630echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021631
21632if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21633 case $lt_prog_compiler_pic_F77 in
21634 "" | " "*) ;;
21635 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21636 esac
21637else
21638 lt_prog_compiler_pic_F77=
21639 lt_prog_compiler_can_build_shared_F77=no
21640fi
21641
21642fi
Reid Spencera773bd52006-08-04 18:18:08 +000021643case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021644 # For platforms which do not support PIC, -DPIC is meaningless:
21645 *djgpp*)
21646 lt_prog_compiler_pic_F77=
21647 ;;
21648 *)
21649 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21650 ;;
21651esac
21652
Reid Spencera773bd52006-08-04 18:18:08 +000021653#
21654# Check to make sure the static flag actually works.
21655#
21656wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21657{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21658echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21659if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21661else
21662 lt_prog_compiler_static_works_F77=no
21663 save_LDFLAGS="$LDFLAGS"
21664 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21665 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21667 # The linker can only warn and ignore the option if not recognized
21668 # So say no if there are warnings
21669 if test -s conftest.err; then
21670 # Append any errors to the config.log.
21671 cat conftest.err 1>&5
21672 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21674 if diff conftest.exp conftest.er2 >/dev/null; then
21675 lt_prog_compiler_static_works_F77=yes
21676 fi
21677 else
21678 lt_prog_compiler_static_works_F77=yes
21679 fi
21680 fi
21681 $rm conftest*
21682 LDFLAGS="$save_LDFLAGS"
21683
21684fi
21685{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21686echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21687
21688if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21689 :
21690else
21691 lt_prog_compiler_static_F77=
21692fi
21693
21694
21695{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21696echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021697if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21699else
21700 lt_cv_prog_compiler_c_o_F77=no
21701 $rm -r conftest 2>/dev/null
21702 mkdir conftest
21703 cd conftest
21704 mkdir out
21705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21706
John Criswell47fdd832003-07-14 16:52:07 +000021707 lt_compiler_flag="-o out/conftest2.$ac_objext"
21708 # Insert the option either (1) after the last *FLAGS variable, or
21709 # (2) before a word containing "conftest.", or (3) at the end.
21710 # Note that $ac_compile itself does not contain backslashes and begins
21711 # with a dollar sign (not a hyphen), so the echo should work correctly.
21712 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21715 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000021716 (eval echo "\"\$as_me:21716: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021717 (eval "$lt_compile" 2>out/conftest.err)
21718 ac_status=$?
21719 cat out/conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000021720 echo "$as_me:21720: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21722 then
21723 # The compiler can only warn and ignore the option if not recognized
21724 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021728 lt_cv_prog_compiler_c_o_F77=yes
21729 fi
21730 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021731 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021732 $rm conftest*
21733 # SGI C++ compiler will create directory out/ii_files/ for
21734 # template instantiation
21735 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21736 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021737 cd ..
21738 rmdir conftest
21739 $rm conftest*
21740
21741fi
Reid Spencera773bd52006-08-04 18:18:08 +000021742{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21743echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021744
21745
21746hard_links="nottested"
21747if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21748 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021749 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21750echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021751 hard_links=yes
21752 $rm conftest*
21753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21754 touch conftest.a
21755 ln conftest.a conftest.b 2>&5 || hard_links=no
21756 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021757 { echo "$as_me:$LINENO: result: $hard_links" >&5
21758echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021759 if test "$hard_links" = no; then
21760 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21761echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21762 need_locks=warn
21763 fi
21764else
21765 need_locks=no
21766fi
21767
Reid Spencera773bd52006-08-04 18:18:08 +000021768{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21769echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021770
21771 runpath_var=
21772 allow_undefined_flag_F77=
21773 enable_shared_with_static_runtimes_F77=no
21774 archive_cmds_F77=
21775 archive_expsym_cmds_F77=
21776 old_archive_From_new_cmds_F77=
21777 old_archive_from_expsyms_cmds_F77=
21778 export_dynamic_flag_spec_F77=
21779 whole_archive_flag_spec_F77=
21780 thread_safe_flag_spec_F77=
21781 hardcode_libdir_flag_spec_F77=
21782 hardcode_libdir_flag_spec_ld_F77=
21783 hardcode_libdir_separator_F77=
21784 hardcode_direct_F77=no
21785 hardcode_minus_L_F77=no
21786 hardcode_shlibpath_var_F77=unsupported
21787 link_all_deplibs_F77=unknown
21788 hardcode_automatic_F77=no
21789 module_cmds_F77=
21790 module_expsym_cmds_F77=
21791 always_export_symbols_F77=no
21792 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21793 # include_expsyms should be a list of space-separated symbols to be *always*
21794 # included in the symbol list
21795 include_expsyms_F77=
21796 # exclude_expsyms can be an extended regexp of symbols to exclude
21797 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21798 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21799 # as well as any symbol that contains `d'.
21800 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21802 # platforms (ab)use it in PIC code, but their linkers get confused if
21803 # the symbol is explicitly referenced. Since portable code cannot
21804 # rely on this symbol name, it's probably fine to never include it in
21805 # preloaded symbol tables.
21806 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021807 # Just being paranoid about ensuring that cc_basename is set.
21808 for cc_temp in $compiler""; do
21809 case $cc_temp in
21810 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21811 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21812 \-*) ;;
21813 *) break;;
21814 esac
21815done
21816cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021817
21818 case $host_os in
21819 cygwin* | mingw* | pw32*)
21820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21821 # When not using gcc, we currently assume that we are using
21822 # Microsoft Visual C++.
21823 if test "$GCC" != yes; then
21824 with_gnu_ld=no
21825 fi
21826 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021827 interix*)
21828 # we just hope/assume this is gcc and not c89 (= MSVC++)
21829 with_gnu_ld=yes
21830 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021831 openbsd*)
21832 with_gnu_ld=no
21833 ;;
21834 esac
21835
21836 ld_shlibs_F77=yes
21837 if test "$with_gnu_ld" = yes; then
21838 # If archive_cmds runs LD, not CC, wlarc should be empty
21839 wlarc='${wl}'
21840
Reid Spencera773bd52006-08-04 18:18:08 +000021841 # Set some defaults for GNU ld with shared library support. These
21842 # are reset later if shared libraries are not supported. Putting them
21843 # here allows them to be overridden if necessary.
21844 runpath_var=LD_RUN_PATH
21845 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21846 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21847 # ancient GNU ld didn't support --whole-archive et. al.
21848 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21849 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21850 else
21851 whole_archive_flag_spec_F77=
21852 fi
21853 supports_anon_versioning=no
21854 case `$LD -v 2>/dev/null` in
21855 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21856 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21857 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21858 *\ 2.11.*) ;; # other 2.11 versions
21859 *) supports_anon_versioning=yes ;;
21860 esac
21861
John Criswell47fdd832003-07-14 16:52:07 +000021862 # See if GNU ld supports shared libraries.
21863 case $host_os in
21864 aix3* | aix4* | aix5*)
21865 # On AIX/PPC, the GNU linker is very broken
21866 if test "$host_cpu" != ia64; then
21867 ld_shlibs_F77=no
21868 cat <<EOF 1>&2
21869
21870*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21871*** to be unable to reliably create shared libraries on AIX.
21872*** Therefore, libtool is disabling shared libraries support. If you
21873*** really care for shared libraries, you may want to modify your PATH
21874*** so that a non-GNU linker is found, and then restart.
21875
21876EOF
21877 fi
21878 ;;
21879
21880 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021881 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 +000021882 hardcode_libdir_flag_spec_F77='-L$libdir'
21883 hardcode_minus_L_F77=yes
21884
21885 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21886 # that the semantics of dynamic libraries on AmigaOS, at least up
21887 # to version 4, is to share data among multiple programs linked
21888 # with the same dynamic library. Since this doesn't match the
21889 # behavior of shared libraries on other platforms, we can't use
21890 # them.
21891 ld_shlibs_F77=no
21892 ;;
21893
21894 beos*)
21895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21896 allow_undefined_flag_F77=unsupported
21897 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21898 # support --undefined. This deserves some investigation. FIXME
21899 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21900 else
21901 ld_shlibs_F77=no
21902 fi
21903 ;;
21904
21905 cygwin* | mingw* | pw32*)
21906 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21907 # as there is no search path for DLLs.
21908 hardcode_libdir_flag_spec_F77='-L$libdir'
21909 allow_undefined_flag_F77=unsupported
21910 always_export_symbols_F77=no
21911 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021912 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 +000021913
21914 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021915 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 +000021916 # If the export-symbols file already is a .def file (1st line
21917 # is EXPORTS), use it as is; otherwise, prepend...
21918 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21919 cp $export_symbols $output_objdir/$soname.def;
21920 else
21921 echo EXPORTS > $output_objdir/$soname.def;
21922 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021923 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021924 $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 +000021925 else
Reid Spencera773bd52006-08-04 18:18:08 +000021926 ld_shlibs_F77=no
21927 fi
21928 ;;
21929
21930 interix3*)
21931 hardcode_direct_F77=no
21932 hardcode_shlibpath_var_F77=no
21933 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21934 export_dynamic_flag_spec_F77='${wl}-E'
21935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21936 # Instead, shared libraries are loaded at an image base (0x10000000 by
21937 # default) and relocated if they conflict, which is a slow very memory
21938 # consuming and fragmenting process. To avoid this, we pick a random,
21939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21941 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'
21942 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'
21943 ;;
21944
21945 linux*)
21946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21947 tmp_addflag=
21948 case $cc_basename,$host_cpu in
21949 pgcc*) # Portland Group C compiler
21950 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'
21951 tmp_addflag=' $pic_flag'
21952 ;;
21953 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21954 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'
21955 tmp_addflag=' $pic_flag -Mnomain' ;;
21956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21957 tmp_addflag=' -i_dynamic' ;;
21958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21959 tmp_addflag=' -i_dynamic -nofor_main' ;;
21960 ifc* | ifort*) # Intel Fortran compiler
21961 tmp_addflag=' -nofor_main' ;;
21962 esac
21963 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21964
21965 if test $supports_anon_versioning = yes; then
21966 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21968 $echo "local: *; };" >> $output_objdir/$libname.ver~
21969 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21970 fi
21971 else
21972 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021973 fi
21974 ;;
21975
21976 netbsd*)
21977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21978 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21979 wlarc=
21980 else
21981 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21982 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21983 fi
21984 ;;
21985
Reid Spencera773bd52006-08-04 18:18:08 +000021986 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021987 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21988 ld_shlibs_F77=no
21989 cat <<EOF 1>&2
21990
21991*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21992*** create shared libraries on Solaris systems. Therefore, libtool
21993*** is disabling shared libraries support. We urge you to upgrade GNU
21994*** binutils to release 2.9.1 or newer. Another option is to modify
21995*** your PATH or compiler configuration so that the native linker is
21996*** used, and then restart.
21997
21998EOF
21999 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22000 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22001 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22002 else
22003 ld_shlibs_F77=no
22004 fi
22005 ;;
22006
Reid Spencera773bd52006-08-04 18:18:08 +000022007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22008 case `$LD -v 2>&1` in
22009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22010 ld_shlibs_F77=no
22011 cat <<_LT_EOF 1>&2
22012
22013*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22014*** reliably create shared libraries on SCO systems. Therefore, libtool
22015*** is disabling shared libraries support. We urge you to upgrade GNU
22016*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22017*** your PATH or compiler configuration so that the native linker is
22018*** used, and then restart.
22019
22020_LT_EOF
22021 ;;
22022 *)
22023 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22024 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22025 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22026 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22027 else
22028 ld_shlibs_F77=no
22029 fi
22030 ;;
22031 esac
22032 ;;
22033
John Criswell47fdd832003-07-14 16:52:07 +000022034 sunos4*)
22035 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22036 wlarc=
22037 hardcode_direct_F77=yes
22038 hardcode_shlibpath_var_F77=no
22039 ;;
22040
22041 *)
22042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22043 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22044 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22045 else
22046 ld_shlibs_F77=no
22047 fi
22048 ;;
22049 esac
22050
Reid Spencera773bd52006-08-04 18:18:08 +000022051 if test "$ld_shlibs_F77" = no; then
22052 runpath_var=
22053 hardcode_libdir_flag_spec_F77=
22054 export_dynamic_flag_spec_F77=
22055 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022056 fi
22057 else
22058 # PORTME fill in a description of your system's linker (not GNU ld)
22059 case $host_os in
22060 aix3*)
22061 allow_undefined_flag_F77=unsupported
22062 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022063 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 +000022064 # Note: this linker hardcodes the directories in LIBPATH if there
22065 # are no directories specified by -L.
22066 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022067 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022068 # Neither direct hardcoding nor static linking is supported with a
22069 # broken collect2.
22070 hardcode_direct_F77=unsupported
22071 fi
22072 ;;
22073
22074 aix4* | aix5*)
22075 if test "$host_cpu" = ia64; then
22076 # On IA64, the linker does run time linking by default, so we don't
22077 # have to do anything special.
22078 aix_use_runtimelinking=no
22079 exp_sym_flag='-Bexport'
22080 no_entry_flag=""
22081 else
22082 # If we're using GNU nm, then we don't want the "-C" option.
22083 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22084 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22085 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'
22086 else
22087 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'
22088 fi
22089 aix_use_runtimelinking=no
22090
22091 # Test if we are trying to use run time linking or normal
22092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22093 # need to do runtime linking.
22094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22095 for ld_flag in $LDFLAGS; do
22096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22097 aix_use_runtimelinking=yes
22098 break
22099 fi
22100 done
Reid Spencera773bd52006-08-04 18:18:08 +000022101 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022102 esac
22103
22104 exp_sym_flag='-bexport'
22105 no_entry_flag='-bnoentry'
22106 fi
22107
22108 # When large executables or shared objects are built, AIX ld can
22109 # have problems creating the table of contents. If linking a library
22110 # or program results in "error TOC overflow" add -mminimal-toc to
22111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22113
22114 archive_cmds_F77=''
22115 hardcode_direct_F77=yes
22116 hardcode_libdir_separator_F77=':'
22117 link_all_deplibs_F77=yes
22118
22119 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022120 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022121 # We only want to do this on AIX 4.2 and lower, the check
22122 # below for broken collect2 doesn't work under 4.3+
22123 collect2name=`${CC} -print-prog-name=collect2`
22124 if test -f "$collect2name" && \
22125 strings "$collect2name" | grep resolve_lib_name >/dev/null
22126 then
22127 # We have reworked collect2
22128 hardcode_direct_F77=yes
22129 else
22130 # We have old collect2
22131 hardcode_direct_F77=unsupported
22132 # It fails to find uninstalled libraries when the uninstalled
22133 # path is not listed in the libpath. Setting hardcode_minus_L
22134 # to unsupported forces relinking
22135 hardcode_minus_L_F77=yes
22136 hardcode_libdir_flag_spec_F77='-L$libdir'
22137 hardcode_libdir_separator_F77=
22138 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022139 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022140 esac
22141 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022142 if test "$aix_use_runtimelinking" = yes; then
22143 shared_flag="$shared_flag "'${wl}-G'
22144 fi
John Criswell47fdd832003-07-14 16:52:07 +000022145 else
22146 # not using gcc
22147 if test "$host_cpu" = ia64; then
22148 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22149 # chokes on -Wl,-G. The following line is correct:
22150 shared_flag='-G'
22151 else
Reid Spencera773bd52006-08-04 18:18:08 +000022152 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022153 shared_flag='${wl}-G'
22154 else
22155 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022156 fi
John Criswell47fdd832003-07-14 16:52:07 +000022157 fi
22158 fi
22159
22160 # It seems that -bexpall does not export symbols beginning with
22161 # underscore (_), so it is better to generate a list of symbols to export.
22162 always_export_symbols_F77=yes
22163 if test "$aix_use_runtimelinking" = yes; then
22164 # Warning - without using the other runtime loading flags (-brtl),
22165 # -berok will link without error, but may produce a broken library.
22166 allow_undefined_flag_F77='-berok'
22167 # Determine the default libpath from the value encoded in an empty executable.
22168 cat >conftest.$ac_ext <<_ACEOF
22169 program main
22170
22171 end
22172_ACEOF
22173rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022174if { (ac_try="$ac_link"
22175case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22178esac
22179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022181 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022182 grep -v '^ *+' conftest.er1 >conftest.err
22183 rm -f conftest.er1
22184 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022186 (exit $ac_status); } &&
22187 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22188 { (case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22191esac
22192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_try") 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; } &&
22197 { ac_try='test -s conftest$ac_exeext'
22198 { (case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22201esac
22202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_try") 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022207
22208aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22209}'`
22210# Check for a 64-bit object if we didn't find anything.
22211if 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; }
22212}'`; fi
22213else
22214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022215sed 's/^/| /' conftest.$ac_ext >&5
22216
Reid Spencera773bd52006-08-04 18:18:08 +000022217
John Criswell47fdd832003-07-14 16:52:07 +000022218fi
Reid Spencera773bd52006-08-04 18:18:08 +000022219
Tanya Lattnercf067672008-01-17 05:57:22 +000022220rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022221 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022222if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22223
22224 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022225 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 +000022226 else
22227 if test "$host_cpu" = ia64; then
22228 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22229 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022230 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 +000022231 else
22232 # Determine the default libpath from the value encoded in an empty executable.
22233 cat >conftest.$ac_ext <<_ACEOF
22234 program main
22235
22236 end
22237_ACEOF
22238rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022239if { (ac_try="$ac_link"
22240case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22243esac
22244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022247 grep -v '^ *+' conftest.er1 >conftest.err
22248 rm -f conftest.er1
22249 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022251 (exit $ac_status); } &&
22252 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22253 { (case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22256esac
22257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_try") 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest$ac_exeext'
22263 { (case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22266esac
22267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_try") 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022272
22273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22274}'`
22275# Check for a 64-bit object if we didn't find anything.
22276if 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; }
22277}'`; fi
22278else
22279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022280sed 's/^/| /' conftest.$ac_ext >&5
22281
Reid Spencera773bd52006-08-04 18:18:08 +000022282
John Criswell47fdd832003-07-14 16:52:07 +000022283fi
Reid Spencera773bd52006-08-04 18:18:08 +000022284
Tanya Lattnercf067672008-01-17 05:57:22 +000022285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022286 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22288
22289 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22290 # Warning - without using the other run time loading flags,
22291 # -berok will link without error, but may produce a broken library.
22292 no_undefined_flag_F77=' ${wl}-bernotok'
22293 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022294 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022295 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022296 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022297 # This is similar to how AIX traditionally builds its shared libraries.
22298 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 +000022299 fi
22300 fi
22301 ;;
22302
22303 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022304 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 +000022305 hardcode_libdir_flag_spec_F77='-L$libdir'
22306 hardcode_minus_L_F77=yes
22307 # see comment about different semantics on the GNU ld section
22308 ld_shlibs_F77=no
22309 ;;
22310
Reid Spencer2706f8c2004-09-19 23:53:36 +000022311 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022312 export_dynamic_flag_spec_F77=-rdynamic
22313 ;;
22314
22315 cygwin* | mingw* | pw32*)
22316 # When not using gcc, we currently assume that we are using
22317 # Microsoft Visual C++.
22318 # hardcode_libdir_flag_spec is actually meaningless, as there is
22319 # no search path for DLLs.
22320 hardcode_libdir_flag_spec_F77=' '
22321 allow_undefined_flag_F77=unsupported
22322 # Tell ltmain to make .lib files, not .a files.
22323 libext=lib
22324 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022325 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022326 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022327 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 +000022328 # The linker will automatically build a .lib file if we build a DLL.
22329 old_archive_From_new_cmds_F77='true'
22330 # FIXME: Should let the user specify the lib program.
22331 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022332 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022333 enable_shared_with_static_runtimes_F77=yes
22334 ;;
22335
22336 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022337 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022338 rhapsody* | darwin1.[012])
22339 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22340 ;;
22341 *) # Darwin 1.3 on
22342 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22343 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22344 else
22345 case ${MACOSX_DEPLOYMENT_TARGET} in
22346 10.[012])
22347 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22348 ;;
22349 10.*)
22350 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22351 ;;
22352 esac
22353 fi
22354 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022355 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022356 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022357 hardcode_direct_F77=no
22358 hardcode_automatic_F77=yes
22359 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022360 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022361 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022362 if test "$GCC" = yes ; then
22363 output_verbose_link_cmd='echo'
22364 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22365 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022366 # 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 +000022367 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}'
22368 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 +000022369 else
Reid Spencera773bd52006-08-04 18:18:08 +000022370 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022371 xlc*)
22372 output_verbose_link_cmd='echo'
22373 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22374 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022375 # 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 +000022376 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}'
22377 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 +000022378 ;;
22379 *)
22380 ld_shlibs_F77=no
22381 ;;
22382 esac
John Criswell47fdd832003-07-14 16:52:07 +000022383 fi
22384 ;;
22385
22386 dgux*)
22387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22388 hardcode_libdir_flag_spec_F77='-L$libdir'
22389 hardcode_shlibpath_var_F77=no
22390 ;;
22391
22392 freebsd1*)
22393 ld_shlibs_F77=no
22394 ;;
22395
22396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22397 # support. Future versions do this automatically, but an explicit c++rt0.o
22398 # does not break anything, and helps significantly (at the cost of a little
22399 # extra space).
22400 freebsd2.2*)
22401 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22402 hardcode_libdir_flag_spec_F77='-R$libdir'
22403 hardcode_direct_F77=yes
22404 hardcode_shlibpath_var_F77=no
22405 ;;
22406
22407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22408 freebsd2*)
22409 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22410 hardcode_direct_F77=yes
22411 hardcode_minus_L_F77=yes
22412 hardcode_shlibpath_var_F77=no
22413 ;;
22414
22415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022416 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022417 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22418 hardcode_libdir_flag_spec_F77='-R$libdir'
22419 hardcode_direct_F77=yes
22420 hardcode_shlibpath_var_F77=no
22421 ;;
22422
22423 hpux9*)
22424 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022425 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 +000022426 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022427 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 +000022428 fi
22429 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22430 hardcode_libdir_separator_F77=:
22431 hardcode_direct_F77=yes
22432
22433 # hardcode_minus_L: Not really in the search PATH,
22434 # but as the default location of the library.
22435 hardcode_minus_L_F77=yes
22436 export_dynamic_flag_spec_F77='${wl}-E'
22437 ;;
22438
Reid Spencera773bd52006-08-04 18:18:08 +000022439 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022441 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22442 else
22443 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22444 fi
22445 if test "$with_gnu_ld" = no; then
22446 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22447 hardcode_libdir_separator_F77=:
22448
22449 hardcode_direct_F77=yes
22450 export_dynamic_flag_spec_F77='${wl}-E'
22451
22452 # hardcode_minus_L: Not really in the search PATH,
22453 # but as the default location of the library.
22454 hardcode_minus_L_F77=yes
22455 fi
22456 ;;
22457
22458 hpux11*)
22459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22460 case $host_cpu in
22461 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022462 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022464 ia64*)
22465 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22466 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022467 *)
22468 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22469 ;;
22470 esac
22471 else
Reid Spencera773bd52006-08-04 18:18:08 +000022472 case $host_cpu in
22473 hppa*64*)
22474 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22475 ;;
22476 ia64*)
22477 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022478 ;;
22479 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022480 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 +000022481 ;;
22482 esac
22483 fi
22484 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022485 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22486 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022487
Reid Spencera773bd52006-08-04 18:18:08 +000022488 case $host_cpu in
22489 hppa*64*|ia64*)
22490 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22491 hardcode_direct_F77=no
22492 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022493 ;;
22494 *)
John Criswell47fdd832003-07-14 16:52:07 +000022495 hardcode_direct_F77=yes
22496 export_dynamic_flag_spec_F77='${wl}-E'
22497
22498 # hardcode_minus_L: Not really in the search PATH,
22499 # but as the default location of the library.
22500 hardcode_minus_L_F77=yes
22501 ;;
22502 esac
22503 fi
22504 ;;
22505
22506 irix5* | irix6* | nonstopux*)
22507 if test "$GCC" = yes; then
22508 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'
22509 else
22510 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'
22511 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22512 fi
22513 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22514 hardcode_libdir_separator_F77=:
22515 link_all_deplibs_F77=yes
22516 ;;
22517
22518 netbsd*)
22519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22520 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22521 else
22522 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22523 fi
22524 hardcode_libdir_flag_spec_F77='-R$libdir'
22525 hardcode_direct_F77=yes
22526 hardcode_shlibpath_var_F77=no
22527 ;;
22528
22529 newsos6)
22530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22531 hardcode_direct_F77=yes
22532 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22533 hardcode_libdir_separator_F77=:
22534 hardcode_shlibpath_var_F77=no
22535 ;;
22536
22537 openbsd*)
22538 hardcode_direct_F77=yes
22539 hardcode_shlibpath_var_F77=no
22540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22541 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022542 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 +000022543 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22544 export_dynamic_flag_spec_F77='${wl}-E'
22545 else
22546 case $host_os in
22547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22548 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22549 hardcode_libdir_flag_spec_F77='-R$libdir'
22550 ;;
22551 *)
22552 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22553 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22554 ;;
22555 esac
22556 fi
22557 ;;
22558
22559 os2*)
22560 hardcode_libdir_flag_spec_F77='-L$libdir'
22561 hardcode_minus_L_F77=yes
22562 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022563 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 +000022564 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22565 ;;
22566
22567 osf3*)
22568 if test "$GCC" = yes; then
22569 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22570 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'
22571 else
22572 allow_undefined_flag_F77=' -expect_unresolved \*'
22573 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'
22574 fi
22575 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22576 hardcode_libdir_separator_F77=:
22577 ;;
22578
22579 osf4* | osf5*) # as osf3* with the addition of -msym flag
22580 if test "$GCC" = yes; then
22581 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22582 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'
22583 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22584 else
22585 allow_undefined_flag_F77=' -expect_unresolved \*'
22586 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 +000022587 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 +000022588 $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 +000022589
John Criswell47fdd832003-07-14 16:52:07 +000022590 # Both c and cxx compiler support -rpath directly
22591 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22592 fi
22593 hardcode_libdir_separator_F77=:
22594 ;;
22595
John Criswell47fdd832003-07-14 16:52:07 +000022596 solaris*)
22597 no_undefined_flag_F77=' -z text'
22598 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022599 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022600 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022601 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22602 $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 +000022603 else
Reid Spencera773bd52006-08-04 18:18:08 +000022604 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022605 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022606 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22607 $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 +000022608 fi
22609 hardcode_libdir_flag_spec_F77='-R$libdir'
22610 hardcode_shlibpath_var_F77=no
22611 case $host_os in
22612 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022613 *)
22614 # The compiler driver will combine linker options so we
22615 # cannot just pass the convience library names through
22616 # without $wl, iff we do not link with $LD.
22617 # Luckily, gcc supports the same syntax we need for Sun Studio.
22618 # Supported since Solaris 2.6 (maybe 2.5.1?)
22619 case $wlarc in
22620 '')
22621 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22622 *)
22623 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' ;;
22624 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022625 esac
22626 link_all_deplibs_F77=yes
22627 ;;
22628
22629 sunos4*)
22630 if test "x$host_vendor" = xsequent; then
22631 # Use $CC to link under sequent, because it throws in some extra .o
22632 # files that make .init and .fini sections work.
22633 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22634 else
22635 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22636 fi
22637 hardcode_libdir_flag_spec_F77='-L$libdir'
22638 hardcode_direct_F77=yes
22639 hardcode_minus_L_F77=yes
22640 hardcode_shlibpath_var_F77=no
22641 ;;
22642
22643 sysv4)
22644 case $host_vendor in
22645 sni)
22646 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22647 hardcode_direct_F77=yes # is this really true???
22648 ;;
22649 siemens)
22650 ## LD is ld it makes a PLAMLIB
22651 ## CC just makes a GrossModule.
22652 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22653 reload_cmds_F77='$CC -r -o $output$reload_objs'
22654 hardcode_direct_F77=no
22655 ;;
22656 motorola)
22657 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22658 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22659 ;;
22660 esac
22661 runpath_var='LD_RUN_PATH'
22662 hardcode_shlibpath_var_F77=no
22663 ;;
22664
22665 sysv4.3*)
22666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22667 hardcode_shlibpath_var_F77=no
22668 export_dynamic_flag_spec_F77='-Bexport'
22669 ;;
22670
22671 sysv4*MP*)
22672 if test -d /usr/nec; then
22673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22674 hardcode_shlibpath_var_F77=no
22675 runpath_var=LD_RUN_PATH
22676 hardcode_runpath_var=yes
22677 ld_shlibs_F77=yes
22678 fi
22679 ;;
22680
Reid Spencera773bd52006-08-04 18:18:08 +000022681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22682 no_undefined_flag_F77='${wl}-z,text'
22683 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022684 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022685 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022686
John Criswell47fdd832003-07-14 16:52:07 +000022687 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022688 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22689 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 +000022690 else
Reid Spencera773bd52006-08-04 18:18:08 +000022691 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22692 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 +000022693 fi
John Criswell47fdd832003-07-14 16:52:07 +000022694 ;;
22695
Reid Spencera773bd52006-08-04 18:18:08 +000022696 sysv5* | sco3.2v5* | sco5v6*)
22697 # Note: We can NOT use -z defs as we might desire, because we do not
22698 # link with -lc, and that would cause any symbols used from libc to
22699 # always be unresolved, which means just about no library would
22700 # ever link correctly. If we're not using GNU ld we use -z text
22701 # though, which does catch some bad symbols but isn't as heavy-handed
22702 # as -z defs.
22703 no_undefined_flag_F77='${wl}-z,text'
22704 allow_undefined_flag_F77='${wl}-z,nodefs'
22705 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022706 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022707 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22708 hardcode_libdir_separator_F77=':'
22709 link_all_deplibs_F77=yes
22710 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022711 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022712
22713 if test "$GCC" = yes; then
22714 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22715 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22716 else
22717 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22718 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22719 fi
John Criswell47fdd832003-07-14 16:52:07 +000022720 ;;
22721
22722 uts4*)
22723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22724 hardcode_libdir_flag_spec_F77='-L$libdir'
22725 hardcode_shlibpath_var_F77=no
22726 ;;
22727
22728 *)
22729 ld_shlibs_F77=no
22730 ;;
22731 esac
22732 fi
22733
Reid Spencera773bd52006-08-04 18:18:08 +000022734{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22735echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022736test "$ld_shlibs_F77" = no && can_build_shared=no
22737
John Criswell47fdd832003-07-14 16:52:07 +000022738#
22739# Do we need to explicitly link libc?
22740#
22741case "x$archive_cmds_need_lc_F77" in
22742x|xyes)
22743 # Assume -lc should be added
22744 archive_cmds_need_lc_F77=yes
22745
22746 if test "$enable_shared" = yes && test "$GCC" = yes; then
22747 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022748 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022749 # FIXME: we may have to deal with multi-command sequences.
22750 ;;
22751 '$CC '*)
22752 # Test whether the compiler implicitly links with -lc since on some
22753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22754 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022755 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22756echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022757 $rm conftest*
22758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22759
22760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22761 (eval $ac_compile) 2>&5
22762 ac_status=$?
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } 2>conftest.err; then
22765 soname=conftest
22766 lib=conftest
22767 libobjs=conftest.$ac_objext
22768 deplibs=
22769 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022770 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022771 compiler_flags=-v
22772 linker_flags=-v
22773 verstring=
22774 output_objdir=.
22775 libname=conftest
22776 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22777 allow_undefined_flag_F77=
22778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22779 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22780 ac_status=$?
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }
22783 then
22784 archive_cmds_need_lc_F77=no
22785 else
22786 archive_cmds_need_lc_F77=yes
22787 fi
22788 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22789 else
22790 cat conftest.err 1>&5
22791 fi
22792 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022793 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22794echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022795 ;;
22796 esac
22797 fi
22798 ;;
22799esac
22800
Reid Spencera773bd52006-08-04 18:18:08 +000022801{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22802echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022803library_names_spec=
22804libname_spec='lib$name'
22805soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022806shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022807postinstall_cmds=
22808postuninstall_cmds=
22809finish_cmds=
22810finish_eval=
22811shlibpath_var=
22812shlibpath_overrides_runpath=unknown
22813version_type=none
22814dynamic_linker="$host_os ld.so"
22815sys_lib_dlsearch_path_spec="/lib /usr/lib"
22816if test "$GCC" = yes; then
22817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22818 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22819 # if the path contains ";" then we assume it to be the separator
22820 # otherwise default to the standard path separator (i.e. ":") - it is
22821 # assumed that no part of a normal pathname contains ";" but that should
22822 # okay in the real world where ";" in dirpaths is itself problematic.
22823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22824 else
22825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22826 fi
22827else
22828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22829fi
22830need_lib_prefix=unknown
22831hardcode_into_libs=no
22832
22833# when you set need_version to no, make sure it does not cause -set_version
22834# flags to be left without arguments
22835need_version=unknown
22836
22837case $host_os in
22838aix3*)
22839 version_type=linux
22840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22841 shlibpath_var=LIBPATH
22842
22843 # AIX 3 has no versioning support, so we append a major version to the name.
22844 soname_spec='${libname}${release}${shared_ext}$major'
22845 ;;
22846
22847aix4* | aix5*)
22848 version_type=linux
22849 need_lib_prefix=no
22850 need_version=no
22851 hardcode_into_libs=yes
22852 if test "$host_cpu" = ia64; then
22853 # AIX 5 supports IA64
22854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22855 shlibpath_var=LD_LIBRARY_PATH
22856 else
22857 # With GCC up to 2.95.x, collect2 would create an import file
22858 # for dependence libraries. The import file would start with
22859 # the line `#! .'. This would cause the generated library to
22860 # depend on `.', always an invalid library. This was fixed in
22861 # development snapshots of GCC prior to 3.0.
22862 case $host_os in
22863 aix4 | aix4.[01] | aix4.[01].*)
22864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22865 echo ' yes '
22866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22867 :
22868 else
22869 can_build_shared=no
22870 fi
22871 ;;
22872 esac
22873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22874 # soname into executable. Probably we can add versioning support to
22875 # collect2, so additional links can be useful in future.
22876 if test "$aix_use_runtimelinking" = yes; then
22877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22878 # instead of lib<name>.a to let people know that these are not
22879 # typical AIX shared libraries.
22880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881 else
22882 # We preserve .a as extension for shared libraries through AIX4.2
22883 # and later when we are not doing run time linking.
22884 library_names_spec='${libname}${release}.a $libname.a'
22885 soname_spec='${libname}${release}${shared_ext}$major'
22886 fi
22887 shlibpath_var=LIBPATH
22888 fi
22889 ;;
22890
22891amigaos*)
22892 library_names_spec='$libname.ixlibrary $libname.a'
22893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022894 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 +000022895 ;;
22896
22897beos*)
22898 library_names_spec='${libname}${shared_ext}'
22899 dynamic_linker="$host_os ld.so"
22900 shlibpath_var=LIBRARY_PATH
22901 ;;
22902
Reid Spencer2706f8c2004-09-19 23:53:36 +000022903bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022904 version_type=linux
22905 need_version=no
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907 soname_spec='${libname}${release}${shared_ext}$major'
22908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22909 shlibpath_var=LD_LIBRARY_PATH
22910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22912 # the default ld.so.conf also contains /usr/contrib/lib and
22913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22914 # libtool to hard-code these into programs
22915 ;;
22916
22917cygwin* | mingw* | pw32*)
22918 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022919 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022920 need_version=no
22921 need_lib_prefix=no
22922
22923 case $GCC,$host_os in
22924 yes,cygwin* | yes,mingw* | yes,pw32*)
22925 library_names_spec='$libname.dll.a'
22926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022927 postinstall_cmds='base_file=`basename \${file}`~
22928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22929 dldir=$destdir/`dirname \$dlpath`~
22930 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022931 $install_prog $dir/$dlname \$dldir/$dlname~
22932 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22934 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022935 $rm \$dlpath'
22936 shlibpath_overrides_runpath=yes
22937
22938 case $host_os in
22939 cygwin*)
22940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22941 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 +000022942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022943 ;;
22944 mingw*)
22945 # MinGW DLLs use traditional 'lib' prefix
22946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22949 # It is most probably a Windows format PATH printed by
22950 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22951 # path with ; separators, and with drive letters. We can handle the
22952 # drive letters (cygwin fileutils understands them), so leave them,
22953 # especially as we might pass files found there to a mingw objdump,
22954 # which wouldn't understand a cygwinified path. Ahh.
22955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22956 else
22957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22958 fi
22959 ;;
22960 pw32*)
22961 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022962 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 +000022963 ;;
22964 esac
22965 ;;
22966
22967 *)
22968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22969 ;;
22970 esac
22971 dynamic_linker='Win32 ld.exe'
22972 # FIXME: first we should search . and the directory the executable is in
22973 shlibpath_var=PATH
22974 ;;
22975
22976darwin* | rhapsody*)
22977 dynamic_linker="$host_os dyld"
22978 version_type=darwin
22979 need_lib_prefix=no
22980 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022982 soname_spec='${libname}${release}${major}$shared_ext'
22983 shlibpath_overrides_runpath=yes
22984 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022985 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022987 if test "$GCC" = yes; then
22988 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"`
22989 else
22990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022991 fi
22992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22993 ;;
22994
22995dgux*)
22996 version_type=linux
22997 need_lib_prefix=no
22998 need_version=no
22999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23000 soname_spec='${libname}${release}${shared_ext}$major'
23001 shlibpath_var=LD_LIBRARY_PATH
23002 ;;
23003
23004freebsd1*)
23005 dynamic_linker=no
23006 ;;
23007
Reid Spencer2706f8c2004-09-19 23:53:36 +000023008kfreebsd*-gnu)
23009 version_type=linux
23010 need_lib_prefix=no
23011 need_version=no
23012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23013 soname_spec='${libname}${release}${shared_ext}$major'
23014 shlibpath_var=LD_LIBRARY_PATH
23015 shlibpath_overrides_runpath=no
23016 hardcode_into_libs=yes
23017 dynamic_linker='GNU ld.so'
23018 ;;
23019
Reid Spencera773bd52006-08-04 18:18:08 +000023020freebsd* | dragonfly*)
23021 # DragonFly does not have aout. When/if they implement a new
23022 # versioning mechanism, adjust this.
23023 if test -x /usr/bin/objformat; then
23024 objformat=`/usr/bin/objformat`
23025 else
23026 case $host_os in
23027 freebsd[123]*) objformat=aout ;;
23028 *) objformat=elf ;;
23029 esac
23030 fi
John Criswell47fdd832003-07-14 16:52:07 +000023031 version_type=freebsd-$objformat
23032 case $version_type in
23033 freebsd-elf*)
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23035 need_version=no
23036 need_lib_prefix=no
23037 ;;
23038 freebsd-*)
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23040 need_version=yes
23041 ;;
23042 esac
23043 shlibpath_var=LD_LIBRARY_PATH
23044 case $host_os in
23045 freebsd2*)
23046 shlibpath_overrides_runpath=yes
23047 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023048 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023049 shlibpath_overrides_runpath=yes
23050 hardcode_into_libs=yes
23051 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023054 shlibpath_overrides_runpath=no
23055 hardcode_into_libs=yes
23056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023057 freebsd*) # from 4.6 on
23058 shlibpath_overrides_runpath=yes
23059 hardcode_into_libs=yes
23060 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023061 esac
23062 ;;
23063
23064gnu*)
23065 version_type=linux
23066 need_lib_prefix=no
23067 need_version=no
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23069 soname_spec='${libname}${release}${shared_ext}$major'
23070 shlibpath_var=LD_LIBRARY_PATH
23071 hardcode_into_libs=yes
23072 ;;
23073
23074hpux9* | hpux10* | hpux11*)
23075 # Give a soname corresponding to the major version so that dld.sl refuses to
23076 # link against other versions.
23077 version_type=sunos
23078 need_lib_prefix=no
23079 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023080 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023081 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023082 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023083 hardcode_into_libs=yes
23084 dynamic_linker="$host_os dld.so"
23085 shlibpath_var=LD_LIBRARY_PATH
23086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 soname_spec='${libname}${release}${shared_ext}$major'
23089 if test "X$HPUX_IA64_MODE" = X32; then
23090 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23091 else
23092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23093 fi
23094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23095 ;;
23096 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023097 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023098 hardcode_into_libs=yes
23099 dynamic_linker="$host_os dld.sl"
23100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23103 soname_spec='${libname}${release}${shared_ext}$major'
23104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23106 ;;
23107 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023108 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023109 dynamic_linker="$host_os dld.sl"
23110 shlibpath_var=SHLIB_PATH
23111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23113 soname_spec='${libname}${release}${shared_ext}$major'
23114 ;;
23115 esac
23116 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23117 postinstall_cmds='chmod 555 $lib'
23118 ;;
23119
Reid Spencera773bd52006-08-04 18:18:08 +000023120interix3*)
23121 version_type=linux
23122 need_lib_prefix=no
23123 need_version=no
23124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23125 soname_spec='${libname}${release}${shared_ext}$major'
23126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23127 shlibpath_var=LD_LIBRARY_PATH
23128 shlibpath_overrides_runpath=no
23129 hardcode_into_libs=yes
23130 ;;
23131
John Criswell47fdd832003-07-14 16:52:07 +000023132irix5* | irix6* | nonstopux*)
23133 case $host_os in
23134 nonstopux*) version_type=nonstopux ;;
23135 *)
23136 if test "$lt_cv_prog_gnu_ld" = yes; then
23137 version_type=linux
23138 else
23139 version_type=irix
23140 fi ;;
23141 esac
23142 need_lib_prefix=no
23143 need_version=no
23144 soname_spec='${libname}${release}${shared_ext}$major'
23145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23146 case $host_os in
23147 irix5* | nonstopux*)
23148 libsuff= shlibsuff=
23149 ;;
23150 *)
23151 case $LD in # libtool.m4 will add one of these switches to LD
23152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23153 libsuff= shlibsuff= libmagic=32-bit;;
23154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23155 libsuff=32 shlibsuff=N32 libmagic=N32;;
23156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23157 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23158 *) libsuff= shlibsuff= libmagic=never-match;;
23159 esac
23160 ;;
23161 esac
23162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23163 shlibpath_overrides_runpath=no
23164 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23165 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23166 hardcode_into_libs=yes
23167 ;;
23168
23169# No shared lib support for Linux oldld, aout, or coff.
23170linux*oldld* | linux*aout* | linux*coff*)
23171 dynamic_linker=no
23172 ;;
23173
23174# This must be Linux ELF.
23175linux*)
23176 version_type=linux
23177 need_lib_prefix=no
23178 need_version=no
23179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180 soname_spec='${libname}${release}${shared_ext}$major'
23181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23182 shlibpath_var=LD_LIBRARY_PATH
23183 shlibpath_overrides_runpath=no
23184 # This implies no fast_install, which is unacceptable.
23185 # Some rework will be needed to allow for fast_install
23186 # before this can be enabled.
23187 hardcode_into_libs=yes
23188
Reid Spencer2706f8c2004-09-19 23:53:36 +000023189 # Append ld.so.conf contents to the search path
23190 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023191 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 +000023192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23193 fi
23194
John Criswell47fdd832003-07-14 16:52:07 +000023195 # We used to test for /lib/ld.so.1 and disable shared libraries on
23196 # powerpc, because MkLinux only supported shared libraries with the
23197 # GNU dynamic linker. Since this was broken with cross compilers,
23198 # most powerpc-linux boxes support dynamic linking these days and
23199 # people can always --disable-shared, the test was removed, and we
23200 # assume the GNU/Linux dynamic linker is in use.
23201 dynamic_linker='GNU/Linux ld.so'
23202 ;;
23203
Reid Spencer2706f8c2004-09-19 23:53:36 +000023204knetbsd*-gnu)
23205 version_type=linux
23206 need_lib_prefix=no
23207 need_version=no
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 shlibpath_var=LD_LIBRARY_PATH
23211 shlibpath_overrides_runpath=no
23212 hardcode_into_libs=yes
23213 dynamic_linker='GNU ld.so'
23214 ;;
23215
John Criswell47fdd832003-07-14 16:52:07 +000023216netbsd*)
23217 version_type=sunos
23218 need_lib_prefix=no
23219 need_version=no
23220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23223 dynamic_linker='NetBSD (a.out) ld.so'
23224 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023226 soname_spec='${libname}${release}${shared_ext}$major'
23227 dynamic_linker='NetBSD ld.elf_so'
23228 fi
23229 shlibpath_var=LD_LIBRARY_PATH
23230 shlibpath_overrides_runpath=yes
23231 hardcode_into_libs=yes
23232 ;;
23233
23234newsos6)
23235 version_type=linux
23236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23237 shlibpath_var=LD_LIBRARY_PATH
23238 shlibpath_overrides_runpath=yes
23239 ;;
23240
Reid Spencer2706f8c2004-09-19 23:53:36 +000023241nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023242 version_type=linux
23243 need_lib_prefix=no
23244 need_version=no
23245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23246 soname_spec='${libname}${release}${shared_ext}$major'
23247 shlibpath_var=LD_LIBRARY_PATH
23248 shlibpath_overrides_runpath=yes
23249 ;;
23250
23251openbsd*)
23252 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023253 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023254 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23256 case $host_os in
23257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23258 *) need_version=no ;;
23259 esac
John Criswell47fdd832003-07-14 16:52:07 +000023260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23262 shlibpath_var=LD_LIBRARY_PATH
23263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23264 case $host_os in
23265 openbsd2.[89] | openbsd2.[89].*)
23266 shlibpath_overrides_runpath=no
23267 ;;
23268 *)
23269 shlibpath_overrides_runpath=yes
23270 ;;
23271 esac
23272 else
23273 shlibpath_overrides_runpath=yes
23274 fi
23275 ;;
23276
23277os2*)
23278 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023279 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023280 need_lib_prefix=no
23281 library_names_spec='$libname${shared_ext} $libname.a'
23282 dynamic_linker='OS/2 ld.exe'
23283 shlibpath_var=LIBPATH
23284 ;;
23285
23286osf3* | osf4* | osf5*)
23287 version_type=osf
23288 need_lib_prefix=no
23289 need_version=no
23290 soname_spec='${libname}${release}${shared_ext}$major'
23291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23292 shlibpath_var=LD_LIBRARY_PATH
23293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23295 ;;
23296
John Criswell47fdd832003-07-14 16:52:07 +000023297solaris*)
23298 version_type=linux
23299 need_lib_prefix=no
23300 need_version=no
23301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23302 soname_spec='${libname}${release}${shared_ext}$major'
23303 shlibpath_var=LD_LIBRARY_PATH
23304 shlibpath_overrides_runpath=yes
23305 hardcode_into_libs=yes
23306 # ldd complains unless libraries are executable
23307 postinstall_cmds='chmod +x $lib'
23308 ;;
23309
23310sunos4*)
23311 version_type=sunos
23312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23314 shlibpath_var=LD_LIBRARY_PATH
23315 shlibpath_overrides_runpath=yes
23316 if test "$with_gnu_ld" = yes; then
23317 need_lib_prefix=no
23318 fi
23319 need_version=yes
23320 ;;
23321
Reid Spencera773bd52006-08-04 18:18:08 +000023322sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023323 version_type=linux
23324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23325 soname_spec='${libname}${release}${shared_ext}$major'
23326 shlibpath_var=LD_LIBRARY_PATH
23327 case $host_vendor in
23328 sni)
23329 shlibpath_overrides_runpath=no
23330 need_lib_prefix=no
23331 export_dynamic_flag_spec='${wl}-Blargedynsym'
23332 runpath_var=LD_RUN_PATH
23333 ;;
23334 siemens)
23335 need_lib_prefix=no
23336 ;;
23337 motorola)
23338 need_lib_prefix=no
23339 need_version=no
23340 shlibpath_overrides_runpath=no
23341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23342 ;;
23343 esac
23344 ;;
23345
23346sysv4*MP*)
23347 if test -d /usr/nec ;then
23348 version_type=linux
23349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23350 soname_spec='$libname${shared_ext}.$major'
23351 shlibpath_var=LD_LIBRARY_PATH
23352 fi
23353 ;;
23354
Reid Spencera773bd52006-08-04 18:18:08 +000023355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23356 version_type=freebsd-elf
23357 need_lib_prefix=no
23358 need_version=no
23359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23360 soname_spec='${libname}${release}${shared_ext}$major'
23361 shlibpath_var=LD_LIBRARY_PATH
23362 hardcode_into_libs=yes
23363 if test "$with_gnu_ld" = yes; then
23364 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23365 shlibpath_overrides_runpath=no
23366 else
23367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23368 shlibpath_overrides_runpath=yes
23369 case $host_os in
23370 sco3.2v5*)
23371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23372 ;;
23373 esac
23374 fi
23375 sys_lib_dlsearch_path_spec='/usr/lib'
23376 ;;
23377
John Criswell47fdd832003-07-14 16:52:07 +000023378uts4*)
23379 version_type=linux
23380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23381 soname_spec='${libname}${release}${shared_ext}$major'
23382 shlibpath_var=LD_LIBRARY_PATH
23383 ;;
23384
23385*)
23386 dynamic_linker=no
23387 ;;
23388esac
Reid Spencera773bd52006-08-04 18:18:08 +000023389{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23390echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023391test "$dynamic_linker" = no && can_build_shared=no
23392
Reid Spencera773bd52006-08-04 18:18:08 +000023393variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23394if test "$GCC" = yes; then
23395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23396fi
23397
23398{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23399echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023400hardcode_action_F77=
23401if test -n "$hardcode_libdir_flag_spec_F77" || \
23402 test -n "$runpath_var_F77" || \
23403 test "X$hardcode_automatic_F77" = "Xyes" ; then
23404
23405 # We can hardcode non-existant directories.
23406 if test "$hardcode_direct_F77" != no &&
23407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23408 # have to relink, otherwise we might link with an installed library
23409 # when we should be linking with a yet-to-be-installed one
23410 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23411 test "$hardcode_minus_L_F77" != no; then
23412 # Linking always hardcodes the temporary library directory.
23413 hardcode_action_F77=relink
23414 else
23415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23416 hardcode_action_F77=immediate
23417 fi
23418else
23419 # We cannot hardcode anything, or else we can only hardcode existing
23420 # directories.
23421 hardcode_action_F77=unsupported
23422fi
Reid Spencera773bd52006-08-04 18:18:08 +000023423{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23424echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023425
23426if test "$hardcode_action_F77" = relink; then
23427 # Fast installation is not supported
23428 enable_fast_install=no
23429elif test "$shlibpath_overrides_runpath" = yes ||
23430 test "$enable_shared" = no; then
23431 # Fast installation is not necessary
23432 enable_fast_install=needless
23433fi
23434
John Criswell47fdd832003-07-14 16:52:07 +000023435
23436# The else clause should only fire when bootstrapping the
23437# libtool distribution, otherwise you forgot to ship ltmain.sh
23438# with your package, and you will get complaints that there are
23439# no rules to generate ltmain.sh.
23440if test -f "$ltmain"; then
23441 # See if we are running on zsh, and set the options which allow our commands through
23442 # without removal of \ escapes.
23443 if test -n "${ZSH_VERSION+set}" ; then
23444 setopt NO_GLOB_SUBST
23445 fi
23446 # Now quote all the things that may contain metacharacters while being
23447 # careful not to overquote the AC_SUBSTed values. We take copies of the
23448 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023449 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 +000023450 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23453 deplibs_check_method reload_flag reload_cmds need_locks \
23454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23455 lt_cv_sys_global_symbol_to_c_name_address \
23456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23457 old_postinstall_cmds old_postuninstall_cmds \
23458 compiler_F77 \
23459 CC_F77 \
23460 LD_F77 \
23461 lt_prog_compiler_wl_F77 \
23462 lt_prog_compiler_pic_F77 \
23463 lt_prog_compiler_static_F77 \
23464 lt_prog_compiler_no_builtin_flag_F77 \
23465 export_dynamic_flag_spec_F77 \
23466 thread_safe_flag_spec_F77 \
23467 whole_archive_flag_spec_F77 \
23468 enable_shared_with_static_runtimes_F77 \
23469 old_archive_cmds_F77 \
23470 old_archive_from_new_cmds_F77 \
23471 predep_objects_F77 \
23472 postdep_objects_F77 \
23473 predeps_F77 \
23474 postdeps_F77 \
23475 compiler_lib_search_path_F77 \
23476 archive_cmds_F77 \
23477 archive_expsym_cmds_F77 \
23478 postinstall_cmds_F77 \
23479 postuninstall_cmds_F77 \
23480 old_archive_from_expsyms_cmds_F77 \
23481 allow_undefined_flag_F77 \
23482 no_undefined_flag_F77 \
23483 export_symbols_cmds_F77 \
23484 hardcode_libdir_flag_spec_F77 \
23485 hardcode_libdir_flag_spec_ld_F77 \
23486 hardcode_libdir_separator_F77 \
23487 hardcode_automatic_F77 \
23488 module_cmds_F77 \
23489 module_expsym_cmds_F77 \
23490 lt_cv_prog_compiler_c_o_F77 \
23491 exclude_expsyms_F77 \
23492 include_expsyms_F77; do
23493
23494 case $var in
23495 old_archive_cmds_F77 | \
23496 old_archive_from_new_cmds_F77 | \
23497 archive_cmds_F77 | \
23498 archive_expsym_cmds_F77 | \
23499 module_cmds_F77 | \
23500 module_expsym_cmds_F77 | \
23501 old_archive_from_expsyms_cmds_F77 | \
23502 export_symbols_cmds_F77 | \
23503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23504 postinstall_cmds | postuninstall_cmds | \
23505 old_postinstall_cmds | old_postuninstall_cmds | \
23506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23507 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023508 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 +000023509 ;;
23510 *)
23511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23512 ;;
23513 esac
23514 done
23515
23516 case $lt_echo in
23517 *'\$0 --fallback-echo"')
23518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23519 ;;
23520 esac
23521
23522cfgfile="$ofile"
23523
23524 cat <<__EOF__ >> "$cfgfile"
23525# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23526
23527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23528
23529# Shell to use when invoking shell scripts.
23530SHELL=$lt_SHELL
23531
23532# Whether or not to build shared libraries.
23533build_libtool_libs=$enable_shared
23534
23535# Whether or not to build static libraries.
23536build_old_libs=$enable_static
23537
23538# Whether or not to add -lc for building shared libraries.
23539build_libtool_need_lc=$archive_cmds_need_lc_F77
23540
23541# Whether or not to disallow shared libs when runtime libs are static
23542allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23543
23544# Whether or not to optimize for fast installation.
23545fast_install=$enable_fast_install
23546
23547# The host system.
23548host_alias=$host_alias
23549host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023550host_os=$host_os
23551
23552# The build system.
23553build_alias=$build_alias
23554build=$build
23555build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023556
23557# An echo program that does not interpret backslashes.
23558echo=$lt_echo
23559
23560# The archiver.
23561AR=$lt_AR
23562AR_FLAGS=$lt_AR_FLAGS
23563
23564# A C compiler.
23565LTCC=$lt_LTCC
23566
Reid Spencera773bd52006-08-04 18:18:08 +000023567# LTCC compiler flags.
23568LTCFLAGS=$lt_LTCFLAGS
23569
John Criswell47fdd832003-07-14 16:52:07 +000023570# A language-specific compiler.
23571CC=$lt_compiler_F77
23572
23573# Is the compiler the GNU C compiler?
23574with_gcc=$GCC_F77
23575
23576# An ERE matcher.
23577EGREP=$lt_EGREP
23578
23579# The linker used to build libraries.
23580LD=$lt_LD_F77
23581
23582# Whether we need hard or soft links.
23583LN_S=$lt_LN_S
23584
23585# A BSD-compatible nm program.
23586NM=$lt_NM
23587
23588# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023589STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023590
23591# Used to examine libraries when file_magic_cmd begins "file"
23592MAGIC_CMD=$MAGIC_CMD
23593
23594# Used on cygwin: DLL creation program.
23595DLLTOOL="$DLLTOOL"
23596
23597# Used on cygwin: object dumper.
23598OBJDUMP="$OBJDUMP"
23599
23600# Used on cygwin: assembler.
23601AS="$AS"
23602
23603# The name of the directory that contains temporary libtool files.
23604objdir=$objdir
23605
23606# How to create reloadable object files.
23607reload_flag=$lt_reload_flag
23608reload_cmds=$lt_reload_cmds
23609
23610# How to pass a linker flag through the compiler.
23611wl=$lt_lt_prog_compiler_wl_F77
23612
23613# Object file suffix (normally "o").
23614objext="$ac_objext"
23615
23616# Old archive suffix (normally "a").
23617libext="$libext"
23618
23619# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023620shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023621
23622# Executable file suffix (normally "").
23623exeext="$exeext"
23624
23625# Additional compiler flags for building library objects.
23626pic_flag=$lt_lt_prog_compiler_pic_F77
23627pic_mode=$pic_mode
23628
23629# What is the maximum length of a command?
23630max_cmd_len=$lt_cv_sys_max_cmd_len
23631
23632# Does compiler simultaneously support -c and -o options?
23633compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23634
Reid Spencera773bd52006-08-04 18:18:08 +000023635# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023636need_locks=$lt_need_locks
23637
23638# Do we need the lib prefix for modules?
23639need_lib_prefix=$need_lib_prefix
23640
23641# Do we need a version for libraries?
23642need_version=$need_version
23643
23644# Whether dlopen is supported.
23645dlopen_support=$enable_dlopen
23646
23647# Whether dlopen of programs is supported.
23648dlopen_self=$enable_dlopen_self
23649
23650# Whether dlopen of statically linked programs is supported.
23651dlopen_self_static=$enable_dlopen_self_static
23652
23653# Compiler flag to prevent dynamic linking.
23654link_static_flag=$lt_lt_prog_compiler_static_F77
23655
23656# Compiler flag to turn off builtin functions.
23657no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23658
23659# Compiler flag to allow reflexive dlopens.
23660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23661
23662# Compiler flag to generate shared objects directly from archives.
23663whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23664
23665# Compiler flag to generate thread-safe objects.
23666thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23667
23668# Library versioning type.
23669version_type=$version_type
23670
23671# Format of library name prefix.
23672libname_spec=$lt_libname_spec
23673
23674# List of archive names. First name is the real one, the rest are links.
23675# The last name is the one that the linker finds with -lNAME.
23676library_names_spec=$lt_library_names_spec
23677
23678# The coded name of the library, if different from the real name.
23679soname_spec=$lt_soname_spec
23680
23681# Commands used to build and install an old-style archive.
23682RANLIB=$lt_RANLIB
23683old_archive_cmds=$lt_old_archive_cmds_F77
23684old_postinstall_cmds=$lt_old_postinstall_cmds
23685old_postuninstall_cmds=$lt_old_postuninstall_cmds
23686
23687# Create an old-style archive from a shared archive.
23688old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23689
23690# Create a temporary old-style archive to link instead of a shared archive.
23691old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23692
23693# Commands used to build and install a shared archive.
23694archive_cmds=$lt_archive_cmds_F77
23695archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23696postinstall_cmds=$lt_postinstall_cmds
23697postuninstall_cmds=$lt_postuninstall_cmds
23698
23699# Commands used to build a loadable module (assumed same as above if empty)
23700module_cmds=$lt_module_cmds_F77
23701module_expsym_cmds=$lt_module_expsym_cmds_F77
23702
23703# Commands to strip libraries.
23704old_striplib=$lt_old_striplib
23705striplib=$lt_striplib
23706
23707# Dependencies to place before the objects being linked to create a
23708# shared library.
23709predep_objects=$lt_predep_objects_F77
23710
23711# Dependencies to place after the objects being linked to create a
23712# shared library.
23713postdep_objects=$lt_postdep_objects_F77
23714
23715# Dependencies to place before the objects being linked to create a
23716# shared library.
23717predeps=$lt_predeps_F77
23718
23719# Dependencies to place after the objects being linked to create a
23720# shared library.
23721postdeps=$lt_postdeps_F77
23722
23723# The library search path used internally by the compiler when linking
23724# a shared library.
23725compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23726
23727# Method to check whether dependent libraries are shared objects.
23728deplibs_check_method=$lt_deplibs_check_method
23729
23730# Command to use when deplibs_check_method == file_magic.
23731file_magic_cmd=$lt_file_magic_cmd
23732
23733# Flag that allows shared libraries with undefined symbols to be built.
23734allow_undefined_flag=$lt_allow_undefined_flag_F77
23735
23736# Flag that forces no undefined symbols.
23737no_undefined_flag=$lt_no_undefined_flag_F77
23738
23739# Commands used to finish a libtool library installation in a directory.
23740finish_cmds=$lt_finish_cmds
23741
23742# Same as above, but a single script fragment to be evaled but not shown.
23743finish_eval=$lt_finish_eval
23744
23745# Take the output of nm and produce a listing of raw symbols and C names.
23746global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23747
23748# Transform the output of nm in a proper C declaration
23749global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23750
23751# Transform the output of nm in a C name address pair
23752global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23753
23754# This is the shared library runtime path variable.
23755runpath_var=$runpath_var
23756
23757# This is the shared library path variable.
23758shlibpath_var=$shlibpath_var
23759
23760# Is shlibpath searched before the hard-coded library search path?
23761shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23762
23763# How to hardcode a shared library path into an executable.
23764hardcode_action=$hardcode_action_F77
23765
23766# Whether we should hardcode library paths into libraries.
23767hardcode_into_libs=$hardcode_into_libs
23768
23769# Flag to hardcode \$libdir into a binary during linking.
23770# This must work even if \$libdir does not exist.
23771hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23772
23773# If ld is used when linking, flag to hardcode \$libdir into
23774# a binary during linking. This must work even if \$libdir does
23775# not exist.
23776hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23777
23778# Whether we need a single -rpath flag with a separated argument.
23779hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23780
23781# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23782# resulting binary.
23783hardcode_direct=$hardcode_direct_F77
23784
23785# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23786# resulting binary.
23787hardcode_minus_L=$hardcode_minus_L_F77
23788
23789# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23790# the resulting binary.
23791hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23792
23793# Set to yes if building a shared library automatically hardcodes DIR into the library
23794# and all subsequent libraries and executables linked against it.
23795hardcode_automatic=$hardcode_automatic_F77
23796
23797# Variables whose values should be saved in libtool wrapper scripts and
23798# restored at relink time.
23799variables_saved_for_relink="$variables_saved_for_relink"
23800
23801# Whether libtool must link a program against all its dependency libraries.
23802link_all_deplibs=$link_all_deplibs_F77
23803
23804# Compile-time system search path for libraries
23805sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23806
23807# Run-time system search path for libraries
23808sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23809
23810# Fix the shell variable \$srcfile for the compiler.
23811fix_srcfile_path="$fix_srcfile_path_F77"
23812
23813# Set to yes if exported symbols are required.
23814always_export_symbols=$always_export_symbols_F77
23815
23816# The commands to list exported symbols.
23817export_symbols_cmds=$lt_export_symbols_cmds_F77
23818
23819# The commands to extract the exported symbol list from a shared archive.
23820extract_expsyms_cmds=$lt_extract_expsyms_cmds
23821
23822# Symbols that should not be listed in the preloaded symbols.
23823exclude_expsyms=$lt_exclude_expsyms_F77
23824
23825# Symbols that must always be exported.
23826include_expsyms=$lt_include_expsyms_F77
23827
23828# ### END LIBTOOL TAG CONFIG: $tagname
23829
23830__EOF__
23831
23832
23833else
23834 # If there is no Makefile yet, we rely on a make rule to execute
23835 # `config.status --recheck' to rerun these tests and create the
23836 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023837 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23838 if test -f "$ltmain_in"; then
23839 test -f Makefile && make "$ltmain"
23840 fi
John Criswell47fdd832003-07-14 16:52:07 +000023841fi
23842
23843
23844ac_ext=c
23845ac_cpp='$CPP $CPPFLAGS'
23846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23848ac_compiler_gnu=$ac_cv_c_compiler_gnu
23849
23850CC="$lt_save_CC"
23851
23852 else
23853 tagname=""
23854 fi
23855 ;;
23856
23857 GCJ)
23858 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023859 ac_ext=c
23860ac_cpp='$CPP $CPPFLAGS'
23861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023864
23865
23866# Source file extension for Java test sources.
23867ac_ext=java
23868
23869# Object file extension for compiled Java test sources.
23870objext=o
23871objext_GCJ=$objext
23872
23873# Code to be used in simple compile tests
23874lt_simple_compile_test_code="class foo {}\n"
23875
23876# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023877lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023878
23879# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23880
23881# If no C compiler was specified, use CC.
23882LTCC=${LTCC-"$CC"}
23883
Reid Spencera773bd52006-08-04 18:18:08 +000023884# If no C compiler flags were specified, use CFLAGS.
23885LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23886
John Criswell47fdd832003-07-14 16:52:07 +000023887# Allow CC to be a program name with arguments.
23888compiler=$CC
23889
23890
Reid Spencera773bd52006-08-04 18:18:08 +000023891# save warnings/boilerplate of simple test code
23892ac_outfile=conftest.$ac_objext
23893printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23895_lt_compiler_boilerplate=`cat conftest.err`
23896$rm conftest*
23897
23898ac_outfile=conftest.$ac_objext
23899printf "$lt_simple_link_test_code" >conftest.$ac_ext
23900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23901_lt_linker_boilerplate=`cat conftest.err`
23902$rm conftest*
23903
23904
John Criswell47fdd832003-07-14 16:52:07 +000023905# Allow CC to be a program name with arguments.
23906lt_save_CC="$CC"
23907CC=${GCJ-"gcj"}
23908compiler=$CC
23909compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023910for cc_temp in $compiler""; do
23911 case $cc_temp in
23912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23914 \-*) ;;
23915 *) break;;
23916 esac
23917done
23918cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23919
John Criswell47fdd832003-07-14 16:52:07 +000023920
23921# GCJ did not exist at the time GCC didn't implicitly link libc in.
23922archive_cmds_need_lc_GCJ=no
23923
Reid Spencera773bd52006-08-04 18:18:08 +000023924old_archive_cmds_GCJ=$old_archive_cmds
23925
John Criswell47fdd832003-07-14 16:52:07 +000023926
23927lt_prog_compiler_no_builtin_flag_GCJ=
23928
23929if test "$GCC" = yes; then
23930 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23931
Reid Spencer2706f8c2004-09-19 23:53:36 +000023932
Reid Spencera773bd52006-08-04 18:18:08 +000023933{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23934echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023935if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23937else
23938 lt_cv_prog_compiler_rtti_exceptions=no
23939 ac_outfile=conftest.$ac_objext
23940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23941 lt_compiler_flag="-fno-rtti -fno-exceptions"
23942 # Insert the option either (1) after the last *FLAGS variable, or
23943 # (2) before a word containing "conftest.", or (3) at the end.
23944 # Note that $ac_compile itself does not contain backslashes and begins
23945 # with a dollar sign (not a hyphen), so the echo should work correctly.
23946 # The option is referenced via a variable to avoid confusing sed.
23947 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23950 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000023951 (eval echo "\"\$as_me:23951: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023952 (eval "$lt_compile" 2>conftest.err)
23953 ac_status=$?
23954 cat conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000023955 echo "$as_me:23955: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023956 if (exit $ac_status) && test -s "$ac_outfile"; then
23957 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023958 # So say no if there are warnings other than the usual output.
23959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023962 lt_cv_prog_compiler_rtti_exceptions=yes
23963 fi
23964 fi
23965 $rm conftest*
23966
23967fi
Reid Spencera773bd52006-08-04 18:18:08 +000023968{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23969echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023970
23971if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23972 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23973else
23974 :
23975fi
23976
23977fi
23978
23979lt_prog_compiler_wl_GCJ=
23980lt_prog_compiler_pic_GCJ=
23981lt_prog_compiler_static_GCJ=
23982
Reid Spencera773bd52006-08-04 18:18:08 +000023983{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23984echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023985
23986 if test "$GCC" = yes; then
23987 lt_prog_compiler_wl_GCJ='-Wl,'
23988 lt_prog_compiler_static_GCJ='-static'
23989
23990 case $host_os in
23991 aix*)
23992 # All AIX code is PIC.
23993 if test "$host_cpu" = ia64; then
23994 # AIX 5 now supports IA64 processor
23995 lt_prog_compiler_static_GCJ='-Bstatic'
23996 fi
23997 ;;
23998
23999 amigaos*)
24000 # FIXME: we need at least 68020 code to build shared libraries, but
24001 # adding the `-m68020' flag to GCC prevents building anything better,
24002 # like `-m68040'.
24003 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24004 ;;
24005
24006 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24007 # PIC is the default for these OSes.
24008 ;;
24009
24010 mingw* | pw32* | os2*)
24011 # This hack is so that the source file can tell whether it is being
24012 # built for inclusion in a dll (and should export symbols for example).
24013 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24014 ;;
24015
24016 darwin* | rhapsody*)
24017 # PIC is the default on this platform
24018 # Common symbols not allowed in MH_DYLIB files
24019 lt_prog_compiler_pic_GCJ='-fno-common'
24020 ;;
24021
Reid Spencera773bd52006-08-04 18:18:08 +000024022 interix3*)
24023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24024 # Instead, we relocate shared libraries at runtime.
24025 ;;
24026
John Criswell47fdd832003-07-14 16:52:07 +000024027 msdosdjgpp*)
24028 # Just because we use GCC doesn't mean we suddenly get shared libraries
24029 # on systems that don't support them.
24030 lt_prog_compiler_can_build_shared_GCJ=no
24031 enable_shared=no
24032 ;;
24033
24034 sysv4*MP*)
24035 if test -d /usr/nec; then
24036 lt_prog_compiler_pic_GCJ=-Kconform_pic
24037 fi
24038 ;;
24039
24040 hpux*)
24041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24042 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024043 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024044 hppa*64*|ia64*)
24045 # +Z the default
24046 ;;
24047 *)
24048 lt_prog_compiler_pic_GCJ='-fPIC'
24049 ;;
24050 esac
24051 ;;
24052
24053 *)
24054 lt_prog_compiler_pic_GCJ='-fPIC'
24055 ;;
24056 esac
24057 else
24058 # PORTME Check for flag to pass linker flags through the system compiler.
24059 case $host_os in
24060 aix*)
24061 lt_prog_compiler_wl_GCJ='-Wl,'
24062 if test "$host_cpu" = ia64; then
24063 # AIX 5 now supports IA64 processor
24064 lt_prog_compiler_static_GCJ='-Bstatic'
24065 else
24066 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24067 fi
24068 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024069 darwin*)
24070 # PIC is the default on this platform
24071 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024072 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024073 xlc*)
24074 lt_prog_compiler_pic_GCJ='-qnocommon'
24075 lt_prog_compiler_wl_GCJ='-Wl,'
24076 ;;
24077 esac
24078 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024079
24080 mingw* | pw32* | os2*)
24081 # This hack is so that the source file can tell whether it is being
24082 # built for inclusion in a dll (and should export symbols for example).
24083 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24084 ;;
24085
24086 hpux9* | hpux10* | hpux11*)
24087 lt_prog_compiler_wl_GCJ='-Wl,'
24088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24089 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024090 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024091 hppa*64*|ia64*)
24092 # +Z the default
24093 ;;
24094 *)
24095 lt_prog_compiler_pic_GCJ='+Z'
24096 ;;
24097 esac
24098 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24099 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24100 ;;
24101
24102 irix5* | irix6* | nonstopux*)
24103 lt_prog_compiler_wl_GCJ='-Wl,'
24104 # PIC (with -KPIC) is the default.
24105 lt_prog_compiler_static_GCJ='-non_shared'
24106 ;;
24107
24108 newsos6)
24109 lt_prog_compiler_pic_GCJ='-KPIC'
24110 lt_prog_compiler_static_GCJ='-Bstatic'
24111 ;;
24112
24113 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024114 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024115 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024116 lt_prog_compiler_wl_GCJ='-Wl,'
24117 lt_prog_compiler_pic_GCJ='-KPIC'
24118 lt_prog_compiler_static_GCJ='-static'
24119 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024120 pgcc* | pgf77* | pgf90* | pgf95*)
24121 # Portland Group compilers (*not* the Pentium gcc compiler,
24122 # which looks to be a dead project)
24123 lt_prog_compiler_wl_GCJ='-Wl,'
24124 lt_prog_compiler_pic_GCJ='-fpic'
24125 lt_prog_compiler_static_GCJ='-Bstatic'
24126 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024127 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024128 lt_prog_compiler_wl_GCJ='-Wl,'
24129 # All Alpha code is PIC.
24130 lt_prog_compiler_static_GCJ='-non_shared'
24131 ;;
24132 esac
24133 ;;
24134
24135 osf3* | osf4* | osf5*)
24136 lt_prog_compiler_wl_GCJ='-Wl,'
24137 # All OSF/1 code is PIC.
24138 lt_prog_compiler_static_GCJ='-non_shared'
24139 ;;
24140
John Criswell47fdd832003-07-14 16:52:07 +000024141 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024142 lt_prog_compiler_pic_GCJ='-KPIC'
24143 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024144 case $cc_basename in
24145 f77* | f90* | f95*)
24146 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24147 *)
24148 lt_prog_compiler_wl_GCJ='-Wl,';;
24149 esac
John Criswell47fdd832003-07-14 16:52:07 +000024150 ;;
24151
24152 sunos4*)
24153 lt_prog_compiler_wl_GCJ='-Qoption ld '
24154 lt_prog_compiler_pic_GCJ='-PIC'
24155 lt_prog_compiler_static_GCJ='-Bstatic'
24156 ;;
24157
Reid Spencera773bd52006-08-04 18:18:08 +000024158 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024159 lt_prog_compiler_wl_GCJ='-Wl,'
24160 lt_prog_compiler_pic_GCJ='-KPIC'
24161 lt_prog_compiler_static_GCJ='-Bstatic'
24162 ;;
24163
24164 sysv4*MP*)
24165 if test -d /usr/nec ;then
24166 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24167 lt_prog_compiler_static_GCJ='-Bstatic'
24168 fi
24169 ;;
24170
Reid Spencera773bd52006-08-04 18:18:08 +000024171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24172 lt_prog_compiler_wl_GCJ='-Wl,'
24173 lt_prog_compiler_pic_GCJ='-KPIC'
24174 lt_prog_compiler_static_GCJ='-Bstatic'
24175 ;;
24176
24177 unicos*)
24178 lt_prog_compiler_wl_GCJ='-Wl,'
24179 lt_prog_compiler_can_build_shared_GCJ=no
24180 ;;
24181
John Criswell47fdd832003-07-14 16:52:07 +000024182 uts4*)
24183 lt_prog_compiler_pic_GCJ='-pic'
24184 lt_prog_compiler_static_GCJ='-Bstatic'
24185 ;;
24186
24187 *)
24188 lt_prog_compiler_can_build_shared_GCJ=no
24189 ;;
24190 esac
24191 fi
24192
Reid Spencera773bd52006-08-04 18:18:08 +000024193{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24194echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024195
24196#
24197# Check to make sure the PIC flag actually works.
24198#
24199if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024200
Reid Spencera773bd52006-08-04 18:18:08 +000024201{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24202echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024203if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24204 echo $ECHO_N "(cached) $ECHO_C" >&6
24205else
24206 lt_prog_compiler_pic_works_GCJ=no
24207 ac_outfile=conftest.$ac_objext
24208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24209 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24210 # Insert the option either (1) after the last *FLAGS variable, or
24211 # (2) before a word containing "conftest.", or (3) at the end.
24212 # Note that $ac_compile itself does not contain backslashes and begins
24213 # with a dollar sign (not a hyphen), so the echo should work correctly.
24214 # The option is referenced via a variable to avoid confusing sed.
24215 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24218 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000024219 (eval echo "\"\$as_me:24219: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024220 (eval "$lt_compile" 2>conftest.err)
24221 ac_status=$?
24222 cat conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000024223 echo "$as_me:24223: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024224 if (exit $ac_status) && test -s "$ac_outfile"; then
24225 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024226 # So say no if there are warnings other than the usual output.
24227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024230 lt_prog_compiler_pic_works_GCJ=yes
24231 fi
24232 fi
24233 $rm conftest*
24234
24235fi
Reid Spencera773bd52006-08-04 18:18:08 +000024236{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24237echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024238
24239if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24240 case $lt_prog_compiler_pic_GCJ in
24241 "" | " "*) ;;
24242 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24243 esac
24244else
24245 lt_prog_compiler_pic_GCJ=
24246 lt_prog_compiler_can_build_shared_GCJ=no
24247fi
24248
24249fi
Reid Spencera773bd52006-08-04 18:18:08 +000024250case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024251 # For platforms which do not support PIC, -DPIC is meaningless:
24252 *djgpp*)
24253 lt_prog_compiler_pic_GCJ=
24254 ;;
24255 *)
24256 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24257 ;;
24258esac
24259
Reid Spencera773bd52006-08-04 18:18:08 +000024260#
24261# Check to make sure the static flag actually works.
24262#
24263wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24264{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24265echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24266if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24268else
24269 lt_prog_compiler_static_works_GCJ=no
24270 save_LDFLAGS="$LDFLAGS"
24271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24272 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24274 # The linker can only warn and ignore the option if not recognized
24275 # So say no if there are warnings
24276 if test -s conftest.err; then
24277 # Append any errors to the config.log.
24278 cat conftest.err 1>&5
24279 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24281 if diff conftest.exp conftest.er2 >/dev/null; then
24282 lt_prog_compiler_static_works_GCJ=yes
24283 fi
24284 else
24285 lt_prog_compiler_static_works_GCJ=yes
24286 fi
24287 fi
24288 $rm conftest*
24289 LDFLAGS="$save_LDFLAGS"
24290
24291fi
24292{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24293echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24294
24295if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24296 :
24297else
24298 lt_prog_compiler_static_GCJ=
24299fi
24300
24301
24302{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24303echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024304if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24305 echo $ECHO_N "(cached) $ECHO_C" >&6
24306else
24307 lt_cv_prog_compiler_c_o_GCJ=no
24308 $rm -r conftest 2>/dev/null
24309 mkdir conftest
24310 cd conftest
24311 mkdir out
24312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24313
John Criswell47fdd832003-07-14 16:52:07 +000024314 lt_compiler_flag="-o out/conftest2.$ac_objext"
24315 # Insert the option either (1) after the last *FLAGS variable, or
24316 # (2) before a word containing "conftest.", or (3) at the end.
24317 # Note that $ac_compile itself does not contain backslashes and begins
24318 # with a dollar sign (not a hyphen), so the echo should work correctly.
24319 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24322 -e 's:$: $lt_compiler_flag:'`
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000024323 (eval echo "\"\$as_me:24323: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024324 (eval "$lt_compile" 2>out/conftest.err)
24325 ac_status=$?
24326 cat out/conftest.err >&5
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000024327 echo "$as_me:24327: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24329 then
24330 # The compiler can only warn and ignore the option if not recognized
24331 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024335 lt_cv_prog_compiler_c_o_GCJ=yes
24336 fi
24337 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024338 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024339 $rm conftest*
24340 # SGI C++ compiler will create directory out/ii_files/ for
24341 # template instantiation
24342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24343 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024344 cd ..
24345 rmdir conftest
24346 $rm conftest*
24347
24348fi
Reid Spencera773bd52006-08-04 18:18:08 +000024349{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24350echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024351
24352
24353hard_links="nottested"
24354if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24355 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024356 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24357echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024358 hard_links=yes
24359 $rm conftest*
24360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24361 touch conftest.a
24362 ln conftest.a conftest.b 2>&5 || hard_links=no
24363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024364 { echo "$as_me:$LINENO: result: $hard_links" >&5
24365echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024366 if test "$hard_links" = no; then
24367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24368echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24369 need_locks=warn
24370 fi
24371else
24372 need_locks=no
24373fi
24374
Reid Spencera773bd52006-08-04 18:18:08 +000024375{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24376echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024377
24378 runpath_var=
24379 allow_undefined_flag_GCJ=
24380 enable_shared_with_static_runtimes_GCJ=no
24381 archive_cmds_GCJ=
24382 archive_expsym_cmds_GCJ=
24383 old_archive_From_new_cmds_GCJ=
24384 old_archive_from_expsyms_cmds_GCJ=
24385 export_dynamic_flag_spec_GCJ=
24386 whole_archive_flag_spec_GCJ=
24387 thread_safe_flag_spec_GCJ=
24388 hardcode_libdir_flag_spec_GCJ=
24389 hardcode_libdir_flag_spec_ld_GCJ=
24390 hardcode_libdir_separator_GCJ=
24391 hardcode_direct_GCJ=no
24392 hardcode_minus_L_GCJ=no
24393 hardcode_shlibpath_var_GCJ=unsupported
24394 link_all_deplibs_GCJ=unknown
24395 hardcode_automatic_GCJ=no
24396 module_cmds_GCJ=
24397 module_expsym_cmds_GCJ=
24398 always_export_symbols_GCJ=no
24399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24400 # include_expsyms should be a list of space-separated symbols to be *always*
24401 # included in the symbol list
24402 include_expsyms_GCJ=
24403 # exclude_expsyms can be an extended regexp of symbols to exclude
24404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24406 # as well as any symbol that contains `d'.
24407 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24409 # platforms (ab)use it in PIC code, but their linkers get confused if
24410 # the symbol is explicitly referenced. Since portable code cannot
24411 # rely on this symbol name, it's probably fine to never include it in
24412 # preloaded symbol tables.
24413 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024414 # Just being paranoid about ensuring that cc_basename is set.
24415 for cc_temp in $compiler""; do
24416 case $cc_temp in
24417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24419 \-*) ;;
24420 *) break;;
24421 esac
24422done
24423cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024424
24425 case $host_os in
24426 cygwin* | mingw* | pw32*)
24427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24428 # When not using gcc, we currently assume that we are using
24429 # Microsoft Visual C++.
24430 if test "$GCC" != yes; then
24431 with_gnu_ld=no
24432 fi
24433 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024434 interix*)
24435 # we just hope/assume this is gcc and not c89 (= MSVC++)
24436 with_gnu_ld=yes
24437 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024438 openbsd*)
24439 with_gnu_ld=no
24440 ;;
24441 esac
24442
24443 ld_shlibs_GCJ=yes
24444 if test "$with_gnu_ld" = yes; then
24445 # If archive_cmds runs LD, not CC, wlarc should be empty
24446 wlarc='${wl}'
24447
Reid Spencera773bd52006-08-04 18:18:08 +000024448 # Set some defaults for GNU ld with shared library support. These
24449 # are reset later if shared libraries are not supported. Putting them
24450 # here allows them to be overridden if necessary.
24451 runpath_var=LD_RUN_PATH
24452 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24453 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24454 # ancient GNU ld didn't support --whole-archive et. al.
24455 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24456 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24457 else
24458 whole_archive_flag_spec_GCJ=
24459 fi
24460 supports_anon_versioning=no
24461 case `$LD -v 2>/dev/null` in
24462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24465 *\ 2.11.*) ;; # other 2.11 versions
24466 *) supports_anon_versioning=yes ;;
24467 esac
24468
John Criswell47fdd832003-07-14 16:52:07 +000024469 # See if GNU ld supports shared libraries.
24470 case $host_os in
24471 aix3* | aix4* | aix5*)
24472 # On AIX/PPC, the GNU linker is very broken
24473 if test "$host_cpu" != ia64; then
24474 ld_shlibs_GCJ=no
24475 cat <<EOF 1>&2
24476
24477*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24478*** to be unable to reliably create shared libraries on AIX.
24479*** Therefore, libtool is disabling shared libraries support. If you
24480*** really care for shared libraries, you may want to modify your PATH
24481*** so that a non-GNU linker is found, and then restart.
24482
24483EOF
24484 fi
24485 ;;
24486
24487 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024488 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 +000024489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24490 hardcode_minus_L_GCJ=yes
24491
24492 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24493 # that the semantics of dynamic libraries on AmigaOS, at least up
24494 # to version 4, is to share data among multiple programs linked
24495 # with the same dynamic library. Since this doesn't match the
24496 # behavior of shared libraries on other platforms, we can't use
24497 # them.
24498 ld_shlibs_GCJ=no
24499 ;;
24500
24501 beos*)
24502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24503 allow_undefined_flag_GCJ=unsupported
24504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24505 # support --undefined. This deserves some investigation. FIXME
24506 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24507 else
24508 ld_shlibs_GCJ=no
24509 fi
24510 ;;
24511
24512 cygwin* | mingw* | pw32*)
24513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24514 # as there is no search path for DLLs.
24515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24516 allow_undefined_flag_GCJ=unsupported
24517 always_export_symbols_GCJ=no
24518 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024519 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 +000024520
24521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024522 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 +000024523 # If the export-symbols file already is a .def file (1st line
24524 # is EXPORTS), use it as is; otherwise, prepend...
24525 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24526 cp $export_symbols $output_objdir/$soname.def;
24527 else
24528 echo EXPORTS > $output_objdir/$soname.def;
24529 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024530 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024531 $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 +000024532 else
Reid Spencera773bd52006-08-04 18:18:08 +000024533 ld_shlibs_GCJ=no
24534 fi
24535 ;;
24536
24537 interix3*)
24538 hardcode_direct_GCJ=no
24539 hardcode_shlibpath_var_GCJ=no
24540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24541 export_dynamic_flag_spec_GCJ='${wl}-E'
24542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24543 # Instead, shared libraries are loaded at an image base (0x10000000 by
24544 # default) and relocated if they conflict, which is a slow very memory
24545 # consuming and fragmenting process. To avoid this, we pick a random,
24546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24548 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'
24549 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'
24550 ;;
24551
24552 linux*)
24553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24554 tmp_addflag=
24555 case $cc_basename,$host_cpu in
24556 pgcc*) # Portland Group C compiler
24557 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'
24558 tmp_addflag=' $pic_flag'
24559 ;;
24560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24561 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'
24562 tmp_addflag=' $pic_flag -Mnomain' ;;
24563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24564 tmp_addflag=' -i_dynamic' ;;
24565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24566 tmp_addflag=' -i_dynamic -nofor_main' ;;
24567 ifc* | ifort*) # Intel Fortran compiler
24568 tmp_addflag=' -nofor_main' ;;
24569 esac
24570 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24571
24572 if test $supports_anon_versioning = yes; then
24573 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24575 $echo "local: *; };" >> $output_objdir/$libname.ver~
24576 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24577 fi
24578 else
24579 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024580 fi
24581 ;;
24582
24583 netbsd*)
24584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24586 wlarc=
24587 else
24588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24590 fi
24591 ;;
24592
Reid Spencera773bd52006-08-04 18:18:08 +000024593 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24595 ld_shlibs_GCJ=no
24596 cat <<EOF 1>&2
24597
24598*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24599*** create shared libraries on Solaris systems. Therefore, libtool
24600*** is disabling shared libraries support. We urge you to upgrade GNU
24601*** binutils to release 2.9.1 or newer. Another option is to modify
24602*** your PATH or compiler configuration so that the native linker is
24603*** used, and then restart.
24604
24605EOF
24606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24609 else
24610 ld_shlibs_GCJ=no
24611 fi
24612 ;;
24613
Reid Spencera773bd52006-08-04 18:18:08 +000024614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24615 case `$LD -v 2>&1` in
24616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24617 ld_shlibs_GCJ=no
24618 cat <<_LT_EOF 1>&2
24619
24620*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24621*** reliably create shared libraries on SCO systems. Therefore, libtool
24622*** is disabling shared libraries support. We urge you to upgrade GNU
24623*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24624*** your PATH or compiler configuration so that the native linker is
24625*** used, and then restart.
24626
24627_LT_EOF
24628 ;;
24629 *)
24630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24631 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24632 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24633 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24634 else
24635 ld_shlibs_GCJ=no
24636 fi
24637 ;;
24638 esac
24639 ;;
24640
John Criswell47fdd832003-07-14 16:52:07 +000024641 sunos4*)
24642 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24643 wlarc=
24644 hardcode_direct_GCJ=yes
24645 hardcode_shlibpath_var_GCJ=no
24646 ;;
24647
24648 *)
24649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24652 else
24653 ld_shlibs_GCJ=no
24654 fi
24655 ;;
24656 esac
24657
Reid Spencera773bd52006-08-04 18:18:08 +000024658 if test "$ld_shlibs_GCJ" = no; then
24659 runpath_var=
24660 hardcode_libdir_flag_spec_GCJ=
24661 export_dynamic_flag_spec_GCJ=
24662 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024663 fi
24664 else
24665 # PORTME fill in a description of your system's linker (not GNU ld)
24666 case $host_os in
24667 aix3*)
24668 allow_undefined_flag_GCJ=unsupported
24669 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024670 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 +000024671 # Note: this linker hardcodes the directories in LIBPATH if there
24672 # are no directories specified by -L.
24673 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024674 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024675 # Neither direct hardcoding nor static linking is supported with a
24676 # broken collect2.
24677 hardcode_direct_GCJ=unsupported
24678 fi
24679 ;;
24680
24681 aix4* | aix5*)
24682 if test "$host_cpu" = ia64; then
24683 # On IA64, the linker does run time linking by default, so we don't
24684 # have to do anything special.
24685 aix_use_runtimelinking=no
24686 exp_sym_flag='-Bexport'
24687 no_entry_flag=""
24688 else
24689 # If we're using GNU nm, then we don't want the "-C" option.
24690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24692 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'
24693 else
24694 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'
24695 fi
24696 aix_use_runtimelinking=no
24697
24698 # Test if we are trying to use run time linking or normal
24699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24700 # need to do runtime linking.
24701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24702 for ld_flag in $LDFLAGS; do
24703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24704 aix_use_runtimelinking=yes
24705 break
24706 fi
24707 done
Reid Spencera773bd52006-08-04 18:18:08 +000024708 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024709 esac
24710
24711 exp_sym_flag='-bexport'
24712 no_entry_flag='-bnoentry'
24713 fi
24714
24715 # When large executables or shared objects are built, AIX ld can
24716 # have problems creating the table of contents. If linking a library
24717 # or program results in "error TOC overflow" add -mminimal-toc to
24718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24720
24721 archive_cmds_GCJ=''
24722 hardcode_direct_GCJ=yes
24723 hardcode_libdir_separator_GCJ=':'
24724 link_all_deplibs_GCJ=yes
24725
24726 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024727 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024728 # We only want to do this on AIX 4.2 and lower, the check
24729 # below for broken collect2 doesn't work under 4.3+
24730 collect2name=`${CC} -print-prog-name=collect2`
24731 if test -f "$collect2name" && \
24732 strings "$collect2name" | grep resolve_lib_name >/dev/null
24733 then
24734 # We have reworked collect2
24735 hardcode_direct_GCJ=yes
24736 else
24737 # We have old collect2
24738 hardcode_direct_GCJ=unsupported
24739 # It fails to find uninstalled libraries when the uninstalled
24740 # path is not listed in the libpath. Setting hardcode_minus_L
24741 # to unsupported forces relinking
24742 hardcode_minus_L_GCJ=yes
24743 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24744 hardcode_libdir_separator_GCJ=
24745 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024746 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024747 esac
24748 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024749 if test "$aix_use_runtimelinking" = yes; then
24750 shared_flag="$shared_flag "'${wl}-G'
24751 fi
John Criswell47fdd832003-07-14 16:52:07 +000024752 else
24753 # not using gcc
24754 if test "$host_cpu" = ia64; then
24755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24756 # chokes on -Wl,-G. The following line is correct:
24757 shared_flag='-G'
24758 else
Reid Spencera773bd52006-08-04 18:18:08 +000024759 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024760 shared_flag='${wl}-G'
24761 else
24762 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024763 fi
John Criswell47fdd832003-07-14 16:52:07 +000024764 fi
24765 fi
24766
24767 # It seems that -bexpall does not export symbols beginning with
24768 # underscore (_), so it is better to generate a list of symbols to export.
24769 always_export_symbols_GCJ=yes
24770 if test "$aix_use_runtimelinking" = yes; then
24771 # Warning - without using the other runtime loading flags (-brtl),
24772 # -berok will link without error, but may produce a broken library.
24773 allow_undefined_flag_GCJ='-berok'
24774 # Determine the default libpath from the value encoded in an empty executable.
24775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024776/* confdefs.h. */
24777_ACEOF
24778cat confdefs.h >>conftest.$ac_ext
24779cat >>conftest.$ac_ext <<_ACEOF
24780/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024781
John Criswell47fdd832003-07-14 16:52:07 +000024782int
24783main ()
24784{
24785
24786 ;
24787 return 0;
24788}
24789_ACEOF
24790rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024791if { (ac_try="$ac_link"
24792case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24795esac
24796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024798 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024799 grep -v '^ *+' conftest.er1 >conftest.err
24800 rm -f conftest.er1
24801 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024803 (exit $ac_status); } &&
24804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24805 { (case "(($ac_try" in
24806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807 *) ac_try_echo=$ac_try;;
24808esac
24809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810 (eval "$ac_try") 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); }; } &&
24814 { ac_try='test -s conftest$ac_exeext'
24815 { (case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24818esac
24819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820 (eval "$ac_try") 2>&5
24821 ac_status=$?
24822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024824
24825aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24826}'`
24827# Check for a 64-bit object if we didn't find anything.
24828if 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; }
24829}'`; fi
24830else
24831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024832sed 's/^/| /' conftest.$ac_ext >&5
24833
Reid Spencera773bd52006-08-04 18:18:08 +000024834
John Criswell47fdd832003-07-14 16:52:07 +000024835fi
Reid Spencera773bd52006-08-04 18:18:08 +000024836
Tanya Lattnercf067672008-01-17 05:57:22 +000024837rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024838 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024839if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24840
24841 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024842 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 +000024843 else
24844 if test "$host_cpu" = ia64; then
24845 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24846 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024847 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 +000024848 else
24849 # Determine the default libpath from the value encoded in an empty executable.
24850 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024851/* confdefs.h. */
24852_ACEOF
24853cat confdefs.h >>conftest.$ac_ext
24854cat >>conftest.$ac_ext <<_ACEOF
24855/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024856
John Criswell47fdd832003-07-14 16:52:07 +000024857int
24858main ()
24859{
24860
24861 ;
24862 return 0;
24863}
24864_ACEOF
24865rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024866if { (ac_try="$ac_link"
24867case "(($ac_try" in
24868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24869 *) ac_try_echo=$ac_try;;
24870esac
24871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24872 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024873 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024874 grep -v '^ *+' conftest.er1 >conftest.err
24875 rm -f conftest.er1
24876 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024878 (exit $ac_status); } &&
24879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24880 { (case "(($ac_try" in
24881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24883esac
24884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885 (eval "$ac_try") 2>&5
24886 ac_status=$?
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; } &&
24889 { ac_try='test -s conftest$ac_exeext'
24890 { (case "(($ac_try" in
24891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24893esac
24894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895 (eval "$ac_try") 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024899
24900aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24901}'`
24902# Check for a 64-bit object if we didn't find anything.
24903if 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; }
24904}'`; fi
24905else
24906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024907sed 's/^/| /' conftest.$ac_ext >&5
24908
Reid Spencera773bd52006-08-04 18:18:08 +000024909
John Criswell47fdd832003-07-14 16:52:07 +000024910fi
Reid Spencera773bd52006-08-04 18:18:08 +000024911
Tanya Lattnercf067672008-01-17 05:57:22 +000024912rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024913 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24915
24916 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24917 # Warning - without using the other run time loading flags,
24918 # -berok will link without error, but may produce a broken library.
24919 no_undefined_flag_GCJ=' ${wl}-bernotok'
24920 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024921 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024922 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024923 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024924 # This is similar to how AIX traditionally builds its shared libraries.
24925 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 +000024926 fi
24927 fi
24928 ;;
24929
24930 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024931 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 +000024932 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24933 hardcode_minus_L_GCJ=yes
24934 # see comment about different semantics on the GNU ld section
24935 ld_shlibs_GCJ=no
24936 ;;
24937
Reid Spencer2706f8c2004-09-19 23:53:36 +000024938 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024939 export_dynamic_flag_spec_GCJ=-rdynamic
24940 ;;
24941
24942 cygwin* | mingw* | pw32*)
24943 # When not using gcc, we currently assume that we are using
24944 # Microsoft Visual C++.
24945 # hardcode_libdir_flag_spec is actually meaningless, as there is
24946 # no search path for DLLs.
24947 hardcode_libdir_flag_spec_GCJ=' '
24948 allow_undefined_flag_GCJ=unsupported
24949 # Tell ltmain to make .lib files, not .a files.
24950 libext=lib
24951 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024952 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024953 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024954 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 +000024955 # The linker will automatically build a .lib file if we build a DLL.
24956 old_archive_From_new_cmds_GCJ='true'
24957 # FIXME: Should let the user specify the lib program.
24958 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024959 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024960 enable_shared_with_static_runtimes_GCJ=yes
24961 ;;
24962
24963 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024964 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024965 rhapsody* | darwin1.[012])
24966 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24967 ;;
24968 *) # Darwin 1.3 on
24969 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24970 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24971 else
24972 case ${MACOSX_DEPLOYMENT_TARGET} in
24973 10.[012])
24974 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24975 ;;
24976 10.*)
24977 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24978 ;;
24979 esac
24980 fi
24981 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024982 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024983 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024984 hardcode_direct_GCJ=no
24985 hardcode_automatic_GCJ=yes
24986 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024987 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024988 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024989 if test "$GCC" = yes ; then
24990 output_verbose_link_cmd='echo'
24991 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24992 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024993 # 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 +000024994 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}'
24995 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 +000024996 else
Reid Spencera773bd52006-08-04 18:18:08 +000024997 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024998 xlc*)
24999 output_verbose_link_cmd='echo'
25000 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25001 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025002 # 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 +000025003 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}'
25004 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 +000025005 ;;
25006 *)
25007 ld_shlibs_GCJ=no
25008 ;;
25009 esac
John Criswell47fdd832003-07-14 16:52:07 +000025010 fi
25011 ;;
25012
25013 dgux*)
25014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25016 hardcode_shlibpath_var_GCJ=no
25017 ;;
25018
25019 freebsd1*)
25020 ld_shlibs_GCJ=no
25021 ;;
25022
25023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25024 # support. Future versions do this automatically, but an explicit c++rt0.o
25025 # does not break anything, and helps significantly (at the cost of a little
25026 # extra space).
25027 freebsd2.2*)
25028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25030 hardcode_direct_GCJ=yes
25031 hardcode_shlibpath_var_GCJ=no
25032 ;;
25033
25034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25035 freebsd2*)
25036 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25037 hardcode_direct_GCJ=yes
25038 hardcode_minus_L_GCJ=yes
25039 hardcode_shlibpath_var_GCJ=no
25040 ;;
25041
25042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025043 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025044 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25045 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25046 hardcode_direct_GCJ=yes
25047 hardcode_shlibpath_var_GCJ=no
25048 ;;
25049
25050 hpux9*)
25051 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025052 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 +000025053 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025054 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 +000025055 fi
25056 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25057 hardcode_libdir_separator_GCJ=:
25058 hardcode_direct_GCJ=yes
25059
25060 # hardcode_minus_L: Not really in the search PATH,
25061 # but as the default location of the library.
25062 hardcode_minus_L_GCJ=yes
25063 export_dynamic_flag_spec_GCJ='${wl}-E'
25064 ;;
25065
Reid Spencera773bd52006-08-04 18:18:08 +000025066 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025067 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025068 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25069 else
25070 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25071 fi
25072 if test "$with_gnu_ld" = no; then
25073 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25074 hardcode_libdir_separator_GCJ=:
25075
25076 hardcode_direct_GCJ=yes
25077 export_dynamic_flag_spec_GCJ='${wl}-E'
25078
25079 # hardcode_minus_L: Not really in the search PATH,
25080 # but as the default location of the library.
25081 hardcode_minus_L_GCJ=yes
25082 fi
25083 ;;
25084
25085 hpux11*)
25086 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25087 case $host_cpu in
25088 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025089 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025091 ia64*)
25092 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25093 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025094 *)
25095 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25096 ;;
25097 esac
25098 else
Reid Spencera773bd52006-08-04 18:18:08 +000025099 case $host_cpu in
25100 hppa*64*)
25101 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25102 ;;
25103 ia64*)
25104 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025105 ;;
25106 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025107 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 +000025108 ;;
25109 esac
25110 fi
25111 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025112 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25113 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025114
Reid Spencera773bd52006-08-04 18:18:08 +000025115 case $host_cpu in
25116 hppa*64*|ia64*)
25117 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25118 hardcode_direct_GCJ=no
25119 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025120 ;;
25121 *)
John Criswell47fdd832003-07-14 16:52:07 +000025122 hardcode_direct_GCJ=yes
25123 export_dynamic_flag_spec_GCJ='${wl}-E'
25124
25125 # hardcode_minus_L: Not really in the search PATH,
25126 # but as the default location of the library.
25127 hardcode_minus_L_GCJ=yes
25128 ;;
25129 esac
25130 fi
25131 ;;
25132
25133 irix5* | irix6* | nonstopux*)
25134 if test "$GCC" = yes; then
25135 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'
25136 else
25137 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'
25138 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25139 fi
25140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25141 hardcode_libdir_separator_GCJ=:
25142 link_all_deplibs_GCJ=yes
25143 ;;
25144
25145 netbsd*)
25146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25148 else
25149 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25150 fi
25151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25152 hardcode_direct_GCJ=yes
25153 hardcode_shlibpath_var_GCJ=no
25154 ;;
25155
25156 newsos6)
25157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25158 hardcode_direct_GCJ=yes
25159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25160 hardcode_libdir_separator_GCJ=:
25161 hardcode_shlibpath_var_GCJ=no
25162 ;;
25163
25164 openbsd*)
25165 hardcode_direct_GCJ=yes
25166 hardcode_shlibpath_var_GCJ=no
25167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25168 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025169 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 +000025170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25171 export_dynamic_flag_spec_GCJ='${wl}-E'
25172 else
25173 case $host_os in
25174 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25175 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25176 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25177 ;;
25178 *)
25179 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25181 ;;
25182 esac
25183 fi
25184 ;;
25185
25186 os2*)
25187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25188 hardcode_minus_L_GCJ=yes
25189 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025190 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 +000025191 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25192 ;;
25193
25194 osf3*)
25195 if test "$GCC" = yes; then
25196 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25197 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'
25198 else
25199 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25200 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'
25201 fi
25202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25203 hardcode_libdir_separator_GCJ=:
25204 ;;
25205
25206 osf4* | osf5*) # as osf3* with the addition of -msym flag
25207 if test "$GCC" = yes; then
25208 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25209 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'
25210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25211 else
25212 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25213 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 +000025214 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 +000025215 $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 +000025216
John Criswell47fdd832003-07-14 16:52:07 +000025217 # Both c and cxx compiler support -rpath directly
25218 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25219 fi
25220 hardcode_libdir_separator_GCJ=:
25221 ;;
25222
John Criswell47fdd832003-07-14 16:52:07 +000025223 solaris*)
25224 no_undefined_flag_GCJ=' -z text'
25225 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025226 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025227 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025228 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25229 $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 +000025230 else
Reid Spencera773bd52006-08-04 18:18:08 +000025231 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025232 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025233 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25234 $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 +000025235 fi
25236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237 hardcode_shlibpath_var_GCJ=no
25238 case $host_os in
25239 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025240 *)
25241 # The compiler driver will combine linker options so we
25242 # cannot just pass the convience library names through
25243 # without $wl, iff we do not link with $LD.
25244 # Luckily, gcc supports the same syntax we need for Sun Studio.
25245 # Supported since Solaris 2.6 (maybe 2.5.1?)
25246 case $wlarc in
25247 '')
25248 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25249 *)
25250 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' ;;
25251 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025252 esac
25253 link_all_deplibs_GCJ=yes
25254 ;;
25255
25256 sunos4*)
25257 if test "x$host_vendor" = xsequent; then
25258 # Use $CC to link under sequent, because it throws in some extra .o
25259 # files that make .init and .fini sections work.
25260 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25261 else
25262 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25263 fi
25264 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25265 hardcode_direct_GCJ=yes
25266 hardcode_minus_L_GCJ=yes
25267 hardcode_shlibpath_var_GCJ=no
25268 ;;
25269
25270 sysv4)
25271 case $host_vendor in
25272 sni)
25273 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25274 hardcode_direct_GCJ=yes # is this really true???
25275 ;;
25276 siemens)
25277 ## LD is ld it makes a PLAMLIB
25278 ## CC just makes a GrossModule.
25279 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25280 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25281 hardcode_direct_GCJ=no
25282 ;;
25283 motorola)
25284 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25285 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25286 ;;
25287 esac
25288 runpath_var='LD_RUN_PATH'
25289 hardcode_shlibpath_var_GCJ=no
25290 ;;
25291
25292 sysv4.3*)
25293 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25294 hardcode_shlibpath_var_GCJ=no
25295 export_dynamic_flag_spec_GCJ='-Bexport'
25296 ;;
25297
25298 sysv4*MP*)
25299 if test -d /usr/nec; then
25300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25301 hardcode_shlibpath_var_GCJ=no
25302 runpath_var=LD_RUN_PATH
25303 hardcode_runpath_var=yes
25304 ld_shlibs_GCJ=yes
25305 fi
25306 ;;
25307
Reid Spencera773bd52006-08-04 18:18:08 +000025308 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25309 no_undefined_flag_GCJ='${wl}-z,text'
25310 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025311 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025312 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025313
John Criswell47fdd832003-07-14 16:52:07 +000025314 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025315 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25316 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 +000025317 else
Reid Spencera773bd52006-08-04 18:18:08 +000025318 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25319 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 +000025320 fi
John Criswell47fdd832003-07-14 16:52:07 +000025321 ;;
25322
Reid Spencera773bd52006-08-04 18:18:08 +000025323 sysv5* | sco3.2v5* | sco5v6*)
25324 # Note: We can NOT use -z defs as we might desire, because we do not
25325 # link with -lc, and that would cause any symbols used from libc to
25326 # always be unresolved, which means just about no library would
25327 # ever link correctly. If we're not using GNU ld we use -z text
25328 # though, which does catch some bad symbols but isn't as heavy-handed
25329 # as -z defs.
25330 no_undefined_flag_GCJ='${wl}-z,text'
25331 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25332 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025333 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025334 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25335 hardcode_libdir_separator_GCJ=':'
25336 link_all_deplibs_GCJ=yes
25337 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025338 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025339
25340 if test "$GCC" = yes; then
25341 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25342 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25343 else
25344 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25345 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25346 fi
John Criswell47fdd832003-07-14 16:52:07 +000025347 ;;
25348
25349 uts4*)
25350 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25351 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25352 hardcode_shlibpath_var_GCJ=no
25353 ;;
25354
25355 *)
25356 ld_shlibs_GCJ=no
25357 ;;
25358 esac
25359 fi
25360
Reid Spencera773bd52006-08-04 18:18:08 +000025361{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25362echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025363test "$ld_shlibs_GCJ" = no && can_build_shared=no
25364
John Criswell47fdd832003-07-14 16:52:07 +000025365#
25366# Do we need to explicitly link libc?
25367#
25368case "x$archive_cmds_need_lc_GCJ" in
25369x|xyes)
25370 # Assume -lc should be added
25371 archive_cmds_need_lc_GCJ=yes
25372
25373 if test "$enable_shared" = yes && test "$GCC" = yes; then
25374 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025375 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025376 # FIXME: we may have to deal with multi-command sequences.
25377 ;;
25378 '$CC '*)
25379 # Test whether the compiler implicitly links with -lc since on some
25380 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25381 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025382 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25383echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025384 $rm conftest*
25385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25386
25387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25388 (eval $ac_compile) 2>&5
25389 ac_status=$?
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } 2>conftest.err; then
25392 soname=conftest
25393 lib=conftest
25394 libobjs=conftest.$ac_objext
25395 deplibs=
25396 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025397 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025398 compiler_flags=-v
25399 linker_flags=-v
25400 verstring=
25401 output_objdir=.
25402 libname=conftest
25403 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25404 allow_undefined_flag_GCJ=
25405 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25406 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }
25410 then
25411 archive_cmds_need_lc_GCJ=no
25412 else
25413 archive_cmds_need_lc_GCJ=yes
25414 fi
25415 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25416 else
25417 cat conftest.err 1>&5
25418 fi
25419 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025420 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25421echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025422 ;;
25423 esac
25424 fi
25425 ;;
25426esac
25427
Reid Spencera773bd52006-08-04 18:18:08 +000025428{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25429echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025430library_names_spec=
25431libname_spec='lib$name'
25432soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025433shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025434postinstall_cmds=
25435postuninstall_cmds=
25436finish_cmds=
25437finish_eval=
25438shlibpath_var=
25439shlibpath_overrides_runpath=unknown
25440version_type=none
25441dynamic_linker="$host_os ld.so"
25442sys_lib_dlsearch_path_spec="/lib /usr/lib"
25443if test "$GCC" = yes; then
25444 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25445 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25446 # if the path contains ";" then we assume it to be the separator
25447 # otherwise default to the standard path separator (i.e. ":") - it is
25448 # assumed that no part of a normal pathname contains ";" but that should
25449 # okay in the real world where ";" in dirpaths is itself problematic.
25450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25451 else
25452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25453 fi
25454else
25455 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25456fi
25457need_lib_prefix=unknown
25458hardcode_into_libs=no
25459
25460# when you set need_version to no, make sure it does not cause -set_version
25461# flags to be left without arguments
25462need_version=unknown
25463
25464case $host_os in
25465aix3*)
25466 version_type=linux
25467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25468 shlibpath_var=LIBPATH
25469
25470 # AIX 3 has no versioning support, so we append a major version to the name.
25471 soname_spec='${libname}${release}${shared_ext}$major'
25472 ;;
25473
25474aix4* | aix5*)
25475 version_type=linux
25476 need_lib_prefix=no
25477 need_version=no
25478 hardcode_into_libs=yes
25479 if test "$host_cpu" = ia64; then
25480 # AIX 5 supports IA64
25481 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25482 shlibpath_var=LD_LIBRARY_PATH
25483 else
25484 # With GCC up to 2.95.x, collect2 would create an import file
25485 # for dependence libraries. The import file would start with
25486 # the line `#! .'. This would cause the generated library to
25487 # depend on `.', always an invalid library. This was fixed in
25488 # development snapshots of GCC prior to 3.0.
25489 case $host_os in
25490 aix4 | aix4.[01] | aix4.[01].*)
25491 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25492 echo ' yes '
25493 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25494 :
25495 else
25496 can_build_shared=no
25497 fi
25498 ;;
25499 esac
25500 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25501 # soname into executable. Probably we can add versioning support to
25502 # collect2, so additional links can be useful in future.
25503 if test "$aix_use_runtimelinking" = yes; then
25504 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25505 # instead of lib<name>.a to let people know that these are not
25506 # typical AIX shared libraries.
25507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508 else
25509 # We preserve .a as extension for shared libraries through AIX4.2
25510 # and later when we are not doing run time linking.
25511 library_names_spec='${libname}${release}.a $libname.a'
25512 soname_spec='${libname}${release}${shared_ext}$major'
25513 fi
25514 shlibpath_var=LIBPATH
25515 fi
25516 ;;
25517
25518amigaos*)
25519 library_names_spec='$libname.ixlibrary $libname.a'
25520 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025521 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 +000025522 ;;
25523
25524beos*)
25525 library_names_spec='${libname}${shared_ext}'
25526 dynamic_linker="$host_os ld.so"
25527 shlibpath_var=LIBRARY_PATH
25528 ;;
25529
Reid Spencer2706f8c2004-09-19 23:53:36 +000025530bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025531 version_type=linux
25532 need_version=no
25533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534 soname_spec='${libname}${release}${shared_ext}$major'
25535 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25536 shlibpath_var=LD_LIBRARY_PATH
25537 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25538 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25539 # the default ld.so.conf also contains /usr/contrib/lib and
25540 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25541 # libtool to hard-code these into programs
25542 ;;
25543
25544cygwin* | mingw* | pw32*)
25545 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025546 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025547 need_version=no
25548 need_lib_prefix=no
25549
25550 case $GCC,$host_os in
25551 yes,cygwin* | yes,mingw* | yes,pw32*)
25552 library_names_spec='$libname.dll.a'
25553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025554 postinstall_cmds='base_file=`basename \${file}`~
25555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25556 dldir=$destdir/`dirname \$dlpath`~
25557 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025558 $install_prog $dir/$dlname \$dldir/$dlname~
25559 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25561 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025562 $rm \$dlpath'
25563 shlibpath_overrides_runpath=yes
25564
25565 case $host_os in
25566 cygwin*)
25567 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25568 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 +000025569 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025570 ;;
25571 mingw*)
25572 # MinGW DLLs use traditional 'lib' prefix
25573 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25574 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25575 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25576 # It is most probably a Windows format PATH printed by
25577 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25578 # path with ; separators, and with drive letters. We can handle the
25579 # drive letters (cygwin fileutils understands them), so leave them,
25580 # especially as we might pass files found there to a mingw objdump,
25581 # which wouldn't understand a cygwinified path. Ahh.
25582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25583 else
25584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25585 fi
25586 ;;
25587 pw32*)
25588 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025589 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 +000025590 ;;
25591 esac
25592 ;;
25593
25594 *)
25595 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25596 ;;
25597 esac
25598 dynamic_linker='Win32 ld.exe'
25599 # FIXME: first we should search . and the directory the executable is in
25600 shlibpath_var=PATH
25601 ;;
25602
25603darwin* | rhapsody*)
25604 dynamic_linker="$host_os dyld"
25605 version_type=darwin
25606 need_lib_prefix=no
25607 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025608 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025609 soname_spec='${libname}${release}${major}$shared_ext'
25610 shlibpath_overrides_runpath=yes
25611 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025612 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025613 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025614 if test "$GCC" = yes; then
25615 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"`
25616 else
25617 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025618 fi
25619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25620 ;;
25621
25622dgux*)
25623 version_type=linux
25624 need_lib_prefix=no
25625 need_version=no
25626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25627 soname_spec='${libname}${release}${shared_ext}$major'
25628 shlibpath_var=LD_LIBRARY_PATH
25629 ;;
25630
25631freebsd1*)
25632 dynamic_linker=no
25633 ;;
25634
Reid Spencer2706f8c2004-09-19 23:53:36 +000025635kfreebsd*-gnu)
25636 version_type=linux
25637 need_lib_prefix=no
25638 need_version=no
25639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25640 soname_spec='${libname}${release}${shared_ext}$major'
25641 shlibpath_var=LD_LIBRARY_PATH
25642 shlibpath_overrides_runpath=no
25643 hardcode_into_libs=yes
25644 dynamic_linker='GNU ld.so'
25645 ;;
25646
Reid Spencera773bd52006-08-04 18:18:08 +000025647freebsd* | dragonfly*)
25648 # DragonFly does not have aout. When/if they implement a new
25649 # versioning mechanism, adjust this.
25650 if test -x /usr/bin/objformat; then
25651 objformat=`/usr/bin/objformat`
25652 else
25653 case $host_os in
25654 freebsd[123]*) objformat=aout ;;
25655 *) objformat=elf ;;
25656 esac
25657 fi
John Criswell47fdd832003-07-14 16:52:07 +000025658 version_type=freebsd-$objformat
25659 case $version_type in
25660 freebsd-elf*)
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25662 need_version=no
25663 need_lib_prefix=no
25664 ;;
25665 freebsd-*)
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25667 need_version=yes
25668 ;;
25669 esac
25670 shlibpath_var=LD_LIBRARY_PATH
25671 case $host_os in
25672 freebsd2*)
25673 shlibpath_overrides_runpath=yes
25674 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025675 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025676 shlibpath_overrides_runpath=yes
25677 hardcode_into_libs=yes
25678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025679 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25680 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025681 shlibpath_overrides_runpath=no
25682 hardcode_into_libs=yes
25683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025684 freebsd*) # from 4.6 on
25685 shlibpath_overrides_runpath=yes
25686 hardcode_into_libs=yes
25687 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025688 esac
25689 ;;
25690
25691gnu*)
25692 version_type=linux
25693 need_lib_prefix=no
25694 need_version=no
25695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25696 soname_spec='${libname}${release}${shared_ext}$major'
25697 shlibpath_var=LD_LIBRARY_PATH
25698 hardcode_into_libs=yes
25699 ;;
25700
25701hpux9* | hpux10* | hpux11*)
25702 # Give a soname corresponding to the major version so that dld.sl refuses to
25703 # link against other versions.
25704 version_type=sunos
25705 need_lib_prefix=no
25706 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025707 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025708 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025709 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025710 hardcode_into_libs=yes
25711 dynamic_linker="$host_os dld.so"
25712 shlibpath_var=LD_LIBRARY_PATH
25713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 soname_spec='${libname}${release}${shared_ext}$major'
25716 if test "X$HPUX_IA64_MODE" = X32; then
25717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25718 else
25719 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25720 fi
25721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25722 ;;
25723 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025724 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025725 hardcode_into_libs=yes
25726 dynamic_linker="$host_os dld.sl"
25727 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25730 soname_spec='${libname}${release}${shared_ext}$major'
25731 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25733 ;;
25734 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025735 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025736 dynamic_linker="$host_os dld.sl"
25737 shlibpath_var=SHLIB_PATH
25738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25740 soname_spec='${libname}${release}${shared_ext}$major'
25741 ;;
25742 esac
25743 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25744 postinstall_cmds='chmod 555 $lib'
25745 ;;
25746
Reid Spencera773bd52006-08-04 18:18:08 +000025747interix3*)
25748 version_type=linux
25749 need_lib_prefix=no
25750 need_version=no
25751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25752 soname_spec='${libname}${release}${shared_ext}$major'
25753 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25754 shlibpath_var=LD_LIBRARY_PATH
25755 shlibpath_overrides_runpath=no
25756 hardcode_into_libs=yes
25757 ;;
25758
John Criswell47fdd832003-07-14 16:52:07 +000025759irix5* | irix6* | nonstopux*)
25760 case $host_os in
25761 nonstopux*) version_type=nonstopux ;;
25762 *)
25763 if test "$lt_cv_prog_gnu_ld" = yes; then
25764 version_type=linux
25765 else
25766 version_type=irix
25767 fi ;;
25768 esac
25769 need_lib_prefix=no
25770 need_version=no
25771 soname_spec='${libname}${release}${shared_ext}$major'
25772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25773 case $host_os in
25774 irix5* | nonstopux*)
25775 libsuff= shlibsuff=
25776 ;;
25777 *)
25778 case $LD in # libtool.m4 will add one of these switches to LD
25779 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25780 libsuff= shlibsuff= libmagic=32-bit;;
25781 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25782 libsuff=32 shlibsuff=N32 libmagic=N32;;
25783 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25784 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25785 *) libsuff= shlibsuff= libmagic=never-match;;
25786 esac
25787 ;;
25788 esac
25789 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25790 shlibpath_overrides_runpath=no
25791 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25792 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25793 hardcode_into_libs=yes
25794 ;;
25795
25796# No shared lib support for Linux oldld, aout, or coff.
25797linux*oldld* | linux*aout* | linux*coff*)
25798 dynamic_linker=no
25799 ;;
25800
25801# This must be Linux ELF.
25802linux*)
25803 version_type=linux
25804 need_lib_prefix=no
25805 need_version=no
25806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25807 soname_spec='${libname}${release}${shared_ext}$major'
25808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25809 shlibpath_var=LD_LIBRARY_PATH
25810 shlibpath_overrides_runpath=no
25811 # This implies no fast_install, which is unacceptable.
25812 # Some rework will be needed to allow for fast_install
25813 # before this can be enabled.
25814 hardcode_into_libs=yes
25815
Reid Spencer2706f8c2004-09-19 23:53:36 +000025816 # Append ld.so.conf contents to the search path
25817 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025818 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 +000025819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25820 fi
25821
John Criswell47fdd832003-07-14 16:52:07 +000025822 # We used to test for /lib/ld.so.1 and disable shared libraries on
25823 # powerpc, because MkLinux only supported shared libraries with the
25824 # GNU dynamic linker. Since this was broken with cross compilers,
25825 # most powerpc-linux boxes support dynamic linking these days and
25826 # people can always --disable-shared, the test was removed, and we
25827 # assume the GNU/Linux dynamic linker is in use.
25828 dynamic_linker='GNU/Linux ld.so'
25829 ;;
25830
Reid Spencer2706f8c2004-09-19 23:53:36 +000025831knetbsd*-gnu)
25832 version_type=linux
25833 need_lib_prefix=no
25834 need_version=no
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 shlibpath_var=LD_LIBRARY_PATH
25838 shlibpath_overrides_runpath=no
25839 hardcode_into_libs=yes
25840 dynamic_linker='GNU ld.so'
25841 ;;
25842
John Criswell47fdd832003-07-14 16:52:07 +000025843netbsd*)
25844 version_type=sunos
25845 need_lib_prefix=no
25846 need_version=no
25847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25850 dynamic_linker='NetBSD (a.out) ld.so'
25851 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025853 soname_spec='${libname}${release}${shared_ext}$major'
25854 dynamic_linker='NetBSD ld.elf_so'
25855 fi
25856 shlibpath_var=LD_LIBRARY_PATH
25857 shlibpath_overrides_runpath=yes
25858 hardcode_into_libs=yes
25859 ;;
25860
25861newsos6)
25862 version_type=linux
25863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25864 shlibpath_var=LD_LIBRARY_PATH
25865 shlibpath_overrides_runpath=yes
25866 ;;
25867
Reid Spencer2706f8c2004-09-19 23:53:36 +000025868nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025869 version_type=linux
25870 need_lib_prefix=no
25871 need_version=no
25872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25873 soname_spec='${libname}${release}${shared_ext}$major'
25874 shlibpath_var=LD_LIBRARY_PATH
25875 shlibpath_overrides_runpath=yes
25876 ;;
25877
25878openbsd*)
25879 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025880 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025881 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025882 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25883 case $host_os in
25884 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25885 *) need_version=no ;;
25886 esac
John Criswell47fdd832003-07-14 16:52:07 +000025887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25889 shlibpath_var=LD_LIBRARY_PATH
25890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25891 case $host_os in
25892 openbsd2.[89] | openbsd2.[89].*)
25893 shlibpath_overrides_runpath=no
25894 ;;
25895 *)
25896 shlibpath_overrides_runpath=yes
25897 ;;
25898 esac
25899 else
25900 shlibpath_overrides_runpath=yes
25901 fi
25902 ;;
25903
25904os2*)
25905 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025906 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025907 need_lib_prefix=no
25908 library_names_spec='$libname${shared_ext} $libname.a'
25909 dynamic_linker='OS/2 ld.exe'
25910 shlibpath_var=LIBPATH
25911 ;;
25912
25913osf3* | osf4* | osf5*)
25914 version_type=osf
25915 need_lib_prefix=no
25916 need_version=no
25917 soname_spec='${libname}${release}${shared_ext}$major'
25918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25919 shlibpath_var=LD_LIBRARY_PATH
25920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25921 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25922 ;;
25923
John Criswell47fdd832003-07-14 16:52:07 +000025924solaris*)
25925 version_type=linux
25926 need_lib_prefix=no
25927 need_version=no
25928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25929 soname_spec='${libname}${release}${shared_ext}$major'
25930 shlibpath_var=LD_LIBRARY_PATH
25931 shlibpath_overrides_runpath=yes
25932 hardcode_into_libs=yes
25933 # ldd complains unless libraries are executable
25934 postinstall_cmds='chmod +x $lib'
25935 ;;
25936
25937sunos4*)
25938 version_type=sunos
25939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25940 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25941 shlibpath_var=LD_LIBRARY_PATH
25942 shlibpath_overrides_runpath=yes
25943 if test "$with_gnu_ld" = yes; then
25944 need_lib_prefix=no
25945 fi
25946 need_version=yes
25947 ;;
25948
Reid Spencera773bd52006-08-04 18:18:08 +000025949sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025950 version_type=linux
25951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25952 soname_spec='${libname}${release}${shared_ext}$major'
25953 shlibpath_var=LD_LIBRARY_PATH
25954 case $host_vendor in
25955 sni)
25956 shlibpath_overrides_runpath=no
25957 need_lib_prefix=no
25958 export_dynamic_flag_spec='${wl}-Blargedynsym'
25959 runpath_var=LD_RUN_PATH
25960 ;;
25961 siemens)
25962 need_lib_prefix=no
25963 ;;
25964 motorola)
25965 need_lib_prefix=no
25966 need_version=no
25967 shlibpath_overrides_runpath=no
25968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25969 ;;
25970 esac
25971 ;;
25972
25973sysv4*MP*)
25974 if test -d /usr/nec ;then
25975 version_type=linux
25976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25977 soname_spec='$libname${shared_ext}.$major'
25978 shlibpath_var=LD_LIBRARY_PATH
25979 fi
25980 ;;
25981
Reid Spencera773bd52006-08-04 18:18:08 +000025982sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25983 version_type=freebsd-elf
25984 need_lib_prefix=no
25985 need_version=no
25986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25987 soname_spec='${libname}${release}${shared_ext}$major'
25988 shlibpath_var=LD_LIBRARY_PATH
25989 hardcode_into_libs=yes
25990 if test "$with_gnu_ld" = yes; then
25991 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25992 shlibpath_overrides_runpath=no
25993 else
25994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25995 shlibpath_overrides_runpath=yes
25996 case $host_os in
25997 sco3.2v5*)
25998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25999 ;;
26000 esac
26001 fi
26002 sys_lib_dlsearch_path_spec='/usr/lib'
26003 ;;
26004
John Criswell47fdd832003-07-14 16:52:07 +000026005uts4*)
26006 version_type=linux
26007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26008 soname_spec='${libname}${release}${shared_ext}$major'
26009 shlibpath_var=LD_LIBRARY_PATH
26010 ;;
26011
26012*)
26013 dynamic_linker=no
26014 ;;
26015esac
Reid Spencera773bd52006-08-04 18:18:08 +000026016{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26017echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026018test "$dynamic_linker" = no && can_build_shared=no
26019
Reid Spencera773bd52006-08-04 18:18:08 +000026020variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26021if test "$GCC" = yes; then
26022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26023fi
26024
26025{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26026echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026027hardcode_action_GCJ=
26028if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26029 test -n "$runpath_var_GCJ" || \
26030 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26031
26032 # We can hardcode non-existant directories.
26033 if test "$hardcode_direct_GCJ" != no &&
26034 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26035 # have to relink, otherwise we might link with an installed library
26036 # when we should be linking with a yet-to-be-installed one
26037 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26038 test "$hardcode_minus_L_GCJ" != no; then
26039 # Linking always hardcodes the temporary library directory.
26040 hardcode_action_GCJ=relink
26041 else
26042 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26043 hardcode_action_GCJ=immediate
26044 fi
26045else
26046 # We cannot hardcode anything, or else we can only hardcode existing
26047 # directories.
26048 hardcode_action_GCJ=unsupported
26049fi
Reid Spencera773bd52006-08-04 18:18:08 +000026050{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26051echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026052
26053if test "$hardcode_action_GCJ" = relink; then
26054 # Fast installation is not supported
26055 enable_fast_install=no
26056elif test "$shlibpath_overrides_runpath" = yes ||
26057 test "$enable_shared" = no; then
26058 # Fast installation is not necessary
26059 enable_fast_install=needless
26060fi
26061
John Criswell47fdd832003-07-14 16:52:07 +000026062
26063# The else clause should only fire when bootstrapping the
26064# libtool distribution, otherwise you forgot to ship ltmain.sh
26065# with your package, and you will get complaints that there are
26066# no rules to generate ltmain.sh.
26067if test -f "$ltmain"; then
26068 # See if we are running on zsh, and set the options which allow our commands through
26069 # without removal of \ escapes.
26070 if test -n "${ZSH_VERSION+set}" ; then
26071 setopt NO_GLOB_SUBST
26072 fi
26073 # Now quote all the things that may contain metacharacters while being
26074 # careful not to overquote the AC_SUBSTed values. We take copies of the
26075 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026076 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 +000026077 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26080 deplibs_check_method reload_flag reload_cmds need_locks \
26081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26082 lt_cv_sys_global_symbol_to_c_name_address \
26083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26084 old_postinstall_cmds old_postuninstall_cmds \
26085 compiler_GCJ \
26086 CC_GCJ \
26087 LD_GCJ \
26088 lt_prog_compiler_wl_GCJ \
26089 lt_prog_compiler_pic_GCJ \
26090 lt_prog_compiler_static_GCJ \
26091 lt_prog_compiler_no_builtin_flag_GCJ \
26092 export_dynamic_flag_spec_GCJ \
26093 thread_safe_flag_spec_GCJ \
26094 whole_archive_flag_spec_GCJ \
26095 enable_shared_with_static_runtimes_GCJ \
26096 old_archive_cmds_GCJ \
26097 old_archive_from_new_cmds_GCJ \
26098 predep_objects_GCJ \
26099 postdep_objects_GCJ \
26100 predeps_GCJ \
26101 postdeps_GCJ \
26102 compiler_lib_search_path_GCJ \
26103 archive_cmds_GCJ \
26104 archive_expsym_cmds_GCJ \
26105 postinstall_cmds_GCJ \
26106 postuninstall_cmds_GCJ \
26107 old_archive_from_expsyms_cmds_GCJ \
26108 allow_undefined_flag_GCJ \
26109 no_undefined_flag_GCJ \
26110 export_symbols_cmds_GCJ \
26111 hardcode_libdir_flag_spec_GCJ \
26112 hardcode_libdir_flag_spec_ld_GCJ \
26113 hardcode_libdir_separator_GCJ \
26114 hardcode_automatic_GCJ \
26115 module_cmds_GCJ \
26116 module_expsym_cmds_GCJ \
26117 lt_cv_prog_compiler_c_o_GCJ \
26118 exclude_expsyms_GCJ \
26119 include_expsyms_GCJ; do
26120
26121 case $var in
26122 old_archive_cmds_GCJ | \
26123 old_archive_from_new_cmds_GCJ | \
26124 archive_cmds_GCJ | \
26125 archive_expsym_cmds_GCJ | \
26126 module_cmds_GCJ | \
26127 module_expsym_cmds_GCJ | \
26128 old_archive_from_expsyms_cmds_GCJ | \
26129 export_symbols_cmds_GCJ | \
26130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26131 postinstall_cmds | postuninstall_cmds | \
26132 old_postinstall_cmds | old_postuninstall_cmds | \
26133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26134 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026135 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 +000026136 ;;
26137 *)
26138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26139 ;;
26140 esac
26141 done
26142
26143 case $lt_echo in
26144 *'\$0 --fallback-echo"')
26145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26146 ;;
26147 esac
26148
26149cfgfile="$ofile"
26150
26151 cat <<__EOF__ >> "$cfgfile"
26152# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26153
26154# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26155
26156# Shell to use when invoking shell scripts.
26157SHELL=$lt_SHELL
26158
26159# Whether or not to build shared libraries.
26160build_libtool_libs=$enable_shared
26161
26162# Whether or not to build static libraries.
26163build_old_libs=$enable_static
26164
26165# Whether or not to add -lc for building shared libraries.
26166build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26167
26168# Whether or not to disallow shared libs when runtime libs are static
26169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26170
26171# Whether or not to optimize for fast installation.
26172fast_install=$enable_fast_install
26173
26174# The host system.
26175host_alias=$host_alias
26176host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026177host_os=$host_os
26178
26179# The build system.
26180build_alias=$build_alias
26181build=$build
26182build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026183
26184# An echo program that does not interpret backslashes.
26185echo=$lt_echo
26186
26187# The archiver.
26188AR=$lt_AR
26189AR_FLAGS=$lt_AR_FLAGS
26190
26191# A C compiler.
26192LTCC=$lt_LTCC
26193
Reid Spencera773bd52006-08-04 18:18:08 +000026194# LTCC compiler flags.
26195LTCFLAGS=$lt_LTCFLAGS
26196
John Criswell47fdd832003-07-14 16:52:07 +000026197# A language-specific compiler.
26198CC=$lt_compiler_GCJ
26199
26200# Is the compiler the GNU C compiler?
26201with_gcc=$GCC_GCJ
26202
26203# An ERE matcher.
26204EGREP=$lt_EGREP
26205
26206# The linker used to build libraries.
26207LD=$lt_LD_GCJ
26208
26209# Whether we need hard or soft links.
26210LN_S=$lt_LN_S
26211
26212# A BSD-compatible nm program.
26213NM=$lt_NM
26214
26215# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026216STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026217
26218# Used to examine libraries when file_magic_cmd begins "file"
26219MAGIC_CMD=$MAGIC_CMD
26220
26221# Used on cygwin: DLL creation program.
26222DLLTOOL="$DLLTOOL"
26223
26224# Used on cygwin: object dumper.
26225OBJDUMP="$OBJDUMP"
26226
26227# Used on cygwin: assembler.
26228AS="$AS"
26229
26230# The name of the directory that contains temporary libtool files.
26231objdir=$objdir
26232
26233# How to create reloadable object files.
26234reload_flag=$lt_reload_flag
26235reload_cmds=$lt_reload_cmds
26236
26237# How to pass a linker flag through the compiler.
26238wl=$lt_lt_prog_compiler_wl_GCJ
26239
26240# Object file suffix (normally "o").
26241objext="$ac_objext"
26242
26243# Old archive suffix (normally "a").
26244libext="$libext"
26245
26246# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026248
26249# Executable file suffix (normally "").
26250exeext="$exeext"
26251
26252# Additional compiler flags for building library objects.
26253pic_flag=$lt_lt_prog_compiler_pic_GCJ
26254pic_mode=$pic_mode
26255
26256# What is the maximum length of a command?
26257max_cmd_len=$lt_cv_sys_max_cmd_len
26258
26259# Does compiler simultaneously support -c and -o options?
26260compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26261
Reid Spencera773bd52006-08-04 18:18:08 +000026262# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026263need_locks=$lt_need_locks
26264
26265# Do we need the lib prefix for modules?
26266need_lib_prefix=$need_lib_prefix
26267
26268# Do we need a version for libraries?
26269need_version=$need_version
26270
26271# Whether dlopen is supported.
26272dlopen_support=$enable_dlopen
26273
26274# Whether dlopen of programs is supported.
26275dlopen_self=$enable_dlopen_self
26276
26277# Whether dlopen of statically linked programs is supported.
26278dlopen_self_static=$enable_dlopen_self_static
26279
26280# Compiler flag to prevent dynamic linking.
26281link_static_flag=$lt_lt_prog_compiler_static_GCJ
26282
26283# Compiler flag to turn off builtin functions.
26284no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26285
26286# Compiler flag to allow reflexive dlopens.
26287export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26288
26289# Compiler flag to generate shared objects directly from archives.
26290whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26291
26292# Compiler flag to generate thread-safe objects.
26293thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26294
26295# Library versioning type.
26296version_type=$version_type
26297
26298# Format of library name prefix.
26299libname_spec=$lt_libname_spec
26300
26301# List of archive names. First name is the real one, the rest are links.
26302# The last name is the one that the linker finds with -lNAME.
26303library_names_spec=$lt_library_names_spec
26304
26305# The coded name of the library, if different from the real name.
26306soname_spec=$lt_soname_spec
26307
26308# Commands used to build and install an old-style archive.
26309RANLIB=$lt_RANLIB
26310old_archive_cmds=$lt_old_archive_cmds_GCJ
26311old_postinstall_cmds=$lt_old_postinstall_cmds
26312old_postuninstall_cmds=$lt_old_postuninstall_cmds
26313
26314# Create an old-style archive from a shared archive.
26315old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26316
26317# Create a temporary old-style archive to link instead of a shared archive.
26318old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26319
26320# Commands used to build and install a shared archive.
26321archive_cmds=$lt_archive_cmds_GCJ
26322archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26323postinstall_cmds=$lt_postinstall_cmds
26324postuninstall_cmds=$lt_postuninstall_cmds
26325
26326# Commands used to build a loadable module (assumed same as above if empty)
26327module_cmds=$lt_module_cmds_GCJ
26328module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26329
26330# Commands to strip libraries.
26331old_striplib=$lt_old_striplib
26332striplib=$lt_striplib
26333
26334# Dependencies to place before the objects being linked to create a
26335# shared library.
26336predep_objects=$lt_predep_objects_GCJ
26337
26338# Dependencies to place after the objects being linked to create a
26339# shared library.
26340postdep_objects=$lt_postdep_objects_GCJ
26341
26342# Dependencies to place before the objects being linked to create a
26343# shared library.
26344predeps=$lt_predeps_GCJ
26345
26346# Dependencies to place after the objects being linked to create a
26347# shared library.
26348postdeps=$lt_postdeps_GCJ
26349
26350# The library search path used internally by the compiler when linking
26351# a shared library.
26352compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26353
26354# Method to check whether dependent libraries are shared objects.
26355deplibs_check_method=$lt_deplibs_check_method
26356
26357# Command to use when deplibs_check_method == file_magic.
26358file_magic_cmd=$lt_file_magic_cmd
26359
26360# Flag that allows shared libraries with undefined symbols to be built.
26361allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26362
26363# Flag that forces no undefined symbols.
26364no_undefined_flag=$lt_no_undefined_flag_GCJ
26365
26366# Commands used to finish a libtool library installation in a directory.
26367finish_cmds=$lt_finish_cmds
26368
26369# Same as above, but a single script fragment to be evaled but not shown.
26370finish_eval=$lt_finish_eval
26371
26372# Take the output of nm and produce a listing of raw symbols and C names.
26373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26374
26375# Transform the output of nm in a proper C declaration
26376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26377
26378# Transform the output of nm in a C name address pair
26379global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26380
26381# This is the shared library runtime path variable.
26382runpath_var=$runpath_var
26383
26384# This is the shared library path variable.
26385shlibpath_var=$shlibpath_var
26386
26387# Is shlibpath searched before the hard-coded library search path?
26388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26389
26390# How to hardcode a shared library path into an executable.
26391hardcode_action=$hardcode_action_GCJ
26392
26393# Whether we should hardcode library paths into libraries.
26394hardcode_into_libs=$hardcode_into_libs
26395
26396# Flag to hardcode \$libdir into a binary during linking.
26397# This must work even if \$libdir does not exist.
26398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26399
26400# If ld is used when linking, flag to hardcode \$libdir into
26401# a binary during linking. This must work even if \$libdir does
26402# not exist.
26403hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26404
26405# Whether we need a single -rpath flag with a separated argument.
26406hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26407
26408# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26409# resulting binary.
26410hardcode_direct=$hardcode_direct_GCJ
26411
26412# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26413# resulting binary.
26414hardcode_minus_L=$hardcode_minus_L_GCJ
26415
26416# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26417# the resulting binary.
26418hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26419
26420# Set to yes if building a shared library automatically hardcodes DIR into the library
26421# and all subsequent libraries and executables linked against it.
26422hardcode_automatic=$hardcode_automatic_GCJ
26423
26424# Variables whose values should be saved in libtool wrapper scripts and
26425# restored at relink time.
26426variables_saved_for_relink="$variables_saved_for_relink"
26427
26428# Whether libtool must link a program against all its dependency libraries.
26429link_all_deplibs=$link_all_deplibs_GCJ
26430
26431# Compile-time system search path for libraries
26432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26433
26434# Run-time system search path for libraries
26435sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26436
26437# Fix the shell variable \$srcfile for the compiler.
26438fix_srcfile_path="$fix_srcfile_path_GCJ"
26439
26440# Set to yes if exported symbols are required.
26441always_export_symbols=$always_export_symbols_GCJ
26442
26443# The commands to list exported symbols.
26444export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26445
26446# The commands to extract the exported symbol list from a shared archive.
26447extract_expsyms_cmds=$lt_extract_expsyms_cmds
26448
26449# Symbols that should not be listed in the preloaded symbols.
26450exclude_expsyms=$lt_exclude_expsyms_GCJ
26451
26452# Symbols that must always be exported.
26453include_expsyms=$lt_include_expsyms_GCJ
26454
26455# ### END LIBTOOL TAG CONFIG: $tagname
26456
26457__EOF__
26458
26459
26460else
26461 # If there is no Makefile yet, we rely on a make rule to execute
26462 # `config.status --recheck' to rerun these tests and create the
26463 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026464 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26465 if test -f "$ltmain_in"; then
26466 test -f Makefile && make "$ltmain"
26467 fi
John Criswell47fdd832003-07-14 16:52:07 +000026468fi
26469
26470
26471ac_ext=c
26472ac_cpp='$CPP $CPPFLAGS'
26473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26475ac_compiler_gnu=$ac_cv_c_compiler_gnu
26476
26477CC="$lt_save_CC"
26478
26479 else
26480 tagname=""
26481 fi
26482 ;;
26483
26484 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026485 ac_ext=c
26486ac_cpp='$CPP $CPPFLAGS'
26487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26489ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026490
26491
26492# Source file extension for RC test sources.
26493ac_ext=rc
26494
26495# Object file extension for compiled RC test sources.
26496objext=o
26497objext_RC=$objext
26498
26499# Code to be used in simple compile tests
26500lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26501
26502# Code to be used in simple link tests
26503lt_simple_link_test_code="$lt_simple_compile_test_code"
26504
26505# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26506
26507# If no C compiler was specified, use CC.
26508LTCC=${LTCC-"$CC"}
26509
Reid Spencera773bd52006-08-04 18:18:08 +000026510# If no C compiler flags were specified, use CFLAGS.
26511LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26512
John Criswell47fdd832003-07-14 16:52:07 +000026513# Allow CC to be a program name with arguments.
26514compiler=$CC
26515
26516
Reid Spencera773bd52006-08-04 18:18:08 +000026517# save warnings/boilerplate of simple test code
26518ac_outfile=conftest.$ac_objext
26519printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26520eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26521_lt_compiler_boilerplate=`cat conftest.err`
26522$rm conftest*
26523
26524ac_outfile=conftest.$ac_objext
26525printf "$lt_simple_link_test_code" >conftest.$ac_ext
26526eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26527_lt_linker_boilerplate=`cat conftest.err`
26528$rm conftest*
26529
26530
John Criswell47fdd832003-07-14 16:52:07 +000026531# Allow CC to be a program name with arguments.
26532lt_save_CC="$CC"
26533CC=${RC-"windres"}
26534compiler=$CC
26535compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026536for cc_temp in $compiler""; do
26537 case $cc_temp in
26538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26540 \-*) ;;
26541 *) break;;
26542 esac
26543done
26544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26545
John Criswell47fdd832003-07-14 16:52:07 +000026546lt_cv_prog_compiler_c_o_RC=yes
26547
26548# The else clause should only fire when bootstrapping the
26549# libtool distribution, otherwise you forgot to ship ltmain.sh
26550# with your package, and you will get complaints that there are
26551# no rules to generate ltmain.sh.
26552if test -f "$ltmain"; then
26553 # See if we are running on zsh, and set the options which allow our commands through
26554 # without removal of \ escapes.
26555 if test -n "${ZSH_VERSION+set}" ; then
26556 setopt NO_GLOB_SUBST
26557 fi
26558 # Now quote all the things that may contain metacharacters while being
26559 # careful not to overquote the AC_SUBSTed values. We take copies of the
26560 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026561 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 +000026562 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026563 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26564 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26565 deplibs_check_method reload_flag reload_cmds need_locks \
26566 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26567 lt_cv_sys_global_symbol_to_c_name_address \
26568 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26569 old_postinstall_cmds old_postuninstall_cmds \
26570 compiler_RC \
26571 CC_RC \
26572 LD_RC \
26573 lt_prog_compiler_wl_RC \
26574 lt_prog_compiler_pic_RC \
26575 lt_prog_compiler_static_RC \
26576 lt_prog_compiler_no_builtin_flag_RC \
26577 export_dynamic_flag_spec_RC \
26578 thread_safe_flag_spec_RC \
26579 whole_archive_flag_spec_RC \
26580 enable_shared_with_static_runtimes_RC \
26581 old_archive_cmds_RC \
26582 old_archive_from_new_cmds_RC \
26583 predep_objects_RC \
26584 postdep_objects_RC \
26585 predeps_RC \
26586 postdeps_RC \
26587 compiler_lib_search_path_RC \
26588 archive_cmds_RC \
26589 archive_expsym_cmds_RC \
26590 postinstall_cmds_RC \
26591 postuninstall_cmds_RC \
26592 old_archive_from_expsyms_cmds_RC \
26593 allow_undefined_flag_RC \
26594 no_undefined_flag_RC \
26595 export_symbols_cmds_RC \
26596 hardcode_libdir_flag_spec_RC \
26597 hardcode_libdir_flag_spec_ld_RC \
26598 hardcode_libdir_separator_RC \
26599 hardcode_automatic_RC \
26600 module_cmds_RC \
26601 module_expsym_cmds_RC \
26602 lt_cv_prog_compiler_c_o_RC \
26603 exclude_expsyms_RC \
26604 include_expsyms_RC; do
26605
26606 case $var in
26607 old_archive_cmds_RC | \
26608 old_archive_from_new_cmds_RC | \
26609 archive_cmds_RC | \
26610 archive_expsym_cmds_RC | \
26611 module_cmds_RC | \
26612 module_expsym_cmds_RC | \
26613 old_archive_from_expsyms_cmds_RC | \
26614 export_symbols_cmds_RC | \
26615 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26616 postinstall_cmds | postuninstall_cmds | \
26617 old_postinstall_cmds | old_postuninstall_cmds | \
26618 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26619 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026620 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 +000026621 ;;
26622 *)
26623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26624 ;;
26625 esac
26626 done
26627
26628 case $lt_echo in
26629 *'\$0 --fallback-echo"')
26630 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26631 ;;
26632 esac
26633
26634cfgfile="$ofile"
26635
26636 cat <<__EOF__ >> "$cfgfile"
26637# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26638
26639# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26640
26641# Shell to use when invoking shell scripts.
26642SHELL=$lt_SHELL
26643
26644# Whether or not to build shared libraries.
26645build_libtool_libs=$enable_shared
26646
26647# Whether or not to build static libraries.
26648build_old_libs=$enable_static
26649
26650# Whether or not to add -lc for building shared libraries.
26651build_libtool_need_lc=$archive_cmds_need_lc_RC
26652
26653# Whether or not to disallow shared libs when runtime libs are static
26654allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26655
26656# Whether or not to optimize for fast installation.
26657fast_install=$enable_fast_install
26658
26659# The host system.
26660host_alias=$host_alias
26661host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026662host_os=$host_os
26663
26664# The build system.
26665build_alias=$build_alias
26666build=$build
26667build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026668
26669# An echo program that does not interpret backslashes.
26670echo=$lt_echo
26671
26672# The archiver.
26673AR=$lt_AR
26674AR_FLAGS=$lt_AR_FLAGS
26675
26676# A C compiler.
26677LTCC=$lt_LTCC
26678
Reid Spencera773bd52006-08-04 18:18:08 +000026679# LTCC compiler flags.
26680LTCFLAGS=$lt_LTCFLAGS
26681
John Criswell47fdd832003-07-14 16:52:07 +000026682# A language-specific compiler.
26683CC=$lt_compiler_RC
26684
26685# Is the compiler the GNU C compiler?
26686with_gcc=$GCC_RC
26687
26688# An ERE matcher.
26689EGREP=$lt_EGREP
26690
26691# The linker used to build libraries.
26692LD=$lt_LD_RC
26693
26694# Whether we need hard or soft links.
26695LN_S=$lt_LN_S
26696
26697# A BSD-compatible nm program.
26698NM=$lt_NM
26699
26700# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026701STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026702
26703# Used to examine libraries when file_magic_cmd begins "file"
26704MAGIC_CMD=$MAGIC_CMD
26705
26706# Used on cygwin: DLL creation program.
26707DLLTOOL="$DLLTOOL"
26708
26709# Used on cygwin: object dumper.
26710OBJDUMP="$OBJDUMP"
26711
26712# Used on cygwin: assembler.
26713AS="$AS"
26714
26715# The name of the directory that contains temporary libtool files.
26716objdir=$objdir
26717
26718# How to create reloadable object files.
26719reload_flag=$lt_reload_flag
26720reload_cmds=$lt_reload_cmds
26721
26722# How to pass a linker flag through the compiler.
26723wl=$lt_lt_prog_compiler_wl_RC
26724
26725# Object file suffix (normally "o").
26726objext="$ac_objext"
26727
26728# Old archive suffix (normally "a").
26729libext="$libext"
26730
26731# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026732shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026733
26734# Executable file suffix (normally "").
26735exeext="$exeext"
26736
26737# Additional compiler flags for building library objects.
26738pic_flag=$lt_lt_prog_compiler_pic_RC
26739pic_mode=$pic_mode
26740
26741# What is the maximum length of a command?
26742max_cmd_len=$lt_cv_sys_max_cmd_len
26743
26744# Does compiler simultaneously support -c and -o options?
26745compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26746
Reid Spencera773bd52006-08-04 18:18:08 +000026747# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026748need_locks=$lt_need_locks
26749
26750# Do we need the lib prefix for modules?
26751need_lib_prefix=$need_lib_prefix
26752
26753# Do we need a version for libraries?
26754need_version=$need_version
26755
26756# Whether dlopen is supported.
26757dlopen_support=$enable_dlopen
26758
26759# Whether dlopen of programs is supported.
26760dlopen_self=$enable_dlopen_self
26761
26762# Whether dlopen of statically linked programs is supported.
26763dlopen_self_static=$enable_dlopen_self_static
26764
26765# Compiler flag to prevent dynamic linking.
26766link_static_flag=$lt_lt_prog_compiler_static_RC
26767
26768# Compiler flag to turn off builtin functions.
26769no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26770
26771# Compiler flag to allow reflexive dlopens.
26772export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26773
26774# Compiler flag to generate shared objects directly from archives.
26775whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26776
26777# Compiler flag to generate thread-safe objects.
26778thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26779
26780# Library versioning type.
26781version_type=$version_type
26782
26783# Format of library name prefix.
26784libname_spec=$lt_libname_spec
26785
26786# List of archive names. First name is the real one, the rest are links.
26787# The last name is the one that the linker finds with -lNAME.
26788library_names_spec=$lt_library_names_spec
26789
26790# The coded name of the library, if different from the real name.
26791soname_spec=$lt_soname_spec
26792
26793# Commands used to build and install an old-style archive.
26794RANLIB=$lt_RANLIB
26795old_archive_cmds=$lt_old_archive_cmds_RC
26796old_postinstall_cmds=$lt_old_postinstall_cmds
26797old_postuninstall_cmds=$lt_old_postuninstall_cmds
26798
26799# Create an old-style archive from a shared archive.
26800old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26801
26802# Create a temporary old-style archive to link instead of a shared archive.
26803old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26804
26805# Commands used to build and install a shared archive.
26806archive_cmds=$lt_archive_cmds_RC
26807archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26808postinstall_cmds=$lt_postinstall_cmds
26809postuninstall_cmds=$lt_postuninstall_cmds
26810
26811# Commands used to build a loadable module (assumed same as above if empty)
26812module_cmds=$lt_module_cmds_RC
26813module_expsym_cmds=$lt_module_expsym_cmds_RC
26814
26815# Commands to strip libraries.
26816old_striplib=$lt_old_striplib
26817striplib=$lt_striplib
26818
26819# Dependencies to place before the objects being linked to create a
26820# shared library.
26821predep_objects=$lt_predep_objects_RC
26822
26823# Dependencies to place after the objects being linked to create a
26824# shared library.
26825postdep_objects=$lt_postdep_objects_RC
26826
26827# Dependencies to place before the objects being linked to create a
26828# shared library.
26829predeps=$lt_predeps_RC
26830
26831# Dependencies to place after the objects being linked to create a
26832# shared library.
26833postdeps=$lt_postdeps_RC
26834
26835# The library search path used internally by the compiler when linking
26836# a shared library.
26837compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26838
26839# Method to check whether dependent libraries are shared objects.
26840deplibs_check_method=$lt_deplibs_check_method
26841
26842# Command to use when deplibs_check_method == file_magic.
26843file_magic_cmd=$lt_file_magic_cmd
26844
26845# Flag that allows shared libraries with undefined symbols to be built.
26846allow_undefined_flag=$lt_allow_undefined_flag_RC
26847
26848# Flag that forces no undefined symbols.
26849no_undefined_flag=$lt_no_undefined_flag_RC
26850
26851# Commands used to finish a libtool library installation in a directory.
26852finish_cmds=$lt_finish_cmds
26853
26854# Same as above, but a single script fragment to be evaled but not shown.
26855finish_eval=$lt_finish_eval
26856
26857# Take the output of nm and produce a listing of raw symbols and C names.
26858global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26859
26860# Transform the output of nm in a proper C declaration
26861global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26862
26863# Transform the output of nm in a C name address pair
26864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26865
26866# This is the shared library runtime path variable.
26867runpath_var=$runpath_var
26868
26869# This is the shared library path variable.
26870shlibpath_var=$shlibpath_var
26871
26872# Is shlibpath searched before the hard-coded library search path?
26873shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26874
26875# How to hardcode a shared library path into an executable.
26876hardcode_action=$hardcode_action_RC
26877
26878# Whether we should hardcode library paths into libraries.
26879hardcode_into_libs=$hardcode_into_libs
26880
26881# Flag to hardcode \$libdir into a binary during linking.
26882# This must work even if \$libdir does not exist.
26883hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26884
26885# If ld is used when linking, flag to hardcode \$libdir into
26886# a binary during linking. This must work even if \$libdir does
26887# not exist.
26888hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26889
26890# Whether we need a single -rpath flag with a separated argument.
26891hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26892
26893# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26894# resulting binary.
26895hardcode_direct=$hardcode_direct_RC
26896
26897# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26898# resulting binary.
26899hardcode_minus_L=$hardcode_minus_L_RC
26900
26901# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26902# the resulting binary.
26903hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26904
26905# Set to yes if building a shared library automatically hardcodes DIR into the library
26906# and all subsequent libraries and executables linked against it.
26907hardcode_automatic=$hardcode_automatic_RC
26908
26909# Variables whose values should be saved in libtool wrapper scripts and
26910# restored at relink time.
26911variables_saved_for_relink="$variables_saved_for_relink"
26912
26913# Whether libtool must link a program against all its dependency libraries.
26914link_all_deplibs=$link_all_deplibs_RC
26915
26916# Compile-time system search path for libraries
26917sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26918
26919# Run-time system search path for libraries
26920sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26921
26922# Fix the shell variable \$srcfile for the compiler.
26923fix_srcfile_path="$fix_srcfile_path_RC"
26924
26925# Set to yes if exported symbols are required.
26926always_export_symbols=$always_export_symbols_RC
26927
26928# The commands to list exported symbols.
26929export_symbols_cmds=$lt_export_symbols_cmds_RC
26930
26931# The commands to extract the exported symbol list from a shared archive.
26932extract_expsyms_cmds=$lt_extract_expsyms_cmds
26933
26934# Symbols that should not be listed in the preloaded symbols.
26935exclude_expsyms=$lt_exclude_expsyms_RC
26936
26937# Symbols that must always be exported.
26938include_expsyms=$lt_include_expsyms_RC
26939
26940# ### END LIBTOOL TAG CONFIG: $tagname
26941
26942__EOF__
26943
26944
26945else
26946 # If there is no Makefile yet, we rely on a make rule to execute
26947 # `config.status --recheck' to rerun these tests and create the
26948 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26950 if test -f "$ltmain_in"; then
26951 test -f Makefile && make "$ltmain"
26952 fi
John Criswell47fdd832003-07-14 16:52:07 +000026953fi
26954
26955
26956ac_ext=c
26957ac_cpp='$CPP $CPPFLAGS'
26958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26960ac_compiler_gnu=$ac_cv_c_compiler_gnu
26961
26962CC="$lt_save_CC"
26963
26964 ;;
26965
26966 *)
26967 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26968echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26969 { (exit 1); exit 1; }; }
26970 ;;
26971 esac
26972
26973 # Append the new tag name to the list of available tags.
26974 if test -n "$tagname" ; then
26975 available_tags="$available_tags $tagname"
26976 fi
26977 fi
26978 done
26979 IFS="$lt_save_ifs"
26980
26981 # Now substitute the updated list of available tags.
26982 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26983 mv "${ofile}T" "$ofile"
26984 chmod +x "$ofile"
26985 else
26986 rm -f "${ofile}T"
26987 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26988echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26989 { (exit 1); exit 1; }; }
26990 fi
26991fi
John Criswell7a73b802003-06-30 21:59:07 +000026992
26993
26994
26995# This can be used to rebuild libtool when needed
26996LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26997
26998# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026999LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027000
27001# Prevent multiple expansion
27002
27003
27004
John Criswell47fdd832003-07-14 16:52:07 +000027005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027022
Reid Spencer582a23c2004-12-29 07:07:57 +000027023if test "$lt_cv_dlopen_self" = "yes" ; then
27024
27025cat >>confdefs.h <<\_ACEOF
27026#define CAN_DLOPEN_SELF 1
27027_ACEOF
27028
27029fi
27030
Reid Spencer7931a782004-12-27 06:15:02 +000027031if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027032 LLVMGCC="llvm-gcc${EXEEXT}"
27033 LLVMGXX="llvm-g++${EXEEXT}"
27034 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27035set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027038if test "${ac_cv_path_LLVMGCC+set}" = set; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27040else
27041 case $LLVMGCC in
27042 [\\/]* | ?:[\\/]*)
27043 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27044 ;;
27045 *)
27046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27047for as_dir in $PATH
27048do
27049 IFS=$as_save_IFS
27050 test -z "$as_dir" && as_dir=.
27051 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000027052 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 +000027053 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27055 break 2
27056 fi
27057done
27058done
Reid Spencera773bd52006-08-04 18:18:08 +000027059IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027060
Reid Spencer59473af2004-12-25 07:31:29 +000027061 ;;
27062esac
27063fi
27064LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027065if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027066 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27067echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027068else
Reid Spencera773bd52006-08-04 18:18:08 +000027069 { echo "$as_me:$LINENO: result: no" >&5
27070echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027071fi
27072
Reid Spencera773bd52006-08-04 18:18:08 +000027073
Reid Spencerc84492c2005-06-02 22:34:49 +000027074 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27075set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027078if test "${ac_cv_path_LLVMGXX+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080else
27081 case $LLVMGXX in
27082 [\\/]* | ?:[\\/]*)
27083 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27084 ;;
27085 *)
27086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27087for as_dir in $PATH
27088do
27089 IFS=$as_save_IFS
27090 test -z "$as_dir" && as_dir=.
27091 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000027092 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 +000027093 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27095 break 2
27096 fi
27097done
27098done
Reid Spencera773bd52006-08-04 18:18:08 +000027099IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027100
Reid Spencer59473af2004-12-25 07:31:29 +000027101 ;;
27102esac
27103fi
27104LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027105if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027106 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27107echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027108else
Reid Spencera773bd52006-08-04 18:18:08 +000027109 { echo "$as_me:$LINENO: result: no" >&5
27110echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027111fi
27112
Reid Spencera773bd52006-08-04 18:18:08 +000027113
Reid Spencer59473af2004-12-25 07:31:29 +000027114else
Devang Patel5d28b882007-12-04 22:54:47 +000027115 if test -z "$LLVMGCC"; then
27116 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27117 fi
27118 if test -z "$LLVMGXX"; then
27119 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27120 fi
Reid Spencer59473af2004-12-25 07:31:29 +000027121 LLVMGCC=$LLVMGCC
27122
27123 LLVMGXX=$LLVMGXX
27124
27125fi
27126
Reid Spencera773bd52006-08-04 18:18:08 +000027127{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27128echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027129
Reid Spencer86901802004-12-08 23:07:27 +000027130ICC=no
27131IXX=no
27132case $CC in
27133 icc*|icpc*)
27134 ICC=yes
27135 IXX=yes
27136 ;;
27137 *)
27138 ;;
27139esac
27140
Duraid Madina937c60a2006-02-15 07:57:42 +000027141if test "$GCC" != "yes" && test "$ICC" != "yes"
27142then
27143 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27144echo "$as_me: error: gcc|icc required but not found" >&2;}
27145 { (exit 1); exit 1; }; }
27146fi
27147
27148if test "$GXX" != "yes" && test "$IXX" != "yes"
27149then
27150 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27151echo "$as_me: error: g++|icc required but not found" >&2;}
27152 { (exit 1); exit 1; }; }
27153fi
27154
Reid Spencer86901802004-12-08 23:07:27 +000027155if test "$GCC" = "yes"
27156then
Chris Lattner399c7c72008-02-05 19:43:53 +000027157 cat >conftest.$ac_ext <<_ACEOF
27158#if !defined(__GNUC__) || __GNUC__ < 3
27159#error Unsupported GCC version
27160#endif
27161
27162_ACEOF
27163rm -f conftest.$ac_objext
27164if { (ac_try="$ac_compile"
27165case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27168esac
27169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170 (eval "$ac_compile") 2>conftest.er1
27171 ac_status=$?
27172 grep -v '^ *+' conftest.er1 >conftest.err
27173 rm -f conftest.er1
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } &&
27177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27178 { (case "(($ac_try" in
27179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27181esac
27182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183 (eval "$ac_try") 2>&5
27184 ac_status=$?
27185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186 (exit $ac_status); }; } &&
27187 { ac_try='test -s conftest.$ac_objext'
27188 { (case "(($ac_try" in
27189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190 *) ac_try_echo=$ac_try;;
27191esac
27192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193 (eval "$ac_try") 2>&5
27194 ac_status=$?
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; }; then
27197 :
27198else
27199 echo "$as_me: failed program was:" >&5
27200sed 's/^/| /' conftest.$ac_ext >&5
27201
27202 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027203echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27204 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027205fi
27206
27207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027208fi
27209
27210if test -z "$llvm_cv_gnu_make_command"
27211then
27212 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27213echo "$as_me: error: GNU Make required but not found" >&2;}
27214 { (exit 1); exit 1; }; }
27215fi
27216
Reid Spencera773bd52006-08-04 18:18:08 +000027217{ echo "$as_me:$LINENO: result: ok" >&5
27218echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027219
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027220
John Criswell7a73b802003-06-30 21:59:07 +000027221
Reid Spencera773bd52006-08-04 18:18:08 +000027222{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27223echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027224if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27225 echo $ECHO_N "(cached) $ECHO_C" >&6
27226else
27227 ac_check_lib_save_LIBS=$LIBS
27228LIBS="-lelf $LIBS"
27229cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027230/* confdefs.h. */
27231_ACEOF
27232cat confdefs.h >>conftest.$ac_ext
27233cat >>conftest.$ac_ext <<_ACEOF
27234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027235
Reid Spencera773bd52006-08-04 18:18:08 +000027236/* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027239#ifdef __cplusplus
27240extern "C"
27241#endif
John Criswell7a73b802003-06-30 21:59:07 +000027242char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027243int
27244main ()
27245{
Reid Spencera773bd52006-08-04 18:18:08 +000027246return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027247 ;
27248 return 0;
27249}
27250_ACEOF
27251rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027252if { (ac_try="$ac_link"
27253case "(($ac_try" in
27254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27255 *) ac_try_echo=$ac_try;;
27256esac
27257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27258 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027259 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027260 grep -v '^ *+' conftest.er1 >conftest.err
27261 rm -f conftest.er1
27262 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027264 (exit $ac_status); } &&
27265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27266 { (case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27269esac
27270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_try") 2>&5
27272 ac_status=$?
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); }; } &&
27275 { ac_try='test -s conftest$ac_exeext'
27276 { (case "(($ac_try" in
27277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27278 *) ac_try_echo=$ac_try;;
27279esac
27280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27281 (eval "$ac_try") 2>&5
27282 ac_status=$?
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027285 ac_cv_lib_elf_elf_begin=yes
27286else
27287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027288sed 's/^/| /' conftest.$ac_ext >&5
27289
Reid Spencera773bd52006-08-04 18:18:08 +000027290 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027291fi
Reid Spencera773bd52006-08-04 18:18:08 +000027292
Tanya Lattnercf067672008-01-17 05:57:22 +000027293rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027294 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027295LIBS=$ac_check_lib_save_LIBS
27296fi
Reid Spencera773bd52006-08-04 18:18:08 +000027297{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27298echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027299if test $ac_cv_lib_elf_elf_begin = yes; then
27300 cat >>confdefs.h <<_ACEOF
27301#define HAVE_LIBELF 1
27302_ACEOF
27303
27304 LIBS="-lelf $LIBS"
27305
27306fi
27307
27308
Reid Spencera773bd52006-08-04 18:18:08 +000027309{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27310echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027311if test "${ac_cv_lib_m_sin+set}" = set; then
27312 echo $ECHO_N "(cached) $ECHO_C" >&6
27313else
27314 ac_check_lib_save_LIBS=$LIBS
27315LIBS="-lm $LIBS"
27316cat >conftest.$ac_ext <<_ACEOF
27317/* confdefs.h. */
27318_ACEOF
27319cat confdefs.h >>conftest.$ac_ext
27320cat >>conftest.$ac_ext <<_ACEOF
27321/* end confdefs.h. */
27322
Reid Spencera773bd52006-08-04 18:18:08 +000027323/* Override any GCC internal prototype to avoid an error.
27324 Use char because int might match the return type of a GCC
27325 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027326#ifdef __cplusplus
27327extern "C"
27328#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027329char sin ();
27330int
27331main ()
27332{
Reid Spencera773bd52006-08-04 18:18:08 +000027333return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027334 ;
27335 return 0;
27336}
27337_ACEOF
27338rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027339if { (ac_try="$ac_link"
27340case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27343esac
27344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027346 ac_status=$?
27347 grep -v '^ *+' conftest.er1 >conftest.err
27348 rm -f conftest.er1
27349 cat conftest.err >&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027351 (exit $ac_status); } &&
27352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27353 { (case "(($ac_try" in
27354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27355 *) ac_try_echo=$ac_try;;
27356esac
27357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27358 (eval "$ac_try") 2>&5
27359 ac_status=$?
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); }; } &&
27362 { ac_try='test -s conftest$ac_exeext'
27363 { (case "(($ac_try" in
27364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365 *) ac_try_echo=$ac_try;;
27366esac
27367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27368 (eval "$ac_try") 2>&5
27369 ac_status=$?
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027372 ac_cv_lib_m_sin=yes
27373else
27374 echo "$as_me: failed program was:" >&5
27375sed 's/^/| /' conftest.$ac_ext >&5
27376
Reid Spencera773bd52006-08-04 18:18:08 +000027377 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027378fi
Reid Spencera773bd52006-08-04 18:18:08 +000027379
Tanya Lattnercf067672008-01-17 05:57:22 +000027380rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027381 conftest$ac_exeext conftest.$ac_ext
27382LIBS=$ac_check_lib_save_LIBS
27383fi
Reid Spencera773bd52006-08-04 18:18:08 +000027384{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27385echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027386if test $ac_cv_lib_m_sin = yes; then
27387 cat >>confdefs.h <<_ACEOF
27388#define HAVE_LIBM 1
27389_ACEOF
27390
27391 LIBS="-lm $LIBS"
27392
27393fi
27394
Jeff Cohen28783c32007-01-12 18:22:38 +000027395if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027396
Reid Spencera773bd52006-08-04 18:18:08 +000027397{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27398echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027399if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027400 echo $ECHO_N "(cached) $ECHO_C" >&6
27401else
27402 ac_check_lib_save_LIBS=$LIBS
27403LIBS="-limagehlp $LIBS"
27404cat >conftest.$ac_ext <<_ACEOF
27405/* confdefs.h. */
27406_ACEOF
27407cat confdefs.h >>conftest.$ac_ext
27408cat >>conftest.$ac_ext <<_ACEOF
27409/* end confdefs.h. */
27410
Reid Spencer48fdf912006-06-01 19:03:21 +000027411
Reid Spencer484fc8e2006-06-01 16:55:59 +000027412int
27413main ()
27414{
Reid Spencera773bd52006-08-04 18:18:08 +000027415return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027416 ;
27417 return 0;
27418}
27419_ACEOF
27420rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027421if { (ac_try="$ac_link"
27422case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425esac
27426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027428 ac_status=$?
27429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438esac
27439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
27441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
27445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448esac
27449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027454 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027455else
27456 echo "$as_me: failed program was:" >&5
27457sed 's/^/| /' conftest.$ac_ext >&5
27458
Reid Spencera773bd52006-08-04 18:18:08 +000027459 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027460fi
Reid Spencera773bd52006-08-04 18:18:08 +000027461
Tanya Lattnercf067672008-01-17 05:57:22 +000027462rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027463 conftest$ac_exeext conftest.$ac_ext
27464LIBS=$ac_check_lib_save_LIBS
27465fi
Reid Spencera773bd52006-08-04 18:18:08 +000027466{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27467echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027468if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027469 cat >>confdefs.h <<_ACEOF
27470#define HAVE_LIBIMAGEHLP 1
27471_ACEOF
27472
27473 LIBS="-limagehlp $LIBS"
27474
27475fi
27476
27477
Reid Spencera773bd52006-08-04 18:18:08 +000027478{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27479echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027480if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027481 echo $ECHO_N "(cached) $ECHO_C" >&6
27482else
27483 ac_check_lib_save_LIBS=$LIBS
27484LIBS="-lpsapi $LIBS"
27485cat >conftest.$ac_ext <<_ACEOF
27486/* confdefs.h. */
27487_ACEOF
27488cat confdefs.h >>conftest.$ac_ext
27489cat >>conftest.$ac_ext <<_ACEOF
27490/* end confdefs.h. */
27491
Reid Spencer48fdf912006-06-01 19:03:21 +000027492
Reid Spencer484fc8e2006-06-01 16:55:59 +000027493int
27494main ()
27495{
Reid Spencera773bd52006-08-04 18:18:08 +000027496return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027497 ;
27498 return 0;
27499}
27500_ACEOF
27501rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027502if { (ac_try="$ac_link"
27503case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27506esac
27507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027509 ac_status=$?
27510 grep -v '^ *+' conftest.er1 >conftest.err
27511 rm -f conftest.er1
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027514 (exit $ac_status); } &&
27515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516 { (case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27519esac
27520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521 (eval "$ac_try") 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest$ac_exeext'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529esac
27530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27532 ac_status=$?
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027535 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027536else
27537 echo "$as_me: failed program was:" >&5
27538sed 's/^/| /' conftest.$ac_ext >&5
27539
Reid Spencera773bd52006-08-04 18:18:08 +000027540 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027541fi
Reid Spencera773bd52006-08-04 18:18:08 +000027542
Tanya Lattnercf067672008-01-17 05:57:22 +000027543rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027544 conftest$ac_exeext conftest.$ac_ext
27545LIBS=$ac_check_lib_save_LIBS
27546fi
Reid Spencera773bd52006-08-04 18:18:08 +000027547{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27548echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027549if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027550 cat >>confdefs.h <<_ACEOF
27551#define HAVE_LIBPSAPI 1
27552_ACEOF
27553
27554 LIBS="-lpsapi $LIBS"
27555
27556fi
27557
27558fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027559
Reid Spencera773bd52006-08-04 18:18:08 +000027560{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27561echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027562if test "${ac_cv_search_dlopen+set}" = set; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27564else
27565 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027566cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027567/* confdefs.h. */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027572
Reid Spencera773bd52006-08-04 18:18:08 +000027573/* Override any GCC internal prototype to avoid an error.
27574 Use char because int might match the return type of a GCC
27575 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027576#ifdef __cplusplus
27577extern "C"
27578#endif
John Criswell7a73b802003-06-30 21:59:07 +000027579char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027580int
27581main ()
27582{
Reid Spencera773bd52006-08-04 18:18:08 +000027583return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027584 ;
27585 return 0;
27586}
27587_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027588for ac_lib in '' dl; do
27589 if test -z "$ac_lib"; then
27590 ac_res="none required"
27591 else
27592 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027594 fi
27595 rm -f conftest.$ac_objext conftest$ac_exeext
27596if { (ac_try="$ac_link"
27597case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27600esac
27601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027603 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027604 grep -v '^ *+' conftest.er1 >conftest.err
27605 rm -f conftest.er1
27606 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027608 (exit $ac_status); } &&
27609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27610 { (case "(($ac_try" in
27611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612 *) ac_try_echo=$ac_try;;
27613esac
27614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615 (eval "$ac_try") 2>&5
27616 ac_status=$?
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); }; } &&
27619 { ac_try='test -s conftest$ac_exeext'
27620 { (case "(($ac_try" in
27621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622 *) ac_try_echo=$ac_try;;
27623esac
27624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625 (eval "$ac_try") 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027629 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027630else
27631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027632sed 's/^/| /' conftest.$ac_ext >&5
27633
Reid Spencera773bd52006-08-04 18:18:08 +000027634
John Criswell7a73b802003-06-30 21:59:07 +000027635fi
Reid Spencera773bd52006-08-04 18:18:08 +000027636
Tanya Lattnercf067672008-01-17 05:57:22 +000027637rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027638 conftest$ac_exeext
27639 if test "${ac_cv_search_dlopen+set}" = set; then
27640 break
John Criswell7a73b802003-06-30 21:59:07 +000027641fi
Reid Spencera773bd52006-08-04 18:18:08 +000027642done
27643if test "${ac_cv_search_dlopen+set}" = set; then
27644 :
27645else
27646 ac_cv_search_dlopen=no
27647fi
27648rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027649LIBS=$ac_func_search_save_LIBS
27650fi
Reid Spencera773bd52006-08-04 18:18:08 +000027651{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27652echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27653ac_res=$ac_cv_search_dlopen
27654if test "$ac_res" != no; then
27655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027656
27657cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027658#define HAVE_DLOPEN 1
27659_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027660
27661else
Brian Gaekec45be042003-10-07 06:01:34 +000027662 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27663echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027664fi
27665
27666
Reid Spencera773bd52006-08-04 18:18:08 +000027667{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27668echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027669if test "${ac_cv_search_mallinfo+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27671else
27672 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027673cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027674/* confdefs.h. */
27675_ACEOF
27676cat confdefs.h >>conftest.$ac_ext
27677cat >>conftest.$ac_ext <<_ACEOF
27678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027679
Reid Spencera773bd52006-08-04 18:18:08 +000027680/* Override any GCC internal prototype to avoid an error.
27681 Use char because int might match the return type of a GCC
27682 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027683#ifdef __cplusplus
27684extern "C"
27685#endif
John Criswell7a73b802003-06-30 21:59:07 +000027686char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027687int
27688main ()
27689{
Reid Spencera773bd52006-08-04 18:18:08 +000027690return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027691 ;
27692 return 0;
27693}
27694_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027695for ac_lib in '' malloc; do
27696 if test -z "$ac_lib"; then
27697 ac_res="none required"
27698 else
27699 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027701 fi
27702 rm -f conftest.$ac_objext conftest$ac_exeext
27703if { (ac_try="$ac_link"
27704case "(($ac_try" in
27705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706 *) ac_try_echo=$ac_try;;
27707esac
27708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027715 (exit $ac_status); } &&
27716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27717 { (case "(($ac_try" in
27718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719 *) ac_try_echo=$ac_try;;
27720esac
27721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27722 (eval "$ac_try") 2>&5
27723 ac_status=$?
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest$ac_exeext'
27727 { (case "(($ac_try" in
27728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729 *) ac_try_echo=$ac_try;;
27730esac
27731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732 (eval "$ac_try") 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027736 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027737else
27738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027739sed 's/^/| /' conftest.$ac_ext >&5
27740
Reid Spencera773bd52006-08-04 18:18:08 +000027741
John Criswell7a73b802003-06-30 21:59:07 +000027742fi
Reid Spencera773bd52006-08-04 18:18:08 +000027743
Tanya Lattnercf067672008-01-17 05:57:22 +000027744rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027745 conftest$ac_exeext
27746 if test "${ac_cv_search_mallinfo+set}" = set; then
27747 break
John Criswell7a73b802003-06-30 21:59:07 +000027748fi
Reid Spencera773bd52006-08-04 18:18:08 +000027749done
27750if test "${ac_cv_search_mallinfo+set}" = set; then
27751 :
27752else
27753 ac_cv_search_mallinfo=no
27754fi
27755rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027756LIBS=$ac_func_search_save_LIBS
27757fi
Reid Spencera773bd52006-08-04 18:18:08 +000027758{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27759echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27760ac_res=$ac_cv_search_mallinfo
27761if test "$ac_res" != no; then
27762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027763
27764cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027765#define HAVE_MALLINFO 1
27766_ACEOF
27767
27768fi
27769
27770
Reid Spencer0a262ba2005-08-24 10:07:20 +000027771if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027772
Reid Spencera773bd52006-08-04 18:18:08 +000027773{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27774echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027775if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27776 echo $ECHO_N "(cached) $ECHO_C" >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-lpthread $LIBS"
27780cat >conftest.$ac_ext <<_ACEOF
27781/* confdefs.h. */
27782_ACEOF
27783cat confdefs.h >>conftest.$ac_ext
27784cat >>conftest.$ac_ext <<_ACEOF
27785/* end confdefs.h. */
27786
Reid Spencera773bd52006-08-04 18:18:08 +000027787/* Override any GCC internal prototype to avoid an error.
27788 Use char because int might match the return type of a GCC
27789 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027790#ifdef __cplusplus
27791extern "C"
27792#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027793char pthread_mutex_init ();
27794int
27795main ()
27796{
Reid Spencera773bd52006-08-04 18:18:08 +000027797return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027798 ;
27799 return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027803if { (ac_try="$ac_link"
27804case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27807esac
27808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027810 ac_status=$?
27811 grep -v '^ *+' conftest.er1 >conftest.err
27812 rm -f conftest.er1
27813 cat conftest.err >&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027815 (exit $ac_status); } &&
27816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27817 { (case "(($ac_try" in
27818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819 *) ac_try_echo=$ac_try;;
27820esac
27821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822 (eval "$ac_try") 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; } &&
27826 { ac_try='test -s conftest$ac_exeext'
27827 { (case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27830esac
27831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832 (eval "$ac_try") 2>&5
27833 ac_status=$?
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027836 ac_cv_lib_pthread_pthread_mutex_init=yes
27837else
27838 echo "$as_me: failed program was:" >&5
27839sed 's/^/| /' conftest.$ac_ext >&5
27840
Reid Spencera773bd52006-08-04 18:18:08 +000027841 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027842fi
Reid Spencera773bd52006-08-04 18:18:08 +000027843
Tanya Lattnercf067672008-01-17 05:57:22 +000027844rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027845 conftest$ac_exeext conftest.$ac_ext
27846LIBS=$ac_check_lib_save_LIBS
27847fi
Reid Spencera773bd52006-08-04 18:18:08 +000027848{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27849echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027850if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27851 cat >>confdefs.h <<_ACEOF
27852#define HAVE_LIBPTHREAD 1
27853_ACEOF
27854
27855 LIBS="-lpthread $LIBS"
27856
27857fi
27858
Reid Spencera773bd52006-08-04 18:18:08 +000027859 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27860echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027861if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27862 echo $ECHO_N "(cached) $ECHO_C" >&6
27863else
27864 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027865cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027866/* confdefs.h. */
27867_ACEOF
27868cat confdefs.h >>conftest.$ac_ext
27869cat >>conftest.$ac_ext <<_ACEOF
27870/* end confdefs.h. */
27871
Reid Spencera773bd52006-08-04 18:18:08 +000027872/* Override any GCC internal prototype to avoid an error.
27873 Use char because int might match the return type of a GCC
27874 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027875#ifdef __cplusplus
27876extern "C"
27877#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027878char pthread_mutex_lock ();
27879int
27880main ()
27881{
Reid Spencera773bd52006-08-04 18:18:08 +000027882return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027883 ;
27884 return 0;
27885}
27886_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027887for ac_lib in '' pthread; do
27888 if test -z "$ac_lib"; then
27889 ac_res="none required"
27890 else
27891 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027893 fi
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895if { (ac_try="$ac_link"
27896case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27899esac
27900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027902 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027903 grep -v '^ *+' conftest.er1 >conftest.err
27904 rm -f conftest.er1
27905 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027907 (exit $ac_status); } &&
27908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27909 { (case "(($ac_try" in
27910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911 *) ac_try_echo=$ac_try;;
27912esac
27913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27914 (eval "$ac_try") 2>&5
27915 ac_status=$?
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; } &&
27918 { ac_try='test -s conftest$ac_exeext'
27919 { (case "(($ac_try" in
27920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921 *) ac_try_echo=$ac_try;;
27922esac
27923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924 (eval "$ac_try") 2>&5
27925 ac_status=$?
27926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027928 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027929else
27930 echo "$as_me: failed program was:" >&5
27931sed 's/^/| /' conftest.$ac_ext >&5
27932
Reid Spencera773bd52006-08-04 18:18:08 +000027933
Brian Gaeke5f268f72003-12-05 19:29:01 +000027934fi
Reid Spencera773bd52006-08-04 18:18:08 +000027935
Tanya Lattnercf067672008-01-17 05:57:22 +000027936rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027937 conftest$ac_exeext
27938 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27939 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027940fi
Reid Spencera773bd52006-08-04 18:18:08 +000027941done
27942if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27943 :
27944else
27945 ac_cv_search_pthread_mutex_lock=no
27946fi
27947rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027948LIBS=$ac_func_search_save_LIBS
27949fi
Reid Spencera773bd52006-08-04 18:18:08 +000027950{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27951echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27952ac_res=$ac_cv_search_pthread_mutex_lock
27953if test "$ac_res" != no; then
27954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027955
John Criswell40468462004-09-24 21:19:06 +000027956cat >>confdefs.h <<\_ACEOF
27957#define HAVE_PTHREAD_MUTEX_LOCK 1
27958_ACEOF
27959
27960fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027961
Reid Spencer0a262ba2005-08-24 10:07:20 +000027962fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027963
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027964
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027965# Check whether --with-udis86 was given.
27966if test "${with_udis86+set}" = set; then
27967 withval=$with_udis86;
27968 USE_UDIS86=1
27969
27970 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027971 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027972 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27973 esac
27974
27975{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27976echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27977if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27979else
27980 ac_check_lib_save_LIBS=$LIBS
27981LIBS="-ludis86 $LIBS"
27982cat >conftest.$ac_ext <<_ACEOF
27983/* confdefs.h. */
27984_ACEOF
27985cat confdefs.h >>conftest.$ac_ext
27986cat >>conftest.$ac_ext <<_ACEOF
27987/* end confdefs.h. */
27988
27989/* Override any GCC internal prototype to avoid an error.
27990 Use char because int might match the return type of a GCC
27991 builtin and then its argument prototype would still apply. */
27992#ifdef __cplusplus
27993extern "C"
27994#endif
27995char ud_init ();
27996int
27997main ()
27998{
27999return ud_init ();
28000 ;
28001 return 0;
28002}
28003_ACEOF
28004rm -f conftest.$ac_objext conftest$ac_exeext
28005if { (ac_try="$ac_link"
28006case "(($ac_try" in
28007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008 *) ac_try_echo=$ac_try;;
28009esac
28010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011 (eval "$ac_link") 2>conftest.er1
28012 ac_status=$?
28013 grep -v '^ *+' conftest.er1 >conftest.err
28014 rm -f conftest.er1
28015 cat conftest.err >&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028017 (exit $ac_status); } &&
28018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28019 { (case "(($ac_try" in
28020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28021 *) ac_try_echo=$ac_try;;
28022esac
28023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28024 (eval "$ac_try") 2>&5
28025 ac_status=$?
28026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027 (exit $ac_status); }; } &&
28028 { ac_try='test -s conftest$ac_exeext'
28029 { (case "(($ac_try" in
28030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031 *) ac_try_echo=$ac_try;;
28032esac
28033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28034 (eval "$ac_try") 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028038 ac_cv_lib_udis86_ud_init=yes
28039else
28040 echo "$as_me: failed program was:" >&5
28041sed 's/^/| /' conftest.$ac_ext >&5
28042
28043 ac_cv_lib_udis86_ud_init=no
28044fi
28045
Tanya Lattnercf067672008-01-17 05:57:22 +000028046rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028047 conftest$ac_exeext conftest.$ac_ext
28048LIBS=$ac_check_lib_save_LIBS
28049fi
28050{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28051echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28052if test $ac_cv_lib_udis86_ud_init = yes; then
28053 cat >>confdefs.h <<_ACEOF
28054#define HAVE_LIBUDIS86 1
28055_ACEOF
28056
28057 LIBS="-ludis86 $LIBS"
28058
28059else
28060
28061 echo "Error! You need to have libudis86 around."
28062 exit -1
28063
28064fi
28065
28066
28067else
28068 USE_UDIS86=0
28069
28070fi
28071
28072
28073cat >>confdefs.h <<_ACEOF
28074#define USE_UDIS86 $USE_UDIS86
28075_ACEOF
28076
28077
28078
Reid Spencer59473af2004-12-25 07:31:29 +000028079
28080
28081
28082
28083
28084ac_header_dirent=no
28085for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28086 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028087{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28088echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028090 echo $ECHO_N "(cached) $ECHO_C" >&6
28091else
28092 cat >conftest.$ac_ext <<_ACEOF
28093/* confdefs.h. */
28094_ACEOF
28095cat confdefs.h >>conftest.$ac_ext
28096cat >>conftest.$ac_ext <<_ACEOF
28097/* end confdefs.h. */
28098#include <sys/types.h>
28099#include <$ac_hdr>
28100
28101int
28102main ()
28103{
28104if ((DIR *) 0)
28105return 0;
28106 ;
28107 return 0;
28108}
28109_ACEOF
28110rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028111if { (ac_try="$ac_compile"
28112case "(($ac_try" in
28113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114 *) ac_try_echo=$ac_try;;
28115esac
28116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028118 ac_status=$?
28119 grep -v '^ *+' conftest.er1 >conftest.err
28120 rm -f conftest.er1
28121 cat conftest.err >&5
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028123 (exit $ac_status); } &&
28124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28125 { (case "(($ac_try" in
28126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127 *) ac_try_echo=$ac_try;;
28128esac
28129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130 (eval "$ac_try") 2>&5
28131 ac_status=$?
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest.$ac_objext'
28135 { (case "(($ac_try" in
28136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137 *) ac_try_echo=$ac_try;;
28138esac
28139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140 (eval "$ac_try") 2>&5
28141 ac_status=$?
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028144 eval "$as_ac_Header=yes"
28145else
28146 echo "$as_me: failed program was:" >&5
28147sed 's/^/| /' conftest.$ac_ext >&5
28148
Reid Spencera773bd52006-08-04 18:18:08 +000028149 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028150fi
Reid Spencera773bd52006-08-04 18:18:08 +000028151
28152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028153fi
Reid Spencera773bd52006-08-04 18:18:08 +000028154ac_res=`eval echo '${'$as_ac_Header'}'`
28155 { echo "$as_me:$LINENO: result: $ac_res" >&5
28156echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028157if test `eval echo '${'$as_ac_Header'}'` = yes; then
28158 cat >>confdefs.h <<_ACEOF
28159#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28160_ACEOF
28161
28162ac_header_dirent=$ac_hdr; break
28163fi
28164
28165done
28166# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28167if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028168 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28169echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028170if test "${ac_cv_search_opendir+set}" = set; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
28172else
28173 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028174cat >conftest.$ac_ext <<_ACEOF
28175/* confdefs.h. */
28176_ACEOF
28177cat confdefs.h >>conftest.$ac_ext
28178cat >>conftest.$ac_ext <<_ACEOF
28179/* end confdefs.h. */
28180
Reid Spencera773bd52006-08-04 18:18:08 +000028181/* Override any GCC internal prototype to avoid an error.
28182 Use char because int might match the return type of a GCC
28183 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028184#ifdef __cplusplus
28185extern "C"
28186#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028187char opendir ();
28188int
28189main ()
28190{
Reid Spencera773bd52006-08-04 18:18:08 +000028191return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028192 ;
28193 return 0;
28194}
28195_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028196for ac_lib in '' dir; do
28197 if test -z "$ac_lib"; then
28198 ac_res="none required"
28199 else
28200 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028202 fi
28203 rm -f conftest.$ac_objext conftest$ac_exeext
28204if { (ac_try="$ac_link"
28205case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28208esac
28209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028211 ac_status=$?
28212 grep -v '^ *+' conftest.er1 >conftest.err
28213 rm -f conftest.er1
28214 cat conftest.err >&5
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028216 (exit $ac_status); } &&
28217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28218 { (case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28221esac
28222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223 (eval "$ac_try") 2>&5
28224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; } &&
28227 { ac_try='test -s conftest$ac_exeext'
28228 { (case "(($ac_try" in
28229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28230 *) ac_try_echo=$ac_try;;
28231esac
28232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28233 (eval "$ac_try") 2>&5
28234 ac_status=$?
28235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028237 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028238else
28239 echo "$as_me: failed program was:" >&5
28240sed 's/^/| /' conftest.$ac_ext >&5
28241
Reid Spencera773bd52006-08-04 18:18:08 +000028242
Reid Spencer59473af2004-12-25 07:31:29 +000028243fi
Reid Spencera773bd52006-08-04 18:18:08 +000028244
Tanya Lattnercf067672008-01-17 05:57:22 +000028245rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028246 conftest$ac_exeext
28247 if test "${ac_cv_search_opendir+set}" = set; then
28248 break
Reid Spencer59473af2004-12-25 07:31:29 +000028249fi
Reid Spencera773bd52006-08-04 18:18:08 +000028250done
28251if test "${ac_cv_search_opendir+set}" = set; then
28252 :
28253else
28254 ac_cv_search_opendir=no
28255fi
28256rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028257LIBS=$ac_func_search_save_LIBS
28258fi
Reid Spencera773bd52006-08-04 18:18:08 +000028259{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28260echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28261ac_res=$ac_cv_search_opendir
28262if test "$ac_res" != no; then
28263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028264
28265fi
28266
28267else
Reid Spencera773bd52006-08-04 18:18:08 +000028268 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28269echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028270if test "${ac_cv_search_opendir+set}" = set; then
28271 echo $ECHO_N "(cached) $ECHO_C" >&6
28272else
28273 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028274cat >conftest.$ac_ext <<_ACEOF
28275/* confdefs.h. */
28276_ACEOF
28277cat confdefs.h >>conftest.$ac_ext
28278cat >>conftest.$ac_ext <<_ACEOF
28279/* end confdefs.h. */
28280
Reid Spencera773bd52006-08-04 18:18:08 +000028281/* Override any GCC internal prototype to avoid an error.
28282 Use char because int might match the return type of a GCC
28283 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028284#ifdef __cplusplus
28285extern "C"
28286#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028287char opendir ();
28288int
28289main ()
28290{
Reid Spencera773bd52006-08-04 18:18:08 +000028291return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028292 ;
28293 return 0;
28294}
28295_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028296for ac_lib in '' x; do
28297 if test -z "$ac_lib"; then
28298 ac_res="none required"
28299 else
28300 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028302 fi
28303 rm -f conftest.$ac_objext conftest$ac_exeext
28304if { (ac_try="$ac_link"
28305case "(($ac_try" in
28306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28307 *) ac_try_echo=$ac_try;;
28308esac
28309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28310 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028311 ac_status=$?
28312 grep -v '^ *+' conftest.er1 >conftest.err
28313 rm -f conftest.er1
28314 cat conftest.err >&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028316 (exit $ac_status); } &&
28317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28318 { (case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28321esac
28322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323 (eval "$ac_try") 2>&5
28324 ac_status=$?
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; } &&
28327 { ac_try='test -s conftest$ac_exeext'
28328 { (case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28331esac
28332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_try") 2>&5
28334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028337 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028338else
28339 echo "$as_me: failed program was:" >&5
28340sed 's/^/| /' conftest.$ac_ext >&5
28341
Reid Spencera773bd52006-08-04 18:18:08 +000028342
Reid Spencer59473af2004-12-25 07:31:29 +000028343fi
Reid Spencera773bd52006-08-04 18:18:08 +000028344
Tanya Lattnercf067672008-01-17 05:57:22 +000028345rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028346 conftest$ac_exeext
28347 if test "${ac_cv_search_opendir+set}" = set; then
28348 break
Reid Spencer59473af2004-12-25 07:31:29 +000028349fi
Reid Spencera773bd52006-08-04 18:18:08 +000028350done
28351if test "${ac_cv_search_opendir+set}" = set; then
28352 :
28353else
28354 ac_cv_search_opendir=no
28355fi
28356rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028357LIBS=$ac_func_search_save_LIBS
28358fi
Reid Spencera773bd52006-08-04 18:18:08 +000028359{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28360echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28361ac_res=$ac_cv_search_opendir
28362if test "$ac_res" != no; then
28363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028364
28365fi
28366
28367fi
28368
Reid Spencera773bd52006-08-04 18:18:08 +000028369{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28370echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028371if test "${ac_cv_header_mmap_anon+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373else
28374 ac_ext=c
28375ac_cpp='$CPP $CPPFLAGS'
28376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28378ac_compiler_gnu=$ac_cv_c_compiler_gnu
28379
28380 cat >conftest.$ac_ext <<_ACEOF
28381/* confdefs.h. */
28382_ACEOF
28383cat confdefs.h >>conftest.$ac_ext
28384cat >>conftest.$ac_ext <<_ACEOF
28385/* end confdefs.h. */
28386#include <sys/mman.h>
28387#include <unistd.h>
28388#include <fcntl.h>
28389int
28390main ()
28391{
28392mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28393 ;
28394 return 0;
28395}
28396_ACEOF
28397rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028398if { (ac_try="$ac_compile"
28399case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28402esac
28403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028405 ac_status=$?
28406 grep -v '^ *+' conftest.er1 >conftest.err
28407 rm -f conftest.er1
28408 cat conftest.err >&5
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028410 (exit $ac_status); } &&
28411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28412 { (case "(($ac_try" in
28413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28414 *) ac_try_echo=$ac_try;;
28415esac
28416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28417 (eval "$ac_try") 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; } &&
28421 { ac_try='test -s conftest.$ac_objext'
28422 { (case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28425esac
28426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427 (eval "$ac_try") 2>&5
28428 ac_status=$?
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028431 ac_cv_header_mmap_anon=yes
28432else
28433 echo "$as_me: failed program was:" >&5
28434sed 's/^/| /' conftest.$ac_ext >&5
28435
Reid Spencera773bd52006-08-04 18:18:08 +000028436 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028437fi
Reid Spencera773bd52006-08-04 18:18:08 +000028438
28439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028440 ac_ext=c
28441ac_cpp='$CPP $CPPFLAGS'
28442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28444ac_compiler_gnu=$ac_cv_c_compiler_gnu
28445
28446
28447fi
Reid Spencera773bd52006-08-04 18:18:08 +000028448{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28449echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028450if test "$ac_cv_header_mmap_anon" = yes; then
28451
28452cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028453#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028454_ACEOF
28455
28456fi
28457
Reid Spencera773bd52006-08-04 18:18:08 +000028458{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28459echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028460if test "${ac_cv_header_stat_broken+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28462else
28463 cat >conftest.$ac_ext <<_ACEOF
28464/* confdefs.h. */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h. */
28469#include <sys/types.h>
28470#include <sys/stat.h>
28471
Reid Spencera773bd52006-08-04 18:18:08 +000028472#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028473# if S_ISBLK (S_IFDIR)
28474You lose.
28475# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028476#endif
28477
Reid Spencera773bd52006-08-04 18:18:08 +000028478#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028479# if S_ISBLK (S_IFCHR)
28480You lose.
28481# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028482#endif
28483
Reid Spencera773bd52006-08-04 18:18:08 +000028484#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028485# if S_ISLNK (S_IFREG)
28486You lose.
28487# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028488#endif
28489
Reid Spencera773bd52006-08-04 18:18:08 +000028490#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028491# if S_ISSOCK (S_IFREG)
28492You lose.
28493# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028494#endif
28495
28496_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28498 $EGREP "You lose" >/dev/null 2>&1; then
28499 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028500else
Tanya Lattnercf067672008-01-17 05:57:22 +000028501 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028502fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028503rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028504
Reid Spencer59473af2004-12-25 07:31:29 +000028505fi
Reid Spencera773bd52006-08-04 18:18:08 +000028506{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28507echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028508if test $ac_cv_header_stat_broken = yes; then
28509
28510cat >>confdefs.h <<\_ACEOF
28511#define STAT_MACROS_BROKEN 1
28512_ACEOF
28513
28514fi
28515
Reid Spencera773bd52006-08-04 18:18:08 +000028516{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28517echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028518if test "${ac_cv_header_stdc+set}" = set; then
28519 echo $ECHO_N "(cached) $ECHO_C" >&6
28520else
28521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028522/* confdefs.h. */
28523_ACEOF
28524cat confdefs.h >>conftest.$ac_ext
28525cat >>conftest.$ac_ext <<_ACEOF
28526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028527#include <stdlib.h>
28528#include <stdarg.h>
28529#include <string.h>
28530#include <float.h>
28531
John Criswell0c38eaf2003-09-10 15:17:25 +000028532int
28533main ()
28534{
28535
28536 ;
28537 return 0;
28538}
John Criswell7a73b802003-06-30 21:59:07 +000028539_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028541if { (ac_try="$ac_compile"
28542case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028549 grep -v '^ *+' conftest.er1 >conftest.err
28550 rm -f conftest.er1
28551 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028553 (exit $ac_status); } &&
28554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28555 { (case "(($ac_try" in
28556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557 *) ac_try_echo=$ac_try;;
28558esac
28559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560 (eval "$ac_try") 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; } &&
28564 { ac_try='test -s conftest.$ac_objext'
28565 { (case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28568esac
28569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_try") 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028574 ac_cv_header_stdc=yes
28575else
28576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028577sed 's/^/| /' conftest.$ac_ext >&5
28578
Reid Spencera773bd52006-08-04 18:18:08 +000028579 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028580fi
Reid Spencera773bd52006-08-04 18:18:08 +000028581
28582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028583
28584if test $ac_cv_header_stdc = yes; then
28585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28586 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028592#include <string.h>
28593
28594_ACEOF
28595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028596 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028597 :
28598else
28599 ac_cv_header_stdc=no
28600fi
28601rm -f conftest*
28602
28603fi
28604
28605if test $ac_cv_header_stdc = yes; then
28606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028608/* confdefs.h. */
28609_ACEOF
28610cat confdefs.h >>conftest.$ac_ext
28611cat >>conftest.$ac_ext <<_ACEOF
28612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028613#include <stdlib.h>
28614
28615_ACEOF
28616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028617 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028618 :
28619else
28620 ac_cv_header_stdc=no
28621fi
28622rm -f conftest*
28623
28624fi
28625
28626if test $ac_cv_header_stdc = yes; then
28627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28628 if test "$cross_compiling" = yes; then
28629 :
28630else
28631 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028632/* confdefs.h. */
28633_ACEOF
28634cat confdefs.h >>conftest.$ac_ext
28635cat >>conftest.$ac_ext <<_ACEOF
28636/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028637#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028638#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028639#if ((' ' & 0x0FF) == 0x020)
28640# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28641# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28642#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028643# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028644 (('a' <= (c) && (c) <= 'i') \
28645 || ('j' <= (c) && (c) <= 'r') \
28646 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028647# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28648#endif
28649
28650#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28651int
28652main ()
28653{
28654 int i;
28655 for (i = 0; i < 256; i++)
28656 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028657 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028658 return 2;
28659 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028660}
28661_ACEOF
28662rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028663if { (ac_try="$ac_link"
28664case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667esac
28668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028673 { (case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28676esac
28677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028679 ac_status=$?
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28682 :
28683else
28684 echo "$as_me: program exited with status $ac_status" >&5
28685echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028686sed 's/^/| /' conftest.$ac_ext >&5
28687
John Criswell7a73b802003-06-30 21:59:07 +000028688( exit $ac_status )
28689ac_cv_header_stdc=no
28690fi
Reid Spencera773bd52006-08-04 18:18:08 +000028691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28692fi
28693
28694
John Criswell7a73b802003-06-30 21:59:07 +000028695fi
28696fi
Reid Spencera773bd52006-08-04 18:18:08 +000028697{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28698echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028699if test $ac_cv_header_stdc = yes; then
28700
28701cat >>confdefs.h <<\_ACEOF
28702#define STDC_HEADERS 1
28703_ACEOF
28704
28705fi
28706
Reid Spencera773bd52006-08-04 18:18:08 +000028707{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28708echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028709if test "${ac_cv_header_sys_wait_h+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28711else
28712 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028713/* confdefs.h. */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028718#include <sys/types.h>
28719#include <sys/wait.h>
28720#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028721# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028722#endif
28723#ifndef WIFEXITED
28724# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28725#endif
28726
John Criswell7a73b802003-06-30 21:59:07 +000028727int
28728main ()
28729{
28730 int s;
28731 wait (&s);
28732 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28733 ;
28734 return 0;
28735}
28736_ACEOF
28737rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028738if { (ac_try="$ac_compile"
28739case "(($ac_try" in
28740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741 *) ac_try_echo=$ac_try;;
28742esac
28743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028745 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028746 grep -v '^ *+' conftest.er1 >conftest.err
28747 rm -f conftest.er1
28748 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028750 (exit $ac_status); } &&
28751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28752 { (case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28755esac
28756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_try") 2>&5
28758 ac_status=$?
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } &&
28761 { ac_try='test -s conftest.$ac_objext'
28762 { (case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28765esac
28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_try") 2>&5
28768 ac_status=$?
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028771 ac_cv_header_sys_wait_h=yes
28772else
28773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028774sed 's/^/| /' conftest.$ac_ext >&5
28775
Reid Spencera773bd52006-08-04 18:18:08 +000028776 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028777fi
Reid Spencera773bd52006-08-04 18:18:08 +000028778
28779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028780fi
Reid Spencera773bd52006-08-04 18:18:08 +000028781{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28782echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028783if test $ac_cv_header_sys_wait_h = yes; then
28784
28785cat >>confdefs.h <<\_ACEOF
28786#define HAVE_SYS_WAIT_H 1
28787_ACEOF
28788
28789fi
28790
Reid Spencera773bd52006-08-04 18:18:08 +000028791{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28792echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028793if test "${ac_cv_header_time+set}" = set; then
28794 echo $ECHO_N "(cached) $ECHO_C" >&6
28795else
28796 cat >conftest.$ac_ext <<_ACEOF
28797/* confdefs.h. */
28798_ACEOF
28799cat confdefs.h >>conftest.$ac_ext
28800cat >>conftest.$ac_ext <<_ACEOF
28801/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028802#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028803#include <sys/time.h>
28804#include <time.h>
28805
28806int
28807main ()
28808{
28809if ((struct tm *) 0)
28810return 0;
28811 ;
28812 return 0;
28813}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028814_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028815rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028816if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +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); } &&
28829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28830 { (case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28833esac
28834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835 (eval "$ac_try") 2>&5
28836 ac_status=$?
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; } &&
28839 { ac_try='test -s conftest.$ac_objext'
28840 { (case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28843esac
28844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_try") 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028849 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028850else
28851 echo "$as_me: failed program was:" >&5
28852sed 's/^/| /' conftest.$ac_ext >&5
28853
Reid Spencera773bd52006-08-04 18:18:08 +000028854 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028855fi
Reid Spencera773bd52006-08-04 18:18:08 +000028856
28857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028858fi
Reid Spencera773bd52006-08-04 18:18:08 +000028859{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28860echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028861if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028862
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028863cat >>confdefs.h <<\_ACEOF
28864#define TIME_WITH_SYS_TIME 1
28865_ACEOF
28866
28867fi
28868
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028869
Reid Spencer59473af2004-12-25 07:31:29 +000028870
28871
28872
28873
28874
28875
28876for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28877do
28878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028883 echo $ECHO_N "(cached) $ECHO_C" >&6
28884fi
Reid Spencera773bd52006-08-04 18:18:08 +000028885ac_res=`eval echo '${'$as_ac_Header'}'`
28886 { echo "$as_me:$LINENO: result: $ac_res" >&5
28887echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028888else
28889 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028892cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028893/* confdefs.h. */
28894_ACEOF
28895cat confdefs.h >>conftest.$ac_ext
28896cat >>conftest.$ac_ext <<_ACEOF
28897/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028898$ac_includes_default
28899#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028900_ACEOF
28901rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028902if { (ac_try="$ac_compile"
28903case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28906esac
28907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028909 ac_status=$?
28910 grep -v '^ *+' conftest.er1 >conftest.err
28911 rm -f conftest.er1
28912 cat conftest.err >&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028914 (exit $ac_status); } &&
28915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28916 { (case "(($ac_try" in
28917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28918 *) ac_try_echo=$ac_try;;
28919esac
28920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28921 (eval "$ac_try") 2>&5
28922 ac_status=$?
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); }; } &&
28925 { ac_try='test -s conftest.$ac_objext'
28926 { (case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28929esac
28930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_try") 2>&5
28932 ac_status=$?
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028935 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028936else
28937 echo "$as_me: failed program was:" >&5
28938sed 's/^/| /' conftest.$ac_ext >&5
28939
Reid Spencera773bd52006-08-04 18:18:08 +000028940 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028941fi
Reid Spencera773bd52006-08-04 18:18:08 +000028942
28943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28945echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028946
Reid Spencer59473af2004-12-25 07:31:29 +000028947# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028950cat >conftest.$ac_ext <<_ACEOF
28951/* confdefs.h. */
28952_ACEOF
28953cat confdefs.h >>conftest.$ac_ext
28954cat >>conftest.$ac_ext <<_ACEOF
28955/* end confdefs.h. */
28956#include <$ac_header>
28957_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028958if { (ac_try="$ac_cpp conftest.$ac_ext"
28959case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28962esac
28963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028965 ac_status=$?
28966 grep -v '^ *+' conftest.er1 >conftest.err
28967 rm -f conftest.er1
28968 cat conftest.err >&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028970 (exit $ac_status); } >/dev/null; then
28971 if test -s conftest.err; then
28972 ac_cpp_err=$ac_c_preproc_warn_flag
28973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28974 else
28975 ac_cpp_err=
28976 fi
28977else
28978 ac_cpp_err=yes
28979fi
28980if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028981 ac_header_preproc=yes
28982else
28983 echo "$as_me: failed program was:" >&5
28984sed 's/^/| /' conftest.$ac_ext >&5
28985
28986 ac_header_preproc=no
28987fi
Reid Spencera773bd52006-08-04 18:18:08 +000028988
Reid Spencer59473af2004-12-25 07:31:29 +000028989rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28991echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028992
28993# So? What about this header?
28994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28995 yes:no: )
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29000 ac_header_preproc=yes
29001 ;;
29002 no:yes:* )
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029015 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029016## ----------------------------------- ##
29017## Report this to llvmbugs@cs.uiuc.edu ##
29018## ----------------------------------- ##
29019_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029020 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029021 ;;
29022esac
Reid Spencera773bd52006-08-04 18:18:08 +000029023{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029026 echo $ECHO_N "(cached) $ECHO_C" >&6
29027else
29028 eval "$as_ac_Header=\$ac_header_preproc"
29029fi
Reid Spencera773bd52006-08-04 18:18:08 +000029030ac_res=`eval echo '${'$as_ac_Header'}'`
29031 { echo "$as_me:$LINENO: result: $ac_res" >&5
29032echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029033
29034fi
Reid Spencer59473af2004-12-25 07:31:29 +000029035if test `eval echo '${'$as_ac_Header'}'` = yes; then
29036 cat >>confdefs.h <<_ACEOF
29037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029038_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029039
29040fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029041
Reid Spencer59473af2004-12-25 07:31:29 +000029042done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029043
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029044
29045
Reid Spencer59473af2004-12-25 07:31:29 +000029046
29047
29048
29049
Reid Spencercdb08a32006-06-05 16:11:07 +000029050for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000029051do
29052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029057 echo $ECHO_N "(cached) $ECHO_C" >&6
29058fi
Reid Spencera773bd52006-08-04 18:18:08 +000029059ac_res=`eval echo '${'$as_ac_Header'}'`
29060 { echo "$as_me:$LINENO: result: $ac_res" >&5
29061echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029062else
29063 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029066cat >conftest.$ac_ext <<_ACEOF
29067/* confdefs.h. */
29068_ACEOF
29069cat confdefs.h >>conftest.$ac_ext
29070cat >>conftest.$ac_ext <<_ACEOF
29071/* end confdefs.h. */
29072$ac_includes_default
29073#include <$ac_header>
29074_ACEOF
29075rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029076if { (ac_try="$ac_compile"
29077case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29080esac
29081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029083 ac_status=$?
29084 grep -v '^ *+' conftest.er1 >conftest.err
29085 rm -f conftest.er1
29086 cat conftest.err >&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029088 (exit $ac_status); } &&
29089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29090 { (case "(($ac_try" in
29091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29092 *) ac_try_echo=$ac_try;;
29093esac
29094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29095 (eval "$ac_try") 2>&5
29096 ac_status=$?
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; } &&
29099 { ac_try='test -s conftest.$ac_objext'
29100 { (case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29103esac
29104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_try") 2>&5
29106 ac_status=$?
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029109 ac_header_compiler=yes
29110else
29111 echo "$as_me: failed program was:" >&5
29112sed 's/^/| /' conftest.$ac_ext >&5
29113
Reid Spencera773bd52006-08-04 18:18:08 +000029114 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029115fi
Reid Spencera773bd52006-08-04 18:18:08 +000029116
29117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29119echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029120
29121# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029124cat >conftest.$ac_ext <<_ACEOF
29125/* confdefs.h. */
29126_ACEOF
29127cat confdefs.h >>conftest.$ac_ext
29128cat >>conftest.$ac_ext <<_ACEOF
29129/* end confdefs.h. */
29130#include <$ac_header>
29131_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029132if { (ac_try="$ac_cpp conftest.$ac_ext"
29133case "(($ac_try" in
29134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135 *) ac_try_echo=$ac_try;;
29136esac
29137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029139 ac_status=$?
29140 grep -v '^ *+' conftest.er1 >conftest.err
29141 rm -f conftest.er1
29142 cat conftest.err >&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029144 (exit $ac_status); } >/dev/null; then
29145 if test -s conftest.err; then
29146 ac_cpp_err=$ac_c_preproc_warn_flag
29147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29148 else
29149 ac_cpp_err=
29150 fi
29151else
29152 ac_cpp_err=yes
29153fi
29154if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029155 ac_header_preproc=yes
29156else
29157 echo "$as_me: failed program was:" >&5
29158sed 's/^/| /' conftest.$ac_ext >&5
29159
29160 ac_header_preproc=no
29161fi
Reid Spencera773bd52006-08-04 18:18:08 +000029162
Reid Spencer59473af2004-12-25 07:31:29 +000029163rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29165echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029166
29167# So? What about this header?
29168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29169 yes:no: )
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29174 ac_header_preproc=yes
29175 ;;
29176 no:yes:* )
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029189 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029190## ----------------------------------- ##
29191## Report this to llvmbugs@cs.uiuc.edu ##
29192## ----------------------------------- ##
29193_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029194 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029195 ;;
29196esac
Reid Spencera773bd52006-08-04 18:18:08 +000029197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029200 echo $ECHO_N "(cached) $ECHO_C" >&6
29201else
29202 eval "$as_ac_Header=\$ac_header_preproc"
29203fi
Reid Spencera773bd52006-08-04 18:18:08 +000029204ac_res=`eval echo '${'$as_ac_Header'}'`
29205 { echo "$as_me:$LINENO: result: $ac_res" >&5
29206echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029207
29208fi
29209if test `eval echo '${'$as_ac_Header'}'` = yes; then
29210 cat >>confdefs.h <<_ACEOF
29211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29212_ACEOF
29213
29214fi
29215
29216done
29217
29218
Reid Spencerbe3e4192007-08-17 05:45:26 +000029219for ac_header in windows.h
29220do
29221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29227fi
29228ac_res=`eval echo '${'$as_ac_Header'}'`
29229 { echo "$as_me:$LINENO: result: $ac_res" >&5
29230echo "${ECHO_T}$ac_res" >&6; }
29231else
29232 # Is the header compilable?
29233{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29235cat >conftest.$ac_ext <<_ACEOF
29236/* confdefs.h. */
29237_ACEOF
29238cat confdefs.h >>conftest.$ac_ext
29239cat >>conftest.$ac_ext <<_ACEOF
29240/* end confdefs.h. */
29241$ac_includes_default
29242#include <$ac_header>
29243_ACEOF
29244rm -f conftest.$ac_objext
29245if { (ac_try="$ac_compile"
29246case "(($ac_try" in
29247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29248 *) ac_try_echo=$ac_try;;
29249esac
29250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29251 (eval "$ac_compile") 2>conftest.er1
29252 ac_status=$?
29253 grep -v '^ *+' conftest.er1 >conftest.err
29254 rm -f conftest.er1
29255 cat conftest.err >&5
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029257 (exit $ac_status); } &&
29258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29259 { (case "(($ac_try" in
29260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29262esac
29263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264 (eval "$ac_try") 2>&5
29265 ac_status=$?
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; } &&
29268 { ac_try='test -s conftest.$ac_objext'
29269 { (case "(($ac_try" in
29270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271 *) ac_try_echo=$ac_try;;
29272esac
29273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274 (eval "$ac_try") 2>&5
29275 ac_status=$?
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029278 ac_header_compiler=yes
29279else
29280 echo "$as_me: failed program was:" >&5
29281sed 's/^/| /' conftest.$ac_ext >&5
29282
29283 ac_header_compiler=no
29284fi
29285
29286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29287{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29288echo "${ECHO_T}$ac_header_compiler" >&6; }
29289
29290# Is the header present?
29291{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29293cat >conftest.$ac_ext <<_ACEOF
29294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
29299#include <$ac_header>
29300_ACEOF
29301if { (ac_try="$ac_cpp conftest.$ac_ext"
29302case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29305esac
29306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29308 ac_status=$?
29309 grep -v '^ *+' conftest.er1 >conftest.err
29310 rm -f conftest.er1
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029313 (exit $ac_status); } >/dev/null; then
29314 if test -s conftest.err; then
29315 ac_cpp_err=$ac_c_preproc_warn_flag
29316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29317 else
29318 ac_cpp_err=
29319 fi
29320else
29321 ac_cpp_err=yes
29322fi
29323if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029324 ac_header_preproc=yes
29325else
29326 echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329 ac_header_preproc=no
29330fi
29331
29332rm -f conftest.err conftest.$ac_ext
29333{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29334echo "${ECHO_T}$ac_header_preproc" >&6; }
29335
29336# So? What about this header?
29337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29338 yes:no: )
29339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29342echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29343 ac_header_preproc=yes
29344 ;;
29345 no:yes:* )
29346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29347echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29349echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29351echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29353echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29357echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29358 ( cat <<\_ASBOX
29359## ----------------------------------- ##
29360## Report this to llvmbugs@cs.uiuc.edu ##
29361## ----------------------------------- ##
29362_ASBOX
29363 ) | sed "s/^/$as_me: WARNING: /" >&2
29364 ;;
29365esac
29366{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370else
29371 eval "$as_ac_Header=\$ac_header_preproc"
29372fi
29373ac_res=`eval echo '${'$as_ac_Header'}'`
29374 { echo "$as_me:$LINENO: result: $ac_res" >&5
29375echo "${ECHO_T}$ac_res" >&6; }
29376
29377fi
29378if test `eval echo '${'$as_ac_Header'}'` = yes; then
29379 cat >>confdefs.h <<_ACEOF
29380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29381_ACEOF
29382
29383fi
29384
29385done
Reid Spencer59473af2004-12-25 07:31:29 +000029386
29387
29388
29389
Reid Spencerbe3e4192007-08-17 05:45:26 +000029390
29391for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029392do
29393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399fi
Reid Spencera773bd52006-08-04 18:18:08 +000029400ac_res=`eval echo '${'$as_ac_Header'}'`
29401 { echo "$as_me:$LINENO: result: $ac_res" >&5
29402echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029403else
29404 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029405{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029407cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029408/* confdefs.h. */
29409_ACEOF
29410cat confdefs.h >>conftest.$ac_ext
29411cat >>conftest.$ac_ext <<_ACEOF
29412/* end confdefs.h. */
29413$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029414#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029415_ACEOF
29416rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029417if { (ac_try="$ac_compile"
29418case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29421esac
29422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029425 grep -v '^ *+' conftest.er1 >conftest.err
29426 rm -f conftest.er1
29427 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431 { (case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29434esac
29435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_try") 2>&5
29437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29444esac
29445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
29447 ac_status=$?
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029450 ac_header_compiler=yes
29451else
29452 echo "$as_me: failed program was:" >&5
29453sed 's/^/| /' conftest.$ac_ext >&5
29454
Reid Spencera773bd52006-08-04 18:18:08 +000029455 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029456fi
Reid Spencera773bd52006-08-04 18:18:08 +000029457
29458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29460echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029461
29462# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029463{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029465cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029466/* confdefs.h. */
29467_ACEOF
29468cat confdefs.h >>conftest.$ac_ext
29469cat >>conftest.$ac_ext <<_ACEOF
29470/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029471#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029472_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029473if { (ac_try="$ac_cpp conftest.$ac_ext"
29474case "(($ac_try" in
29475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476 *) ac_try_echo=$ac_try;;
29477esac
29478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029480 ac_status=$?
29481 grep -v '^ *+' conftest.er1 >conftest.err
29482 rm -f conftest.er1
29483 cat conftest.err >&5
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029485 (exit $ac_status); } >/dev/null; then
29486 if test -s conftest.err; then
29487 ac_cpp_err=$ac_c_preproc_warn_flag
29488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29489 else
29490 ac_cpp_err=
29491 fi
29492else
29493 ac_cpp_err=yes
29494fi
29495if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029496 ac_header_preproc=yes
29497else
29498 echo "$as_me: failed program was:" >&5
29499sed 's/^/| /' conftest.$ac_ext >&5
29500
29501 ac_header_preproc=no
29502fi
Reid Spencera773bd52006-08-04 18:18:08 +000029503
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029504rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029505{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29506echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029507
29508# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29510 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029515 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029516 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029517 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029530 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029531## ----------------------------------- ##
29532## Report this to llvmbugs@cs.uiuc.edu ##
29533## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029534_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029535 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029536 ;;
29537esac
Reid Spencera773bd52006-08-04 18:18:08 +000029538{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029541 echo $ECHO_N "(cached) $ECHO_C" >&6
29542else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029543 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029544fi
Reid Spencera773bd52006-08-04 18:18:08 +000029545ac_res=`eval echo '${'$as_ac_Header'}'`
29546 { echo "$as_me:$LINENO: result: $ac_res" >&5
29547echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029548
29549fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029550if test `eval echo '${'$as_ac_Header'}'` = yes; then
29551 cat >>confdefs.h <<_ACEOF
29552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029553_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029554
29555fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029556
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029557done
29558
John Criswell7ed43ad2004-07-19 16:12:29 +000029559
Reid Spencercdb08a32006-06-05 16:11:07 +000029560
Reid Spencera6d990a2006-09-14 06:17:21 +000029561
29562for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029563do
29564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570fi
Reid Spencera773bd52006-08-04 18:18:08 +000029571ac_res=`eval echo '${'$as_ac_Header'}'`
29572 { echo "$as_me:$LINENO: result: $ac_res" >&5
29573echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029574else
29575 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029576{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029578cat >conftest.$ac_ext <<_ACEOF
29579/* confdefs.h. */
29580_ACEOF
29581cat confdefs.h >>conftest.$ac_ext
29582cat >>conftest.$ac_ext <<_ACEOF
29583/* end confdefs.h. */
29584$ac_includes_default
29585#include <$ac_header>
29586_ACEOF
29587rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029588if { (ac_try="$ac_compile"
29589case "(($ac_try" in
29590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29591 *) ac_try_echo=$ac_try;;
29592esac
29593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29594 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029595 ac_status=$?
29596 grep -v '^ *+' conftest.er1 >conftest.err
29597 rm -f conftest.er1
29598 cat conftest.err >&5
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029600 (exit $ac_status); } &&
29601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29602 { (case "(($ac_try" in
29603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604 *) ac_try_echo=$ac_try;;
29605esac
29606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29607 (eval "$ac_try") 2>&5
29608 ac_status=$?
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; } &&
29611 { ac_try='test -s conftest.$ac_objext'
29612 { (case "(($ac_try" in
29613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614 *) ac_try_echo=$ac_try;;
29615esac
29616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29617 (eval "$ac_try") 2>&5
29618 ac_status=$?
29619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029621 ac_header_compiler=yes
29622else
29623 echo "$as_me: failed program was:" >&5
29624sed 's/^/| /' conftest.$ac_ext >&5
29625
Reid Spencera773bd52006-08-04 18:18:08 +000029626 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029627fi
Reid Spencera773bd52006-08-04 18:18:08 +000029628
29629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29630{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29631echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029632
29633# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029634{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029636cat >conftest.$ac_ext <<_ACEOF
29637/* confdefs.h. */
29638_ACEOF
29639cat confdefs.h >>conftest.$ac_ext
29640cat >>conftest.$ac_ext <<_ACEOF
29641/* end confdefs.h. */
29642#include <$ac_header>
29643_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029644if { (ac_try="$ac_cpp conftest.$ac_ext"
29645case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29648esac
29649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029651 ac_status=$?
29652 grep -v '^ *+' conftest.er1 >conftest.err
29653 rm -f conftest.er1
29654 cat conftest.err >&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029656 (exit $ac_status); } >/dev/null; then
29657 if test -s conftest.err; then
29658 ac_cpp_err=$ac_c_preproc_warn_flag
29659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29660 else
29661 ac_cpp_err=
29662 fi
29663else
29664 ac_cpp_err=yes
29665fi
29666if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029667 ac_header_preproc=yes
29668else
29669 echo "$as_me: failed program was:" >&5
29670sed 's/^/| /' conftest.$ac_ext >&5
29671
29672 ac_header_preproc=no
29673fi
Reid Spencera773bd52006-08-04 18:18:08 +000029674
Chris Lattner0b142592005-11-14 06:57:34 +000029675rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029676{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29677echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029678
29679# So? What about this header?
29680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29681 yes:no: )
29682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29683echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29685echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29686 ac_header_preproc=yes
29687 ;;
29688 no:yes:* )
29689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29690echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29692echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29694echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29696echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29698echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29700echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029701 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029702## ----------------------------------- ##
29703## Report this to llvmbugs@cs.uiuc.edu ##
29704## ----------------------------------- ##
29705_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029706 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029707 ;;
29708esac
Reid Spencera773bd52006-08-04 18:18:08 +000029709{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029712 echo $ECHO_N "(cached) $ECHO_C" >&6
29713else
29714 eval "$as_ac_Header=\$ac_header_preproc"
29715fi
Reid Spencera773bd52006-08-04 18:18:08 +000029716ac_res=`eval echo '${'$as_ac_Header'}'`
29717 { echo "$as_me:$LINENO: result: $ac_res" >&5
29718echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029719
29720fi
29721if test `eval echo '${'$as_ac_Header'}'` = yes; then
29722 cat >>confdefs.h <<_ACEOF
29723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29724_ACEOF
29725
29726fi
29727
29728done
29729
Reid Spencer0a262ba2005-08-24 10:07:20 +000029730if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029731
29732for ac_header in pthread.h
29733do
29734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029739 echo $ECHO_N "(cached) $ECHO_C" >&6
29740fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029741ac_res=`eval echo '${'$as_ac_Header'}'`
29742 { echo "$as_me:$LINENO: result: $ac_res" >&5
29743echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029744else
29745 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029746{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029748cat >conftest.$ac_ext <<_ACEOF
29749/* confdefs.h. */
29750_ACEOF
29751cat confdefs.h >>conftest.$ac_ext
29752cat >>conftest.$ac_ext <<_ACEOF
29753/* end confdefs.h. */
29754$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029755#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029756_ACEOF
29757rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029758if { (ac_try="$ac_compile"
29759case "(($ac_try" in
29760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761 *) ac_try_echo=$ac_try;;
29762esac
29763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029765 ac_status=$?
29766 grep -v '^ *+' conftest.er1 >conftest.err
29767 rm -f conftest.er1
29768 cat conftest.err >&5
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029770 (exit $ac_status); } &&
29771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29772 { (case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29775esac
29776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_try") 2>&5
29778 ac_status=$?
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); }; } &&
29781 { ac_try='test -s conftest.$ac_objext'
29782 { (case "(($ac_try" in
29783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784 *) ac_try_echo=$ac_try;;
29785esac
29786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787 (eval "$ac_try") 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029791 ac_header_compiler=yes
29792else
29793 echo "$as_me: failed program was:" >&5
29794sed 's/^/| /' conftest.$ac_ext >&5
29795
Reid Spencera773bd52006-08-04 18:18:08 +000029796 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029797fi
Reid Spencera773bd52006-08-04 18:18:08 +000029798
29799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29800{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29801echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029802
29803# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029804{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029806cat >conftest.$ac_ext <<_ACEOF
29807/* confdefs.h. */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029812#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029813_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029814if { (ac_try="$ac_cpp conftest.$ac_ext"
29815case "(($ac_try" in
29816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29817 *) ac_try_echo=$ac_try;;
29818esac
29819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029821 ac_status=$?
29822 grep -v '^ *+' conftest.er1 >conftest.err
29823 rm -f conftest.er1
29824 cat conftest.err >&5
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029826 (exit $ac_status); } >/dev/null; then
29827 if test -s conftest.err; then
29828 ac_cpp_err=$ac_c_preproc_warn_flag
29829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29830 else
29831 ac_cpp_err=
29832 fi
29833else
29834 ac_cpp_err=yes
29835fi
29836if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029837 ac_header_preproc=yes
29838else
29839 echo "$as_me: failed program was:" >&5
29840sed 's/^/| /' conftest.$ac_ext >&5
29841
29842 ac_header_preproc=no
29843fi
Reid Spencera773bd52006-08-04 18:18:08 +000029844
Reid Spencer0a262ba2005-08-24 10:07:20 +000029845rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029846{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29847echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029848
29849# So? What about this header?
29850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29851 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029856 ac_header_preproc=yes
29857 ;;
29858 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29866echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029871 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029872## ----------------------------------- ##
29873## Report this to llvmbugs@cs.uiuc.edu ##
29874## ----------------------------------- ##
29875_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029876 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029877 ;;
29878esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029879{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029882 echo $ECHO_N "(cached) $ECHO_C" >&6
29883else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029884 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029885fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029886ac_res=`eval echo '${'$as_ac_Header'}'`
29887 { echo "$as_me:$LINENO: result: $ac_res" >&5
29888echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029889
29890fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029891if test `eval echo '${'$as_ac_Header'}'` = yes; then
29892 cat >>confdefs.h <<_ACEOF
29893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29894_ACEOF
29895 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029896
29897else
29898 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029899
29900fi
29901
Reid Spencerbe3e4192007-08-17 05:45:26 +000029902done
Reid Spencer1000b732006-12-01 00:37:14 +000029903
29904else
29905 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029906
29907fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029908
29909
Reid Spencerb2ed05262006-11-03 18:04:08 +000029910
29911 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29912echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29913if test "${ac_cv_huge_val_sanity+set}" = set; then
29914 echo $ECHO_N "(cached) $ECHO_C" >&6
29915else
29916
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029917 ac_ext=cpp
29918ac_cpp='$CXXCPP $CPPFLAGS'
29919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029922
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029923 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029924 if test "$cross_compiling" = yes; then
29925 ac_cv_huge_val_sanity=yes
29926else
29927 cat >conftest.$ac_ext <<_ACEOF
29928/* confdefs.h. */
29929_ACEOF
29930cat confdefs.h >>conftest.$ac_ext
29931cat >>conftest.$ac_ext <<_ACEOF
29932/* end confdefs.h. */
29933#include <math.h>
29934int
29935main ()
29936{
29937double x = HUGE_VAL; return x != x;
29938 ;
29939 return 0;
29940}
29941_ACEOF
29942rm -f conftest$ac_exeext
29943if { (ac_try="$ac_link"
29944case "(($ac_try" in
29945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29946 *) ac_try_echo=$ac_try;;
29947esac
29948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29949 (eval "$ac_link") 2>&5
29950 ac_status=$?
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29953 { (case "(($ac_try" in
29954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29955 *) ac_try_echo=$ac_try;;
29956esac
29957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29958 (eval "$ac_try") 2>&5
29959 ac_status=$?
29960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961 (exit $ac_status); }; }; then
29962 ac_cv_huge_val_sanity=yes
29963else
29964 echo "$as_me: program exited with status $ac_status" >&5
29965echo "$as_me: failed program was:" >&5
29966sed 's/^/| /' conftest.$ac_ext >&5
29967
29968( exit $ac_status )
29969ac_cv_huge_val_sanity=no
29970fi
29971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29972fi
29973
29974
29975 ac_ext=c
29976ac_cpp='$CPP $CPPFLAGS'
29977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29979ac_compiler_gnu=$ac_cv_c_compiler_gnu
29980
29981
29982fi
29983{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29984echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29985 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29986
29987
Reid Spencera773bd52006-08-04 18:18:08 +000029988{ echo "$as_me:$LINENO: checking for pid_t" >&5
29989echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029990if test "${ac_cv_type_pid_t+set}" = set; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29992else
29993 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029994/* confdefs.h. */
29995_ACEOF
29996cat confdefs.h >>conftest.$ac_ext
29997cat >>conftest.$ac_ext <<_ACEOF
29998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029999$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030000typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030001int
30002main ()
30003{
Reid Spencera773bd52006-08-04 18:18:08 +000030004if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030005 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030006if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030007 return 0;
30008 ;
30009 return 0;
30010}
30011_ACEOF
30012rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030013if { (ac_try="$ac_compile"
30014case "(($ac_try" in
30015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016 *) ac_try_echo=$ac_try;;
30017esac
30018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030020 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030021 grep -v '^ *+' conftest.er1 >conftest.err
30022 rm -f conftest.er1
30023 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030025 (exit $ac_status); } &&
30026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30027 { (case "(($ac_try" in
30028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029 *) ac_try_echo=$ac_try;;
30030esac
30031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032 (eval "$ac_try") 2>&5
30033 ac_status=$?
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; } &&
30036 { ac_try='test -s conftest.$ac_objext'
30037 { (case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30040esac
30041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_try") 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030046 ac_cv_type_pid_t=yes
30047else
30048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030049sed 's/^/| /' conftest.$ac_ext >&5
30050
Reid Spencera773bd52006-08-04 18:18:08 +000030051 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030052fi
Reid Spencera773bd52006-08-04 18:18:08 +000030053
30054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030055fi
Reid Spencera773bd52006-08-04 18:18:08 +000030056{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30057echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030058if test $ac_cv_type_pid_t = yes; then
30059 :
30060else
30061
30062cat >>confdefs.h <<_ACEOF
30063#define pid_t int
30064_ACEOF
30065
30066fi
30067
Reid Spencera773bd52006-08-04 18:18:08 +000030068{ echo "$as_me:$LINENO: checking for size_t" >&5
30069echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030070if test "${ac_cv_type_size_t+set}" = set; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30072else
30073 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030079$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030080typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030081int
30082main ()
30083{
Reid Spencera773bd52006-08-04 18:18:08 +000030084if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030085 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030086if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030087 return 0;
30088 ;
30089 return 0;
30090}
30091_ACEOF
30092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030093if { (ac_try="$ac_compile"
30094case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30097esac
30098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030101 grep -v '^ *+' conftest.er1 >conftest.err
30102 rm -f conftest.er1
30103 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030105 (exit $ac_status); } &&
30106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30107 { (case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30110esac
30111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_try") 2>&5
30113 ac_status=$?
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030126 ac_cv_type_size_t=yes
30127else
30128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030129sed 's/^/| /' conftest.$ac_ext >&5
30130
Reid Spencera773bd52006-08-04 18:18:08 +000030131 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030132fi
Reid Spencera773bd52006-08-04 18:18:08 +000030133
30134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030135fi
Reid Spencera773bd52006-08-04 18:18:08 +000030136{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30137echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030138if test $ac_cv_type_size_t = yes; then
30139 :
30140else
30141
30142cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030143#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030144_ACEOF
30145
30146fi
30147
Reid Spencera773bd52006-08-04 18:18:08 +000030148{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30149echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030150if test "${ac_cv_type_signal+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152else
30153 cat >conftest.$ac_ext <<_ACEOF
30154/* confdefs.h. */
30155_ACEOF
30156cat confdefs.h >>conftest.$ac_ext
30157cat >>conftest.$ac_ext <<_ACEOF
30158/* end confdefs.h. */
30159#include <sys/types.h>
30160#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030161
30162int
30163main ()
30164{
Reid Spencera773bd52006-08-04 18:18:08 +000030165return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030166 ;
30167 return 0;
30168}
30169_ACEOF
30170rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030171if { (ac_try="$ac_compile"
30172case "(($ac_try" in
30173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174 *) ac_try_echo=$ac_try;;
30175esac
30176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030178 ac_status=$?
30179 grep -v '^ *+' conftest.er1 >conftest.err
30180 rm -f conftest.er1
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030183 (exit $ac_status); } &&
30184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30185 { (case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_try") 2>&5
30191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030204 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030205else
30206 echo "$as_me: failed program was:" >&5
30207sed 's/^/| /' conftest.$ac_ext >&5
30208
Reid Spencera773bd52006-08-04 18:18:08 +000030209 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030210fi
Reid Spencera773bd52006-08-04 18:18:08 +000030211
30212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030213fi
Reid Spencera773bd52006-08-04 18:18:08 +000030214{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30215echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030216
30217cat >>confdefs.h <<_ACEOF
30218#define RETSIGTYPE $ac_cv_type_signal
30219_ACEOF
30220
30221
Reid Spencera773bd52006-08-04 18:18:08 +000030222{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30223echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030224if test "${ac_cv_struct_tm+set}" = set; then
30225 echo $ECHO_N "(cached) $ECHO_C" >&6
30226else
30227 cat >conftest.$ac_ext <<_ACEOF
30228/* confdefs.h. */
30229_ACEOF
30230cat confdefs.h >>conftest.$ac_ext
30231cat >>conftest.$ac_ext <<_ACEOF
30232/* end confdefs.h. */
30233#include <sys/types.h>
30234#include <time.h>
30235
30236int
30237main ()
30238{
Tanya Lattnercf067672008-01-17 05:57:22 +000030239struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030240 ;
30241 return 0;
30242}
30243_ACEOF
30244rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030245if { (ac_try="$ac_compile"
30246case "(($ac_try" in
30247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248 *) ac_try_echo=$ac_try;;
30249esac
30250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030252 ac_status=$?
30253 grep -v '^ *+' conftest.er1 >conftest.err
30254 rm -f conftest.er1
30255 cat conftest.err >&5
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030257 (exit $ac_status); } &&
30258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30259 { (case "(($ac_try" in
30260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30261 *) ac_try_echo=$ac_try;;
30262esac
30263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30264 (eval "$ac_try") 2>&5
30265 ac_status=$?
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267 (exit $ac_status); }; } &&
30268 { ac_try='test -s conftest.$ac_objext'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30272esac
30273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030278 ac_cv_struct_tm=time.h
30279else
30280 echo "$as_me: failed program was:" >&5
30281sed 's/^/| /' conftest.$ac_ext >&5
30282
Reid Spencera773bd52006-08-04 18:18:08 +000030283 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030284fi
Reid Spencera773bd52006-08-04 18:18:08 +000030285
30286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030287fi
Reid Spencera773bd52006-08-04 18:18:08 +000030288{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30289echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030290if test $ac_cv_struct_tm = sys/time.h; then
30291
30292cat >>confdefs.h <<\_ACEOF
30293#define TM_IN_SYS_TIME 1
30294_ACEOF
30295
30296fi
30297
Reid Spencera773bd52006-08-04 18:18:08 +000030298{ echo "$as_me:$LINENO: checking for int64_t" >&5
30299echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030300if test "${ac_cv_type_int64_t+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30302else
30303 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030304/* confdefs.h. */
30305_ACEOF
30306cat confdefs.h >>conftest.$ac_ext
30307cat >>conftest.$ac_ext <<_ACEOF
30308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030309$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030310typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030311int
30312main ()
30313{
Reid Spencera773bd52006-08-04 18:18:08 +000030314if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030315 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030316if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030317 return 0;
30318 ;
30319 return 0;
30320}
30321_ACEOF
30322rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030323if { (ac_try="$ac_compile"
30324case "(($ac_try" in
30325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326 *) ac_try_echo=$ac_try;;
30327esac
30328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030331 grep -v '^ *+' conftest.er1 >conftest.err
30332 rm -f conftest.er1
30333 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030335 (exit $ac_status); } &&
30336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337 { (case "(($ac_try" in
30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30340esac
30341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_try") 2>&5
30343 ac_status=$?
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; } &&
30346 { ac_try='test -s conftest.$ac_objext'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30350esac
30351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30353 ac_status=$?
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030356 ac_cv_type_int64_t=yes
30357else
30358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030359sed 's/^/| /' conftest.$ac_ext >&5
30360
Reid Spencera773bd52006-08-04 18:18:08 +000030361 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030362fi
Reid Spencera773bd52006-08-04 18:18:08 +000030363
30364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030365fi
Reid Spencera773bd52006-08-04 18:18:08 +000030366{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30367echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030368if test $ac_cv_type_int64_t = yes; then
30369
30370cat >>confdefs.h <<_ACEOF
30371#define HAVE_INT64_T 1
30372_ACEOF
30373
30374
30375else
30376 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30377echo "$as_me: error: Type int64_t required but not found" >&2;}
30378 { (exit 1); exit 1; }; }
30379fi
30380
Reid Spencera773bd52006-08-04 18:18:08 +000030381{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30382echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030383if test "${ac_cv_type_uint64_t+set}" = set; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385else
30386 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030387/* confdefs.h. */
30388_ACEOF
30389cat confdefs.h >>conftest.$ac_ext
30390cat >>conftest.$ac_ext <<_ACEOF
30391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030392$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030393typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030394int
30395main ()
30396{
Reid Spencera773bd52006-08-04 18:18:08 +000030397if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030398 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030399if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030400 return 0;
30401 ;
30402 return 0;
30403}
30404_ACEOF
30405rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030406if { (ac_try="$ac_compile"
30407case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30410esac
30411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030414 grep -v '^ *+' conftest.er1 >conftest.err
30415 rm -f conftest.er1
30416 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030418 (exit $ac_status); } &&
30419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30420 { (case "(($ac_try" in
30421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422 *) ac_try_echo=$ac_try;;
30423esac
30424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425 (eval "$ac_try") 2>&5
30426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; } &&
30429 { ac_try='test -s conftest.$ac_objext'
30430 { (case "(($ac_try" in
30431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432 *) ac_try_echo=$ac_try;;
30433esac
30434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435 (eval "$ac_try") 2>&5
30436 ac_status=$?
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030439 ac_cv_type_uint64_t=yes
30440else
30441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030442sed 's/^/| /' conftest.$ac_ext >&5
30443
Reid Spencera773bd52006-08-04 18:18:08 +000030444 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030445fi
Reid Spencera773bd52006-08-04 18:18:08 +000030446
30447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030448fi
Reid Spencera773bd52006-08-04 18:18:08 +000030449{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30450echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030451if test $ac_cv_type_uint64_t = yes; then
30452
30453cat >>confdefs.h <<_ACEOF
30454#define HAVE_UINT64_T 1
30455_ACEOF
30456
30457
30458else
Reid Spencera773bd52006-08-04 18:18:08 +000030459 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30460echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030461if test "${ac_cv_type_u_int64_t+set}" = set; then
30462 echo $ECHO_N "(cached) $ECHO_C" >&6
30463else
30464 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030465/* confdefs.h. */
30466_ACEOF
30467cat confdefs.h >>conftest.$ac_ext
30468cat >>conftest.$ac_ext <<_ACEOF
30469/* end confdefs.h. */
30470$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030471typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030472int
30473main ()
30474{
Reid Spencera773bd52006-08-04 18:18:08 +000030475if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030476 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030477if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030478 return 0;
30479 ;
30480 return 0;
30481}
30482_ACEOF
30483rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030484if { (ac_try="$ac_compile"
30485case "(($ac_try" in
30486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30487 *) ac_try_echo=$ac_try;;
30488esac
30489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30490 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030492 grep -v '^ *+' conftest.er1 >conftest.err
30493 rm -f conftest.er1
30494 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030496 (exit $ac_status); } &&
30497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30501esac
30502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
30504 ac_status=$?
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; } &&
30507 { ac_try='test -s conftest.$ac_objext'
30508 { (case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30511esac
30512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_try") 2>&5
30514 ac_status=$?
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030517 ac_cv_type_u_int64_t=yes
30518else
30519 echo "$as_me: failed program was:" >&5
30520sed 's/^/| /' conftest.$ac_ext >&5
30521
Reid Spencera773bd52006-08-04 18:18:08 +000030522 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030523fi
Reid Spencera773bd52006-08-04 18:18:08 +000030524
30525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030526fi
Reid Spencera773bd52006-08-04 18:18:08 +000030527{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30528echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030529if test $ac_cv_type_u_int64_t = yes; then
30530
30531cat >>confdefs.h <<_ACEOF
30532#define HAVE_U_INT64_T 1
30533_ACEOF
30534
30535
Misha Brukmanceca9042004-09-02 23:02:30 +000030536else
30537 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30538echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30539 { (exit 1); exit 1; }; }
30540fi
30541
John Criswell679ff312004-09-02 18:44:44 +000030542fi
30543
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030544
30545
30546
30547
30548
30549
30550
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030551
30552
Reid Spencerdf3be822006-01-23 08:15:53 +000030553for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030554do
30555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030556{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30558if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030559 echo $ECHO_N "(cached) $ECHO_C" >&6
30560else
30561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030562/* confdefs.h. */
30563_ACEOF
30564cat confdefs.h >>conftest.$ac_ext
30565cat >>conftest.$ac_ext <<_ACEOF
30566/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30569#define $ac_func innocuous_$ac_func
30570
30571/* System header to define __stub macros and hopefully few prototypes,
30572 which can conflict with char $ac_func (); below.
30573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30574 <limits.h> exists even on freestanding compilers. */
30575
30576#ifdef __STDC__
30577# include <limits.h>
30578#else
30579# include <assert.h>
30580#endif
30581
30582#undef $ac_func
30583
Reid Spencera773bd52006-08-04 18:18:08 +000030584/* Override any GCC internal prototype to avoid an error.
30585 Use char because int might match the return type of a GCC
30586 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030587#ifdef __cplusplus
30588extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030589#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030590char $ac_func ();
30591/* The GNU C library defines this for functions which it implements
30592 to always fail with ENOSYS. Some functions are actually named
30593 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030594#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030595choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030596#endif
John Criswell7a73b802003-06-30 21:59:07 +000030597
John Criswell7a73b802003-06-30 21:59:07 +000030598int
30599main ()
30600{
Reid Spencera773bd52006-08-04 18:18:08 +000030601return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030602 ;
30603 return 0;
30604}
30605_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030606rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030607if { (ac_try="$ac_link"
30608case "(($ac_try" in
30609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30610 *) ac_try_echo=$ac_try;;
30611esac
30612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30613 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030615 grep -v '^ *+' conftest.er1 >conftest.err
30616 rm -f conftest.er1
30617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030619 (exit $ac_status); } &&
30620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30621 { (case "(($ac_try" in
30622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30623 *) ac_try_echo=$ac_try;;
30624esac
30625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30626 (eval "$ac_try") 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; } &&
30630 { ac_try='test -s conftest$ac_exeext'
30631 { (case "(($ac_try" in
30632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633 *) ac_try_echo=$ac_try;;
30634esac
30635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636 (eval "$ac_try") 2>&5
30637 ac_status=$?
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030640 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030641else
30642 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030643sed 's/^/| /' conftest.$ac_ext >&5
30644
Reid Spencera773bd52006-08-04 18:18:08 +000030645 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030646fi
Reid Spencera773bd52006-08-04 18:18:08 +000030647
Tanya Lattnercf067672008-01-17 05:57:22 +000030648rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030649 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030650fi
Reid Spencera773bd52006-08-04 18:18:08 +000030651ac_res=`eval echo '${'$as_ac_var'}'`
30652 { echo "$as_me:$LINENO: result: $ac_res" >&5
30653echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030654if test `eval echo '${'$as_ac_var'}'` = yes; then
30655 cat >>confdefs.h <<_ACEOF
30656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030657_ACEOF
30658
30659fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030660done
John Criswell7a73b802003-06-30 21:59:07 +000030661
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030662
30663
30664
Reid Spencer6af3d262004-12-15 04:01:48 +000030665
Reid Spencer96cf5872007-07-13 10:05:30 +000030666for ac_func in powf fmodf strtof round
30667do
30668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30669{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30671if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30672 echo $ECHO_N "(cached) $ECHO_C" >&6
30673else
30674 cat >conftest.$ac_ext <<_ACEOF
30675/* confdefs.h. */
30676_ACEOF
30677cat confdefs.h >>conftest.$ac_ext
30678cat >>conftest.$ac_ext <<_ACEOF
30679/* end confdefs.h. */
30680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30682#define $ac_func innocuous_$ac_func
30683
30684/* System header to define __stub macros and hopefully few prototypes,
30685 which can conflict with char $ac_func (); below.
30686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30687 <limits.h> exists even on freestanding compilers. */
30688
30689#ifdef __STDC__
30690# include <limits.h>
30691#else
30692# include <assert.h>
30693#endif
30694
30695#undef $ac_func
30696
30697/* Override any GCC internal prototype to avoid an error.
30698 Use char because int might match the return type of a GCC
30699 builtin and then its argument prototype would still apply. */
30700#ifdef __cplusplus
30701extern "C"
30702#endif
30703char $ac_func ();
30704/* The GNU C library defines this for functions which it implements
30705 to always fail with ENOSYS. Some functions are actually named
30706 something starting with __ and the normal name is an alias. */
30707#if defined __stub_$ac_func || defined __stub___$ac_func
30708choke me
30709#endif
30710
30711int
30712main ()
30713{
30714return $ac_func ();
30715 ;
30716 return 0;
30717}
30718_ACEOF
30719rm -f conftest.$ac_objext conftest$ac_exeext
30720if { (ac_try="$ac_link"
30721case "(($ac_try" in
30722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30723 *) ac_try_echo=$ac_try;;
30724esac
30725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30726 (eval "$ac_link") 2>conftest.er1
30727 ac_status=$?
30728 grep -v '^ *+' conftest.er1 >conftest.err
30729 rm -f conftest.er1
30730 cat conftest.err >&5
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030732 (exit $ac_status); } &&
30733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30734 { (case "(($ac_try" in
30735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30737esac
30738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_try") 2>&5
30740 ac_status=$?
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; } &&
30743 { ac_try='test -s conftest$ac_exeext'
30744 { (case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30747esac
30748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_try") 2>&5
30750 ac_status=$?
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030753 eval "$as_ac_var=yes"
30754else
30755 echo "$as_me: failed program was:" >&5
30756sed 's/^/| /' conftest.$ac_ext >&5
30757
30758 eval "$as_ac_var=no"
30759fi
30760
Tanya Lattnercf067672008-01-17 05:57:22 +000030761rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030762 conftest$ac_exeext conftest.$ac_ext
30763fi
30764ac_res=`eval echo '${'$as_ac_var'}'`
30765 { echo "$as_me:$LINENO: result: $ac_res" >&5
30766echo "${ECHO_T}$ac_res" >&6; }
30767if test `eval echo '${'$as_ac_var'}'` = yes; then
30768 cat >>confdefs.h <<_ACEOF
30769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770_ACEOF
30771
30772fi
30773done
30774
30775
30776
30777
30778
Reid Spencer6af3d262004-12-15 04:01:48 +000030779
Reid Spencerb90645c2007-02-16 19:17:20 +000030780for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30781do
30782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30787else
30788 cat >conftest.$ac_ext <<_ACEOF
30789/* confdefs.h. */
30790_ACEOF
30791cat confdefs.h >>conftest.$ac_ext
30792cat >>conftest.$ac_ext <<_ACEOF
30793/* end confdefs.h. */
30794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30796#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030797
Reid Spencerb90645c2007-02-16 19:17:20 +000030798/* System header to define __stub macros and hopefully few prototypes,
30799 which can conflict with char $ac_func (); below.
30800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801 <limits.h> exists even on freestanding compilers. */
30802
30803#ifdef __STDC__
30804# include <limits.h>
30805#else
30806# include <assert.h>
30807#endif
30808
30809#undef $ac_func
30810
30811/* Override any GCC internal prototype to avoid an error.
30812 Use char because int might match the return type of a GCC
30813 builtin and then its argument prototype would still apply. */
30814#ifdef __cplusplus
30815extern "C"
30816#endif
30817char $ac_func ();
30818/* The GNU C library defines this for functions which it implements
30819 to always fail with ENOSYS. Some functions are actually named
30820 something starting with __ and the normal name is an alias. */
30821#if defined __stub_$ac_func || defined __stub___$ac_func
30822choke me
30823#endif
30824
30825int
30826main ()
30827{
30828return $ac_func ();
30829 ;
30830 return 0;
30831}
30832_ACEOF
30833rm -f conftest.$ac_objext conftest$ac_exeext
30834if { (ac_try="$ac_link"
30835case "(($ac_try" in
30836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837 *) ac_try_echo=$ac_try;;
30838esac
30839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840 (eval "$ac_link") 2>conftest.er1
30841 ac_status=$?
30842 grep -v '^ *+' conftest.er1 >conftest.err
30843 rm -f conftest.er1
30844 cat conftest.err >&5
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030846 (exit $ac_status); } &&
30847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30848 { (case "(($ac_try" in
30849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850 *) ac_try_echo=$ac_try;;
30851esac
30852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853 (eval "$ac_try") 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; } &&
30857 { ac_try='test -s conftest$ac_exeext'
30858 { (case "(($ac_try" in
30859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30860 *) ac_try_echo=$ac_try;;
30861esac
30862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30863 (eval "$ac_try") 2>&5
30864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030867 eval "$as_ac_var=yes"
30868else
30869 echo "$as_me: failed program was:" >&5
30870sed 's/^/| /' conftest.$ac_ext >&5
30871
30872 eval "$as_ac_var=no"
30873fi
30874
Tanya Lattnercf067672008-01-17 05:57:22 +000030875rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030876 conftest$ac_exeext conftest.$ac_ext
30877fi
30878ac_res=`eval echo '${'$as_ac_var'}'`
30879 { echo "$as_me:$LINENO: result: $ac_res" >&5
30880echo "${ECHO_T}$ac_res" >&6; }
30881if test `eval echo '${'$as_ac_var'}'` = yes; then
30882 cat >>confdefs.h <<_ACEOF
30883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30884_ACEOF
30885
30886fi
30887done
30888
30889
30890
30891
30892for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030893do
30894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030895{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030898 echo $ECHO_N "(cached) $ECHO_C" >&6
30899else
30900 cat >conftest.$ac_ext <<_ACEOF
30901/* confdefs.h. */
30902_ACEOF
30903cat confdefs.h >>conftest.$ac_ext
30904cat >>conftest.$ac_ext <<_ACEOF
30905/* end confdefs.h. */
30906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30908#define $ac_func innocuous_$ac_func
30909
30910/* System header to define __stub macros and hopefully few prototypes,
30911 which can conflict with char $ac_func (); below.
30912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913 <limits.h> exists even on freestanding compilers. */
30914
30915#ifdef __STDC__
30916# include <limits.h>
30917#else
30918# include <assert.h>
30919#endif
30920
30921#undef $ac_func
30922
Reid Spencera773bd52006-08-04 18:18:08 +000030923/* Override any GCC internal prototype to avoid an error.
30924 Use char because int might match the return type of a GCC
30925 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030926#ifdef __cplusplus
30927extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030928#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030929char $ac_func ();
30930/* The GNU C library defines this for functions which it implements
30931 to always fail with ENOSYS. Some functions are actually named
30932 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030933#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030934choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030935#endif
30936
30937int
30938main ()
30939{
Reid Spencera773bd52006-08-04 18:18:08 +000030940return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030941 ;
30942 return 0;
30943}
30944_ACEOF
30945rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030946if { (ac_try="$ac_link"
30947case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30950esac
30951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030953 ac_status=$?
30954 grep -v '^ *+' conftest.er1 >conftest.err
30955 rm -f conftest.er1
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030958 (exit $ac_status); } &&
30959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30960 { (case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30963esac
30964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_try") 2>&5
30966 ac_status=$?
30967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); }; } &&
30969 { ac_try='test -s conftest$ac_exeext'
30970 { (case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30973esac
30974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975 (eval "$ac_try") 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030979 eval "$as_ac_var=yes"
30980else
30981 echo "$as_me: failed program was:" >&5
30982sed 's/^/| /' conftest.$ac_ext >&5
30983
Reid Spencera773bd52006-08-04 18:18:08 +000030984 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030985fi
Reid Spencera773bd52006-08-04 18:18:08 +000030986
Tanya Lattnercf067672008-01-17 05:57:22 +000030987rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030988 conftest$ac_exeext conftest.$ac_ext
30989fi
Reid Spencera773bd52006-08-04 18:18:08 +000030990ac_res=`eval echo '${'$as_ac_var'}'`
30991 { echo "$as_me:$LINENO: result: $ac_res" >&5
30992echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030993if test `eval echo '${'$as_ac_var'}'` = yes; then
30994 cat >>confdefs.h <<_ACEOF
30995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30996_ACEOF
30997
30998fi
30999done
31000
31001
31002
31003
31004
31005
31006
31007
31008for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031009do
31010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031011{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031014 echo $ECHO_N "(cached) $ECHO_C" >&6
31015else
31016 cat >conftest.$ac_ext <<_ACEOF
31017/* confdefs.h. */
31018_ACEOF
31019cat confdefs.h >>conftest.$ac_ext
31020cat >>conftest.$ac_ext <<_ACEOF
31021/* end confdefs.h. */
31022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31024#define $ac_func innocuous_$ac_func
31025
31026/* System header to define __stub macros and hopefully few prototypes,
31027 which can conflict with char $ac_func (); below.
31028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31029 <limits.h> exists even on freestanding compilers. */
31030
31031#ifdef __STDC__
31032# include <limits.h>
31033#else
31034# include <assert.h>
31035#endif
31036
31037#undef $ac_func
31038
Reid Spencera773bd52006-08-04 18:18:08 +000031039/* Override any GCC internal prototype to avoid an error.
31040 Use char because int might match the return type of a GCC
31041 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031042#ifdef __cplusplus
31043extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031044#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031045char $ac_func ();
31046/* The GNU C library defines this for functions which it implements
31047 to always fail with ENOSYS. Some functions are actually named
31048 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031049#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031050choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031051#endif
31052
31053int
31054main ()
31055{
Reid Spencera773bd52006-08-04 18:18:08 +000031056return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031057 ;
31058 return 0;
31059}
31060_ACEOF
31061rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031062if { (ac_try="$ac_link"
31063case "(($ac_try" in
31064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065 *) ac_try_echo=$ac_try;;
31066esac
31067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31068 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031069 ac_status=$?
31070 grep -v '^ *+' conftest.er1 >conftest.err
31071 rm -f conftest.er1
31072 cat conftest.err >&5
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031074 (exit $ac_status); } &&
31075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31076 { (case "(($ac_try" in
31077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078 *) ac_try_echo=$ac_try;;
31079esac
31080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31081 (eval "$ac_try") 2>&5
31082 ac_status=$?
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }; } &&
31085 { ac_try='test -s conftest$ac_exeext'
31086 { (case "(($ac_try" in
31087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088 *) ac_try_echo=$ac_try;;
31089esac
31090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31091 (eval "$ac_try") 2>&5
31092 ac_status=$?
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031095 eval "$as_ac_var=yes"
31096else
31097 echo "$as_me: failed program was:" >&5
31098sed 's/^/| /' conftest.$ac_ext >&5
31099
Reid Spencera773bd52006-08-04 18:18:08 +000031100 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031101fi
Reid Spencera773bd52006-08-04 18:18:08 +000031102
Tanya Lattnercf067672008-01-17 05:57:22 +000031103rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031104 conftest$ac_exeext conftest.$ac_ext
31105fi
Reid Spencera773bd52006-08-04 18:18:08 +000031106ac_res=`eval echo '${'$as_ac_var'}'`
31107 { echo "$as_me:$LINENO: result: $ac_res" >&5
31108echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031109if test `eval echo '${'$as_ac_var'}'` = yes; then
31110 cat >>confdefs.h <<_ACEOF
31111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31112_ACEOF
31113
31114fi
31115done
31116
31117
Reid Spencerba46ca32004-12-31 05:49:15 +000031118
31119
Chris Lattner0b142592005-11-14 06:57:34 +000031120
Chris Lattner511f11d2005-11-14 07:25:50 +000031121for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031122do
31123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031124{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031127 echo $ECHO_N "(cached) $ECHO_C" >&6
31128else
31129 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031130/* confdefs.h. */
31131_ACEOF
31132cat confdefs.h >>conftest.$ac_ext
31133cat >>conftest.$ac_ext <<_ACEOF
31134/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31137#define $ac_func innocuous_$ac_func
31138
31139/* System header to define __stub macros and hopefully few prototypes,
31140 which can conflict with char $ac_func (); below.
31141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142 <limits.h> exists even on freestanding compilers. */
31143
31144#ifdef __STDC__
31145# include <limits.h>
31146#else
31147# include <assert.h>
31148#endif
31149
31150#undef $ac_func
31151
Reid Spencera773bd52006-08-04 18:18:08 +000031152/* Override any GCC internal prototype to avoid an error.
31153 Use char because int might match the return type of a GCC
31154 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031155#ifdef __cplusplus
31156extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031157#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031158char $ac_func ();
31159/* The GNU C library defines this for functions which it implements
31160 to always fail with ENOSYS. Some functions are actually named
31161 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031162#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031163choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031164#endif
John Criswell7a73b802003-06-30 21:59:07 +000031165
John Criswell7a73b802003-06-30 21:59:07 +000031166int
31167main ()
31168{
Reid Spencera773bd52006-08-04 18:18:08 +000031169return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031170 ;
31171 return 0;
31172}
31173_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031174rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031175if { (ac_try="$ac_link"
31176case "(($ac_try" in
31177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31178 *) ac_try_echo=$ac_try;;
31179esac
31180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31181 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031182 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031183 grep -v '^ *+' conftest.er1 >conftest.err
31184 rm -f conftest.er1
31185 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031187 (exit $ac_status); } &&
31188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31189 { (case "(($ac_try" in
31190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31191 *) ac_try_echo=$ac_try;;
31192esac
31193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31194 (eval "$ac_try") 2>&5
31195 ac_status=$?
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); }; } &&
31198 { ac_try='test -s conftest$ac_exeext'
31199 { (case "(($ac_try" in
31200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31201 *) ac_try_echo=$ac_try;;
31202esac
31203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31204 (eval "$ac_try") 2>&5
31205 ac_status=$?
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031208 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031209else
31210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031211sed 's/^/| /' conftest.$ac_ext >&5
31212
Reid Spencera773bd52006-08-04 18:18:08 +000031213 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031214fi
Reid Spencera773bd52006-08-04 18:18:08 +000031215
Tanya Lattnercf067672008-01-17 05:57:22 +000031216rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031217 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031218fi
Reid Spencera773bd52006-08-04 18:18:08 +000031219ac_res=`eval echo '${'$as_ac_var'}'`
31220 { echo "$as_me:$LINENO: result: $ac_res" >&5
31221echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031222if test `eval echo '${'$as_ac_var'}'` = yes; then
31223 cat >>confdefs.h <<_ACEOF
31224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031225_ACEOF
31226
31227fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031228done
John Criswell7a73b802003-06-30 21:59:07 +000031229
Reid Spencercdb08a32006-06-05 16:11:07 +000031230
31231
31232
31233
Reid Spencerafa22e22006-12-10 23:29:19 +000031234for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031235do
31236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031240 echo $ECHO_N "(cached) $ECHO_C" >&6
31241else
31242 cat >conftest.$ac_ext <<_ACEOF
31243/* confdefs.h. */
31244_ACEOF
31245cat confdefs.h >>conftest.$ac_ext
31246cat >>conftest.$ac_ext <<_ACEOF
31247/* end confdefs.h. */
31248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31250#define $ac_func innocuous_$ac_func
31251
31252/* System header to define __stub macros and hopefully few prototypes,
31253 which can conflict with char $ac_func (); below.
31254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31255 <limits.h> exists even on freestanding compilers. */
31256
31257#ifdef __STDC__
31258# include <limits.h>
31259#else
31260# include <assert.h>
31261#endif
31262
31263#undef $ac_func
31264
Reid Spencera773bd52006-08-04 18:18:08 +000031265/* Override any GCC internal prototype to avoid an error.
31266 Use char because int might match the return type of a GCC
31267 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031268#ifdef __cplusplus
31269extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031270#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031271char $ac_func ();
31272/* The GNU C library defines this for functions which it implements
31273 to always fail with ENOSYS. Some functions are actually named
31274 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031275#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031276choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031277#endif
31278
31279int
31280main ()
31281{
Reid Spencera773bd52006-08-04 18:18:08 +000031282return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031283 ;
31284 return 0;
31285}
31286_ACEOF
31287rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031288if { (ac_try="$ac_link"
31289case "(($ac_try" in
31290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291 *) ac_try_echo=$ac_try;;
31292esac
31293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031295 ac_status=$?
31296 grep -v '^ *+' conftest.er1 >conftest.err
31297 rm -f conftest.er1
31298 cat conftest.err >&5
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031300 (exit $ac_status); } &&
31301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31302 { (case "(($ac_try" in
31303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304 *) ac_try_echo=$ac_try;;
31305esac
31306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307 (eval "$ac_try") 2>&5
31308 ac_status=$?
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); }; } &&
31311 { ac_try='test -s conftest$ac_exeext'
31312 { (case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31315esac
31316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_try") 2>&5
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031321 eval "$as_ac_var=yes"
31322else
31323 echo "$as_me: failed program was:" >&5
31324sed 's/^/| /' conftest.$ac_ext >&5
31325
Reid Spencera773bd52006-08-04 18:18:08 +000031326 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031327fi
Reid Spencera773bd52006-08-04 18:18:08 +000031328
Tanya Lattnercf067672008-01-17 05:57:22 +000031329rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031330 conftest$ac_exeext conftest.$ac_ext
31331fi
Reid Spencera773bd52006-08-04 18:18:08 +000031332ac_res=`eval echo '${'$as_ac_var'}'`
31333 { echo "$as_me:$LINENO: result: $ac_res" >&5
31334echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031335if test `eval echo '${'$as_ac_var'}'` = yes; then
31336 cat >>confdefs.h <<_ACEOF
31337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31338_ACEOF
31339
31340fi
31341done
31342
Reid Spencera773bd52006-08-04 18:18:08 +000031343{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31344echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031345if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031346 echo $ECHO_N "(cached) $ECHO_C" >&6
31347else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031348 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031349ac_cpp='$CPP $CPPFLAGS'
31350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352ac_compiler_gnu=$ac_cv_c_compiler_gnu
31353
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031354 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031355 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031356else
31357 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031358
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031359 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031360_ACEOF
31361cat confdefs.h >>conftest.$ac_ext
31362cat >>conftest.$ac_ext <<_ACEOF
31363/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031364
John Criswella0137d32003-10-13 16:22:01 +000031365#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031366#include <stdlib.h>
31367
John Criswella0137d32003-10-13 16:22:01 +000031368int
31369main ()
31370{
31371
Reid Spencer2706f8c2004-09-19 23:53:36 +000031372volatile double A, B;
31373char Buffer[100];
31374A = 1;
31375A /= 10.0;
31376sprintf(Buffer, "%a", A);
31377B = atof(Buffer);
31378if (A != B)
31379 return (1);
31380if (A != 0x1.999999999999ap-4)
31381 return (1);
31382return (0);
John Criswella0137d32003-10-13 16:22:01 +000031383 ;
31384 return 0;
31385}
31386_ACEOF
31387rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031388if { (ac_try="$ac_link"
31389case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31392esac
31393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031395 ac_status=$?
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031398 { (case "(($ac_try" in
31399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31400 *) ac_try_echo=$ac_try;;
31401esac
31402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31403 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031407 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031408else
31409 echo "$as_me: program exited with status $ac_status" >&5
31410echo "$as_me: failed program was:" >&5
31411sed 's/^/| /' conftest.$ac_ext >&5
31412
31413( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031414llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031415fi
Reid Spencera773bd52006-08-04 18:18:08 +000031416rm -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 +000031417fi
Reid Spencera773bd52006-08-04 18:18:08 +000031418
31419
Reid Spencer2706f8c2004-09-19 23:53:36 +000031420 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031421ac_cpp='$CPP $CPPFLAGS'
31422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31424ac_compiler_gnu=$ac_cv_c_compiler_gnu
31425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031426fi
Reid Spencera773bd52006-08-04 18:18:08 +000031427{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31428echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031429 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031430
31431cat >>confdefs.h <<\_ACEOF
31432#define HAVE_PRINTF_A 1
31433_ACEOF
31434
Reid Spencer2706f8c2004-09-19 23:53:36 +000031435 fi
John Criswella0137d32003-10-13 16:22:01 +000031436
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031437# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31438# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031439{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31440echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031441if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031442 echo $ECHO_N "(cached) $ECHO_C" >&6
31443else
John Criswell0021c312004-02-13 21:57:29 +000031444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031445/* confdefs.h. */
31446_ACEOF
31447cat confdefs.h >>conftest.$ac_ext
31448cat >>conftest.$ac_ext <<_ACEOF
31449/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031450#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031451int
31452main ()
31453{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031454char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031455 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031456 ;
31457 return 0;
31458}
31459_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031460rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031461if { (ac_try="$ac_link"
31462case "(($ac_try" in
31463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31464 *) ac_try_echo=$ac_try;;
31465esac
31466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31467 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031468 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031469 grep -v '^ *+' conftest.er1 >conftest.err
31470 rm -f conftest.er1
31471 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031473 (exit $ac_status); } &&
31474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31475 { (case "(($ac_try" in
31476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31477 *) ac_try_echo=$ac_try;;
31478esac
31479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31480 (eval "$ac_try") 2>&5
31481 ac_status=$?
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); }; } &&
31484 { ac_try='test -s conftest$ac_exeext'
31485 { (case "(($ac_try" in
31486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487 *) ac_try_echo=$ac_try;;
31488esac
31489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490 (eval "$ac_try") 2>&5
31491 ac_status=$?
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031494 ac_cv_working_alloca_h=yes
31495else
31496 echo "$as_me: failed program was:" >&5
31497sed 's/^/| /' conftest.$ac_ext >&5
31498
Reid Spencera773bd52006-08-04 18:18:08 +000031499 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031500fi
Reid Spencera773bd52006-08-04 18:18:08 +000031501
Tanya Lattnercf067672008-01-17 05:57:22 +000031502rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031503 conftest$ac_exeext conftest.$ac_ext
31504fi
Reid Spencera773bd52006-08-04 18:18:08 +000031505{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31506echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031507if test $ac_cv_working_alloca_h = yes; then
31508
31509cat >>confdefs.h <<\_ACEOF
31510#define HAVE_ALLOCA_H 1
31511_ACEOF
31512
31513fi
31514
Reid Spencera773bd52006-08-04 18:18:08 +000031515{ echo "$as_me:$LINENO: checking for alloca" >&5
31516echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031517if test "${ac_cv_func_alloca_works+set}" = set; then
31518 echo $ECHO_N "(cached) $ECHO_C" >&6
31519else
31520 cat >conftest.$ac_ext <<_ACEOF
31521/* confdefs.h. */
31522_ACEOF
31523cat confdefs.h >>conftest.$ac_ext
31524cat >>conftest.$ac_ext <<_ACEOF
31525/* end confdefs.h. */
31526#ifdef __GNUC__
31527# define alloca __builtin_alloca
31528#else
31529# ifdef _MSC_VER
31530# include <malloc.h>
31531# define alloca _alloca
31532# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031533# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031534# include <alloca.h>
31535# else
31536# ifdef _AIX
31537 #pragma alloca
31538# else
31539# ifndef alloca /* predefined by HP cc +Olibcalls */
31540char *alloca ();
31541# endif
31542# endif
31543# endif
31544# endif
31545#endif
31546
31547int
31548main ()
31549{
31550char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031551 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031552 ;
31553 return 0;
31554}
31555_ACEOF
31556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031557if { (ac_try="$ac_link"
31558case "(($ac_try" in
31559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31560 *) ac_try_echo=$ac_try;;
31561esac
31562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31563 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031564 ac_status=$?
31565 grep -v '^ *+' conftest.er1 >conftest.err
31566 rm -f conftest.er1
31567 cat conftest.err >&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031569 (exit $ac_status); } &&
31570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31571 { (case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31574esac
31575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_try") 2>&5
31577 ac_status=$?
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); }; } &&
31580 { ac_try='test -s conftest$ac_exeext'
31581 { (case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584esac
31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_try") 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031590 ac_cv_func_alloca_works=yes
31591else
31592 echo "$as_me: failed program was:" >&5
31593sed 's/^/| /' conftest.$ac_ext >&5
31594
Reid Spencera773bd52006-08-04 18:18:08 +000031595 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031596fi
Reid Spencera773bd52006-08-04 18:18:08 +000031597
Tanya Lattnercf067672008-01-17 05:57:22 +000031598rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031599 conftest$ac_exeext conftest.$ac_ext
31600fi
Reid Spencera773bd52006-08-04 18:18:08 +000031601{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31602echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031603
31604if test $ac_cv_func_alloca_works = yes; then
31605
31606cat >>confdefs.h <<\_ACEOF
31607#define HAVE_ALLOCA 1
31608_ACEOF
31609
31610else
31611 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31612# that cause trouble. Some versions do not even contain alloca or
31613# contain a buggy version. If you still want to use their alloca,
31614# use ar to extract alloca.o from them instead of compiling alloca.c.
31615
Reid Spencera773bd52006-08-04 18:18:08 +000031616ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031617
31618cat >>confdefs.h <<\_ACEOF
31619#define C_ALLOCA 1
31620_ACEOF
31621
31622
Reid Spencera773bd52006-08-04 18:18:08 +000031623{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31624echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031625if test "${ac_cv_os_cray+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31627else
31628 cat >conftest.$ac_ext <<_ACEOF
31629/* confdefs.h. */
31630_ACEOF
31631cat confdefs.h >>conftest.$ac_ext
31632cat >>conftest.$ac_ext <<_ACEOF
31633/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031634#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031635webecray
31636#else
31637wenotbecray
31638#endif
31639
31640_ACEOF
31641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31642 $EGREP "webecray" >/dev/null 2>&1; then
31643 ac_cv_os_cray=yes
31644else
31645 ac_cv_os_cray=no
31646fi
31647rm -f conftest*
31648
31649fi
Reid Spencera773bd52006-08-04 18:18:08 +000031650{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31651echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031652if test $ac_cv_os_cray = yes; then
31653 for ac_func in _getb67 GETB67 getb67; do
31654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031655{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31657if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031658 echo $ECHO_N "(cached) $ECHO_C" >&6
31659else
31660 cat >conftest.$ac_ext <<_ACEOF
31661/* confdefs.h. */
31662_ACEOF
31663cat confdefs.h >>conftest.$ac_ext
31664cat >>conftest.$ac_ext <<_ACEOF
31665/* end confdefs.h. */
31666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31668#define $ac_func innocuous_$ac_func
31669
31670/* System header to define __stub macros and hopefully few prototypes,
31671 which can conflict with char $ac_func (); below.
31672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31673 <limits.h> exists even on freestanding compilers. */
31674
31675#ifdef __STDC__
31676# include <limits.h>
31677#else
31678# include <assert.h>
31679#endif
31680
31681#undef $ac_func
31682
Reid Spencera773bd52006-08-04 18:18:08 +000031683/* Override any GCC internal prototype to avoid an error.
31684 Use char because int might match the return type of a GCC
31685 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031686#ifdef __cplusplus
31687extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031688#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031689char $ac_func ();
31690/* The GNU C library defines this for functions which it implements
31691 to always fail with ENOSYS. Some functions are actually named
31692 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031693#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031694choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031695#endif
31696
31697int
31698main ()
31699{
Reid Spencera773bd52006-08-04 18:18:08 +000031700return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031701 ;
31702 return 0;
31703}
31704_ACEOF
31705rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031706if { (ac_try="$ac_link"
31707case "(($ac_try" in
31708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31709 *) ac_try_echo=$ac_try;;
31710esac
31711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31712 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031713 ac_status=$?
31714 grep -v '^ *+' conftest.er1 >conftest.err
31715 rm -f conftest.er1
31716 cat conftest.err >&5
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031718 (exit $ac_status); } &&
31719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31720 { (case "(($ac_try" in
31721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31722 *) ac_try_echo=$ac_try;;
31723esac
31724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31725 (eval "$ac_try") 2>&5
31726 ac_status=$?
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); }; } &&
31729 { ac_try='test -s conftest$ac_exeext'
31730 { (case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31733esac
31734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_try") 2>&5
31736 ac_status=$?
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031739 eval "$as_ac_var=yes"
31740else
31741 echo "$as_me: failed program was:" >&5
31742sed 's/^/| /' conftest.$ac_ext >&5
31743
Reid Spencera773bd52006-08-04 18:18:08 +000031744 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031745fi
Reid Spencera773bd52006-08-04 18:18:08 +000031746
Tanya Lattnercf067672008-01-17 05:57:22 +000031747rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031748 conftest$ac_exeext conftest.$ac_ext
31749fi
Reid Spencera773bd52006-08-04 18:18:08 +000031750ac_res=`eval echo '${'$as_ac_var'}'`
31751 { echo "$as_me:$LINENO: result: $ac_res" >&5
31752echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031753if test `eval echo '${'$as_ac_var'}'` = yes; then
31754
31755cat >>confdefs.h <<_ACEOF
31756#define CRAY_STACKSEG_END $ac_func
31757_ACEOF
31758
31759 break
31760fi
31761
31762 done
31763fi
31764
Reid Spencera773bd52006-08-04 18:18:08 +000031765{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31766echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031767if test "${ac_cv_c_stack_direction+set}" = set; then
31768 echo $ECHO_N "(cached) $ECHO_C" >&6
31769else
31770 if test "$cross_compiling" = yes; then
31771 ac_cv_c_stack_direction=0
31772else
31773 cat >conftest.$ac_ext <<_ACEOF
31774/* confdefs.h. */
31775_ACEOF
31776cat confdefs.h >>conftest.$ac_ext
31777cat >>conftest.$ac_ext <<_ACEOF
31778/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031779$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031780int
31781find_stack_direction ()
31782{
31783 static char *addr = 0;
31784 auto char dummy;
31785 if (addr == 0)
31786 {
31787 addr = &dummy;
31788 return find_stack_direction ();
31789 }
John Criswell0021c312004-02-13 21:57:29 +000031790 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031791 return (&dummy > addr) ? 1 : -1;
31792}
John Criswell0021c312004-02-13 21:57:29 +000031793
John Criswell0021c312004-02-13 21:57:29 +000031794int
31795main ()
31796{
Reid Spencera773bd52006-08-04 18:18:08 +000031797 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031798}
31799_ACEOF
31800rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031801if { (ac_try="$ac_link"
31802case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31805esac
31806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031808 ac_status=$?
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031811 { (case "(($ac_try" in
31812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813 *) ac_try_echo=$ac_try;;
31814esac
31815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031817 ac_status=$?
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031820 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031821else
31822 echo "$as_me: program exited with status $ac_status" >&5
31823echo "$as_me: failed program was:" >&5
31824sed 's/^/| /' conftest.$ac_ext >&5
31825
31826( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031827ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031828fi
Reid Spencera773bd52006-08-04 18:18:08 +000031829rm -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 +000031830fi
Reid Spencera773bd52006-08-04 18:18:08 +000031831
31832
John Criswell0021c312004-02-13 21:57:29 +000031833fi
Reid Spencera773bd52006-08-04 18:18:08 +000031834{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31835echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031836
31837cat >>confdefs.h <<_ACEOF
31838#define STACK_DIRECTION $ac_cv_c_stack_direction
31839_ACEOF
31840
31841
John Criswell0021c312004-02-13 21:57:29 +000031842fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031843
31844
Reid Spencera773bd52006-08-04 18:18:08 +000031845{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31846echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031847if test "${ac_cv_func_rand48+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849else
Reid Spencera773bd52006-08-04 18:18:08 +000031850 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031851ac_cpp='$CXXCPP $CPPFLAGS'
31852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31855
31856 cat >conftest.$ac_ext <<_ACEOF
31857/* confdefs.h. */
31858_ACEOF
31859cat confdefs.h >>conftest.$ac_ext
31860cat >>conftest.$ac_ext <<_ACEOF
31861/* end confdefs.h. */
31862#include <stdlib.h>
31863int
31864main ()
31865{
31866srand48(0);lrand48();drand48();
31867 ;
31868 return 0;
31869}
31870_ACEOF
31871rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031872if { (ac_try="$ac_compile"
31873case "(($ac_try" in
31874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875 *) ac_try_echo=$ac_try;;
31876esac
31877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031879 ac_status=$?
31880 grep -v '^ *+' conftest.er1 >conftest.err
31881 rm -f conftest.er1
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031884 (exit $ac_status); } &&
31885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31886 { (case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31889esac
31890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_try") 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); }; } &&
31895 { ac_try='test -s conftest.$ac_objext'
31896 { (case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31899esac
31900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_try") 2>&5
31902 ac_status=$?
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031905 ac_cv_func_rand48=yes
31906else
31907 echo "$as_me: failed program was:" >&5
31908sed 's/^/| /' conftest.$ac_ext >&5
31909
Reid Spencera773bd52006-08-04 18:18:08 +000031910 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031911fi
Reid Spencera773bd52006-08-04 18:18:08 +000031912
31913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031914 ac_ext=c
31915ac_cpp='$CPP $CPPFLAGS'
31916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31918ac_compiler_gnu=$ac_cv_c_compiler_gnu
31919
31920fi
Reid Spencera773bd52006-08-04 18:18:08 +000031921{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31922echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031923
31924if test "$ac_cv_func_rand48" = "yes" ; then
31925
31926cat >>confdefs.h <<\_ACEOF
31927#define HAVE_RAND48 1
31928_ACEOF
31929
31930fi
John Criswell0021c312004-02-13 21:57:29 +000031931
31932
Reid Spencera773bd52006-08-04 18:18:08 +000031933{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31934echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031935if test "${ac_cv_cxx_namespaces+set}" = set; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31937else
Reid Spencera773bd52006-08-04 18:18:08 +000031938 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031939ac_cpp='$CXXCPP $CPPFLAGS'
31940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31943
31944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031945/* confdefs.h. */
31946_ACEOF
31947cat confdefs.h >>conftest.$ac_ext
31948cat >>conftest.$ac_ext <<_ACEOF
31949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031950namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031951int
31952main ()
31953{
31954using namespace Outer::Inner; return i;
31955 ;
31956 return 0;
31957}
31958_ACEOF
31959rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031960if { (ac_try="$ac_compile"
31961case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31964esac
31965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031967 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031968 grep -v '^ *+' conftest.er1 >conftest.err
31969 rm -f conftest.er1
31970 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031972 (exit $ac_status); } &&
31973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31974 { (case "(($ac_try" in
31975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976 *) ac_try_echo=$ac_try;;
31977esac
31978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979 (eval "$ac_try") 2>&5
31980 ac_status=$?
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; } &&
31983 { ac_try='test -s conftest.$ac_objext'
31984 { (case "(($ac_try" in
31985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986 *) ac_try_echo=$ac_try;;
31987esac
31988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989 (eval "$ac_try") 2>&5
31990 ac_status=$?
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031993 ac_cv_cxx_namespaces=yes
31994else
31995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031996sed 's/^/| /' conftest.$ac_ext >&5
31997
Reid Spencera773bd52006-08-04 18:18:08 +000031998 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031999fi
Reid Spencera773bd52006-08-04 18:18:08 +000032000
32001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032002 ac_ext=c
32003ac_cpp='$CPP $CPPFLAGS'
32004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32006ac_compiler_gnu=$ac_cv_c_compiler_gnu
32007
32008
32009fi
Reid Spencera773bd52006-08-04 18:18:08 +000032010{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32011echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032012if test "$ac_cv_cxx_namespaces" = yes; then
32013
32014cat >>confdefs.h <<\_ACEOF
32015#define HAVE_NAMESPACES
32016_ACEOF
32017
32018fi
32019
Reid Spencera773bd52006-08-04 18:18:08 +000032020{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32021echo $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 +000032022if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032023 echo $ECHO_N "(cached) $ECHO_C" >&6
32024else
32025
Reid Spencera773bd52006-08-04 18:18:08 +000032026 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032027ac_cpp='$CXXCPP $CPPFLAGS'
32028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32031
32032 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032033/* confdefs.h. */
32034_ACEOF
32035cat confdefs.h >>conftest.$ac_ext
32036cat >>conftest.$ac_ext <<_ACEOF
32037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032038#include <ext/hash_map>
32039#ifdef HAVE_NAMESPACES
32040using namespace std;
32041#endif
John Criswell7a73b802003-06-30 21:59:07 +000032042int
32043main ()
32044{
Brian Gaeke90583492003-11-10 03:06:28 +000032045hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032046 ;
32047 return 0;
32048}
32049_ACEOF
32050rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032051if { (ac_try="$ac_compile"
32052case "(($ac_try" in
32053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 *) ac_try_echo=$ac_try;;
32055esac
32056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032058 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032059 grep -v '^ *+' conftest.er1 >conftest.err
32060 rm -f conftest.er1
32061 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032063 (exit $ac_status); } &&
32064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32065 { (case "(($ac_try" in
32066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32067 *) ac_try_echo=$ac_try;;
32068esac
32069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32070 (eval "$ac_try") 2>&5
32071 ac_status=$?
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; } &&
32074 { ac_try='test -s conftest.$ac_objext'
32075 { (case "(($ac_try" in
32076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32077 *) ac_try_echo=$ac_try;;
32078esac
32079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32080 (eval "$ac_try") 2>&5
32081 ac_status=$?
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032084 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032085else
32086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032087sed 's/^/| /' conftest.$ac_ext >&5
32088
Reid Spencera773bd52006-08-04 18:18:08 +000032089 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032090fi
Reid Spencera773bd52006-08-04 18:18:08 +000032091
32092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032093 ac_ext=c
32094ac_cpp='$CPP $CPPFLAGS'
32095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32097ac_compiler_gnu=$ac_cv_c_compiler_gnu
32098
John Criswell7a73b802003-06-30 21:59:07 +000032099fi
Reid Spencera773bd52006-08-04 18:18:08 +000032100{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32101echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032102 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32103 then
John Criswell9f011862004-09-24 18:28:00 +000032104
32105cat >>confdefs.h <<\_ACEOF
32106#define HAVE_STD_EXT_HASH_MAP 1
32107_ACEOF
32108
32109 else
32110
32111cat >>confdefs.h <<\_ACEOF
32112#define HAVE_STD_EXT_HASH_MAP 0
32113_ACEOF
32114
Brian Gaeke90583492003-11-10 03:06:28 +000032115 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032116
Reid Spencera773bd52006-08-04 18:18:08 +000032117 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32118echo $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 +000032119if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32120 echo $ECHO_N "(cached) $ECHO_C" >&6
32121else
32122
Reid Spencera773bd52006-08-04 18:18:08 +000032123 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032124ac_cpp='$CXXCPP $CPPFLAGS'
32125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32128
32129 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032130/* confdefs.h. */
32131_ACEOF
32132cat confdefs.h >>conftest.$ac_ext
32133cat >>conftest.$ac_ext <<_ACEOF
32134/* end confdefs.h. */
32135#include <ext/hash_map>
32136#ifdef HAVE_NAMESPACES
32137using namespace __gnu_cxx;
32138#endif
32139int
32140main ()
32141{
32142hash_map<int,int> t;
32143 ;
32144 return 0;
32145}
32146_ACEOF
32147rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032148if { (ac_try="$ac_compile"
32149case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32152esac
32153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032156 grep -v '^ *+' conftest.er1 >conftest.err
32157 rm -f conftest.er1
32158 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032160 (exit $ac_status); } &&
32161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32165esac
32166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
32168 ac_status=$?
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.$ac_objext'
32172 { (case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32175esac
32176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_try") 2>&5
32178 ac_status=$?
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032181 ac_cv_cxx_have_gnu_ext_hash_map=yes
32182else
32183 echo "$as_me: failed program was:" >&5
32184sed 's/^/| /' conftest.$ac_ext >&5
32185
Reid Spencera773bd52006-08-04 18:18:08 +000032186 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032187fi
Reid Spencera773bd52006-08-04 18:18:08 +000032188
32189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032190 ac_ext=c
32191ac_cpp='$CPP $CPPFLAGS'
32192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194ac_compiler_gnu=$ac_cv_c_compiler_gnu
32195
32196fi
Reid Spencera773bd52006-08-04 18:18:08 +000032197{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32198echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032199 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32200 then
John Criswell9f011862004-09-24 18:28:00 +000032201
32202cat >>confdefs.h <<\_ACEOF
32203#define HAVE_GNU_EXT_HASH_MAP 1
32204_ACEOF
32205
32206 else
32207
32208cat >>confdefs.h <<\_ACEOF
32209#define HAVE_GNU_EXT_HASH_MAP 0
32210_ACEOF
32211
Brian Gaeke90583492003-11-10 03:06:28 +000032212 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032213
Reid Spencera773bd52006-08-04 18:18:08 +000032214 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32215echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032216if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32218else
John Criswell7a73b802003-06-30 21:59:07 +000032219
Reid Spencera773bd52006-08-04 18:18:08 +000032220 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032221ac_cpp='$CXXCPP $CPPFLAGS'
32222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32225
32226 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032227/* confdefs.h. */
32228_ACEOF
32229cat confdefs.h >>conftest.$ac_ext
32230cat >>conftest.$ac_ext <<_ACEOF
32231/* end confdefs.h. */
32232#include <hash_map>
32233int
32234main ()
32235{
32236hash_map<int,int> t;
32237 ;
32238 return 0;
32239}
32240_ACEOF
32241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032242if { (ac_try="$ac_compile"
32243case "(($ac_try" in
32244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32245 *) ac_try_echo=$ac_try;;
32246esac
32247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32248 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032249 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032250 grep -v '^ *+' conftest.er1 >conftest.err
32251 rm -f conftest.er1
32252 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032254 (exit $ac_status); } &&
32255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32256 { (case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32259esac
32260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_try") 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; } &&
32265 { ac_try='test -s conftest.$ac_objext'
32266 { (case "(($ac_try" in
32267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32269esac
32270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32271 (eval "$ac_try") 2>&5
32272 ac_status=$?
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032275 ac_cv_cxx_have_global_hash_map=yes
32276else
32277 echo "$as_me: failed program was:" >&5
32278sed 's/^/| /' conftest.$ac_ext >&5
32279
Reid Spencera773bd52006-08-04 18:18:08 +000032280 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032281fi
Reid Spencera773bd52006-08-04 18:18:08 +000032282
32283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032284 ac_ext=c
32285ac_cpp='$CPP $CPPFLAGS'
32286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32288ac_compiler_gnu=$ac_cv_c_compiler_gnu
32289
32290fi
Reid Spencera773bd52006-08-04 18:18:08 +000032291{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32292echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032293 if test "$ac_cv_cxx_have_global_hash_map" = yes
32294 then
John Criswell9f011862004-09-24 18:28:00 +000032295
32296cat >>confdefs.h <<\_ACEOF
32297#define HAVE_GLOBAL_HASH_MAP 1
32298_ACEOF
32299
32300 else
32301
32302cat >>confdefs.h <<\_ACEOF
32303#define HAVE_GLOBAL_HASH_MAP 0
32304_ACEOF
32305
Brian Gaeke90583492003-11-10 03:06:28 +000032306 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032307
Reid Spencera773bd52006-08-04 18:18:08 +000032308{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32309echo $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 +000032310if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032311 echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
32313
Reid Spencera773bd52006-08-04 18:18:08 +000032314 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032315ac_cpp='$CXXCPP $CPPFLAGS'
32316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32319
32320 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032321/* confdefs.h. */
32322_ACEOF
32323cat confdefs.h >>conftest.$ac_ext
32324cat >>conftest.$ac_ext <<_ACEOF
32325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032326#include <ext/hash_set>
32327#ifdef HAVE_NAMESPACES
32328using namespace std;
32329#endif
John Criswell7a73b802003-06-30 21:59:07 +000032330int
32331main ()
32332{
Brian Gaeke90583492003-11-10 03:06:28 +000032333hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032334 ;
32335 return 0;
32336}
32337_ACEOF
32338rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032339if { (ac_try="$ac_compile"
32340case "(($ac_try" in
32341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32342 *) ac_try_echo=$ac_try;;
32343esac
32344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32345 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032347 grep -v '^ *+' conftest.er1 >conftest.err
32348 rm -f conftest.er1
32349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032351 (exit $ac_status); } &&
32352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32353 { (case "(($ac_try" in
32354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355 *) ac_try_echo=$ac_try;;
32356esac
32357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358 (eval "$ac_try") 2>&5
32359 ac_status=$?
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); }; } &&
32362 { ac_try='test -s conftest.$ac_objext'
32363 { (case "(($ac_try" in
32364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32365 *) ac_try_echo=$ac_try;;
32366esac
32367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32368 (eval "$ac_try") 2>&5
32369 ac_status=$?
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032372 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032373else
32374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032375sed 's/^/| /' conftest.$ac_ext >&5
32376
Reid Spencera773bd52006-08-04 18:18:08 +000032377 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032378fi
Reid Spencera773bd52006-08-04 18:18:08 +000032379
32380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032381 ac_ext=c
32382ac_cpp='$CPP $CPPFLAGS'
32383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385ac_compiler_gnu=$ac_cv_c_compiler_gnu
32386
32387fi
Reid Spencera773bd52006-08-04 18:18:08 +000032388{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32389echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032390 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32391 then
John Criswell9f011862004-09-24 18:28:00 +000032392
32393cat >>confdefs.h <<\_ACEOF
32394#define HAVE_STD_EXT_HASH_SET 1
32395_ACEOF
32396
32397 else
32398
32399cat >>confdefs.h <<\_ACEOF
32400#define HAVE_STD_EXT_HASH_SET 0
32401_ACEOF
32402
Brian Gaeke90583492003-11-10 03:06:28 +000032403 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032404
Reid Spencera773bd52006-08-04 18:18:08 +000032405 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32406echo $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 +000032407if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32409else
32410
Reid Spencera773bd52006-08-04 18:18:08 +000032411 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032412ac_cpp='$CXXCPP $CPPFLAGS'
32413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32416
John Criswell7a73b802003-06-30 21:59:07 +000032417 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032418/* confdefs.h. */
32419_ACEOF
32420cat confdefs.h >>conftest.$ac_ext
32421cat >>conftest.$ac_ext <<_ACEOF
32422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032423#include <ext/hash_set>
32424#ifdef HAVE_NAMESPACES
32425using namespace __gnu_cxx;
32426#endif
John Criswell7a73b802003-06-30 21:59:07 +000032427int
32428main ()
32429{
Brian Gaeke90583492003-11-10 03:06:28 +000032430hash_set<int> t;
32431 ;
32432 return 0;
32433}
32434_ACEOF
32435rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032436if { (ac_try="$ac_compile"
32437case "(($ac_try" in
32438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32439 *) ac_try_echo=$ac_try;;
32440esac
32441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32442 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032444 grep -v '^ *+' conftest.er1 >conftest.err
32445 rm -f conftest.er1
32446 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032448 (exit $ac_status); } &&
32449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32450 { (case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32453esac
32454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_try") 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; } &&
32459 { ac_try='test -s conftest.$ac_objext'
32460 { (case "(($ac_try" in
32461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32462 *) ac_try_echo=$ac_try;;
32463esac
32464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465 (eval "$ac_try") 2>&5
32466 ac_status=$?
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032469 ac_cv_cxx_have_gnu_ext_hash_set=yes
32470else
32471 echo "$as_me: failed program was:" >&5
32472sed 's/^/| /' conftest.$ac_ext >&5
32473
Reid Spencera773bd52006-08-04 18:18:08 +000032474 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032475fi
Reid Spencera773bd52006-08-04 18:18:08 +000032476
32477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032478 ac_ext=c
32479ac_cpp='$CPP $CPPFLAGS'
32480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32482ac_compiler_gnu=$ac_cv_c_compiler_gnu
32483
32484fi
Reid Spencera773bd52006-08-04 18:18:08 +000032485{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32486echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032487 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32488 then
John Criswell9f011862004-09-24 18:28:00 +000032489
32490cat >>confdefs.h <<\_ACEOF
32491#define HAVE_GNU_EXT_HASH_SET 1
32492_ACEOF
32493
32494 else
32495
32496cat >>confdefs.h <<\_ACEOF
32497#define HAVE_GNU_EXT_HASH_SET 0
32498_ACEOF
32499
Brian Gaeke90583492003-11-10 03:06:28 +000032500 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032501
Reid Spencera773bd52006-08-04 18:18:08 +000032502 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32503echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032504if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32505 echo $ECHO_N "(cached) $ECHO_C" >&6
32506else
32507
Reid Spencera773bd52006-08-04 18:18:08 +000032508 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032509ac_cpp='$CXXCPP $CPPFLAGS'
32510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32513
32514 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032515/* confdefs.h. */
32516_ACEOF
32517cat confdefs.h >>conftest.$ac_ext
32518cat >>conftest.$ac_ext <<_ACEOF
32519/* end confdefs.h. */
32520#include <hash_set>
32521int
32522main ()
32523{
John Criswell7a73b802003-06-30 21:59:07 +000032524hash_set<int> t; return 0;
32525 ;
32526 return 0;
32527}
32528_ACEOF
32529rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032530if { (ac_try="$ac_compile"
32531case "(($ac_try" in
32532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32533 *) ac_try_echo=$ac_try;;
32534esac
32535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32536 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032538 grep -v '^ *+' conftest.er1 >conftest.err
32539 rm -f conftest.er1
32540 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032542 (exit $ac_status); } &&
32543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32544 { (case "(($ac_try" in
32545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32546 *) ac_try_echo=$ac_try;;
32547esac
32548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32549 (eval "$ac_try") 2>&5
32550 ac_status=$?
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; } &&
32553 { ac_try='test -s conftest.$ac_objext'
32554 { (case "(($ac_try" in
32555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556 *) ac_try_echo=$ac_try;;
32557esac
32558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559 (eval "$ac_try") 2>&5
32560 ac_status=$?
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032563 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032564else
32565 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032566sed 's/^/| /' conftest.$ac_ext >&5
32567
Reid Spencera773bd52006-08-04 18:18:08 +000032568 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032569fi
Reid Spencera773bd52006-08-04 18:18:08 +000032570
32571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032572 ac_ext=c
32573ac_cpp='$CPP $CPPFLAGS'
32574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32576ac_compiler_gnu=$ac_cv_c_compiler_gnu
32577
John Criswell7a73b802003-06-30 21:59:07 +000032578fi
Reid Spencera773bd52006-08-04 18:18:08 +000032579{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32580echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032581 if test "$ac_cv_cxx_have_global_hash_set" = yes
32582 then
John Criswell9f011862004-09-24 18:28:00 +000032583
32584cat >>confdefs.h <<\_ACEOF
32585#define HAVE_GLOBAL_HASH_SET 1
32586_ACEOF
32587
32588 else
32589
32590cat >>confdefs.h <<\_ACEOF
32591#define HAVE_GLOBAL_HASH_SET 0
32592_ACEOF
32593
Brian Gaeke90583492003-11-10 03:06:28 +000032594 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032595
Reid Spencera773bd52006-08-04 18:18:08 +000032596{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32597echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032598if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32599 echo $ECHO_N "(cached) $ECHO_C" >&6
32600else
32601
Reid Spencera773bd52006-08-04 18:18:08 +000032602 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032603ac_cpp='$CXXCPP $CPPFLAGS'
32604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32607
32608 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032609/* confdefs.h. */
32610_ACEOF
32611cat confdefs.h >>conftest.$ac_ext
32612cat >>conftest.$ac_ext <<_ACEOF
32613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032614#include <iterator>
32615#ifdef HAVE_NAMESPACES
32616using namespace std;
32617#endif
John Criswell7a73b802003-06-30 21:59:07 +000032618int
32619main ()
32620{
32621iterator<int,int,int> t; return 0;
32622 ;
32623 return 0;
32624}
32625_ACEOF
32626rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032627if { (ac_try="$ac_compile"
32628case "(($ac_try" in
32629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32631esac
32632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032634 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032635 grep -v '^ *+' conftest.er1 >conftest.err
32636 rm -f conftest.er1
32637 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032639 (exit $ac_status); } &&
32640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32641 { (case "(($ac_try" in
32642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32643 *) ac_try_echo=$ac_try;;
32644esac
32645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32646 (eval "$ac_try") 2>&5
32647 ac_status=$?
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; } &&
32650 { ac_try='test -s conftest.$ac_objext'
32651 { (case "(($ac_try" in
32652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653 *) ac_try_echo=$ac_try;;
32654esac
32655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656 (eval "$ac_try") 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032660 ac_cv_cxx_have_std_iterator=yes
32661else
32662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032663sed 's/^/| /' conftest.$ac_ext >&5
32664
Reid Spencera773bd52006-08-04 18:18:08 +000032665 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032666fi
Reid Spencera773bd52006-08-04 18:18:08 +000032667
32668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032669 ac_ext=c
32670ac_cpp='$CPP $CPPFLAGS'
32671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673ac_compiler_gnu=$ac_cv_c_compiler_gnu
32674
32675
32676fi
Reid Spencera773bd52006-08-04 18:18:08 +000032677{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32678echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032679if test "$ac_cv_cxx_have_std_iterator" = yes
32680then
John Criswell40468462004-09-24 21:19:06 +000032681
32682cat >>confdefs.h <<\_ACEOF
32683#define HAVE_STD_ITERATOR 1
32684_ACEOF
32685
32686else
32687
32688cat >>confdefs.h <<\_ACEOF
32689#define HAVE_STD_ITERATOR 0
32690_ACEOF
32691
John Criswell7a73b802003-06-30 21:59:07 +000032692fi
32693
Reid Spencera773bd52006-08-04 18:18:08 +000032694{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32695echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032696if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32697 echo $ECHO_N "(cached) $ECHO_C" >&6
32698else
32699
Reid Spencera773bd52006-08-04 18:18:08 +000032700 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032701ac_cpp='$CXXCPP $CPPFLAGS'
32702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32705
32706 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032707/* confdefs.h. */
32708_ACEOF
32709cat confdefs.h >>conftest.$ac_ext
32710cat >>conftest.$ac_ext <<_ACEOF
32711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032712#include <iterator>
32713#ifdef HAVE_NAMESPACES
32714using namespace std;
32715#endif
John Criswell7a73b802003-06-30 21:59:07 +000032716int
32717main ()
32718{
John Criswellc78022e2003-07-29 19:11:58 +000032719bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032720 ;
32721 return 0;
32722}
32723_ACEOF
32724rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032725if { (ac_try="$ac_compile"
32726case "(($ac_try" in
32727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32728 *) ac_try_echo=$ac_try;;
32729esac
32730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32731 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032732 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032733 grep -v '^ *+' conftest.er1 >conftest.err
32734 rm -f conftest.er1
32735 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032737 (exit $ac_status); } &&
32738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32739 { (case "(($ac_try" in
32740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741 *) ac_try_echo=$ac_try;;
32742esac
32743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744 (eval "$ac_try") 2>&5
32745 ac_status=$?
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; } &&
32748 { ac_try='test -s conftest.$ac_objext'
32749 { (case "(($ac_try" in
32750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751 *) ac_try_echo=$ac_try;;
32752esac
32753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754 (eval "$ac_try") 2>&5
32755 ac_status=$?
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032758 ac_cv_cxx_have_bi_iterator=yes
32759else
32760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032761sed 's/^/| /' conftest.$ac_ext >&5
32762
Reid Spencera773bd52006-08-04 18:18:08 +000032763 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032764fi
Reid Spencera773bd52006-08-04 18:18:08 +000032765
32766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032767 ac_ext=c
32768ac_cpp='$CPP $CPPFLAGS'
32769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32771ac_compiler_gnu=$ac_cv_c_compiler_gnu
32772
32773
32774fi
Reid Spencera773bd52006-08-04 18:18:08 +000032775{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32776echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032777if test "$ac_cv_cxx_have_bi_iterator" = yes
32778then
John Criswell40468462004-09-24 21:19:06 +000032779
32780cat >>confdefs.h <<\_ACEOF
32781#define HAVE_BI_ITERATOR 1
32782_ACEOF
32783
32784else
32785
32786cat >>confdefs.h <<\_ACEOF
32787#define HAVE_BI_ITERATOR 0
32788_ACEOF
32789
John Criswell7a73b802003-06-30 21:59:07 +000032790fi
32791
Reid Spencera773bd52006-08-04 18:18:08 +000032792{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32793echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032794if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32795 echo $ECHO_N "(cached) $ECHO_C" >&6
32796else
32797
Reid Spencera773bd52006-08-04 18:18:08 +000032798 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032799ac_cpp='$CXXCPP $CPPFLAGS'
32800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32803
32804 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032805/* confdefs.h. */
32806_ACEOF
32807cat confdefs.h >>conftest.$ac_ext
32808cat >>conftest.$ac_ext <<_ACEOF
32809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032810#include <iterator>
32811#ifdef HAVE_NAMESPACES
32812using namespace std;
32813#endif
John Criswell7a73b802003-06-30 21:59:07 +000032814int
32815main ()
32816{
John Criswellc78022e2003-07-29 19:11:58 +000032817forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032818 ;
32819 return 0;
32820}
32821_ACEOF
32822rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032823if { (ac_try="$ac_compile"
32824case "(($ac_try" in
32825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32826 *) ac_try_echo=$ac_try;;
32827esac
32828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32829 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032830 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032831 grep -v '^ *+' conftest.er1 >conftest.err
32832 rm -f conftest.er1
32833 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032835 (exit $ac_status); } &&
32836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32837 { (case "(($ac_try" in
32838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32839 *) ac_try_echo=$ac_try;;
32840esac
32841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32842 (eval "$ac_try") 2>&5
32843 ac_status=$?
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); }; } &&
32846 { ac_try='test -s conftest.$ac_objext'
32847 { (case "(($ac_try" in
32848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849 *) ac_try_echo=$ac_try;;
32850esac
32851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852 (eval "$ac_try") 2>&5
32853 ac_status=$?
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032856 ac_cv_cxx_have_fwd_iterator=yes
32857else
32858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032859sed 's/^/| /' conftest.$ac_ext >&5
32860
Reid Spencera773bd52006-08-04 18:18:08 +000032861 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032862fi
Reid Spencera773bd52006-08-04 18:18:08 +000032863
32864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032865 ac_ext=c
32866ac_cpp='$CPP $CPPFLAGS'
32867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32869ac_compiler_gnu=$ac_cv_c_compiler_gnu
32870
32871
32872fi
Reid Spencera773bd52006-08-04 18:18:08 +000032873{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32874echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032875if test "$ac_cv_cxx_have_fwd_iterator" = yes
32876then
John Criswell40468462004-09-24 21:19:06 +000032877
32878cat >>confdefs.h <<\_ACEOF
32879#define HAVE_FWD_ITERATOR 1
32880_ACEOF
32881
32882else
32883
32884cat >>confdefs.h <<\_ACEOF
32885#define HAVE_FWD_ITERATOR 0
32886_ACEOF
32887
John Criswell7a73b802003-06-30 21:59:07 +000032888fi
32889
32890
Reid Spencera773bd52006-08-04 18:18:08 +000032891{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32892echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032893if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32895else
Reid Spencera773bd52006-08-04 18:18:08 +000032896 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032897ac_cpp='$CXXCPP $CPPFLAGS'
32898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32901
Reid Spencerabec8f92004-10-27 23:03:44 +000032902 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032903/* confdefs.h. */
32904_ACEOF
32905cat confdefs.h >>conftest.$ac_ext
32906cat >>conftest.$ac_ext <<_ACEOF
32907/* end confdefs.h. */
32908#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032909int
32910main ()
32911{
32912float f; isnan(f);
32913 ;
32914 return 0;
32915}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032916_ACEOF
32917rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032918if { (ac_try="$ac_compile"
32919case "(($ac_try" in
32920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32921 *) ac_try_echo=$ac_try;;
32922esac
32923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32924 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032926 grep -v '^ *+' conftest.er1 >conftest.err
32927 rm -f conftest.er1
32928 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032930 (exit $ac_status); } &&
32931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32932 { (case "(($ac_try" in
32933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32934 *) ac_try_echo=$ac_try;;
32935esac
32936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32937 (eval "$ac_try") 2>&5
32938 ac_status=$?
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); }; } &&
32941 { ac_try='test -s conftest.$ac_objext'
32942 { (case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32945esac
32946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_try") 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032951 ac_cv_func_isnan_in_math_h=yes
32952else
32953 echo "$as_me: failed program was:" >&5
32954sed 's/^/| /' conftest.$ac_ext >&5
32955
Reid Spencera773bd52006-08-04 18:18:08 +000032956 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032957fi
Reid Spencera773bd52006-08-04 18:18:08 +000032958
32959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032960 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032961ac_cpp='$CPP $CPPFLAGS'
32962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32964ac_compiler_gnu=$ac_cv_c_compiler_gnu
32965
32966fi
Reid Spencera773bd52006-08-04 18:18:08 +000032967{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32968echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032969
32970
32971if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032972
32973cat >>confdefs.h <<\_ACEOF
32974#define HAVE_ISNAN_IN_MATH_H 1
32975_ACEOF
32976
Reid Spencerabec8f92004-10-27 23:03:44 +000032977fi
32978
Reid Spencera773bd52006-08-04 18:18:08 +000032979{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32980echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032981if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983else
Reid Spencera773bd52006-08-04 18:18:08 +000032984 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032985ac_cpp='$CXXCPP $CPPFLAGS'
32986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32989
Reid Spencerabec8f92004-10-27 23:03:44 +000032990 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032991/* confdefs.h. */
32992_ACEOF
32993cat confdefs.h >>conftest.$ac_ext
32994cat >>conftest.$ac_ext <<_ACEOF
32995/* end confdefs.h. */
32996#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032997int
32998main ()
32999{
33000float f; isnan(f);
33001 ;
33002 return 0;
33003}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033004_ACEOF
33005rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033006if { (ac_try="$ac_compile"
33007case "(($ac_try" in
33008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009 *) ac_try_echo=$ac_try;;
33010esac
33011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033014 grep -v '^ *+' conftest.er1 >conftest.err
33015 rm -f conftest.er1
33016 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033018 (exit $ac_status); } &&
33019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33020 { (case "(($ac_try" in
33021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33022 *) ac_try_echo=$ac_try;;
33023esac
33024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33025 (eval "$ac_try") 2>&5
33026 ac_status=$?
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; } &&
33029 { ac_try='test -s conftest.$ac_objext'
33030 { (case "(($ac_try" in
33031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33032 *) ac_try_echo=$ac_try;;
33033esac
33034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33035 (eval "$ac_try") 2>&5
33036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033039 ac_cv_func_isnan_in_cmath=yes
33040else
33041 echo "$as_me: failed program was:" >&5
33042sed 's/^/| /' conftest.$ac_ext >&5
33043
Reid Spencera773bd52006-08-04 18:18:08 +000033044 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033045fi
Reid Spencera773bd52006-08-04 18:18:08 +000033046
33047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033048 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033049ac_cpp='$CPP $CPPFLAGS'
33050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052ac_compiler_gnu=$ac_cv_c_compiler_gnu
33053
33054fi
Reid Spencera773bd52006-08-04 18:18:08 +000033055{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33056echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033057
33058if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033059
33060cat >>confdefs.h <<\_ACEOF
33061#define HAVE_ISNAN_IN_CMATH 1
33062_ACEOF
33063
Reid Spencerabec8f92004-10-27 23:03:44 +000033064fi
33065
Reid Spencera773bd52006-08-04 18:18:08 +000033066{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33067echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033068if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33069 echo $ECHO_N "(cached) $ECHO_C" >&6
33070else
Reid Spencera773bd52006-08-04 18:18:08 +000033071 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033072ac_cpp='$CXXCPP $CPPFLAGS'
33073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33076
Reid Spencerabec8f92004-10-27 23:03:44 +000033077 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033078/* confdefs.h. */
33079_ACEOF
33080cat confdefs.h >>conftest.$ac_ext
33081cat >>conftest.$ac_ext <<_ACEOF
33082/* end confdefs.h. */
33083#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033084int
33085main ()
33086{
33087float f; std::isnan(f);
33088 ;
33089 return 0;
33090}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033091_ACEOF
33092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033093if { (ac_try="$ac_compile"
33094case "(($ac_try" in
33095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33096 *) ac_try_echo=$ac_try;;
33097esac
33098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33099 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033101 grep -v '^ *+' conftest.er1 >conftest.err
33102 rm -f conftest.er1
33103 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033105 (exit $ac_status); } &&
33106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33107 { (case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33110esac
33111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_try") 2>&5
33113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; } &&
33116 { ac_try='test -s conftest.$ac_objext'
33117 { (case "(($ac_try" in
33118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33119 *) ac_try_echo=$ac_try;;
33120esac
33121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33122 (eval "$ac_try") 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033126 ac_cv_func_std_isnan_in_cmath=yes
33127else
33128 echo "$as_me: failed program was:" >&5
33129sed 's/^/| /' conftest.$ac_ext >&5
33130
Reid Spencera773bd52006-08-04 18:18:08 +000033131 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033132fi
Reid Spencera773bd52006-08-04 18:18:08 +000033133
33134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033135 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033136ac_cpp='$CPP $CPPFLAGS'
33137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33139ac_compiler_gnu=$ac_cv_c_compiler_gnu
33140
33141fi
Reid Spencera773bd52006-08-04 18:18:08 +000033142{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33143echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033144
33145if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033146
33147cat >>confdefs.h <<\_ACEOF
33148#define HAVE_STD_ISNAN_IN_CMATH 1
33149_ACEOF
33150
Reid Spencerabec8f92004-10-27 23:03:44 +000033151fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033152
33153
Reid Spencera773bd52006-08-04 18:18:08 +000033154{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33155echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033156if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33157 echo $ECHO_N "(cached) $ECHO_C" >&6
33158else
Reid Spencera773bd52006-08-04 18:18:08 +000033159 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033160ac_cpp='$CXXCPP $CPPFLAGS'
33161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33164
Reid Spencerabec8f92004-10-27 23:03:44 +000033165 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033166/* confdefs.h. */
33167_ACEOF
33168cat confdefs.h >>conftest.$ac_ext
33169cat >>conftest.$ac_ext <<_ACEOF
33170/* end confdefs.h. */
33171#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033172int
33173main ()
33174{
33175float f; isinf(f);
33176 ;
33177 return 0;
33178}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033179_ACEOF
33180rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033181if { (ac_try="$ac_compile"
33182case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33185esac
33186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033189 grep -v '^ *+' conftest.er1 >conftest.err
33190 rm -f conftest.er1
33191 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033193 (exit $ac_status); } &&
33194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33195 { (case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198esac
33199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_try") 2>&5
33201 ac_status=$?
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest.$ac_objext'
33205 { (case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33208esac
33209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_try") 2>&5
33211 ac_status=$?
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033214 ac_cv_func_isinf_in_math_h=yes
33215else
33216 echo "$as_me: failed program was:" >&5
33217sed 's/^/| /' conftest.$ac_ext >&5
33218
Reid Spencera773bd52006-08-04 18:18:08 +000033219 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033220fi
Reid Spencera773bd52006-08-04 18:18:08 +000033221
33222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033223 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033224ac_cpp='$CPP $CPPFLAGS'
33225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33227ac_compiler_gnu=$ac_cv_c_compiler_gnu
33228
33229fi
Reid Spencera773bd52006-08-04 18:18:08 +000033230{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33231echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033232
33233if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033234
33235cat >>confdefs.h <<\_ACEOF
33236#define HAVE_ISINF_IN_MATH_H 1
33237_ACEOF
33238
Reid Spencerabec8f92004-10-27 23:03:44 +000033239fi
33240
Reid Spencera773bd52006-08-04 18:18:08 +000033241{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33242echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033243if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33244 echo $ECHO_N "(cached) $ECHO_C" >&6
33245else
Reid Spencera773bd52006-08-04 18:18:08 +000033246 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033247ac_cpp='$CXXCPP $CPPFLAGS'
33248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33251
Reid Spencerabec8f92004-10-27 23:03:44 +000033252 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033253/* confdefs.h. */
33254_ACEOF
33255cat confdefs.h >>conftest.$ac_ext
33256cat >>conftest.$ac_ext <<_ACEOF
33257/* end confdefs.h. */
33258#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033259int
33260main ()
33261{
33262float f; isinf(f);
33263 ;
33264 return 0;
33265}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033266_ACEOF
33267rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033268if { (ac_try="$ac_compile"
33269case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33272esac
33273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033275 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033276 grep -v '^ *+' conftest.er1 >conftest.err
33277 rm -f conftest.er1
33278 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033280 (exit $ac_status); } &&
33281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33285esac
33286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33288 ac_status=$?
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; } &&
33291 { ac_try='test -s conftest.$ac_objext'
33292 { (case "(($ac_try" in
33293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294 *) ac_try_echo=$ac_try;;
33295esac
33296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297 (eval "$ac_try") 2>&5
33298 ac_status=$?
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033301 ac_cv_func_isinf_in_cmath=yes
33302else
33303 echo "$as_me: failed program was:" >&5
33304sed 's/^/| /' conftest.$ac_ext >&5
33305
Reid Spencera773bd52006-08-04 18:18:08 +000033306 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033307fi
Reid Spencera773bd52006-08-04 18:18:08 +000033308
33309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033310 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033311ac_cpp='$CPP $CPPFLAGS'
33312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33314ac_compiler_gnu=$ac_cv_c_compiler_gnu
33315
33316fi
Reid Spencera773bd52006-08-04 18:18:08 +000033317{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33318echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033319
33320if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033321
33322cat >>confdefs.h <<\_ACEOF
33323#define HAVE_ISINF_IN_CMATH 1
33324_ACEOF
33325
Reid Spencerabec8f92004-10-27 23:03:44 +000033326fi
33327
Reid Spencera773bd52006-08-04 18:18:08 +000033328{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33329echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033330if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33331 echo $ECHO_N "(cached) $ECHO_C" >&6
33332else
Reid Spencera773bd52006-08-04 18:18:08 +000033333 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033334ac_cpp='$CXXCPP $CPPFLAGS'
33335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33338
Reid Spencerabec8f92004-10-27 23:03:44 +000033339 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033340/* confdefs.h. */
33341_ACEOF
33342cat confdefs.h >>conftest.$ac_ext
33343cat >>conftest.$ac_ext <<_ACEOF
33344/* end confdefs.h. */
33345#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033346int
33347main ()
33348{
33349float f; std::isinf(f)}
33350 ;
33351 return 0;
33352}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033353_ACEOF
33354rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033355if { (ac_try="$ac_compile"
33356case "(($ac_try" in
33357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33358 *) ac_try_echo=$ac_try;;
33359esac
33360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33361 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033363 grep -v '^ *+' conftest.er1 >conftest.err
33364 rm -f conftest.er1
33365 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033367 (exit $ac_status); } &&
33368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33369 { (case "(($ac_try" in
33370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371 *) ac_try_echo=$ac_try;;
33372esac
33373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374 (eval "$ac_try") 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest.$ac_objext'
33379 { (case "(($ac_try" in
33380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381 *) ac_try_echo=$ac_try;;
33382esac
33383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384 (eval "$ac_try") 2>&5
33385 ac_status=$?
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033388 ac_cv_func_std_isinf_in_cmath=yes
33389else
33390 echo "$as_me: failed program was:" >&5
33391sed 's/^/| /' conftest.$ac_ext >&5
33392
Reid Spencera773bd52006-08-04 18:18:08 +000033393 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033394fi
Reid Spencera773bd52006-08-04 18:18:08 +000033395
33396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033397 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033398ac_cpp='$CPP $CPPFLAGS'
33399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33401ac_compiler_gnu=$ac_cv_c_compiler_gnu
33402
33403fi
Reid Spencera773bd52006-08-04 18:18:08 +000033404{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33405echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033406
33407if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033408
33409cat >>confdefs.h <<\_ACEOF
33410#define HAVE_STD_ISINF_IN_CMATH 1
33411_ACEOF
33412
Reid Spencerabec8f92004-10-27 23:03:44 +000033413fi
33414
Reid Spencera773bd52006-08-04 18:18:08 +000033415{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33416echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033417if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33418 echo $ECHO_N "(cached) $ECHO_C" >&6
33419else
Reid Spencera773bd52006-08-04 18:18:08 +000033420 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033421ac_cpp='$CXXCPP $CPPFLAGS'
33422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33425
Reid Spencerabec8f92004-10-27 23:03:44 +000033426 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033427/* confdefs.h. */
33428_ACEOF
33429cat confdefs.h >>conftest.$ac_ext
33430cat >>conftest.$ac_ext <<_ACEOF
33431/* end confdefs.h. */
33432#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033433int
33434main ()
33435{
33436float f; finite(f);
33437 ;
33438 return 0;
33439}
Brian Gaeked59a6472004-07-21 03:33:58 +000033440_ACEOF
33441rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033442if { (ac_try="$ac_compile"
33443case "(($ac_try" in
33444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445 *) ac_try_echo=$ac_try;;
33446esac
33447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033449 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033450 grep -v '^ *+' conftest.er1 >conftest.err
33451 rm -f conftest.er1
33452 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033454 (exit $ac_status); } &&
33455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33456 { (case "(($ac_try" in
33457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33458 *) ac_try_echo=$ac_try;;
33459esac
33460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33461 (eval "$ac_try") 2>&5
33462 ac_status=$?
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); }; } &&
33465 { ac_try='test -s conftest.$ac_objext'
33466 { (case "(($ac_try" in
33467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33468 *) ac_try_echo=$ac_try;;
33469esac
33470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33471 (eval "$ac_try") 2>&5
33472 ac_status=$?
33473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033475 ac_cv_func_finite_in_ieeefp_h=yes
33476else
33477 echo "$as_me: failed program was:" >&5
33478sed 's/^/| /' conftest.$ac_ext >&5
33479
Reid Spencera773bd52006-08-04 18:18:08 +000033480 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033481fi
Reid Spencera773bd52006-08-04 18:18:08 +000033482
33483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033484 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033485ac_cpp='$CPP $CPPFLAGS'
33486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33488ac_compiler_gnu=$ac_cv_c_compiler_gnu
33489
33490fi
Reid Spencera773bd52006-08-04 18:18:08 +000033491{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33492echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033493
Brian Gaeke6802b552004-10-28 05:06:45 +000033494if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033495
33496cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033497#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033498_ACEOF
33499
Reid Spencerabec8f92004-10-27 23:03:44 +000033500fi
33501
33502
33503
Reid Spencer30fe5262007-01-20 07:48:49 +000033504if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033505
33506
33507for ac_header in stdlib.h unistd.h
33508do
33509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033514 echo $ECHO_N "(cached) $ECHO_C" >&6
33515fi
Reid Spencera773bd52006-08-04 18:18:08 +000033516ac_res=`eval echo '${'$as_ac_Header'}'`
33517 { echo "$as_me:$LINENO: result: $ac_res" >&5
33518echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033519else
33520 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033523cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033524/* confdefs.h. */
33525_ACEOF
33526cat confdefs.h >>conftest.$ac_ext
33527cat >>conftest.$ac_ext <<_ACEOF
33528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033529$ac_includes_default
33530#include <$ac_header>
33531_ACEOF
33532rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033533if { (ac_try="$ac_compile"
33534case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33537esac
33538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033541 grep -v '^ *+' conftest.er1 >conftest.err
33542 rm -f conftest.er1
33543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33550esac
33551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33560esac
33561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033566 ac_header_compiler=yes
33567else
33568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033569sed 's/^/| /' conftest.$ac_ext >&5
33570
Reid Spencera773bd52006-08-04 18:18:08 +000033571 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033572fi
Reid Spencera773bd52006-08-04 18:18:08 +000033573
33574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33576echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033577
33578# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033581cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033582/* confdefs.h. */
33583_ACEOF
33584cat confdefs.h >>conftest.$ac_ext
33585cat >>conftest.$ac_ext <<_ACEOF
33586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033587#include <$ac_header>
33588_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033589if { (ac_try="$ac_cpp conftest.$ac_ext"
33590case "(($ac_try" in
33591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592 *) ac_try_echo=$ac_try;;
33593esac
33594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033596 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033597 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033598 rm -f conftest.er1
33599 cat conftest.err >&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033601 (exit $ac_status); } >/dev/null; then
33602 if test -s conftest.err; then
33603 ac_cpp_err=$ac_c_preproc_warn_flag
33604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33605 else
33606 ac_cpp_err=
33607 fi
33608else
33609 ac_cpp_err=yes
33610fi
33611if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033612 ac_header_preproc=yes
33613else
33614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033615sed 's/^/| /' conftest.$ac_ext >&5
33616
John Criswell7a73b802003-06-30 21:59:07 +000033617 ac_header_preproc=no
33618fi
Reid Spencera773bd52006-08-04 18:18:08 +000033619
John Criswell7a73b802003-06-30 21:59:07 +000033620rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33622echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033623
33624# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33626 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33631 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033632 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033633 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033646 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033647## ----------------------------------- ##
33648## Report this to llvmbugs@cs.uiuc.edu ##
33649## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033650_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033651 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033652 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033653esac
Reid Spencera773bd52006-08-04 18:18:08 +000033654{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033657 echo $ECHO_N "(cached) $ECHO_C" >&6
33658else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033659 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033660fi
Reid Spencera773bd52006-08-04 18:18:08 +000033661ac_res=`eval echo '${'$as_ac_Header'}'`
33662 { echo "$as_me:$LINENO: result: $ac_res" >&5
33663echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033664
33665fi
33666if test `eval echo '${'$as_ac_Header'}'` = yes; then
33667 cat >>confdefs.h <<_ACEOF
33668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33669_ACEOF
33670
33671fi
33672
33673done
33674
33675
33676for ac_func in getpagesize
33677do
33678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033679{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33681if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033682 echo $ECHO_N "(cached) $ECHO_C" >&6
33683else
33684 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033685/* confdefs.h. */
33686_ACEOF
33687cat confdefs.h >>conftest.$ac_ext
33688cat >>conftest.$ac_ext <<_ACEOF
33689/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33692#define $ac_func innocuous_$ac_func
33693
John Criswell7a73b802003-06-30 21:59:07 +000033694/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033695 which can conflict with char $ac_func (); below.
33696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33697 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033698
John Criswell0c38eaf2003-09-10 15:17:25 +000033699#ifdef __STDC__
33700# include <limits.h>
33701#else
33702# include <assert.h>
33703#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033704
33705#undef $ac_func
33706
Reid Spencera773bd52006-08-04 18:18:08 +000033707/* Override any GCC internal prototype to avoid an error.
33708 Use char because int might match the return type of a GCC
33709 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033710#ifdef __cplusplus
33711extern "C"
33712#endif
John Criswell7a73b802003-06-30 21:59:07 +000033713char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033714/* The GNU C library defines this for functions which it implements
33715 to always fail with ENOSYS. Some functions are actually named
33716 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033717#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033718choke me
John Criswell7a73b802003-06-30 21:59:07 +000033719#endif
33720
John Criswell0c38eaf2003-09-10 15:17:25 +000033721int
33722main ()
33723{
Reid Spencera773bd52006-08-04 18:18:08 +000033724return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033725 ;
33726 return 0;
33727}
33728_ACEOF
33729rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033730if { (ac_try="$ac_link"
33731case "(($ac_try" in
33732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733 *) ac_try_echo=$ac_try;;
33734esac
33735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033738 grep -v '^ *+' conftest.er1 >conftest.err
33739 rm -f conftest.er1
33740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033742 (exit $ac_status); } &&
33743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33744 { (case "(($ac_try" in
33745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33746 *) ac_try_echo=$ac_try;;
33747esac
33748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749 (eval "$ac_try") 2>&5
33750 ac_status=$?
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; } &&
33753 { ac_try='test -s conftest$ac_exeext'
33754 { (case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33757esac
33758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759 (eval "$ac_try") 2>&5
33760 ac_status=$?
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033763 eval "$as_ac_var=yes"
33764else
33765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033766sed 's/^/| /' conftest.$ac_ext >&5
33767
Reid Spencera773bd52006-08-04 18:18:08 +000033768 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033769fi
Reid Spencera773bd52006-08-04 18:18:08 +000033770
Tanya Lattnercf067672008-01-17 05:57:22 +000033771rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033772 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033773fi
Reid Spencera773bd52006-08-04 18:18:08 +000033774ac_res=`eval echo '${'$as_ac_var'}'`
33775 { echo "$as_me:$LINENO: result: $ac_res" >&5
33776echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033777if test `eval echo '${'$as_ac_var'}'` = yes; then
33778 cat >>confdefs.h <<_ACEOF
33779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33780_ACEOF
33781
33782fi
33783done
33784
Reid Spencera773bd52006-08-04 18:18:08 +000033785{ echo "$as_me:$LINENO: checking for working mmap" >&5
33786echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033787if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33788 echo $ECHO_N "(cached) $ECHO_C" >&6
33789else
33790 if test "$cross_compiling" = yes; then
33791 ac_cv_func_mmap_fixed_mapped=no
33792else
33793 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033794/* confdefs.h. */
33795_ACEOF
33796cat confdefs.h >>conftest.$ac_ext
33797cat >>conftest.$ac_ext <<_ACEOF
33798/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033799$ac_includes_default
33800/* malloc might have been renamed as rpl_malloc. */
33801#undef malloc
33802
33803/* Thanks to Mike Haertel and Jim Avera for this test.
33804 Here is a matrix of mmap possibilities:
33805 mmap private not fixed
33806 mmap private fixed at somewhere currently unmapped
33807 mmap private fixed at somewhere already mapped
33808 mmap shared not fixed
33809 mmap shared fixed at somewhere currently unmapped
33810 mmap shared fixed at somewhere already mapped
33811 For private mappings, we should verify that changes cannot be read()
33812 back from the file, nor mmap's back from the file at a different
33813 address. (There have been systems where private was not correctly
33814 implemented like the infamous i386 svr4.0, and systems where the
33815 VM page cache was not coherent with the file system buffer cache
33816 like early versions of FreeBSD and possibly contemporary NetBSD.)
33817 For shared mappings, we should conversely verify that changes get
33818 propagated back to all the places they're supposed to be.
33819
33820 Grep wants private fixed already mapped.
33821 The main things grep needs to know about mmap are:
33822 * does it exist and is it safe to write into the mmap'd area
33823 * how to use it (BSD variants) */
33824
33825#include <fcntl.h>
33826#include <sys/mman.h>
33827
Tanya Lattnercf067672008-01-17 05:57:22 +000033828#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033829char *malloc ();
33830#endif
33831
33832/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033833#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033834/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033835# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033836# define HAVE_SYS_PARAM_H 1
33837# endif
33838
33839# ifdef _SC_PAGESIZE
33840# define getpagesize() sysconf(_SC_PAGESIZE)
33841# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033842# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033843# include <sys/param.h>
33844# ifdef EXEC_PAGESIZE
33845# define getpagesize() EXEC_PAGESIZE
33846# else /* no EXEC_PAGESIZE */
33847# ifdef NBPG
33848# define getpagesize() NBPG * CLSIZE
33849# ifndef CLSIZE
33850# define CLSIZE 1
33851# endif /* no CLSIZE */
33852# else /* no NBPG */
33853# ifdef NBPC
33854# define getpagesize() NBPC
33855# else /* no NBPC */
33856# ifdef PAGESIZE
33857# define getpagesize() PAGESIZE
33858# endif /* PAGESIZE */
33859# endif /* no NBPC */
33860# endif /* no NBPG */
33861# endif /* no EXEC_PAGESIZE */
33862# else /* no HAVE_SYS_PARAM_H */
33863# define getpagesize() 8192 /* punt totally */
33864# endif /* no HAVE_SYS_PARAM_H */
33865# endif /* no _SC_PAGESIZE */
33866
33867#endif /* no HAVE_GETPAGESIZE */
33868
33869int
33870main ()
33871{
33872 char *data, *data2, *data3;
33873 int i, pagesize;
33874 int fd;
33875
33876 pagesize = getpagesize ();
33877
33878 /* First, make a file with some known garbage in it. */
33879 data = (char *) malloc (pagesize);
33880 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033881 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033882 for (i = 0; i < pagesize; ++i)
33883 *(data + i) = rand ();
33884 umask (0);
33885 fd = creat ("conftest.mmap", 0600);
33886 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033887 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033888 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033889 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033890 close (fd);
33891
33892 /* Next, try to mmap the file at a fixed address which already has
33893 something else allocated at it. If we can, also make sure that
33894 we see the same garbage. */
33895 fd = open ("conftest.mmap", O_RDWR);
33896 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033897 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033898 data2 = (char *) malloc (2 * pagesize);
33899 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033900 return 1;
33901 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033902 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033903 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033904 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033905 for (i = 0; i < pagesize; ++i)
33906 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033907 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033908
33909 /* Finally, make sure that changes to the mapped area do not
33910 percolate back to the file as seen by read(). (This is a bug on
33911 some variants of i386 svr4.0.) */
33912 for (i = 0; i < pagesize; ++i)
33913 *(data2 + i) = *(data2 + i) + 1;
33914 data3 = (char *) malloc (pagesize);
33915 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033916 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033917 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033918 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033919 for (i = 0; i < pagesize; ++i)
33920 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033921 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033922 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033923 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033924}
33925_ACEOF
33926rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033927if { (ac_try="$ac_link"
33928case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33931esac
33932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033937 { (case "(($ac_try" in
33938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939 *) ac_try_echo=$ac_try;;
33940esac
33941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033943 ac_status=$?
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; }; then
33946 ac_cv_func_mmap_fixed_mapped=yes
33947else
33948 echo "$as_me: program exited with status $ac_status" >&5
33949echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033950sed 's/^/| /' conftest.$ac_ext >&5
33951
John Criswell7a73b802003-06-30 21:59:07 +000033952( exit $ac_status )
33953ac_cv_func_mmap_fixed_mapped=no
33954fi
Reid Spencera773bd52006-08-04 18:18:08 +000033955rm -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 +000033956fi
Reid Spencera773bd52006-08-04 18:18:08 +000033957
33958
John Criswell7a73b802003-06-30 21:59:07 +000033959fi
Reid Spencera773bd52006-08-04 18:18:08 +000033960{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33961echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033962if test $ac_cv_func_mmap_fixed_mapped = yes; then
33963
33964cat >>confdefs.h <<\_ACEOF
33965#define HAVE_MMAP 1
33966_ACEOF
33967
33968fi
33969rm -f conftest.mmap
33970
Reid Spencer30fe5262007-01-20 07:48:49 +000033971 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033972echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033973if test "${ac_cv_func_mmap_file+set}" = set; then
33974 echo $ECHO_N "(cached) $ECHO_C" >&6
33975else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033976 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033977ac_cpp='$CPP $CPPFLAGS'
33978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33980ac_compiler_gnu=$ac_cv_c_compiler_gnu
33981
33982 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033983 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033984else
33985 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033986
Reid Spencer777ce172004-09-20 04:09:56 +000033987 /* confdefs.h. */
33988_ACEOF
33989cat confdefs.h >>conftest.$ac_ext
33990cat >>conftest.$ac_ext <<_ACEOF
33991/* end confdefs.h. */
33992
John Criswell7a73b802003-06-30 21:59:07 +000033993#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033994#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033995#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033996
33997int
33998main ()
33999{
John Criswell7a73b802003-06-30 21:59:07 +000034000
34001 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034002 fd = creat ("foo",0777);
34003 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34004 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034005 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034006 ;
34007 return 0;
34008}
John Criswell7a73b802003-06-30 21:59:07 +000034009_ACEOF
34010rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034011if { (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>&5
John Criswell7a73b802003-06-30 21:59:07 +000034018 ac_status=$?
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034021 { (case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34024esac
34025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
34030 ac_cv_func_mmap_file=yes
34031else
34032 echo "$as_me: program exited with status $ac_status" >&5
34033echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034034sed 's/^/| /' conftest.$ac_ext >&5
34035
John Criswell7a73b802003-06-30 21:59:07 +000034036( exit $ac_status )
34037ac_cv_func_mmap_file=no
34038fi
Reid Spencera773bd52006-08-04 18:18:08 +000034039rm -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 +000034040fi
Reid Spencera773bd52006-08-04 18:18:08 +000034041
34042
John Criswell7a73b802003-06-30 21:59:07 +000034043 ac_ext=c
34044ac_cpp='$CPP $CPPFLAGS'
34045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34047ac_compiler_gnu=$ac_cv_c_compiler_gnu
34048
34049
34050fi
Reid Spencera773bd52006-08-04 18:18:08 +000034051{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34052echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034053if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034054
34055cat >>confdefs.h <<\_ACEOF
34056#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034057_ACEOF
34058
34059 MMAP_FILE=yes
34060
34061fi
34062
Reid Spencer30fe5262007-01-20 07:48:49 +000034063 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034064echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034065if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34066 echo $ECHO_N "(cached) $ECHO_C" >&6
34067else
Reid Spencer582a23c2004-12-29 07:07:57 +000034068 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034069 ac_cv_need_dev_zero_for_mmap=yes
34070 else
34071 ac_cv_need_dev_zero_for_mmap=no
34072 fi
34073
34074fi
Reid Spencera773bd52006-08-04 18:18:08 +000034075{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34076echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034077if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34078
34079cat >>confdefs.h <<\_ACEOF
34080#define NEED_DEV_ZERO_FOR_MMAP 1
34081_ACEOF
34082
34083fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034084
Reid Spencer30fe5262007-01-20 07:48:49 +000034085 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34086 then
34087 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034088echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034089 fi
34090 if test "$ac_cv_func_mmap_file" = "no"
34091 then
34092 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034093echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034094 fi
John Criswellb13092b2003-07-22 21:00:24 +000034095fi
John Criswell7a73b802003-06-30 21:59:07 +000034096
34097
Reid Spencer9372f152007-07-30 20:13:24 +000034098
34099for ac_func in __dso_handle
34100do
34101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34102{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34105 echo $ECHO_N "(cached) $ECHO_C" >&6
34106else
34107 cat >conftest.$ac_ext <<_ACEOF
34108/* confdefs.h. */
34109_ACEOF
34110cat confdefs.h >>conftest.$ac_ext
34111cat >>conftest.$ac_ext <<_ACEOF
34112/* end confdefs.h. */
34113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34115#define $ac_func innocuous_$ac_func
34116
34117/* System header to define __stub macros and hopefully few prototypes,
34118 which can conflict with char $ac_func (); below.
34119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34120 <limits.h> exists even on freestanding compilers. */
34121
34122#ifdef __STDC__
34123# include <limits.h>
34124#else
34125# include <assert.h>
34126#endif
34127
34128#undef $ac_func
34129
34130/* Override any GCC internal prototype to avoid an error.
34131 Use char because int might match the return type of a GCC
34132 builtin and then its argument prototype would still apply. */
34133#ifdef __cplusplus
34134extern "C"
34135#endif
34136char $ac_func ();
34137/* The GNU C library defines this for functions which it implements
34138 to always fail with ENOSYS. Some functions are actually named
34139 something starting with __ and the normal name is an alias. */
34140#if defined __stub_$ac_func || defined __stub___$ac_func
34141choke me
34142#endif
34143
34144int
34145main ()
34146{
34147return $ac_func ();
34148 ;
34149 return 0;
34150}
34151_ACEOF
34152rm -f conftest.$ac_objext conftest$ac_exeext
34153if { (ac_try="$ac_link"
34154case "(($ac_try" in
34155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156 *) ac_try_echo=$ac_try;;
34157esac
34158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159 (eval "$ac_link") 2>conftest.er1
34160 ac_status=$?
34161 grep -v '^ *+' conftest.er1 >conftest.err
34162 rm -f conftest.er1
34163 cat conftest.err >&5
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000034165 (exit $ac_status); } &&
34166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34167 { (case "(($ac_try" in
34168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34169 *) ac_try_echo=$ac_try;;
34170esac
34171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34172 (eval "$ac_try") 2>&5
34173 ac_status=$?
34174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34175 (exit $ac_status); }; } &&
34176 { ac_try='test -s conftest$ac_exeext'
34177 { (case "(($ac_try" in
34178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34179 *) ac_try_echo=$ac_try;;
34180esac
34181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34182 (eval "$ac_try") 2>&5
34183 ac_status=$?
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034186 eval "$as_ac_var=yes"
34187else
34188 echo "$as_me: failed program was:" >&5
34189sed 's/^/| /' conftest.$ac_ext >&5
34190
34191 eval "$as_ac_var=no"
34192fi
34193
Tanya Lattnercf067672008-01-17 05:57:22 +000034194rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034195 conftest$ac_exeext conftest.$ac_ext
34196fi
34197ac_res=`eval echo '${'$as_ac_var'}'`
34198 { echo "$as_me:$LINENO: result: $ac_res" >&5
34199echo "${ECHO_T}$ac_res" >&6; }
34200if test `eval echo '${'$as_ac_var'}'` = yes; then
34201 cat >>confdefs.h <<_ACEOF
34202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34203_ACEOF
34204
34205fi
34206done
34207
34208
Reid Spencera773bd52006-08-04 18:18:08 +000034209{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34210echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034211if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34213else
34214 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034215if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034216 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034217 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34218 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034219 if test $? -eq 0 ; then
34220 llvm_cv_llvmgcc_sanity="yes"
34221 fi
34222 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034223fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034224fi
Reid Spencera773bd52006-08-04 18:18:08 +000034225{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34226echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034227
34228if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034229 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34230echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034231 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034232 LLVMCC1=$llvmcc1path
34233
Reid Spencer502935f2004-12-22 05:56:56 +000034234 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034235 LLVMCC1PLUS=$llvmcc1pluspath
34236
Reid Spencer502935f2004-12-22 05:56:56 +000034237 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34238 LLVMGCCDIR=$llvmgccdir
34239
Reid Spencer282d8c12006-12-21 22:55:41 +000034240 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34241 LLVMGCCLIBEXEC=$llvmgcclibexec
34242
Reid Spencerb5d75b82006-05-09 00:31:01 +000034243 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034244 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34245 LLVMGCC_VERSION=$llvmgccversion
34246
34247 LLVMGCC_MAJVERS=$llvmgccmajvers
34248
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034249 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034250 LLVMGCC_LANGS=$llvmgcclangs
34251
34252 { echo "$as_me:$LINENO: result: ok" >&5
34253echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034254fi
34255
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034256SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034257
34258
Reid Spencere9de0912004-08-20 09:03:57 +000034259# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034260# information into substitutions that will end up in Makefile.config.in
34261# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034262if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034263 prefix="/usr/local"
34264fi
Reid Spencere9de0912004-08-20 09:03:57 +000034265eval LLVM_PREFIX="${prefix}";
34266eval LLVM_BINDIR="${prefix}/bin";
34267eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034268eval LLVM_DATADIR="${prefix}/share/llvm";
34269eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34270eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034271eval LLVM_INCLUDEDIR="${prefix}/include";
34272eval LLVM_INFODIR="${prefix}/info";
34273eval LLVM_MANDIR="${prefix}/man";
34274LLVM_CONFIGTIME=`date`
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034286# Place the various directores into the config.h file as #defines so that we
34287# can know about the installation paths within LLVM.
34288
Reid Spencere9de0912004-08-20 09:03:57 +000034289cat >>confdefs.h <<_ACEOF
34290#define LLVM_PREFIX "$LLVM_PREFIX"
34291_ACEOF
34292
34293
34294cat >>confdefs.h <<_ACEOF
34295#define LLVM_BINDIR "$LLVM_BINDIR"
34296_ACEOF
34297
34298
34299cat >>confdefs.h <<_ACEOF
34300#define LLVM_LIBDIR "$LLVM_LIBDIR"
34301_ACEOF
34302
34303
34304cat >>confdefs.h <<_ACEOF
34305#define LLVM_DATADIR "$LLVM_DATADIR"
34306_ACEOF
34307
34308
34309cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034310#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034311_ACEOF
34312
34313
34314cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034315#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034316_ACEOF
34317
34318
34319cat >>confdefs.h <<_ACEOF
34320#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34321_ACEOF
34322
34323
34324cat >>confdefs.h <<_ACEOF
34325#define LLVM_INFODIR "$LLVM_INFODIR"
34326_ACEOF
34327
34328
34329cat >>confdefs.h <<_ACEOF
34330#define LLVM_MANDIR "$LLVM_MANDIR"
34331_ACEOF
34332
34333
34334cat >>confdefs.h <<_ACEOF
34335#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34336_ACEOF
34337
34338
Eric Christopher790e11c2007-12-01 00:34:39 +000034339cat >>confdefs.h <<_ACEOF
34340#define LLVM_HOSTTRIPLE "$host"
34341_ACEOF
34342
34343
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034344# Determine which bindings to build.
34345if test "$BINDINGS_TO_BUILD" = auto ; then
34346 BINDINGS_TO_BUILD=""
34347 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34348 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34349 fi
34350fi
34351BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34352
34353
34354# This isn't really configurey, but it avoids having to repeat the list in
34355# other files.
34356ALL_BINDINGS=ocaml
34357
34358
Gordon Henriksenf0915682007-10-02 16:42:22 +000034359# Do any work necessary to ensure that bindings have what they need.
34360binding_prereqs_failed=0
34361for a_binding in $BINDINGS_TO_BUILD ; do
34362 case "$a_binding" in
34363 ocaml)
34364 if test "x$OCAMLC" = x ; then
34365 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34366echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34367 binding_prereqs_failed=1
34368 fi
34369 if test "x$OCAMLDEP" = x ; then
34370 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34371echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34372 binding_prereqs_failed=1
34373 fi
34374 if test "x$OCAMLOPT" = x ; then
34375 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34376echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34377 fi
34378 if test "x$with_ocaml_libdir" != xauto ; then
34379 OCAML_LIBDIR=$with_ocaml_libdir
34380
34381 else
34382 ocaml_stdlib="`"$OCAMLC" -where`"
34383 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34384 then
34385 # ocaml stdlib is beneath our prefix; use stdlib
34386 OCAML_LIBDIR=$ocaml_stdlib
34387
34388 else
34389 # ocaml stdlib is outside our prefix; use libdir/ocaml
34390 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34391
34392 fi
34393 fi
34394 ;;
34395 esac
34396done
34397if test "$binding_prereqs_failed" = 1 ; then
34398 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34399echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34400 { (exit 1); exit 1; }; }
34401fi
34402
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034403{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34404echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34405if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34406 echo $ECHO_N "(cached) $ECHO_C" >&6
34407else
34408 ac_ext=cpp
34409ac_cpp='$CXXCPP $CPPFLAGS'
34410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34413
34414 oldcxxflags="$CXXFLAGS"
34415 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34416 cat >conftest.$ac_ext <<_ACEOF
34417/* confdefs.h. */
34418_ACEOF
34419cat confdefs.h >>conftest.$ac_ext
34420cat >>conftest.$ac_ext <<_ACEOF
34421/* end confdefs.h. */
34422
34423int
34424main ()
34425{
34426
34427 ;
34428 return 0;
34429}
34430_ACEOF
34431rm -f conftest.$ac_objext
34432if { (ac_try="$ac_compile"
34433case "(($ac_try" in
34434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435 *) ac_try_echo=$ac_try;;
34436esac
34437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438 (eval "$ac_compile") 2>conftest.er1
34439 ac_status=$?
34440 grep -v '^ *+' conftest.er1 >conftest.err
34441 rm -f conftest.er1
34442 cat conftest.err >&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } &&
34445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34446 { (case "(($ac_try" in
34447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34448 *) ac_try_echo=$ac_try;;
34449esac
34450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34451 (eval "$ac_try") 2>&5
34452 ac_status=$?
34453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34454 (exit $ac_status); }; } &&
34455 { ac_try='test -s conftest.$ac_objext'
34456 { (case "(($ac_try" in
34457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34458 *) ac_try_echo=$ac_try;;
34459esac
34460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34461 (eval "$ac_try") 2>&5
34462 ac_status=$?
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); }; }; then
34465 llvm_cv_cxx_visibility_inlines_hidden=yes
34466else
34467 echo "$as_me: failed program was:" >&5
34468sed 's/^/| /' conftest.$ac_ext >&5
34469
34470 llvm_cv_cxx_visibility_inlines_hidden=no
34471fi
34472
34473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34474 CXXFLAGS="$oldcxxflags"
34475 ac_ext=c
34476ac_cpp='$CPP $CPPFLAGS'
34477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34479ac_compiler_gnu=$ac_cv_c_compiler_gnu
34480
34481
34482fi
34483{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34484echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34485if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34486 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34487
34488else
34489 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34490
34491fi
34492
Gordon Henriksenf0915682007-10-02 16:42:22 +000034493
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034494
Reid Spencera773bd52006-08-04 18:18:08 +000034495ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034496
Reid Spencera773bd52006-08-04 18:18:08 +000034497ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034498
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034499ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034500
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034501ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034502
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034503ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034504
34505
Reid Spencera773bd52006-08-04 18:18:08 +000034506ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034507
34508
Reid Spencerea949cf2006-08-16 00:45:38 +000034509ac_config_files="$ac_config_files llvm.spec"
34510
34511
Reid Spencera773bd52006-08-04 18:18:08 +000034512ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034513
34514
Reid Spencera773bd52006-08-04 18:18:08 +000034515ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034516
34517
Reid Spencera773bd52006-08-04 18:18:08 +000034518ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034519
Reid Spencera773bd52006-08-04 18:18:08 +000034520ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034521
34522
Reid Spencera773bd52006-08-04 18:18:08 +000034523ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034524
34525
Reid Spencera773bd52006-08-04 18:18:08 +000034526ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034527
34528
Reid Spencera773bd52006-08-04 18:18:08 +000034529ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034530
34531
Reid Spencer8b2e1412006-11-17 03:32:33 +000034532ac_config_commands="$ac_config_commands runtime/Makefile"
34533
34534
Reid Spencera773bd52006-08-04 18:18:08 +000034535ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034536
34537
Reid Spencera773bd52006-08-04 18:18:08 +000034538ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034539
34540
Reid Spencera773bd52006-08-04 18:18:08 +000034541ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034542
34543
Reid Spencera773bd52006-08-04 18:18:08 +000034544ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034545
34546
Reid Spencera773bd52006-08-04 18:18:08 +000034547ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034548
34549
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034550ac_config_commands="$ac_config_commands bindings/Makefile"
34551
34552
34553ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34554
34555
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034556
John Criswell7a73b802003-06-30 21:59:07 +000034557cat >confcache <<\_ACEOF
34558# This file is a shell script that caches the results of configure
34559# tests run on this system so they can be shared between configure
34560# scripts and configure runs, see configure's option --config-cache.
34561# It is not useful on other systems. If it contains results you don't
34562# want to keep, you may remove or edit it.
34563#
34564# config.status only pays attention to the cache file if you give it
34565# the --recheck option to rerun configure.
34566#
John Criswell0c38eaf2003-09-10 15:17:25 +000034567# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034568# loading this file, other *unset* `ac_cv_foo' will be assigned the
34569# following values.
34570
34571_ACEOF
34572
34573# The following way of writing the cache mishandles newlines in values,
34574# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034575# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034576# Ultrix sh set writes to stderr and can't be redirected directly,
34577# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034578(
34579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34580 eval ac_val=\$$ac_var
34581 case $ac_val in #(
34582 *${as_nl}*)
34583 case $ac_var in #(
34584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34585echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34586 esac
34587 case $ac_var in #(
34588 _ | IFS | as_nl) ;; #(
34589 *) $as_unset $ac_var ;;
34590 esac ;;
34591 esac
34592 done
34593
John Criswell7a73b802003-06-30 21:59:07 +000034594 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34596 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034597 # `set' does not quote correctly, so add quotes (double-quote
34598 # substitution turns \\\\ into \\, and sed turns \\ into \).
34599 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034600 "s/'/'\\\\''/g;
34601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034602 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034603 *)
34604 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034606 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034607 esac |
34608 sort
34609) |
John Criswell7a73b802003-06-30 21:59:07 +000034610 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034611 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034612 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034613 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34615 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34617 :end' >>confcache
34618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34619 if test -w "$cache_file"; then
34620 test "x$cache_file" != "x/dev/null" &&
34621 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34622echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034623 cat confcache >$cache_file
34624 else
Reid Spencera773bd52006-08-04 18:18:08 +000034625 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34626echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034627 fi
34628fi
34629rm -f confcache
34630
34631test "x$prefix" = xNONE && prefix=$ac_default_prefix
34632# Let make expand exec_prefix.
34633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34634
John Criswell7a73b802003-06-30 21:59:07 +000034635DEFS=-DHAVE_CONFIG_H
34636
John Criswell0c38eaf2003-09-10 15:17:25 +000034637ac_libobjs=
34638ac_ltlibobjs=
34639for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34640 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34642 ac_i=`echo "$ac_i" | sed "$ac_script"`
34643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34644 # will be set to the directory where LIBOBJS objects are built.
34645 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34646 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034647done
34648LIBOBJS=$ac_libobjs
34649
34650LTLIBOBJS=$ac_ltlibobjs
34651
34652
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034653if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34654 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34655Usually this means the macro was only invoked conditionally." >&5
34656echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34657Usually this means the macro was only invoked conditionally." >&2;}
34658 { (exit 1); exit 1; }; }
34659fi
34660if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34661 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34662Usually this means the macro was only invoked conditionally." >&5
34663echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34664Usually this means the macro was only invoked conditionally." >&2;}
34665 { (exit 1); exit 1; }; }
34666fi
John Criswell7a73b802003-06-30 21:59:07 +000034667
34668: ${CONFIG_STATUS=./config.status}
34669ac_clean_files_save=$ac_clean_files
34670ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34671{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34672echo "$as_me: creating $CONFIG_STATUS" >&6;}
34673cat >$CONFIG_STATUS <<_ACEOF
34674#! $SHELL
34675# Generated by $as_me.
34676# Run this file to recreate the current configuration.
34677# Compiler output produced by configure, useful for debugging
34678# configure, is in config.log if it exists.
34679
34680debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034681ac_cs_recheck=false
34682ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034683SHELL=\${CONFIG_SHELL-$SHELL}
34684_ACEOF
34685
34686cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034687## --------------------- ##
34688## M4sh Initialization. ##
34689## --------------------- ##
34690
Tanya Lattnercf067672008-01-17 05:57:22 +000034691# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034692if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34693 emulate sh
34694 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034695 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34696 # is contrary to our usage. Disable this feature.
34697 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034698 setopt NO_GLOB_SUBST
34699else
Tanya Lattnercf067672008-01-17 05:57:22 +000034700 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034701fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034702BIN_SH=xpg4; export BIN_SH # for Tru64
34703DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034704
John Criswell7a73b802003-06-30 21:59:07 +000034705
Reid Spencera773bd52006-08-04 18:18:08 +000034706# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034707# Avoid depending upon Character Ranges.
34708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34711as_cr_digits='0123456789'
34712as_cr_alnum=$as_cr_Letters$as_cr_digits
34713
34714# The user is always right.
34715if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034716 echo "#! /bin/sh" >conf$$.sh
34717 echo "exit 0" >>conf$$.sh
34718 chmod +x conf$$.sh
34719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034720 PATH_SEPARATOR=';'
34721 else
34722 PATH_SEPARATOR=:
34723 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034724 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034725fi
34726
Reid Spencera773bd52006-08-04 18:18:08 +000034727# Support unset when possible.
34728if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34729 as_unset=unset
34730else
34731 as_unset=false
34732fi
John Criswell7a73b802003-06-30 21:59:07 +000034733
Reid Spencera773bd52006-08-04 18:18:08 +000034734
34735# IFS
34736# We need space, tab and new line, in precisely that order. Quoting is
34737# there to prevent editors from complaining about space-tab.
34738# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34739# splitting by setting IFS to empty value.)
34740as_nl='
34741'
34742IFS=" "" $as_nl"
34743
34744# Find who we are. Look in the path if we contain no directory separator.
34745case $0 in
34746 *[\\/]* ) as_myself=$0 ;;
34747 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034748for as_dir in $PATH
34749do
34750 IFS=$as_save_IFS
34751 test -z "$as_dir" && as_dir=.
34752 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34753done
Reid Spencera773bd52006-08-04 18:18:08 +000034754IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034755
Reid Spencera773bd52006-08-04 18:18:08 +000034756 ;;
34757esac
34758# We did not find ourselves, most probably we were run as `sh COMMAND'
34759# in which case we are not to be found in the path.
34760if test "x$as_myself" = x; then
34761 as_myself=$0
34762fi
34763if test ! -f "$as_myself"; then
34764 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34765 { (exit 1); exit 1; }
34766fi
34767
34768# Work around bugs in pre-3.0 UWIN ksh.
34769for as_var in ENV MAIL MAILPATH
34770do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34771done
34772PS1='$ '
34773PS2='> '
34774PS4='+ '
34775
34776# NLS nuisances.
34777for as_var in \
34778 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34779 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34780 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034781do
Reid Spencera773bd52006-08-04 18:18:08 +000034782 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34783 eval $as_var=C; export $as_var
34784 else
34785 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34786 fi
34787done
34788
34789# Required to use basename.
34790if expr a : '\(a\)' >/dev/null 2>&1 &&
34791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34792 as_expr=expr
34793else
34794 as_expr=false
34795fi
34796
34797if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34798 as_basename=basename
34799else
34800 as_basename=false
34801fi
34802
34803
34804# Name of the executable.
34805as_me=`$as_basename -- "$0" ||
34806$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34807 X"$0" : 'X\(//\)$' \| \
34808 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34809echo X/"$0" |
34810 sed '/^.*\/\([^/][^/]*\)\/*$/{
34811 s//\1/
34812 q
34813 }
34814 /^X\/\(\/\/\)$/{
34815 s//\1/
34816 q
34817 }
34818 /^X\/\(\/\).*/{
34819 s//\1/
34820 q
34821 }
34822 s/.*/./; q'`
34823
34824# CDPATH.
34825$as_unset CDPATH
34826
34827
34828
John Criswell7a73b802003-06-30 21:59:07 +000034829 as_lineno_1=$LINENO
34830 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034831 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034832 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034833
34834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34835 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034836 # line-number line after each line using $LINENO; the second 'sed'
34837 # does the real work. The second script uses 'N' to pair each
34838 # line-number line with the line containing $LINENO, and appends
34839 # trailing '-' during substitution so that $LINENO is not a special
34840 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034842 # scripts with optimization help from Paolo Bonzini. Blame Lee
34843 # E. McMahon (1931-1989) for sed's syntax. :-)
34844 sed -n '
34845 p
34846 /[$]LINENO/=
34847 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034848 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034849 s/[$]LINENO.*/&-/
34850 t lineno
34851 b
34852 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034853 N
Reid Spencera773bd52006-08-04 18:18:08 +000034854 :loop
34855 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034856 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034857 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034858 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034859 chmod +x "$as_me.lineno" ||
34860 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034861 { (exit 1); exit 1; }; }
34862
34863 # Don't try to exec as it changes $[0], causing all sort of problems
34864 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034865 # original and so on. Autoconf is especially sensitive to this).
34866 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034867 # Exit status is that of the last command.
34868 exit
34869}
34870
34871
Reid Spencera773bd52006-08-04 18:18:08 +000034872if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34873 as_dirname=dirname
34874else
34875 as_dirname=false
34876fi
34877
34878ECHO_C= ECHO_N= ECHO_T=
34879case `echo -n x` in
34880-n*)
34881 case `echo 'x\c'` in
34882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34883 *) ECHO_C='\c';;
34884 esac;;
34885*)
34886 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034887esac
34888
Reid Spencera773bd52006-08-04 18:18:08 +000034889if expr a : '\(a\)' >/dev/null 2>&1 &&
34890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034891 as_expr=expr
34892else
34893 as_expr=false
34894fi
34895
34896rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034897if test -d conf$$.dir; then
34898 rm -f conf$$.dir/conf$$.file
34899else
34900 rm -f conf$$.dir
34901 mkdir conf$$.dir
34902fi
John Criswell7a73b802003-06-30 21:59:07 +000034903echo >conf$$.file
34904if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034905 as_ln_s='ln -s'
34906 # ... but there are two gotchas:
34907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34909 # In both cases, we have to default to `cp -p'.
34910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034911 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034912elif ln conf$$.file conf$$ 2>/dev/null; then
34913 as_ln_s=ln
34914else
34915 as_ln_s='cp -p'
34916fi
Reid Spencera773bd52006-08-04 18:18:08 +000034917rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34918rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034919
John Criswell0c38eaf2003-09-10 15:17:25 +000034920if mkdir -p . 2>/dev/null; then
34921 as_mkdir_p=:
34922else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034923 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034924 as_mkdir_p=false
34925fi
34926
Tanya Lattnercf067672008-01-17 05:57:22 +000034927# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34928# systems may use methods other than mode bits to determine executability.
34929cat >conf$$.file <<_ASEOF
34930#! /bin/sh
34931exit 0
34932_ASEOF
34933chmod +x conf$$.file
34934if test -x conf$$.file >/dev/null 2>&1; then
34935 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034936else
Tanya Lattnercf067672008-01-17 05:57:22 +000034937 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034938fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034939rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034940
34941# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034942as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034943
34944# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034945as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034946
34947
John Criswell7a73b802003-06-30 21:59:07 +000034948exec 6>&1
34949
Reid Spencera773bd52006-08-04 18:18:08 +000034950# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034951# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034952# values after options handling.
34953ac_log="
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000034954This file was extended by llvm $as_me 2.5svn, which was
Tanya Lattnercf067672008-01-17 05:57:22 +000034955generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034956
34957 CONFIG_FILES = $CONFIG_FILES
34958 CONFIG_HEADERS = $CONFIG_HEADERS
34959 CONFIG_LINKS = $CONFIG_LINKS
34960 CONFIG_COMMANDS = $CONFIG_COMMANDS
34961 $ $0 $@
34962
Reid Spencera773bd52006-08-04 18:18:08 +000034963on `(hostname || uname -n) 2>/dev/null | sed 1q`
34964"
34965
John Criswell7a73b802003-06-30 21:59:07 +000034966_ACEOF
34967
Reid Spencera773bd52006-08-04 18:18:08 +000034968cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034969# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034970config_files="$ac_config_files"
34971config_headers="$ac_config_headers"
34972config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034973
Reid Spencera773bd52006-08-04 18:18:08 +000034974_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034975
34976cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034977ac_cs_usage="\
34978\`$as_me' instantiates files from templates according to the
34979current configuration.
34980
34981Usage: $0 [OPTIONS] [FILE]...
34982
34983 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034984 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034985 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034986 -d, --debug don't remove temporary files
34987 --recheck update $as_me by reconfiguring in the same conditions
34988 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034989 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034990 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034991 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034992
34993Configuration files:
34994$config_files
34995
34996Configuration headers:
34997$config_headers
34998
John Criswellc764fbc2003-09-06 15:17:13 +000034999Configuration commands:
35000$config_commands
35001
John Criswell7a73b802003-06-30 21:59:07 +000035002Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035003
Reid Spencera773bd52006-08-04 18:18:08 +000035004_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035005cat >>$CONFIG_STATUS <<_ACEOF
35006ac_cs_version="\\
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000035007llvm config.status 2.5svn
Tanya Lattnercf067672008-01-17 05:57:22 +000035008configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035009 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035010
Reid Spencera773bd52006-08-04 18:18:08 +000035011Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035012This config.status script is free software; the Free Software Foundation
35013gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035014
35015ac_pwd='$ac_pwd'
35016srcdir='$srcdir'
35017INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035018_ACEOF
35019
35020cat >>$CONFIG_STATUS <<\_ACEOF
35021# If no file are specified by the user, then we need to provide default
35022# value. By we need to know if files were specified by the user.
35023ac_need_defaults=:
35024while test $# != 0
35025do
35026 case $1 in
35027 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035028 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35029 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035030 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035031 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035032 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035033 ac_option=$1
35034 ac_optarg=$2
35035 ac_shift=shift
35036 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035037 esac
35038
John Criswell0c38eaf2003-09-10 15:17:25 +000035039 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035040 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035041 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35042 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035043 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35044 echo "$ac_cs_version"; exit ;;
35045 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035046 debug=: ;;
35047 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035048 $ac_shift
35049 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035050 ac_need_defaults=false;;
35051 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035052 $ac_shift
35053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035054 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035055 --he | --h)
35056 # Conflict between --help and --header
35057 { echo "$as_me: error: ambiguous option: $1
35058Try \`$0 --help' for more information." >&2
35059 { (exit 1); exit 1; }; };;
35060 --help | --hel | -h )
35061 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35064 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035065
35066 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035067 -*) { echo "$as_me: error: unrecognized option: $1
35068Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035069 { (exit 1); exit 1; }; } ;;
35070
Reid Spencera773bd52006-08-04 18:18:08 +000035071 *) ac_config_targets="$ac_config_targets $1"
35072 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035073
35074 esac
35075 shift
35076done
35077
John Criswell0c38eaf2003-09-10 15:17:25 +000035078ac_configure_extra_args=
35079
35080if $ac_cs_silent; then
35081 exec 6>/dev/null
35082 ac_configure_extra_args="$ac_configure_extra_args --silent"
35083fi
35084
35085_ACEOF
35086cat >>$CONFIG_STATUS <<_ACEOF
35087if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035088 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35089 CONFIG_SHELL=$SHELL
35090 export CONFIG_SHELL
35091 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035092fi
35093
John Criswell7a73b802003-06-30 21:59:07 +000035094_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035095cat >>$CONFIG_STATUS <<\_ACEOF
35096exec 5>>config.log
35097{
35098 echo
35099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35100## Running $as_me. ##
35101_ASBOX
35102 echo "$ac_log"
35103} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035104
Reid Spencera773bd52006-08-04 18:18:08 +000035105_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035106cat >>$CONFIG_STATUS <<_ACEOF
35107#
Reid Spencera773bd52006-08-04 18:18:08 +000035108# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035109#
Reid Spencerc0682832005-02-24 19:05:19 +000035110llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035111
35112_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035113
John Criswell7a73b802003-06-30 21:59:07 +000035114cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035115
35116# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035117for ac_config_target in $ac_config_targets
35118do
Reid Spencera773bd52006-08-04 18:18:08 +000035119 case $ac_config_target in
35120 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35121 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035122 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35123 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35124 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035125 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035126 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035127 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35128 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35129 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35130 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35131 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35132 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35133 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035134 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035135 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35136 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35137 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35138 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35139 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035140 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35141 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035142
John Criswell7a73b802003-06-30 21:59:07 +000035143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35144echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35145 { (exit 1); exit 1; }; };;
35146 esac
35147done
35148
Reid Spencera773bd52006-08-04 18:18:08 +000035149
John Criswell7a73b802003-06-30 21:59:07 +000035150# If the user did not use the arguments to specify the items to instantiate,
35151# then the envvar interface is used. Set only those that are not.
35152# We use the long form for the default assignment because of an extremely
35153# bizarre bug on SunOS 4.1.3.
35154if $ac_need_defaults; then
35155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035158fi
35159
John Criswell0c38eaf2003-09-10 15:17:25 +000035160# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035161# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035162# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035163# Hook for its removal unless debugging.
35164# Note that there is a small window in which the directory will not be cleaned:
35165# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035166$debug ||
35167{
Reid Spencera773bd52006-08-04 18:18:08 +000035168 tmp=
35169 trap 'exit_status=$?
35170 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35171' 0
John Criswell7a73b802003-06-30 21:59:07 +000035172 trap '{ (exit 1); exit 1; }' 1 2 13 15
35173}
John Criswell7a73b802003-06-30 21:59:07 +000035174# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035175
John Criswell7a73b802003-06-30 21:59:07 +000035176{
Reid Spencera773bd52006-08-04 18:18:08 +000035177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035178 test -n "$tmp" && test -d "$tmp"
35179} ||
35180{
Reid Spencera773bd52006-08-04 18:18:08 +000035181 tmp=./conf$$-$RANDOM
35182 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035183} ||
35184{
John Criswell0c38eaf2003-09-10 15:17:25 +000035185 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035186 { (exit 1); exit 1; }
35187}
35188
John Criswell7a73b802003-06-30 21:59:07 +000035189#
Reid Spencera773bd52006-08-04 18:18:08 +000035190# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035191#
35192
35193# No need to generate the scripts if there are no CONFIG_FILES.
35194# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035195if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035196
35197_ACEOF
35198
Reid Spencera773bd52006-08-04 18:18:08 +000035199
35200
35201ac_delim='%!_!# '
35202for ac_last_try in false false false false false :; do
35203 cat >conf$$subs.sed <<_ACEOF
35204SHELL!$SHELL$ac_delim
35205PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35206PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35207PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35208PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35209PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35210PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35211exec_prefix!$exec_prefix$ac_delim
35212prefix!$prefix$ac_delim
35213program_transform_name!$program_transform_name$ac_delim
35214bindir!$bindir$ac_delim
35215sbindir!$sbindir$ac_delim
35216libexecdir!$libexecdir$ac_delim
35217datarootdir!$datarootdir$ac_delim
35218datadir!$datadir$ac_delim
35219sysconfdir!$sysconfdir$ac_delim
35220sharedstatedir!$sharedstatedir$ac_delim
35221localstatedir!$localstatedir$ac_delim
35222includedir!$includedir$ac_delim
35223oldincludedir!$oldincludedir$ac_delim
35224docdir!$docdir$ac_delim
35225infodir!$infodir$ac_delim
35226htmldir!$htmldir$ac_delim
35227dvidir!$dvidir$ac_delim
35228pdfdir!$pdfdir$ac_delim
35229psdir!$psdir$ac_delim
35230libdir!$libdir$ac_delim
35231localedir!$localedir$ac_delim
35232mandir!$mandir$ac_delim
35233DEFS!$DEFS$ac_delim
35234ECHO_C!$ECHO_C$ac_delim
35235ECHO_N!$ECHO_N$ac_delim
35236ECHO_T!$ECHO_T$ac_delim
35237LIBS!$LIBS$ac_delim
35238build_alias!$build_alias$ac_delim
35239host_alias!$host_alias$ac_delim
35240target_alias!$target_alias$ac_delim
35241LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35242subdirs!$subdirs$ac_delim
35243build!$build$ac_delim
35244build_cpu!$build_cpu$ac_delim
35245build_vendor!$build_vendor$ac_delim
35246build_os!$build_os$ac_delim
35247host!$host$ac_delim
35248host_cpu!$host_cpu$ac_delim
35249host_vendor!$host_vendor$ac_delim
35250host_os!$host_os$ac_delim
35251target!$target$ac_delim
35252target_cpu!$target_cpu$ac_delim
35253target_vendor!$target_vendor$ac_delim
35254target_os!$target_os$ac_delim
35255OS!$OS$ac_delim
35256LINKALL!$LINKALL$ac_delim
35257NOLINKALL!$NOLINKALL$ac_delim
35258LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35259LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35260ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035261ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035262CC!$CC$ac_delim
35263CFLAGS!$CFLAGS$ac_delim
35264LDFLAGS!$LDFLAGS$ac_delim
35265CPPFLAGS!$CPPFLAGS$ac_delim
35266ac_ct_CC!$ac_ct_CC$ac_delim
35267EXEEXT!$EXEEXT$ac_delim
35268OBJEXT!$OBJEXT$ac_delim
35269CPP!$CPP$ac_delim
35270GREP!$GREP$ac_delim
35271EGREP!$EGREP$ac_delim
35272LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35273BUILD_CC!$BUILD_CC$ac_delim
35274BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035275BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035276CVSBUILD!$CVSBUILD$ac_delim
35277ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35278DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035279ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35280EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035281DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035282JIT!$JIT$ac_delim
35283TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35284ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35285ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035286ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035287TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035288ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035289EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35290CXX!$CXX$ac_delim
35291CXXFLAGS!$CXXFLAGS$ac_delim
35292ac_ct_CXX!$ac_ct_CXX$ac_delim
35293LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035294LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035295LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035296FLEX!$FLEX$ac_delim
35297YACC!$YACC$ac_delim
35298YFLAGS!$YFLAGS$ac_delim
35299BISON!$BISON$ac_delim
35300NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035301_ACEOF
35302
35303 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35304 break
35305 elif $ac_last_try; then
35306 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35307echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35308 { (exit 1); exit 1; }; }
35309 else
35310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035311 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035312done
35313
35314ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35315if test -n "$ac_eof"; then
35316 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35317 ac_eof=`expr $ac_eof + 1`
35318fi
35319
35320cat >>$CONFIG_STATUS <<_ACEOF
35321cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35323_ACEOF
35324sed '
35325s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35326s/^/s,@/; s/!/@,|#_!!_#|/
35327:n
35328t n
35329s/'"$ac_delim"'$/,g/; t
35330s/$/\\/; p
35331N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35332' >>$CONFIG_STATUS <conf$$subs.sed
35333rm -f conf$$subs.sed
35334cat >>$CONFIG_STATUS <<_ACEOF
35335CEOF$ac_eof
35336_ACEOF
35337
35338
35339ac_delim='%!_!# '
35340for ac_last_try in false false false false false :; do
35341 cat >conf$$subs.sed <<_ACEOF
Jim Grosbach673612e2008-10-02 22:56:44 +000035342ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035343LN_S!$LN_S$ac_delim
35344CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035345CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035346DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035347FIND!$FIND$ac_delim
35348MKDIR!$MKDIR$ac_delim
35349MV!$MV$ac_delim
35350RANLIB!$RANLIB$ac_delim
35351RM!$RM$ac_delim
35352SED!$SED$ac_delim
35353TAR!$TAR$ac_delim
35354BINPWD!$BINPWD$ac_delim
35355GRAPHVIZ!$GRAPHVIZ$ac_delim
35356DOT!$DOT$ac_delim
35357GV!$GV$ac_delim
35358DOTTY!$DOTTY$ac_delim
35359PERL!$PERL$ac_delim
35360HAVE_PERL!$HAVE_PERL$ac_delim
35361INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35362INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35363INSTALL_DATA!$INSTALL_DATA$ac_delim
35364BZIP2!$BZIP2$ac_delim
35365DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035366GROFF!$GROFF$ac_delim
35367GZIP!$GZIP$ac_delim
35368POD2HTML!$POD2HTML$ac_delim
35369POD2MAN!$POD2MAN$ac_delim
35370RUNTEST!$RUNTEST$ac_delim
35371TCLSH!$TCLSH$ac_delim
35372ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035373OCAMLC!$OCAMLC$ac_delim
35374OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035375OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035376OCAMLDOC!$OCAMLDOC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035377INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35378INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35379CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35380CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35381LIBADD_DL!$LIBADD_DL$ac_delim
35382ECHO!$ECHO$ac_delim
35383AR!$AR$ac_delim
35384STRIP!$STRIP$ac_delim
35385CXXCPP!$CXXCPP$ac_delim
35386F77!$F77$ac_delim
35387FFLAGS!$FFLAGS$ac_delim
35388ac_ct_F77!$ac_ct_F77$ac_delim
35389LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035390LLVMGCC!$LLVMGCC$ac_delim
35391LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035392USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035393HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035394HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035395ALLOCA!$ALLOCA$ac_delim
35396MMAP_FILE!$MMAP_FILE$ac_delim
35397LLVMCC1!$LLVMCC1$ac_delim
35398LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35399LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035400LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035401LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35402LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035403LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035404SHLIBEXT!$SHLIBEXT$ac_delim
35405LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35406LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35407LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35408LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35409LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35410LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35411LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35412LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35413LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35414LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035415BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35416ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035417OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035418ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035419LIBOBJS!$LIBOBJS$ac_delim
35420LTLIBOBJS!$LTLIBOBJS$ac_delim
35421_ACEOF
35422
Jim Grosbach673612e2008-10-02 22:56:44 +000035423 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Reid Spencera773bd52006-08-04 18:18:08 +000035424 break
35425 elif $ac_last_try; then
35426 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35427echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35428 { (exit 1); exit 1; }; }
35429 else
35430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35431 fi
35432done
35433
35434ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35435if test -n "$ac_eof"; then
35436 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35437 ac_eof=`expr $ac_eof + 1`
35438fi
35439
35440cat >>$CONFIG_STATUS <<_ACEOF
35441cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35442/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35443_ACEOF
35444sed '
35445s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35446s/^/s,@/; s/!/@,|#_!!_#|/
35447:n
35448t n
35449s/'"$ac_delim"'$/,g/; t
35450s/$/\\/; p
35451N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35452' >>$CONFIG_STATUS <conf$$subs.sed
35453rm -f conf$$subs.sed
35454cat >>$CONFIG_STATUS <<_ACEOF
35455:end
35456s/|#_!!_#|//g
35457CEOF$ac_eof
35458_ACEOF
35459
35460
35461# VPATH may cause trouble with some makes, so we remove $(srcdir),
35462# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35463# trailing colons and then remove the whole line if VPATH becomes empty
35464# (actually we leave an empty line to preserve line numbers).
35465if test "x$srcdir" = x.; then
35466 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35467s/:*\$(srcdir):*/:/
35468s/:*\${srcdir}:*/:/
35469s/:*@srcdir@:*/:/
35470s/^\([^=]*=[ ]*\):*/\1/
35471s/:*$//
35472s/^[^=]*=[ ]*$//
35473}'
35474fi
35475
35476cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035477fi # test -n "$CONFIG_FILES"
35478
Reid Spencera773bd52006-08-04 18:18:08 +000035479
35480for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35481do
35482 case $ac_tag in
35483 :[FHLC]) ac_mode=$ac_tag; continue;;
35484 esac
35485 case $ac_mode$ac_tag in
35486 :[FHL]*:*);;
35487 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35488echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35489 { (exit 1); exit 1; }; };;
35490 :[FH]-) ac_tag=-:-;;
35491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35492 esac
35493 ac_save_IFS=$IFS
35494 IFS=:
35495 set x $ac_tag
35496 IFS=$ac_save_IFS
35497 shift
35498 ac_file=$1
35499 shift
35500
35501 case $ac_mode in
35502 :L) ac_source=$1;;
35503 :[FH])
35504 ac_file_inputs=
35505 for ac_f
35506 do
35507 case $ac_f in
35508 -) ac_f="$tmp/stdin";;
35509 *) # Look for the file first in the build tree, then in the source tree
35510 # (if the path is not absolute). The absolute path cannot be DOS-style,
35511 # because $ac_f cannot contain `:'.
35512 test -f "$ac_f" ||
35513 case $ac_f in
35514 [\\/$]*) false;;
35515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35516 esac ||
35517 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35518echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35519 { (exit 1); exit 1; }; };;
35520 esac
35521 ac_file_inputs="$ac_file_inputs $ac_f"
35522 done
35523
35524 # Let's still pretend it is `configure' which instantiates (i.e., don't
35525 # use $as_me), people would be surprised to read:
35526 # /* config.h. Generated by config.status. */
35527 configure_input="Generated from "`IFS=:
35528 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35529 if test x"$ac_file" != x-; then
35530 configure_input="$ac_file. $configure_input"
35531 { echo "$as_me:$LINENO: creating $ac_file" >&5
35532echo "$as_me: creating $ac_file" >&6;}
35533 fi
35534
35535 case $ac_tag in
35536 *:-:* | *:-) cat >"$tmp/stdin";;
35537 esac
35538 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035539 esac
35540
Reid Spencera773bd52006-08-04 18:18:08 +000035541 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035542$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035543 X"$ac_file" : 'X\(//\)[^/]' \| \
35544 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035545 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035546echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35548 s//\1/
35549 q
35550 }
35551 /^X\(\/\/\)[^/].*/{
35552 s//\1/
35553 q
35554 }
35555 /^X\(\/\/\)$/{
35556 s//\1/
35557 q
35558 }
35559 /^X\(\/\).*/{
35560 s//\1/
35561 q
35562 }
35563 s/.*/./; q'`
35564 { as_dir="$ac_dir"
35565 case $as_dir in #(
35566 -*) as_dir=./$as_dir;;
35567 esac
35568 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035569 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035570 while :; do
35571 case $as_dir in #(
35572 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35573 *) as_qdir=$as_dir;;
35574 esac
35575 as_dirs="'$as_qdir' $as_dirs"
35576 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035578 X"$as_dir" : 'X\(//\)[^/]' \| \
35579 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035581echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35583 s//\1/
35584 q
35585 }
35586 /^X\(\/\/\)[^/].*/{
35587 s//\1/
35588 q
35589 }
35590 /^X\(\/\/\)$/{
35591 s//\1/
35592 q
35593 }
35594 /^X\(\/\).*/{
35595 s//\1/
35596 q
35597 }
35598 s/.*/./; q'`
35599 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035600 done
Reid Spencera773bd52006-08-04 18:18:08 +000035601 test -z "$as_dirs" || eval "mkdir $as_dirs"
35602 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35603echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035604 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035605 ac_builddir=.
35606
Reid Spencera773bd52006-08-04 18:18:08 +000035607case "$ac_dir" in
35608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35609*)
John Criswell7a73b802003-06-30 21:59:07 +000035610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035611 # A ".." for each directory in $ac_dir_suffix.
35612 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35613 case $ac_top_builddir_sub in
35614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35616 esac ;;
35617esac
35618ac_abs_top_builddir=$ac_pwd
35619ac_abs_builddir=$ac_pwd$ac_dir_suffix
35620# for backward compatibility:
35621ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035622
35623case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035624 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035625 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035626 ac_top_srcdir=$ac_top_builddir_sub
35627 ac_abs_top_srcdir=$ac_pwd ;;
35628 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035629 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035630 ac_top_srcdir=$srcdir
35631 ac_abs_top_srcdir=$srcdir ;;
35632 *) # Relative name.
35633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35634 ac_top_srcdir=$ac_top_build_prefix$srcdir
35635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035636esac
Reid Spencera773bd52006-08-04 18:18:08 +000035637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035638
John Criswell7a73b802003-06-30 21:59:07 +000035639
Reid Spencera773bd52006-08-04 18:18:08 +000035640 case $ac_mode in
35641 :F)
35642 #
35643 # CONFIG_FILE
35644 #
John Criswell7a73b802003-06-30 21:59:07 +000035645
35646 case $INSTALL in
35647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035648 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035649 esac
John Criswell7a73b802003-06-30 21:59:07 +000035650_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035651
35652cat >>$CONFIG_STATUS <<\_ACEOF
35653# If the template does not know about datarootdir, expand it.
35654# FIXME: This hack should be removed a few years after 2.60.
35655ac_datarootdir_hack=; ac_datarootdir_seen=
35656
35657case `sed -n '/datarootdir/ {
35658 p
35659 q
35660}
35661/@datadir@/p
35662/@docdir@/p
35663/@infodir@/p
35664/@localedir@/p
35665/@mandir@/p
35666' $ac_file_inputs` in
35667*datarootdir*) ac_datarootdir_seen=yes;;
35668*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35669 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35670echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35671_ACEOF
35672cat >>$CONFIG_STATUS <<_ACEOF
35673 ac_datarootdir_hack='
35674 s&@datadir@&$datadir&g
35675 s&@docdir@&$docdir&g
35676 s&@infodir@&$infodir&g
35677 s&@localedir@&$localedir&g
35678 s&@mandir@&$mandir&g
35679 s&\\\${datarootdir}&$datarootdir&g' ;;
35680esac
35681_ACEOF
35682
35683# Neutralize VPATH when `$srcdir' = `.'.
35684# Shell code in configure.ac might set extrasub.
35685# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035686cat >>$CONFIG_STATUS <<_ACEOF
35687 sed "$ac_vpsub
35688$extrasub
35689_ACEOF
35690cat >>$CONFIG_STATUS <<\_ACEOF
35691:t
35692/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035693s&@configure_input@&$configure_input&;t t
35694s&@top_builddir@&$ac_top_builddir_sub&;t t
35695s&@srcdir@&$ac_srcdir&;t t
35696s&@abs_srcdir@&$ac_abs_srcdir&;t t
35697s&@top_srcdir@&$ac_top_srcdir&;t t
35698s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35699s&@builddir@&$ac_builddir&;t t
35700s&@abs_builddir@&$ac_abs_builddir&;t t
35701s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35702s&@INSTALL@&$ac_INSTALL&;t t
35703$ac_datarootdir_hack
35704" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035705
Reid Spencera773bd52006-08-04 18:18:08 +000035706test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35707 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35708 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35709 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35710which seems to be undefined. Please make sure it is defined." >&5
35711echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35712which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035713
Reid Spencera773bd52006-08-04 18:18:08 +000035714 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035715 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035716 -) cat "$tmp/out"; rm -f "$tmp/out";;
35717 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035718 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035719 ;;
35720 :H)
35721 #
35722 # CONFIG_HEADER
35723 #
John Criswell7a73b802003-06-30 21:59:07 +000035724_ACEOF
35725
Reid Spencera773bd52006-08-04 18:18:08 +000035726# Transform confdefs.h into a sed script `conftest.defines', that
35727# substitutes the proper values into config.h.in to produce config.h.
35728rm -f conftest.defines conftest.tail
35729# First, append a space to every undef/define line, to ease matching.
35730echo 's/$/ /' >conftest.defines
35731# Then, protect against being on the right side of a sed subst, or in
35732# an unquoted here document, in config.status. If some macros were
35733# called several times there might be several #defines for the same
35734# symbol, which is useless. But do not sort them, since the last
35735# AC_DEFINE must be honored.
35736ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35737# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35738# NAME is the cpp macro being defined, VALUE is the value it is being given.
35739# PARAMS is the parameter list in the macro definition--in most cases, it's
35740# just an empty string.
35741ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35742ac_dB='\\)[ (].*,\\1define\\2'
35743ac_dC=' '
35744ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035745
Reid Spencera773bd52006-08-04 18:18:08 +000035746uniq confdefs.h |
35747 sed -n '
35748 t rset
35749 :rset
35750 s/^[ ]*#[ ]*define[ ][ ]*//
35751 t ok
35752 d
35753 :ok
35754 s/[\\&,]/\\&/g
35755 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35756 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35757 ' >>conftest.defines
35758
35759# Remove the space that was appended to ease matching.
35760# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035761# example, in the case of _POSIX_SOURCE, which is predefined and required
35762# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035763# (The regexp can be short, since the line contains either #define or #undef.)
35764echo 's/ $//
35765s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035766
Reid Spencera773bd52006-08-04 18:18:08 +000035767# Break up conftest.defines:
35768ac_max_sed_lines=50
35769
35770# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35771# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35772# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35773# et cetera.
35774ac_in='$ac_file_inputs'
35775ac_out='"$tmp/out1"'
35776ac_nxt='"$tmp/out2"'
35777
35778while :
John Criswell7a73b802003-06-30 21:59:07 +000035779do
Reid Spencera773bd52006-08-04 18:18:08 +000035780 # Write a here document:
35781 cat >>$CONFIG_STATUS <<_ACEOF
35782 # First, check the format of the line:
35783 cat >"\$tmp/defines.sed" <<\\CEOF
35784/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35785/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35786b
35787:def
35788_ACEOF
35789 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035790 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035791 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35792 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35793 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35794 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035795 rm -f conftest.defines
35796 mv conftest.tail conftest.defines
35797done
Reid Spencera773bd52006-08-04 18:18:08 +000035798rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035799
Reid Spencera773bd52006-08-04 18:18:08 +000035800echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035801cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035802 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035803 echo "/* $configure_input */" >"$tmp/config.h"
35804 cat "$ac_result" >>"$tmp/config.h"
35805 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035806 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35807echo "$as_me: $ac_file is unchanged" >&6;}
35808 else
John Criswell7a73b802003-06-30 21:59:07 +000035809 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035810 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035811 fi
35812 else
Reid Spencera773bd52006-08-04 18:18:08 +000035813 echo "/* $configure_input */"
35814 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035815 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035816 rm -f "$tmp/out12"
35817 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035818
Reid Spencera773bd52006-08-04 18:18:08 +000035819 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35820echo "$as_me: executing $ac_file commands" >&6;}
35821 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035822 esac
John Criswell7a73b802003-06-30 21:59:07 +000035823
Reid Spencera773bd52006-08-04 18:18:08 +000035824
35825 case $ac_file$ac_mode in
35826 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35827 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35828 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35829 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35830 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35831 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35832 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35833 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035834 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35835 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035836 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35837 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35838 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35839 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35840 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35841 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35842 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35843 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35844 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35845 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035846 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35847 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35848 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35849 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035850
35851 esac
35852done # for ac_tag
35853
John Criswell7a73b802003-06-30 21:59:07 +000035854
35855{ (exit 0); exit 0; }
35856_ACEOF
35857chmod +x $CONFIG_STATUS
35858ac_clean_files=$ac_clean_files_save
35859
35860
35861# configure is writing to config.log, and then calls config.status.
35862# config.status does its own redirection, appending to config.log.
35863# Unfortunately, on DOS this fails, as config.log is still kept open
35864# by configure, so config.status won't be able to write to it; its
35865# output is simply discarded. So we exec the FD to /dev/null,
35866# effectively closing config.log, so it can be properly (re)opened and
35867# appended to by config.status. When coming back to configure, we
35868# need to make the FD available again.
35869if test "$no_create" != yes; then
35870 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035871 ac_config_status_args=
35872 test "$silent" = yes &&
35873 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035874 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035876 exec 5>>config.log
35877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35878 # would make configure fail if this is the last instruction.
35879 $ac_cs_success || { (exit 1); exit 1; }
35880fi
35881
John Criswell12399a12003-09-30 15:55:44 +000035882#
35883# CONFIG_SUBDIRS section.
35884#
35885if test "$no_recursion" != yes; then
35886
35887 # Remove --cache-file and --srcdir arguments so they do not pile up.
35888 ac_sub_configure_args=
35889 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035890 eval "set x $ac_configure_args"
35891 shift
35892 for ac_arg
35893 do
John Criswell12399a12003-09-30 15:55:44 +000035894 if test -n "$ac_prev"; then
35895 ac_prev=
35896 continue
35897 fi
35898 case $ac_arg in
35899 -cache-file | --cache-file | --cache-fil | --cache-fi \
35900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35901 ac_prev=cache_file ;;
35902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35904 | --c=*)
35905 ;;
35906 --config-cache | -C)
35907 ;;
35908 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35909 ac_prev=srcdir ;;
35910 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35911 ;;
35912 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35913 ac_prev=prefix ;;
35914 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35915 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035916 *)
35917 case $ac_arg in
35918 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35919 esac
35920 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035921 esac
35922 done
35923
35924 # Always prepend --prefix to ensure using the same prefix
35925 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035926 ac_arg="--prefix=$prefix"
35927 case $ac_arg in
35928 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35929 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035930 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035931
35932 ac_popdir=`pwd`
35933 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35934
35935 # Do not complain, so a configure script can configure whichever
35936 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035937 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035938
Reid Spencera773bd52006-08-04 18:18:08 +000035939 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35940 echo "$as_me:$LINENO: $ac_msg" >&5
35941 echo "$ac_msg" >&6
35942 { as_dir="$ac_dir"
35943 case $as_dir in #(
35944 -*) as_dir=./$as_dir;;
35945 esac
35946 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035947 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035948 while :; do
35949 case $as_dir in #(
35950 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35951 *) as_qdir=$as_dir;;
35952 esac
35953 as_dirs="'$as_qdir' $as_dirs"
35954 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035955$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035956 X"$as_dir" : 'X\(//\)[^/]' \| \
35957 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035958 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035959echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35961 s//\1/
35962 q
35963 }
35964 /^X\(\/\/\)[^/].*/{
35965 s//\1/
35966 q
35967 }
35968 /^X\(\/\/\)$/{
35969 s//\1/
35970 q
35971 }
35972 /^X\(\/\).*/{
35973 s//\1/
35974 q
35975 }
35976 s/.*/./; q'`
35977 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035978 done
Reid Spencera773bd52006-08-04 18:18:08 +000035979 test -z "$as_dirs" || eval "mkdir $as_dirs"
35980 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35981echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035982 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035983 ac_builddir=.
35984
Reid Spencera773bd52006-08-04 18:18:08 +000035985case "$ac_dir" in
35986.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35987*)
John Criswell12399a12003-09-30 15:55:44 +000035988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035989 # A ".." for each directory in $ac_dir_suffix.
35990 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35991 case $ac_top_builddir_sub in
35992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35994 esac ;;
35995esac
35996ac_abs_top_builddir=$ac_pwd
35997ac_abs_builddir=$ac_pwd$ac_dir_suffix
35998# for backward compatibility:
35999ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036000
36001case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036002 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036003 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036004 ac_top_srcdir=$ac_top_builddir_sub
36005 ac_abs_top_srcdir=$ac_pwd ;;
36006 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036007 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036008 ac_top_srcdir=$srcdir
36009 ac_abs_top_srcdir=$srcdir ;;
36010 *) # Relative name.
36011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36012 ac_top_srcdir=$ac_top_build_prefix$srcdir
36013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036014esac
Reid Spencera773bd52006-08-04 18:18:08 +000036015ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036016
36017
Reid Spencera773bd52006-08-04 18:18:08 +000036018 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036019
36020 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036021 if test -f "$ac_srcdir/configure.gnu"; then
36022 ac_sub_configure=$ac_srcdir/configure.gnu
36023 elif test -f "$ac_srcdir/configure"; then
36024 ac_sub_configure=$ac_srcdir/configure
36025 elif test -f "$ac_srcdir/configure.in"; then
36026 # This should be Cygnus configure.
36027 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036028 else
36029 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36030echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36031 ac_sub_configure=
36032 fi
36033
36034 # The recursion is here.
36035 if test -n "$ac_sub_configure"; then
36036 # Make the cache file name correct relative to the subdirectory.
36037 case $cache_file in
36038 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036039 *) # Relative name.
36040 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036041 esac
36042
Reid Spencera773bd52006-08-04 18:18:08 +000036043 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36044echo "$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 +000036045 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036046 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36047 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036048 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036049echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36050 { (exit 1); exit 1; }; }
36051 fi
36052
Reid Spencera773bd52006-08-04 18:18:08 +000036053 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036054 done
36055fi
36056