blob: 20e3b4fa303cd780c48401a2ca69113fecd8fd49 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
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>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
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
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000844ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000845EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000846BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000847CXX
848CXXFLAGS
849ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000882OCAMLC
883OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000884OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000885OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000886GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000887INSTALL_LTDL_TRUE
888INSTALL_LTDL_FALSE
889CONVENIENCE_LTDL_TRUE
890CONVENIENCE_LTDL_FALSE
891LIBADD_DL
892ECHO
893AR
894STRIP
895CXXCPP
896F77
897FFLAGS
898ac_ct_F77
899LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000900LLVMGCCCOMMAND
901LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000902LLVMGCC
903LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000904USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000905HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000906HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000912LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000915LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000929OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000930ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000931RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000932RDYNAMIC
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
Reid Spencera773bd52006-08-04 18:18:08 +0000947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000952projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000953projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000954projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000960projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000961projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000988# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000997includedir='${prefix}/include'
998oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001010ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001015 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001016 ac_prev=
1017 continue
1018 fi
1019
Reid Spencera773bd52006-08-04 18:18:08 +00001020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
Reid Spencera773bd52006-08-04 18:18:08 +00001027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001052 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001054 datadir=$ac_optarg ;;
1055
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
John Criswell7a73b802003-06-30 21:59:07 +00001063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001070 eval enable_$ac_feature=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001089 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
Reid Spencera773bd52006-08-04 18:18:08 +00001116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
John Criswell7a73b802003-06-30 21:59:07 +00001122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
Reid Spencera773bd52006-08-04 18:18:08 +00001146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
John Criswell7a73b802003-06-30 21:59:07 +00001151 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
Reid Spencera773bd52006-08-04 18:18:08 +00001220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
John Criswell7a73b802003-06-30 21:59:07 +00001230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001285 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001286 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001287
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001294 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001295 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001326 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1344fi
1345
Reid Spencera773bd52006-08-04 18:18:08 +00001346# Be sure to have absolute directory names.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001351do
Reid Spencera773bd52006-08-04 18:18:08 +00001352 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001353 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001356 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
Reid Spencera773bd52006-08-04 18:18:08 +00001385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1393
1394
John Criswell7a73b802003-06-30 21:59:07 +00001395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001404echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001423 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
Reid Spencera773bd52006-08-04 18:18:08 +00001429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001432 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001433fi
Reid Spencera773bd52006-08-04 18:18:08 +00001434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001437 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001463\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
John Criswell7a73b802003-06-30 21:59:07 +00001483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001529 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001530 esac
1531 cat <<\_ACEOF
1532
1533Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001536 --enable-optimized
David Greene2a5a12c2009-04-17 14:50:39 +00001537 --enable-profiling
Reid Spencer54d14482006-04-07 16:01:51 +00001538 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001539 --enable-expensive-checks
1540
Reid Spencer8b2e1412006-11-17 03:32:33 +00001541 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001542 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001543 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001544 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001545 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001546 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001547 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001548 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001551 --enable-bindings Build specific language bindings:
1552 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001553 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001554 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001555 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001558 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001559 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001560 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001561 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001566 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001568 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 searches PATH)
1570 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001572 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001573 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001575 --with-binutils-include Specify path to binutils/include/ containing
1576 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001577 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001581 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001582 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001583
1584Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001585 CC C compiler command
1586 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001591 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <llvmbugs@cs.uiuc.edu>.
1602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001603ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001609 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001610 ac_builddir=.
1611
Reid Spencera773bd52006-08-04 18:18:08 +00001612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001627
1628case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001629 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001641esac
Reid Spencera773bd52006-08-04 18:18:08 +00001642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001643
Reid Spencera773bd52006-08-04 18:18:08 +00001644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001652 else
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001656 done
1657fi
1658
Reid Spencera773bd52006-08-04 18:18:08 +00001659test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001660if $ac_init_version; then
1661 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001662llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001663generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001664
Reid Spencera773bd52006-08-04 18:18:08 +00001665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001669
Tanya Lattnercf067672008-01-17 05:57:22 +00001670Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001671_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001672 exit
John Criswell7a73b802003-06-30 21:59:07 +00001673fi
Reid Spencera773bd52006-08-04 18:18:08 +00001674cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001678It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001679generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001680
1681 $ $0 $@
1682
1683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001684exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1716done
Reid Spencera773bd52006-08-04 18:18:08 +00001717IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001733# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001734# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001735# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001736ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001737ac_configure_args0=
1738ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001739ac_must_keep_next=false
1740for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001741do
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001749 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001757 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001771 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ;;
1773 esac
1774 done
John Criswell7a73b802003-06-30 21:59:07 +00001775done
John Criswell0c38eaf2003-09-10 15:17:25 +00001776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$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 +00001778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
John Criswell7a73b802003-06-30 21:59:07 +00001811 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001814 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001818 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001821 esac |
1822 sort
1823)
John Criswell7a73b802003-06-30 21:59:07 +00001824 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001825
1826 cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
Reid Spencera773bd52006-08-04 18:18:08 +00001834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 done | sort
1857 echo
1858 fi
1859
John Criswell7a73b802003-06-30 21:59:07 +00001860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001867 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1873 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001876 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001877' 0
John Criswell7a73b802003-06-30 21:59:07 +00001878for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001884rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
1914# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001915if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919else
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001922fi
Reid Spencera773bd52006-08-04 18:18:08 +00001923shift
1924for ac_site_file
1925do
John Criswell7a73b802003-06-30 21:59:07 +00001926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1930 . "$ac_site_file"
1931 fi
1932done
1933
1934if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001943 esac
1944 fi
1945else
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947echo "$as_me: creating cache $cache_file" >&6;}
1948 >$cache_file
1949fi
1950
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001954for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001959 case $ac_old_set,$ac_new_set in
1960 set,)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,);;
1969 *)
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1990 fi
1991done
1992if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
1998fi
1999
Reid Spencera773bd52006-08-04 18:18:08 +00002000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
John Criswell7a73b802003-06-30 21:59:07 +00002024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
Tanya Lattnercf067672008-01-17 05:57:22 +00002032LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033
2034
2035
2036
2037
2038
2039
John Criswell7a73b802003-06-30 21:59:07 +00002040ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002041for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2045 break
Reid Spencera773bd52006-08-04 18:18:08 +00002046 elif 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/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 break
2054 fi
2055done
2056if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002059 { (exit 1); exit 1; }; }
2060fi
Reid Spencera773bd52006-08-04 18:18:08 +00002061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070
John Criswell392aaa32003-07-22 19:18:09 +00002071
Reid Spencer2706f8c2004-09-19 23:53:36 +00002072if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002075echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 fi
John Criswell93e1c722003-09-15 17:04:06 +00002078fi
2079
John Criswell33a911a2003-11-25 20:36:46 +00002080for i in `ls ${srcdir}/projects`
2081do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 if test -d ${srcdir}/projects/${i} ; then
2083 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 CVS) ;;
2085 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002091 # llvm-test is the old name of the test-suite, kept here for backwards
2092 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002093 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002095 test-suite) subdirs="$subdirs projects/test-suite"
2096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002106 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002107 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002110 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002112 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002114 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 esac
John Criswell33a911a2003-11-25 20:36:46 +00002116 fi
2117done
John Criswell559a6c12003-09-30 16:31:48 +00002118
John Criswell7a73b802003-06-30 21:59:07 +00002119
2120# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002121$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002124 { (exit 1); exit 1; }; }
2125
Reid Spencera773bd52006-08-04 18:18:08 +00002126{ echo "$as_me:$LINENO: checking build system type" >&5
2127echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002128if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
Reid Spencera773bd52006-08-04 18:18:08 +00002131 ac_build_alias=$build_alias
2132test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002138ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002141 { (exit 1); exit 1; }; }
2142
2143fi
Reid Spencera773bd52006-08-04 18:18:08 +00002144{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145echo "${ECHO_T}$ac_cv_build" >&6; }
2146case $ac_cv_build in
2147*-*-*) ;;
2148*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2151esac
John Criswell7a73b802003-06-30 21:59:07 +00002152build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002153ac_save_IFS=$IFS; IFS='-'
2154set x $ac_cv_build
2155shift
2156build_cpu=$1
2157build_vendor=$2
2158shift; shift
2159# Remember, the first character of IFS is used to create $*,
2160# except with old shells:
2161build_os=$*
2162IFS=$ac_save_IFS
2163case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002164
2165
Reid Spencera773bd52006-08-04 18:18:08 +00002166{ echo "$as_me:$LINENO: checking host system type" >&5
2167echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002168if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
Reid Spencera773bd52006-08-04 18:18:08 +00002171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2173else
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002177 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002178fi
John Criswell7a73b802003-06-30 21:59:07 +00002179
2180fi
Reid Spencera773bd52006-08-04 18:18:08 +00002181{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182echo "${ECHO_T}$ac_cv_host" >&6; }
2183case $ac_cv_host in
2184*-*-*) ;;
2185*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2188esac
John Criswell7a73b802003-06-30 21:59:07 +00002189host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002190ac_save_IFS=$IFS; IFS='-'
2191set x $ac_cv_host
2192shift
2193host_cpu=$1
2194host_vendor=$2
2195shift; shift
2196# Remember, the first character of IFS is used to create $*,
2197# except with old shells:
2198host_os=$*
2199IFS=$ac_save_IFS
2200case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002201
2202
Reid Spencera773bd52006-08-04 18:18:08 +00002203{ echo "$as_me:$LINENO: checking target system type" >&5
2204echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002205if test "${ac_cv_target+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
Reid Spencera773bd52006-08-04 18:18:08 +00002208 if test "x$target_alias" = x; then
2209 ac_cv_target=$ac_cv_host
2210else
2211 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002215fi
John Criswell7a73b802003-06-30 21:59:07 +00002216
2217fi
Reid Spencera773bd52006-08-04 18:18:08 +00002218{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219echo "${ECHO_T}$ac_cv_target" >&6; }
2220case $ac_cv_target in
2221*-*-*) ;;
2222*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223echo "$as_me: error: invalid value of canonical target" >&2;}
2224 { (exit 1); exit 1; }; };;
2225esac
John Criswell7a73b802003-06-30 21:59:07 +00002226target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002227ac_save_IFS=$IFS; IFS='-'
2228set x $ac_cv_target
2229shift
2230target_cpu=$1
2231target_vendor=$2
2232shift; shift
2233# Remember, the first character of IFS is used to create $*,
2234# except with old shells:
2235target_os=$*
2236IFS=$ac_save_IFS
2237case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002238
2239
2240# The aliases save the names the user supplied, while $host etc.
2241# will get canonicalized.
2242test -n "$target_alias" &&
2243 test "$program_prefix$program_suffix$program_transform_name" = \
2244 NONENONEs,x,x, &&
2245 program_prefix=${target_alias}-
2246
Reid Spencera773bd52006-08-04 18:18:08 +00002247{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002252 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="AIX"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002258 *-*-irix*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="IRIX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Cygwin"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002270 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Darwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="FreeBSD"
2277 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002278 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002281 llvm_cv_os_type="OpenBSD"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002283 *-*-netbsd*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="NetBSD"
2287 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002288 *-*-dragonfly*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="DragonFly"
2292 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002293 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002296 llvm_cv_os_type="HP-UX"
2297 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 llvm_cv_os_type="Interix"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="Linux"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002309 llvm_cv_link_all_option="-Wl,-z,allextract"
2310 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311 llvm_cv_os_type="SunOS"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 llvm_cv_os_type="Win32"
2317 llvm_cv_platform_type="Win32" ;;
2318 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 llvm_cv_os_type="MingW"
2322 llvm_cv_platform_type="Win32" ;;
2323 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option=""
2325 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 llvm_cv_os_type="Unknown"
2327 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002328esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002329fi
Reid Spencera773bd52006-08-04 18:18:08 +00002330{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2331echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002332
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333if test "$llvm_cv_os_type" = "Unknown" ; then
2334 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2335echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002336 { (exit 1); exit 1; }; }
2337fi
2338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002340
2341
Reid Spencera773bd52006-08-04 18:18:08 +00002342LINKALL=$llvm_cv_link_all_option
2343
2344NOLINKALL=$llvm_cv_no_link_all_option
2345
2346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347case $llvm_cv_platform_type in
2348 Unix)
2349
2350cat >>confdefs.h <<\_ACEOF
2351#define LLVM_ON_UNIX 1
2352_ACEOF
2353
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002354 LLVM_ON_UNIX=1
2355
2356 LLVM_ON_WIN32=0
2357
Reid Spencer7b3e8512004-12-24 06:29:05 +00002358 ;;
2359 Win32)
2360
2361cat >>confdefs.h <<\_ACEOF
2362#define LLVM_ON_WIN32 1
2363_ACEOF
2364
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002365 LLVM_ON_UNIX=0
2366
2367 LLVM_ON_WIN32=1
2368
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369 ;;
2370esac
2371
Reid Spencera773bd52006-08-04 18:18:08 +00002372{ echo "$as_me:$LINENO: checking target architecture" >&5
2373echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374if test "${llvm_cv_target_arch+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002378 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002379 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002380 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2381 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002382 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002383 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002384 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002385 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002386 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002387 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002388 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002389 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002390esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391fi
Reid Spencera773bd52006-08-04 18:18:08 +00002392{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395if test "$llvm_cv_target_arch" = "Unknown" ; then
2396 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2398fi
John Criswell76595452003-07-01 22:07:39 +00002399
Bill Wendlinga0833352009-03-12 04:10:09 +00002400ARCH=$llvm_cv_target_arch
2401
2402
2403ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002408if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002425 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 +00002426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430done
2431done
Reid Spencera773bd52006-08-04 18:18:08 +00002432IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002438 { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440else
Reid Spencera773bd52006-08-04 18:18:08 +00002441 { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443fi
2444
Reid Spencera773bd52006-08-04 18:18:08 +00002445
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446fi
2447if test -z "$ac_cv_prog_CC"; then
2448 ac_ct_CC=$CC
2449 # Extract the first word of "gcc", so it can be a program name with args.
2450set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002465 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 +00002466 ac_cv_prog_ac_ct_CC="gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470done
2471done
Reid Spencera773bd52006-08-04 18:18:08 +00002472IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473
2474fi
2475fi
2476ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480else
Reid Spencera773bd52006-08-04 18:18:08 +00002481 { echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483fi
2484
Reid Spencera773bd52006-08-04 18:18:08 +00002485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet. If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500else
2501 CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002505 if test -n "$ac_tool_prefix"; then
2506 # 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 +00002507set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002522 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 +00002523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527done
2528done
Reid Spencera773bd52006-08-04 18:18:08 +00002529IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002535 { echo "$as_me:$LINENO: result: $CC" >&5
2536echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537else
Reid Spencera773bd52006-08-04 18:18:08 +00002538 { echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540fi
2541
Reid Spencera773bd52006-08-04 18:18:08 +00002542
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544fi
2545if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556 ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002563 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 +00002564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572done
2573done
Reid Spencera773bd52006-08-04 18:18:08 +00002574IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575
2576if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 { echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594else
Reid Spencera773bd52006-08-04 18:18:08 +00002595 { echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597fi
2598
Reid Spencera773bd52006-08-04 18:18:08 +00002599
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600fi
2601if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002603 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002621 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 +00002622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627done
Reid Spencera773bd52006-08-04 18:18:08 +00002628IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002629
2630fi
2631fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002634 { echo "$as_me:$LINENO: result: $CC" >&5
2635echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002636else
Reid Spencera773bd52006-08-04 18:18:08 +00002637 { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002639fi
2640
Reid Spencera773bd52006-08-04 18:18:08 +00002641
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002643 done
2644fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645if test -z "$CC"; then
2646 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002647 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002665 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 +00002666 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671done
Reid Spencera773bd52006-08-04 18:18:08 +00002672IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002673
2674fi
2675fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002680else
Reid Spencera773bd52006-08-04 18:18:08 +00002681 { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002683fi
2684
Reid Spencera773bd52006-08-04 18:18:08 +00002685
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002687done
John Criswell7a73b802003-06-30 21:59:07 +00002688
Reid Spencera773bd52006-08-04 18:18:08 +00002689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695whose name does not start with the host triplet. If you think this
2696configuration is useful to you, please write to autoconf@gnu.org." >&5
2697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698whose name does not start with the host triplet. If you think this
2699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702 CC=$ac_ct_CC
2703 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704fi
2705
John Criswell7a73b802003-06-30 21:59:07 +00002706fi
2707
2708
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710See \`config.log' for more details." >&5
2711echo "$as_me: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2714
John Criswell7a73b802003-06-30 21:59:07 +00002715# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002716echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002717ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002718{ (ac_try="$ac_compiler --version >&5"
2719case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002728{ (ac_try="$ac_compiler -v >&5"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002738{ (ac_try="$ac_compiler -V >&5"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748
2749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002755
John Criswell7a73b802003-06-30 21:59:07 +00002756int
2757main ()
2758{
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002765ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002766# Try to create an executable without -o first, disregard a.out.
2767# It will help us diagnose broken compilers, and finding out an intuition
2768# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002769{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002771ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002772#
2773# List of possible output files, starting from the most likely.
2774# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775# only as a last resort. b.out is created by i960 compilers.
2776ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2777#
2778# The IRIX 6 linker writes into existing files which may not be
2779# executable, retaining their permissions. Remove them first so a
2780# subsequent execution test works.
2781ac_rmfiles=
2782for ac_file in $ac_files
2783do
2784 case $ac_file in
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787 esac
2788done
2789rm -f $ac_rmfiles
2790
2791if { (ac_try="$ac_link_default"
2792case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795esac
2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803# in a Makefile. We should not override ac_cv_exeext if it was cached,
2804# so that the user can short-circuit this test for compilers unknown to
2805# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002806for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002807do
2808 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002809 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002811 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002812 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002813 # We found the default executable, but exeext='' is most
2814 # certainly right.
2815 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002816 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818 then :; else
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820 fi
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2825 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002826 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002827 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002828 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002829 esac
2830done
Reid Spencera773bd52006-08-04 18:18:08 +00002831test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
John Criswell7a73b802003-06-30 21:59:07 +00002833else
2834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002835sed 's/^/| /' conftest.$ac_ext >&5
2836
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002837{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002838See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002839echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002840See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002841 { (exit 77); exit 77; }; }
2842fi
2843
2844ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002845{ echo "$as_me:$LINENO: result: $ac_file" >&5
2846echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002847
Reid Spencera773bd52006-08-04 18:18:08 +00002848# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002849# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002850{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002852# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853# If not cross compiling, check that we can run a simple program.
2854if test "$cross_compiling" != yes; then
2855 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002856 { (case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859esac
2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 cross_compiling=no
2866 else
2867 if test "$cross_compiling" = maybe; then
2868 cross_compiling=yes
2869 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002871If you meant to cross compile, use \`--host'.
2872See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002873echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002874If you meant to cross compile, use \`--host'.
2875See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002876 { (exit 1); exit 1; }; }
2877 fi
2878 fi
2879fi
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: result: yes" >&5
2881echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002882
John Criswell0c38eaf2003-09-10 15:17:25 +00002883rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002884ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002885# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002886# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002887{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002891
Reid Spencera773bd52006-08-04 18:18:08 +00002892{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894if { (ac_try="$ac_link"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906# work properly (i.e., refer to `conftest.exe'), while it won't with
2907# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002908for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002910 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002913 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002914 * ) break;;
2915 esac
2916done
2917else
John Criswell0c38eaf2003-09-10 15:17:25 +00002918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details." >&5
2920echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002922 { (exit 1); exit 1; }; }
2923fi
2924
2925rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002926{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002932{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002934if test "${ac_cv_objext+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002943
John Criswell7a73b802003-06-30 21:59:07 +00002944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002965 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968 break;;
2969 esac
2970done
2971else
2972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002979 { (exit 1); exit 1; }; }
2980fi
2981
2982rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983fi
Reid Spencera773bd52006-08-04 18:18:08 +00002984{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002986OBJEXT=$ac_cv_objext
2987ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002988{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002990if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002999
John Criswell7a73b802003-06-30 21:59:07 +00003000int
3001main ()
3002{
3003#ifndef __GNUC__
3004 choke me
3005#endif
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003019 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003045 ac_compiler_gnu=yes
3046else
3047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003048sed 's/^/| /' conftest.$ac_ext >&5
3049
Reid Spencera773bd52006-08-04 18:18:08 +00003050 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003051fi
Reid Spencera773bd52006-08-04 18:18:08 +00003052
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003054ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003055
3056fi
Reid Spencera773bd52006-08-04 18:18:08 +00003057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003059GCC=`test $ac_compiler_gnu = yes && echo yes`
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003064if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
Reid Spencera773bd52006-08-04 18:18:08 +00003067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3069 ac_cv_prog_cc_g=no
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003077
John Criswell7a73b802003-06-30 21:59:07 +00003078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003120 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003121else
3122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003123sed 's/^/| /' conftest.$ac_ext >&5
3124
Reid Spencera773bd52006-08-04 18:18:08 +00003125 CFLAGS=""
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003175 :
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188
3189int
3190main ()
3191{
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
3197rm -f conftest.$ac_objext
3198if { (ac_try="$ac_compile"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003231 ac_cv_prog_cc_g=yes
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237fi
Reid Spencera773bd52006-08-04 18:18:08 +00003238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003240fi
Reid Spencera773bd52006-08-04 18:18:08 +00003241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243fi
3244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3247fi
3248{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003255 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003257 fi
3258else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003261 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003263 fi
3264fi
Reid Spencera773bd52006-08-04 18:18:08 +00003265{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
Reid Spencera773bd52006-08-04 18:18:08 +00003270 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271ac_save_CC=$CC
3272cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278#include <stdarg.h>
3279#include <stdio.h>
3280#include <sys/types.h>
3281#include <sys/stat.h>
3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283struct buf { int x; };
3284FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285static char *e (p, i)
3286 char **p;
3287 int i;
3288{
3289 return p[i];
3290}
3291static char *f (char * (*g) (char **, int), char **p, ...)
3292{
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299}
3300
3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003304 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003307 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
Reid Spencera773bd52006-08-04 18:18:08 +00003310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312#define FOO(x) 'x'
3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315int test (int i, double x);
3316struct s1 {int (*f) (int a);};
3317struct s2 {int (*f) (double a);};
3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319int argc;
3320char **argv;
3321int
3322main ()
3323{
3324return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327}
3328_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331do
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003367 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368else
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
Reid Spencera773bd52006-08-04 18:18:08 +00003372
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373fi
Reid Spencera773bd52006-08-04 18:18:08 +00003374
3375rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377done
Reid Spencera773bd52006-08-04 18:18:08 +00003378rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379CC=$ac_save_CC
3380
3381fi
Reid Spencera773bd52006-08-04 18:18:08 +00003382# AC_CACHE_VAL
3383case "x$ac_cv_prog_cc_c89" in
3384 x)
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386echo "${ECHO_T}none needed" >&6; } ;;
3387 xno)
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394esac
3395
John Criswell0c38eaf2003-09-10 15:17:25 +00003396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003409{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411# On Suns, sometimes $CPP names a directory.
3412if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3414fi
3415if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3421 do
3422 ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442 Syntax error
3443_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463else
3464 ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 :
3468else
3469 echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 # Broken: fails on valid input.
3473continue
3474fi
Reid Spencera773bd52006-08-04 18:18:08 +00003475
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003476rm -f conftest.err conftest.$ac_ext
3477
Reid Spencera773bd52006-08-04 18:18:08 +00003478 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486#include <ac_nonexistent.h>
3487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 else
3505 ac_cpp_err=
3506 fi
3507else
3508 ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511 # Broken: success on invalid input.
3512continue
3513else
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 # Passes both tests.
3518ac_preproc_ok=:
3519break
3520fi
Reid Spencera773bd52006-08-04 18:18:08 +00003521
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003522rm -f conftest.err conftest.$ac_ext
3523
3524done
3525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526rm -f conftest.err conftest.$ac_ext
3527if $ac_preproc_ok; then
3528 break
3529fi
3530
3531 done
3532 ac_cv_prog_CPP=$CPP
3533
3534fi
3535 CPP=$ac_cv_prog_CPP
3536else
3537 ac_cv_prog_CPP=$CPP
3538fi
Reid Spencera773bd52006-08-04 18:18:08 +00003539{ echo "$as_me:$LINENO: result: $CPP" >&5
3540echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541ac_preproc_ok=false
3542for ac_c_preproc_warn_flag in '' yes
3543do
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#ifdef __STDC__
3557# include <limits.h>
3558#else
3559# include <assert.h>
3560#endif
3561 Syntax error
3562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 else
3580 ac_cpp_err=
3581 fi
3582else
3583 ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 :
3587else
3588 echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 # Broken: fails on valid input.
3592continue
3593fi
Reid Spencera773bd52006-08-04 18:18:08 +00003594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595rm -f conftest.err conftest.$ac_ext
3596
Reid Spencera773bd52006-08-04 18:18:08 +00003597 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
3605#include <ac_nonexistent.h>
3606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003607if { (ac_try="$ac_cpp conftest.$ac_ext"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003619 (exit $ac_status); } >/dev/null; then
3620 if test -s conftest.err; then
3621 ac_cpp_err=$ac_c_preproc_warn_flag
3622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623 else
3624 ac_cpp_err=
3625 fi
3626else
3627 ac_cpp_err=yes
3628fi
3629if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630 # Broken: success on invalid input.
3631continue
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 # Passes both tests.
3637ac_preproc_ok=:
3638break
3639fi
Reid Spencera773bd52006-08-04 18:18:08 +00003640
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003641rm -f conftest.err conftest.$ac_ext
3642
3643done
3644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645rm -f conftest.err conftest.$ac_ext
3646if $ac_preproc_ok; then
3647 :
3648else
3649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650See \`config.log' for more details." >&5
3651echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3654fi
3655
John Criswell7a73b802003-06-30 21:59:07 +00003656ac_ext=c
3657ac_cpp='$CPP $CPPFLAGS'
3658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
John Criswell7a73b802003-06-30 21:59:07 +00003662
Reid Spencera773bd52006-08-04 18:18:08 +00003663{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003665if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
Reid Spencera773bd52006-08-04 18:18:08 +00003668 # Extract the first word of "grep ggrep" to use in msg output
3669if test -z "$GREP"; then
3670set dummy grep ggrep; ac_prog_name=$2
3671if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
Reid Spencera773bd52006-08-04 18:18:08 +00003674 ac_path_GREP_found=false
3675# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003681 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003685 # Check for GNU ac_path_GREP and select it if it is found.
3686 # Check for GNU $ac_path_GREP
3687case `"$ac_path_GREP" --version 2>&1` in
3688*GNU*)
3689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3690*)
3691 ac_count=0
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693 while :
3694 do
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'GREP' >> "conftest.nl"
3699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_GREP="$ac_path_GREP"
3705 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003706 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3709 done
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711esac
3712
3713
3714 $ac_path_GREP_found && break 3
3715 done
3716done
3717
3718done
3719IFS=$as_save_IFS
3720
3721
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003722fi
Reid Spencera773bd52006-08-04 18:18:08 +00003723
3724GREP="$ac_cv_path_GREP"
3725if test -z "$GREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3729fi
3730
3731else
3732 ac_cv_path_GREP=$GREP
3733fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003734
John Criswell7a73b802003-06-30 21:59:07 +00003735
Reid Spencera773bd52006-08-04 18:18:08 +00003736fi
3737{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3740
3741
3742{ echo "$as_me:$LINENO: checking for egrep" >&5
3743echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748 then ac_cv_path_EGREP="$GREP -E"
3749 else
3750 # Extract the first word of "egrep" to use in msg output
3751if test -z "$EGREP"; then
3752set dummy egrep; ac_prog_name=$2
3753if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 ac_path_EGREP_found=false
3757# Loop through the user's path and test for each of PROGNAME-LIST
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in egrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003767 # Check for GNU ac_path_EGREP and select it if it is found.
3768 # Check for GNU $ac_path_EGREP
3769case `"$ac_path_EGREP" --version 2>&1` in
3770*GNU*)
3771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3772*)
3773 ac_count=0
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775 while :
3776 do
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'EGREP' >> "conftest.nl"
3781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_EGREP="$ac_path_EGREP"
3787 ac_path_EGREP_max=$ac_count
3788 fi
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3791 done
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793esac
3794
3795
3796 $ac_path_EGREP_found && break 3
3797 done
3798done
3799
3800done
3801IFS=$as_save_IFS
3802
3803
3804fi
3805
3806EGREP="$ac_cv_path_EGREP"
3807if test -z "$EGREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3811fi
3812
3813else
3814 ac_cv_path_EGREP=$EGREP
3815fi
3816
3817
3818 fi
3819fi
3820{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3823
3824
3825{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003827if test "${ac_cv_header_stdc+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003836#include <stdlib.h>
3837#include <stdarg.h>
3838#include <string.h>
3839#include <float.h>
3840
John Criswell0c38eaf2003-09-10 15:17:25 +00003841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
John Criswell7a73b802003-06-30 21:59:07 +00003848_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003849rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003850if { (ac_try="$ac_compile"
3851case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854esac
3855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864 { (case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_try") 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003883 ac_cv_header_stdc=yes
3884else
3885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003886sed 's/^/| /' conftest.$ac_ext >&5
3887
Reid Spencera773bd52006-08-04 18:18:08 +00003888 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003889fi
Reid Spencera773bd52006-08-04 18:18:08 +00003890
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003892
3893if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003901#include <string.h>
3902
3903_ACEOF
3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003905 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003906 :
3907else
3908 ac_cv_header_stdc=no
3909fi
3910rm -f conftest*
3911
3912fi
3913
3914if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003922#include <stdlib.h>
3923
3924_ACEOF
3925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003926 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003927 :
3928else
3929 ac_cv_header_stdc=no
3930fi
3931rm -f conftest*
3932
3933fi
3934
3935if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3938 :
3939else
3940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003946#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003947#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003948#if ((' ' & 0x0FF) == 0x020)
3949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003952# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003953 (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957#endif
3958
3959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960int
3961main ()
3962{
3963 int i;
3964 for (i = 0; i < 256; i++)
3965 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003966 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003967 return 2;
3968 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003969}
3970_ACEOF
3971rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003972if { (ac_try="$ac_link"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985esac
3986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 :
3992else
3993 echo "$as_me: program exited with status $ac_status" >&5
3994echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003995sed 's/^/| /' conftest.$ac_ext >&5
3996
John Criswell7a73b802003-06-30 21:59:07 +00003997( exit $ac_status )
3998ac_cv_header_stdc=no
3999fi
Reid Spencera773bd52006-08-04 18:18:08 +00004000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001fi
4002
4003
John Criswell7a73b802003-06-30 21:59:07 +00004004fi
4005fi
Reid Spencera773bd52006-08-04 18:18:08 +00004006{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004008if test $ac_cv_header_stdc = yes; then
4009
4010cat >>confdefs.h <<\_ACEOF
4011#define STDC_HEADERS 1
4012_ACEOF
4013
4014fi
4015
Reid Spencera773bd52006-08-04 18:18:08 +00004016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4028do
4029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041$ac_includes_default
4042
4043#include <$ac_header>
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (ac_try="$ac_compile"
4047case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060 { (case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_try") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004079 eval "$as_ac_Header=yes"
4080else
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 eval "$as_ac_Header=no"
4085fi
4086
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091echo "${ECHO_T}$ac_res" >&6; }
4092if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095_ACEOF
4096
4097fi
4098
4099done
4100
4101
4102{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <sys/types.h>
4115#include <sys/param.h>
4116
4117int
4118main ()
4119{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004120#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004121 bogus endian macros
4122#endif
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext
4129if { (ac_try="$ac_compile"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004162 # It does; now see whether it defined to BIG_ENDIAN or not.
4163cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169#include <sys/types.h>
4170#include <sys/param.h>
4171
4172int
4173main ()
4174{
4175#if BYTE_ORDER != BIG_ENDIAN
4176 not big endian
4177#endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
4184if { (ac_try="$ac_compile"
4185case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004217 ac_cv_c_bigendian=yes
4218else
4219 echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 ac_cv_c_bigendian=no
4223fi
4224
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 # It does not; compile a test program.
4231if test "$cross_compiling" = yes; then
4232 # try to guess the endianness by grepping values into an object file
4233 ac_cv_c_bigendian=unknown
4234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
4240short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4246int
4247main ()
4248{
4249 _ascii (); _ebcdic ();
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (ac_try="$ac_compile"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004288 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289 ac_cv_c_bigendian=yes
4290fi
4291if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292 if test "$ac_cv_c_bigendian" = unknown; then
4293 ac_cv_c_bigendian=no
4294 else
4295 # finding both strings is unlikely to happen, but who knows?
4296 ac_cv_c_bigendian=unknown
4297 fi
4298fi
4299else
4300 echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303
4304fi
4305
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307else
4308 cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
4314$ac_includes_default
4315int
4316main ()
4317{
4318
4319 /* Are we little or big endian? From Harbison&Steele. */
4320 union
4321 {
4322 long int l;
4323 char c[sizeof (long int)];
4324 } u;
4325 u.l = 1;
4326 return u.c[sizeof (long int) - 1] == 1;
4327
4328 ;
4329 return 0;
4330}
4331_ACEOF
4332rm -f conftest$ac_exeext
4333if { (ac_try="$ac_link"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_c_bigendian=no
4353else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358( exit $ac_status )
4359ac_cv_c_bigendian=yes
4360fi
4361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362fi
4363
4364
4365fi
4366
4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368fi
4369{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371case $ac_cv_c_bigendian in
4372 yes)
4373 ENDIAN=big
4374 ;;
4375 no)
4376 ENDIAN=little
4377 ;;
4378 *)
4379 { { echo "$as_me:$LINENO: error: unknown endianness
4380presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381echo "$as_me: error: unknown endianness
4382presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383 { (exit 1); exit 1; }; } ;;
4384esac
4385
4386
4387if test "$cross_compiling" = yes; then
4388 LLVM_CROSS_COMPILING=1
4389
4390
4391{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393if test "${ac_cv_build_exeext+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397 ac_cv_build_exeext=.exe
4398else
4399 ac_build_prefix=${build_alias}-
4400
4401 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402set dummy ${ac_build_prefix}gcc; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 if test -n "$BUILD_CC"; then
4409 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004417 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 +00004418 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428BUILD_CC=$ac_cv_prog_BUILD_CC
4429if test -n "$BUILD_CC"; then
4430 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431echo "${ECHO_T}$BUILD_CC" >&6; }
4432else
4433 { echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6; }
4435fi
4436
4437
4438 if test -z "$BUILD_CC"; then
4439 # Extract the first word of "gcc", so it can be a program name with args.
4440set dummy gcc; ac_word=$2
4441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446 if test -n "$BUILD_CC"; then
4447 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004455 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 +00004456 ac_cv_prog_BUILD_CC="gcc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460done
4461done
4462IFS=$as_save_IFS
4463
4464fi
4465fi
4466BUILD_CC=$ac_cv_prog_BUILD_CC
4467if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469echo "${ECHO_T}$BUILD_CC" >&6; }
4470else
4471 { echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6; }
4473fi
4474
4475
4476 if test -z "$BUILD_CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478set dummy cc; ac_word=$2
4479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test -n "$BUILD_CC"; then
4485 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4486else
4487 ac_prog_rejected=no
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004494 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 +00004495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4497 continue
4498 fi
4499 ac_cv_prog_BUILD_CC="cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503done
4504done
4505IFS=$as_save_IFS
4506
4507if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_BUILD_CC
4510 shift
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set BUILD_CC to just the basename; use the full file name.
4515 shift
4516 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4517 fi
4518fi
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531 fi
4532 fi
4533 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535 { (exit 1); exit 1; }; }
4536 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4537 rm -f conftest*
4538 echo 'int main () { return 0; }' > conftest.$ac_ext
4539 ac_cv_build_exeext=
4540 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541 (eval $ac_build_link) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 for file in conftest.*; do
4546 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004547 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004548 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549 esac
4550 done
4551 else
4552 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554 { (exit 1); exit 1; }; }
4555 fi
4556 rm -f conftest*
4557 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4558fi
4559fi
4560
4561BUILD_EXEEXT=""
4562test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565ac_build_exeext=$BUILD_EXEEXT
4566
Jim Grosbach673612e2008-10-02 22:56:44 +00004567 ac_build_prefix=${build_alias}-
4568 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4569set dummy ${ac_build_prefix}g++; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if test -n "$BUILD_CXX"; then
4576 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004585 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590done
4591IFS=$as_save_IFS
4592
4593fi
4594fi
4595BUILD_CXX=$ac_cv_prog_BUILD_CXX
4596if test -n "$BUILD_CXX"; then
4597 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4598echo "${ECHO_T}$BUILD_CXX" >&6; }
4599else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6; }
4602fi
4603
4604
4605 if test -z "$BUILD_CXX"; then
4606 # Extract the first word of "g++", so it can be a program name with args.
4607set dummy g++; ac_word=$2
4608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613 if test -n "$BUILD_CXX"; then
4614 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004623 ac_cv_prog_BUILD_CXX="g++"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633BUILD_CXX=$ac_cv_prog_BUILD_CXX
4634if test -n "$BUILD_CXX"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4636echo "${ECHO_T}$BUILD_CXX" >&6; }
4637else
4638 { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
4640fi
4641
4642
4643 if test -z "$BUILD_CXX"; then
4644 # Extract the first word of "c++", so it can be a program name with args.
4645set dummy c++; ac_word=$2
4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 if test -n "$BUILD_CXX"; then
4652 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4653else
4654 ac_prog_rejected=no
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4663 ac_prog_rejected=yes
4664 continue
4665 fi
4666 ac_cv_prog_BUILD_CXX="c++"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674if test $ac_prog_rejected = yes; then
4675 # We found a bogon in the path, so make sure we never use it.
4676 set dummy $ac_cv_prog_BUILD_CXX
4677 shift
4678 if test $# != 0; then
4679 # We chose a different compiler from the bogus one.
4680 # However, it has the same basename, so the bogon will be chosen
4681 # first if we set BUILD_CXX to just the basename; use the full file name.
4682 shift
4683 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4684 fi
4685fi
4686fi
4687fi
4688BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691echo "${ECHO_T}$BUILD_CXX" >&6; }
4692else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698 fi
4699 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004700else
4701 LLVM_CROSS_COMPILING=0
4702
4703fi
4704
Nick Lewycky5b28f862009-04-10 05:18:27 +00004705if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004706 cvsbuild="yes"
4707 optimize="no"
4708 CVSBUILD=CVSBUILD=1
4709
4710else
4711 cvsbuild="no"
4712 optimize="yes"
4713fi
4714
4715
4716# Check whether --enable-optimized was given.
4717if test "${enable_optimized+set}" = set; then
4718 enableval=$enable_optimized;
4719else
4720 enableval=$optimize
4721fi
4722
4723if test ${enableval} = "no" ; then
4724 ENABLE_OPTIMIZED=
4725
4726else
4727 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4728
4729fi
4730
David Greene2a5a12c2009-04-17 14:50:39 +00004731# Check whether --enable-profiling was given.
4732if test "${enable_profiling+set}" = set; then
4733 enableval=$enable_profiling;
4734else
4735 enableval="no"
4736fi
4737
4738if test ${enableval} = "no" ; then
4739 ENABLE_PROFILING=
4740
4741else
4742 ENABLE_PROFILING=ENABLE_PROFILING=1
4743
4744fi
4745
Reid Spencera773bd52006-08-04 18:18:08 +00004746# Check whether --enable-assertions was given.
4747if test "${enable_assertions+set}" = set; then
4748 enableval=$enable_assertions;
4749else
4750 enableval="yes"
4751fi
4752
4753if test ${enableval} = "yes" ; then
4754 DISABLE_ASSERTIONS=
4755
4756else
4757 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4758
4759fi
4760
David Greenea696d242007-06-28 19:36:08 +00004761# Check whether --enable-expensive-checks was given.
4762if test "${enable_expensive_checks+set}" = set; then
4763 enableval=$enable_expensive_checks;
4764else
4765 enableval="no"
4766fi
4767
4768if test ${enableval} = "yes" ; then
4769 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4770
4771 EXPENSIVE_CHECKS=yes
4772
4773else
4774 ENABLE_EXPENSIVE_CHECKS=
4775
4776 EXPENSIVE_CHECKS=no
4777
4778fi
4779
Reid Spencer8b2e1412006-11-17 03:32:33 +00004780# Check whether --enable-debug-runtime was given.
4781if test "${enable_debug_runtime+set}" = set; then
4782 enableval=$enable_debug_runtime;
4783else
4784 enableval=no
4785fi
4786
4787if test ${enableval} = "no" ; then
4788 DEBUG_RUNTIME=
4789
4790else
4791 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4792
4793fi
4794
Reid Spencera773bd52006-08-04 18:18:08 +00004795# Check whether --enable-jit was given.
4796if test "${enable_jit+set}" = set; then
4797 enableval=$enable_jit;
4798else
4799 enableval=default
4800fi
4801
4802if test ${enableval} = "no"
4803then
4804 JIT=
4805
4806else
4807 case "$llvm_cv_target_arch" in
4808 x86) TARGET_HAS_JIT=1
4809 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004810 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004811 ;;
4812 PowerPC) TARGET_HAS_JIT=1
4813 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004814 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004815 ;;
4816 Alpha) TARGET_HAS_JIT=1
4817 ;;
4818 IA64) TARGET_HAS_JIT=0
4819 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004820 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004821 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004822 Mips) TARGET_HAS_JIT=0
4823 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004824 PIC16) TARGET_HAS_JIT=0
4825 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004826 XCore) TARGET_HAS_JIT=0
4827 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004828 MSP430) TARGET_HAS_JIT=0
4829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004830 *) TARGET_HAS_JIT=0
4831 ;;
4832 esac
4833fi
4834
4835# Check whether --enable-doxygen was given.
4836if test "${enable_doxygen+set}" = set; then
4837 enableval=$enable_doxygen;
4838else
4839 enableval=default
4840fi
4841
4842case "$enableval" in
4843 yes) ENABLE_DOXYGEN=1
4844 ;;
4845 no) ENABLE_DOXYGEN=0
4846 ;;
4847 default) ENABLE_DOXYGEN=0
4848 ;;
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4850echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4852esac
4853
4854# Check whether --enable-threads was given.
4855if test "${enable_threads+set}" = set; then
4856 enableval=$enable_threads;
4857else
Reid Spencer65c5d752006-11-05 17:08:18 +00004858 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004859fi
4860
4861case "$enableval" in
4862 yes) ENABLE_THREADS=1
4863 ;;
4864 no) ENABLE_THREADS=0
4865 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004866 default) ENABLE_THREADS=1
4867 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004868 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4869echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4870 { (exit 1); exit 1; }; } ;;
4871esac
4872
Reid Spencer89b0d992006-12-16 22:07:52 +00004873# Check whether --enable-pic was given.
4874if test "${enable_pic+set}" = set; then
4875 enableval=$enable_pic;
4876else
4877 enableval=default
4878fi
4879
4880case "$enableval" in
4881 yes) ENABLE_PIC=1
4882 ;;
4883 no) ENABLE_PIC=0
4884 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004885 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004886 ;;
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4890esac
4891
4892cat >>confdefs.h <<_ACEOF
4893#define ENABLE_PIC $ENABLE_PIC
4894_ACEOF
4895
4896
Reid Spencera773bd52006-08-04 18:18:08 +00004897TARGETS_TO_BUILD=""
4898# Check whether --enable-targets was given.
4899if test "${enable_targets+set}" = set; then
4900 enableval=$enable_targets;
4901else
4902 enableval=all
4903fi
4904
4905case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004906 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004907 host-only)
4908 case "$llvm_cv_target_arch" in
4909 x86) TARGETS_TO_BUILD="X86" ;;
4910 x86_64) TARGETS_TO_BUILD="X86" ;;
4911 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4912 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4913 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4914 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004915 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004916 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004917 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004918 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004919 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004920 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004921 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4922echo "$as_me: error: Can not set target to build" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924 esac
4925 ;;
4926 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4927 case "$a_target" in
4928 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4929 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4931 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4932 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4933 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004934 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004935 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004936 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004937 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004938 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004939 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004940 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4941 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004942 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004943 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4944echo "$as_me: error: Unrecognized target $a_target" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4946 esac
4947 done
4948 ;;
4949esac
Reid Spencera773bd52006-08-04 18:18:08 +00004950TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4951
4952
Reid Spencer65c5d752006-11-05 17:08:18 +00004953# Check whether --enable-cbe-printf-a was given.
4954if test "${enable_cbe_printf_a+set}" = set; then
4955 enableval=$enable_cbe_printf_a;
4956else
4957 enableval=default
4958fi
4959
4960case "$enableval" in
4961 yes) ENABLE_CBE_PRINTF_A=1
4962 ;;
4963 no) ENABLE_CBE_PRINTF_A=0
4964 ;;
4965 default) ENABLE_CBE_PRINTF_A=1
4966 ;;
4967 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4968echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4970esac
4971
4972cat >>confdefs.h <<_ACEOF
4973#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4974_ACEOF
4975
4976
Reid Spencera773bd52006-08-04 18:18:08 +00004977
4978# Check whether --with-llvmgccdir was given.
4979if test "${with_llvmgccdir+set}" = set; then
4980 withval=$with_llvmgccdir;
4981else
4982 withval=default
4983fi
4984
4985case "$withval" in
4986 default) WITH_LLVMGCCDIR=default ;;
4987 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4988 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4989echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4991esac
4992
4993
Devang Patel5d28b882007-12-04 22:54:47 +00004994# Check whether --with-llvmgcc was given.
4995if test "${with_llvmgcc+set}" = set; then
4996 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4997 WITH_LLVMGCCDIR=""
4998fi
4999
5000
5001
5002# Check whether --with-llvmgxx was given.
5003if test "${with_llvmgxx+set}" = set; then
5004 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5005 WITH_LLVMGCCDIR=""
5006fi
5007
Douglas Gregor01746742009-05-11 18:05:52 +00005008
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005009if test -n "$LLVMGCC"; then
5010 LLVMGCCCOMMAND="$LLVMGCC"
5011fi
5012
5013if test -n "$LLVMGXX"; then
5014 LLVMGXXCOMMAND="$LLVMGXX"
5015fi
Devang Patel5d28b882007-12-04 22:54:47 +00005016
5017if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5018 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5019echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5020 { (exit 1); exit 1; }; };
5021fi
5022
5023if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5024 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5025echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5026 { (exit 1); exit 1; }; };
5027fi
5028
5029
Reid Spencera773bd52006-08-04 18:18:08 +00005030# Check whether --with-extra-options was given.
5031if test "${with_extra_options+set}" = set; then
5032 withval=$with_extra_options;
5033else
5034 withval=default
5035fi
5036
5037case "$withval" in
5038 default) EXTRA_OPTIONS= ;;
5039 *) EXTRA_OPTIONS=$withval ;;
5040esac
5041EXTRA_OPTIONS=$EXTRA_OPTIONS
5042
5043
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005044# Check whether --enable-bindings was given.
5045if test "${enable_bindings+set}" = set; then
5046 enableval=$enable_bindings;
5047else
5048 enableval=default
5049fi
5050
5051BINDINGS_TO_BUILD=""
5052case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005053 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005054 all ) BINDINGS_TO_BUILD="ocaml" ;;
5055 none | no) BINDINGS_TO_BUILD="" ;;
5056 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5057 case "$a_binding" in
5058 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5059 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5060echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5061 { (exit 1); exit 1; }; } ;;
5062 esac
5063 done
5064 ;;
5065esac
5066
Reid Spencera773bd52006-08-04 18:18:08 +00005067
Gordon Henriksenf0915682007-10-02 16:42:22 +00005068# Check whether --with-ocaml-libdir was given.
5069if test "${with_ocaml_libdir+set}" = set; then
5070 withval=$with_ocaml_libdir;
5071else
5072 withval=auto
5073fi
5074
5075case "$withval" in
5076 auto) with_ocaml_libdir="$withval" ;;
5077 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5078 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5079echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5081esac
5082
5083
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005084# Check whether --with-binutils-include was given.
5085if test "${with_binutils_include+set}" = set; then
5086 withval=$with_binutils_include;
5087else
5088 withval=default
5089fi
5090
5091case "$withval" in
5092 default) WITH_BINUTILS_INCDIR=default ;;
5093 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5094 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5095echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097esac
5098if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5099 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5100
5101 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5102 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5103 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5104echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5105 { (exit 1); exit 1; }; };
5106 fi
5107fi
5108
5109
Reid Spencera773bd52006-08-04 18:18:08 +00005110ac_ext=c
5111ac_cpp='$CPP $CPPFLAGS'
5112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5116echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5117# On Suns, sometimes $CPP names a directory.
5118if test -n "$CPP" && test -d "$CPP"; then
5119 CPP=
5120fi
5121if test -z "$CPP"; then
5122 if test "${ac_cv_prog_CPP+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125 # Double quotes because CPP needs to be expanded
5126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5127 do
5128 ac_preproc_ok=false
5129for ac_c_preproc_warn_flag in '' yes
5130do
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143#ifdef __STDC__
5144# include <limits.h>
5145#else
5146# include <assert.h>
5147#endif
5148 Syntax error
5149_ACEOF
5150if { (ac_try="$ac_cpp conftest.$ac_ext"
5151case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166 else
5167 ac_cpp_err=
5168 fi
5169else
5170 ac_cpp_err=yes
5171fi
5172if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005173 :
5174else
5175 echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 # Broken: fails on valid input.
5179continue
5180fi
5181
5182rm -f conftest.err conftest.$ac_ext
5183
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5187/* confdefs.h. */
5188_ACEOF
5189cat confdefs.h >>conftest.$ac_ext
5190cat >>conftest.$ac_ext <<_ACEOF
5191/* end confdefs.h. */
5192#include <ac_nonexistent.h>
5193_ACEOF
5194if { (ac_try="$ac_cpp conftest.$ac_ext"
5195case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005206 (exit $ac_status); } >/dev/null; then
5207 if test -s conftest.err; then
5208 ac_cpp_err=$ac_c_preproc_warn_flag
5209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5210 else
5211 ac_cpp_err=
5212 fi
5213else
5214 ac_cpp_err=yes
5215fi
5216if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005217 # Broken: success on invalid input.
5218continue
5219else
5220 echo "$as_me: failed program was:" >&5
5221sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 # Passes both tests.
5224ac_preproc_ok=:
5225break
5226fi
5227
5228rm -f conftest.err conftest.$ac_ext
5229
5230done
5231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232rm -f conftest.err conftest.$ac_ext
5233if $ac_preproc_ok; then
5234 break
5235fi
5236
5237 done
5238 ac_cv_prog_CPP=$CPP
5239
5240fi
5241 CPP=$ac_cv_prog_CPP
5242else
5243 ac_cv_prog_CPP=$CPP
5244fi
5245{ echo "$as_me:$LINENO: result: $CPP" >&5
5246echo "${ECHO_T}$CPP" >&6; }
5247ac_preproc_ok=false
5248for ac_c_preproc_warn_flag in '' yes
5249do
5250 # Use a header file that comes with gcc, so configuring glibc
5251 # with a fresh cross-compiler works.
5252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253 # <limits.h> exists even on freestanding compilers.
5254 # On the NeXT, cc -E runs the code through the compiler's parser,
5255 # not just through cpp. "Syntax error" is here to catch this case.
5256 cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262#ifdef __STDC__
5263# include <limits.h>
5264#else
5265# include <assert.h>
5266#endif
5267 Syntax error
5268_ACEOF
5269if { (ac_try="$ac_cpp conftest.$ac_ext"
5270case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273esac
5274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 else
5286 ac_cpp_err=
5287 fi
5288else
5289 ac_cpp_err=yes
5290fi
5291if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005292 :
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 # Broken: fails on valid input.
5298continue
5299fi
5300
5301rm -f conftest.err conftest.$ac_ext
5302
5303 # OK, works on sane cases. Now check whether nonexistent headers
5304 # can be detected and how.
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311#include <ac_nonexistent.h>
5312_ACEOF
5313if { (ac_try="$ac_cpp conftest.$ac_ext"
5314case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_c_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329 else
5330 ac_cpp_err=
5331 fi
5332else
5333 ac_cpp_err=yes
5334fi
5335if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005336 # Broken: success on invalid input.
5337continue
5338else
5339 echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346
5347rm -f conftest.err conftest.$ac_ext
5348
5349done
5350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351rm -f conftest.err conftest.$ac_ext
5352if $ac_preproc_ok; then
5353 :
5354else
5355 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5356See \`config.log' for more details." >&5
5357echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5358See \`config.log' for more details." >&2;}
5359 { (exit 1); exit 1; }; }
5360fi
5361
5362ac_ext=c
5363ac_cpp='$CPP $CPPFLAGS'
5364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367
5368ac_ext=c
5369ac_cpp='$CPP $CPPFLAGS'
5370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373if test -n "$ac_tool_prefix"; then
5374 for ac_prog in gcc
5375 do
5376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5377set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380if test "${ac_cv_prog_CC+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 if test -n "$CC"; then
5384 ac_cv_prog_CC="$CC" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005392 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 +00005393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397done
5398done
5399IFS=$as_save_IFS
5400
5401fi
5402fi
5403CC=$ac_cv_prog_CC
5404if test -n "$CC"; then
5405 { echo "$as_me:$LINENO: result: $CC" >&5
5406echo "${ECHO_T}$CC" >&6; }
5407else
5408 { echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6; }
5410fi
5411
5412
5413 test -n "$CC" && break
5414 done
5415fi
5416if test -z "$CC"; then
5417 ac_ct_CC=$CC
5418 for ac_prog in gcc
5419do
5420 # Extract the first word of "$ac_prog", so it can be a program name with args.
5421set dummy $ac_prog; ac_word=$2
5422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
5427 if test -n "$ac_ct_CC"; then
5428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005436 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 +00005437 ac_cv_prog_ac_ct_CC="$ac_prog"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447ac_ct_CC=$ac_cv_prog_ac_ct_CC
5448if test -n "$ac_ct_CC"; then
5449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5450echo "${ECHO_T}$ac_ct_CC" >&6; }
5451else
5452 { echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6; }
5454fi
5455
5456
5457 test -n "$ac_ct_CC" && break
5458done
5459
5460 if test "x$ac_ct_CC" = x; then
5461 CC=""
5462 else
5463 case $cross_compiling:$ac_tool_warned in
5464yes:)
5465{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5466whose name does not start with the host triplet. If you think this
5467configuration is useful to you, please write to autoconf@gnu.org." >&5
5468echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5469whose name does not start with the host triplet. If you think this
5470configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5471ac_tool_warned=yes ;;
5472esac
5473 CC=$ac_ct_CC
5474 fi
5475fi
5476
5477
5478test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5479See \`config.log' for more details." >&5
5480echo "$as_me: error: no acceptable C compiler found in \$PATH
5481See \`config.log' for more details." >&2;}
5482 { (exit 1); exit 1; }; }
5483
5484# Provide some information about the compiler.
5485echo "$as_me:$LINENO: checking for C compiler version" >&5
5486ac_compiler=`set X $ac_compile; echo $2`
5487{ (ac_try="$ac_compiler --version >&5"
5488case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491esac
5492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compiler --version >&5") 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5497{ (ac_try="$ac_compiler -v >&5"
5498case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501esac
5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compiler -v >&5") 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }
5507{ (ac_try="$ac_compiler -V >&5"
5508case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511esac
5512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compiler -V >&5") 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }
5517
5518{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5519echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5520if test "${ac_cv_c_compiler_gnu+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523 cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h. */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h. */
5529
5530int
5531main ()
5532{
5533#ifndef __GNUC__
5534 choke me
5535#endif
5536
5537 ;
5538 return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_try") 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005575 ac_compiler_gnu=yes
5576else
5577 echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580 ac_compiler_gnu=no
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584ac_cv_c_compiler_gnu=$ac_compiler_gnu
5585
5586fi
5587{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5588echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5589GCC=`test $ac_compiler_gnu = yes && echo yes`
5590ac_test_CFLAGS=${CFLAGS+set}
5591ac_save_CFLAGS=$CFLAGS
5592{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5593echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5594if test "${ac_cv_prog_cc_g+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 ac_save_c_werror_flag=$ac_c_werror_flag
5598 ac_c_werror_flag=yes
5599 ac_cv_prog_cc_g=no
5600 CFLAGS="-g"
5601 cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607
5608int
5609main ()
5610{
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616rm -f conftest.$ac_objext
5617if { (ac_try="$ac_compile"
5618case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005629 (exit $ac_status); } &&
5630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5631 { (case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest.$ac_objext'
5641 { (case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005650 ac_cv_prog_cc_g=yes
5651else
5652 echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 CFLAGS=""
5656 cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h. */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h. */
5662
5663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (ac_try="$ac_compile"
5673case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest.$ac_objext'
5696 { (case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699esac
5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005705 :
5706else
5707 echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 ac_c_werror_flag=$ac_save_c_werror_flag
5711 CFLAGS="-g"
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718
5719int
5720main ()
5721{
5722
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727rm -f conftest.$ac_objext
5728if { (ac_try="$ac_compile"
5729case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732esac
5733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5755esac
5756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_try") 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005761 ac_cv_prog_cc_g=yes
5762else
5763 echo "$as_me: failed program was:" >&5
5764sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767fi
5768
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773fi
5774
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 ac_c_werror_flag=$ac_save_c_werror_flag
5777fi
5778{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5779echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5780if test "$ac_test_CFLAGS" = set; then
5781 CFLAGS=$ac_save_CFLAGS
5782elif test $ac_cv_prog_cc_g = yes; then
5783 if test "$GCC" = yes; then
5784 CFLAGS="-g -O2"
5785 else
5786 CFLAGS="-g"
5787 fi
5788else
5789 if test "$GCC" = yes; then
5790 CFLAGS="-O2"
5791 else
5792 CFLAGS=
5793 fi
5794fi
5795{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5796echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5797if test "${ac_cv_prog_cc_c89+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 ac_cv_prog_cc_c89=no
5801ac_save_CC=$CC
5802cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h. */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h. */
5808#include <stdarg.h>
5809#include <stdio.h>
5810#include <sys/types.h>
5811#include <sys/stat.h>
5812/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5813struct buf { int x; };
5814FILE * (*rcsopen) (struct buf *, struct stat *, int);
5815static char *e (p, i)
5816 char **p;
5817 int i;
5818{
5819 return p[i];
5820}
5821static char *f (char * (*g) (char **, int), char **p, ...)
5822{
5823 char *s;
5824 va_list v;
5825 va_start (v,p);
5826 s = g (p, va_arg (v,int));
5827 va_end (v);
5828 return s;
5829}
5830
5831/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5832 function prototypes and stuff, but not '\xHH' hex character constants.
5833 These don't provoke an error unfortunately, instead are silently treated
5834 as 'x'. The following induces an error, until -std is added to get
5835 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5836 array size at least. It's necessary to write '\x00'==0 to get something
5837 that's true only with -std. */
5838int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5839
5840/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5841 inside strings and character constants. */
5842#define FOO(x) 'x'
5843int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5844
5845int test (int i, double x);
5846struct s1 {int (*f) (int a);};
5847struct s2 {int (*f) (double a);};
5848int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5849int argc;
5850char **argv;
5851int
5852main ()
5853{
5854return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5855 ;
5856 return 0;
5857}
5858_ACEOF
5859for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5860 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5861do
5862 CC="$ac_save_CC $ac_arg"
5863 rm -f conftest.$ac_objext
5864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_try") 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005897 ac_cv_prog_cc_c89=$ac_arg
5898else
5899 echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902
5903fi
5904
5905rm -f core conftest.err conftest.$ac_objext
5906 test "x$ac_cv_prog_cc_c89" != "xno" && break
5907done
5908rm -f conftest.$ac_ext
5909CC=$ac_save_CC
5910
5911fi
5912# AC_CACHE_VAL
5913case "x$ac_cv_prog_cc_c89" in
5914 x)
5915 { echo "$as_me:$LINENO: result: none needed" >&5
5916echo "${ECHO_T}none needed" >&6; } ;;
5917 xno)
5918 { echo "$as_me:$LINENO: result: unsupported" >&5
5919echo "${ECHO_T}unsupported" >&6; } ;;
5920 *)
5921 CC="$CC $ac_cv_prog_cc_c89"
5922 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5923echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5924esac
5925
5926
5927ac_ext=c
5928ac_cpp='$CPP $CPPFLAGS'
5929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
5933ac_ext=cpp
5934ac_cpp='$CXXCPP $CPPFLAGS'
5935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938if test -z "$CXX"; then
5939 if test -n "$CCC"; then
5940 CXX=$CCC
5941 else
5942 if test -n "$ac_tool_prefix"; then
5943 for ac_prog in g++
5944 do
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949if test "${ac_cv_prog_CXX+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 if test -n "$CXX"; then
5953 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005961 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 +00005962 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966done
5967done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972CXX=$ac_cv_prog_CXX
5973if test -n "$CXX"; then
5974 { echo "$as_me:$LINENO: result: $CXX" >&5
5975echo "${ECHO_T}$CXX" >&6; }
5976else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
5979fi
5980
5981
5982 test -n "$CXX" && break
5983 done
5984fi
5985if test -z "$CXX"; then
5986 ac_ct_CXX=$CXX
5987 for ac_prog in g++
5988do
5989 # Extract the first word of "$ac_prog", so it can be a program name with args.
5990set dummy $ac_prog; ac_word=$2
5991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996 if test -n "$ac_ct_CXX"; then
5997 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006005 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 +00006006 ac_cv_prog_ac_ct_CXX="$ac_prog"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6017if test -n "$ac_ct_CXX"; then
6018 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6019echo "${ECHO_T}$ac_ct_CXX" >&6; }
6020else
6021 { echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
6023fi
6024
6025
6026 test -n "$ac_ct_CXX" && break
6027done
6028
6029 if test "x$ac_ct_CXX" = x; then
6030 CXX="g++"
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6035whose name does not start with the host triplet. If you think this
6036configuration is useful to you, please write to autoconf@gnu.org." >&5
6037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6038whose name does not start with the host triplet. If you think this
6039configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6040ac_tool_warned=yes ;;
6041esac
6042 CXX=$ac_ct_CXX
6043 fi
6044fi
6045
6046 fi
6047fi
6048# Provide some information about the compiler.
6049echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6050ac_compiler=`set X $ac_compile; echo $2`
6051{ (ac_try="$ac_compiler --version >&5"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compiler --version >&5") 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }
6061{ (ac_try="$ac_compiler -v >&5"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compiler -v >&5") 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
6071{ (ac_try="$ac_compiler -V >&5"
6072case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_compiler -V >&5") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }
6081
6082{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6083echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6084if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h. */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h. */
6093
6094int
6095main ()
6096{
6097#ifndef __GNUC__
6098 choke me
6099#endif
6100
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (ac_try="$ac_compile"
6107case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006139 ac_compiler_gnu=yes
6140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_compiler_gnu=no
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6149
6150fi
6151{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6152echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6153GXX=`test $ac_compiler_gnu = yes && echo yes`
6154ac_test_CXXFLAGS=${CXXFLAGS+set}
6155ac_save_CXXFLAGS=$CXXFLAGS
6156{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6157echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6158if test "${ac_cv_prog_cxx_g+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6162 ac_cxx_werror_flag=yes
6163 ac_cv_prog_cxx_g=no
6164 CXXFLAGS="-g"
6165 cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171
6172int
6173main ()
6174{
6175
6176 ;
6177 return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext
6181if { (ac_try="$ac_compile"
6182case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
6186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006193 (exit $ac_status); } &&
6194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6195 { (case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198esac
6199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_try") 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208esac
6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_try") 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006214 ac_cv_prog_cxx_g=yes
6215else
6216 echo "$as_me: failed program was:" >&5
6217sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 CXXFLAGS=""
6220 cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226
6227int
6228main ()
6229{
6230
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext
6236if { (ac_try="$ac_compile"
6237case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240esac
6241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242 (eval "$ac_compile") 2>conftest.er1
6243 ac_status=$?
6244 grep -v '^ *+' conftest.er1 >conftest.err
6245 rm -f conftest.er1
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006248 (exit $ac_status); } &&
6249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6250 { (case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_try") 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263esac
6264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_try") 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006269 :
6270else
6271 echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
6274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6275 CXXFLAGS="-g"
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282
6283int
6284main ()
6285{
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291rm -f conftest.$ac_objext
6292if { (ac_try="$ac_compile"
6293case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
6297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319esac
6320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_try") 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006325 ac_cv_prog_cxx_g=yes
6326else
6327 echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330
6331fi
6332
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334fi
6335
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6341fi
6342{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6343echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6344if test "$ac_test_CXXFLAGS" = set; then
6345 CXXFLAGS=$ac_save_CXXFLAGS
6346elif test $ac_cv_prog_cxx_g = yes; then
6347 if test "$GXX" = yes; then
6348 CXXFLAGS="-g -O2"
6349 else
6350 CXXFLAGS="-g"
6351 fi
6352else
6353 if test "$GXX" = yes; then
6354 CXXFLAGS="-O2"
6355 else
6356 CXXFLAGS=
6357 fi
6358fi
6359ac_ext=c
6360ac_cpp='$CPP $CPPFLAGS'
6361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364
Reid Spencera773bd52006-08-04 18:18:08 +00006365
6366{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6367echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6368if test "${lt_cv_path_NM+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371 if test -n "$NM"; then
6372 # Let the user override the test.
6373 lt_cv_path_NM="$NM"
6374else
6375 lt_nm_to_check="${ac_tool_prefix}nm"
6376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6377 lt_nm_to_check="$lt_nm_to_check nm"
6378 fi
6379 for lt_tmp_nm in $lt_nm_to_check; do
6380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6382 IFS="$lt_save_ifs"
6383 test -z "$ac_dir" && ac_dir=.
6384 tmp_nm="$ac_dir/$lt_tmp_nm"
6385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6386 # Check to see if the nm accepts a BSD-compat flag.
6387 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6388 # nm: unknown option "B" ignored
6389 # Tru64's nm complains that /dev/null is an invalid object file
6390 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6391 */dev/null* | *'Invalid file or object type'*)
6392 lt_cv_path_NM="$tmp_nm -B"
6393 break
6394 ;;
6395 *)
6396 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6397 */dev/null*)
6398 lt_cv_path_NM="$tmp_nm -p"
6399 break
6400 ;;
6401 *)
6402 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6403 continue # so that we can try to find one that supports BSD flags
6404 ;;
6405 esac
6406 ;;
6407 esac
6408 fi
6409 done
6410 IFS="$lt_save_ifs"
6411 done
6412 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6413fi
6414fi
6415{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6416echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6417NM="$lt_cv_path_NM"
6418
6419
6420
6421{ echo "$as_me:$LINENO: checking for GNU make" >&5
6422echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6423if test "${llvm_cv_gnu_make_command+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426 llvm_cv_gnu_make_command=''
6427 for a in "$MAKE" make gmake gnumake ; do
6428 if test -z "$a" ; then continue ; fi ;
6429 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6430 then
6431 llvm_cv_gnu_make_command=$a ;
6432 break;
6433 fi
6434 done
6435fi
6436{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6437echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6438 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6439 ifGNUmake='' ;
6440 else
6441 ifGNUmake='#' ;
6442 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6443echo "${ECHO_T}\"Not found\"" >&6; };
6444 fi
6445
6446
6447{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6448echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6449LN_S=$as_ln_s
6450if test "$LN_S" = "ln -s"; then
6451 { echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6; }
6453else
6454 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6455echo "${ECHO_T}no, using $LN_S" >&6; }
6456fi
6457
6458# Extract the first word of "cmp", so it can be a program name with args.
6459set dummy cmp; ac_word=$2
6460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462if test "${ac_cv_path_CMP+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465 case $CMP in
6466 [\\/]* | ?:[\\/]*)
6467 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6468 ;;
6469 *)
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006476 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 +00006477 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481done
6482done
6483IFS=$as_save_IFS
6484
6485 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6486 ;;
6487esac
6488fi
6489CMP=$ac_cv_path_CMP
6490if test -n "$CMP"; then
6491 { echo "$as_me:$LINENO: result: $CMP" >&5
6492echo "${ECHO_T}$CMP" >&6; }
6493else
6494 { echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6; }
6496fi
6497
6498
6499# Extract the first word of "cp", so it can be a program name with args.
6500set dummy cp; ac_word=$2
6501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503if test "${ac_cv_path_CP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 case $CP in
6507 [\\/]* | ?:[\\/]*)
6508 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6509 ;;
6510 *)
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006517 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 +00006518 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523done
6524IFS=$as_save_IFS
6525
6526 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6527 ;;
6528esac
6529fi
6530CP=$ac_cv_path_CP
6531if test -n "$CP"; then
6532 { echo "$as_me:$LINENO: result: $CP" >&5
6533echo "${ECHO_T}$CP" >&6; }
6534else
6535 { echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6; }
6537fi
6538
6539
6540# Extract the first word of "date", so it can be a program name with args.
6541set dummy date; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_path_DATE+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 case $DATE in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006558 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 +00006559 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565IFS=$as_save_IFS
6566
6567 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6568 ;;
6569esac
6570fi
6571DATE=$ac_cv_path_DATE
6572if test -n "$DATE"; then
6573 { echo "$as_me:$LINENO: result: $DATE" >&5
6574echo "${ECHO_T}$DATE" >&6; }
6575else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6; }
6578fi
6579
6580
6581# Extract the first word of "find", so it can be a program name with args.
6582set dummy find; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_FIND+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 case $FIND in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006599 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 +00006600 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6609 ;;
6610esac
6611fi
6612FIND=$ac_cv_path_FIND
6613if test -n "$FIND"; then
6614 { echo "$as_me:$LINENO: result: $FIND" >&5
6615echo "${ECHO_T}$FIND" >&6; }
6616else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
6619fi
6620
6621
6622# Extract the first word of "grep", so it can be a program name with args.
6623set dummy grep; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_GREP+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 case $GREP in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6632 ;;
6633 *)
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006640 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 +00006641 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6650 ;;
6651esac
6652fi
6653GREP=$ac_cv_path_GREP
6654if test -n "$GREP"; then
6655 { echo "$as_me:$LINENO: result: $GREP" >&5
6656echo "${ECHO_T}$GREP" >&6; }
6657else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663# Extract the first word of "mkdir", so it can be a program name with args.
6664set dummy mkdir; ac_word=$2
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667if test "${ac_cv_path_MKDIR+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670 case $MKDIR in
6671 [\\/]* | ?:[\\/]*)
6672 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6673 ;;
6674 *)
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006681 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 +00006682 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6691 ;;
6692esac
6693fi
6694MKDIR=$ac_cv_path_MKDIR
6695if test -n "$MKDIR"; then
6696 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6697echo "${ECHO_T}$MKDIR" >&6; }
6698else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704# Extract the first word of "mv", so it can be a program name with args.
6705set dummy mv; ac_word=$2
6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_MV+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 case $MV in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006722 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 +00006723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728done
6729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6732 ;;
6733esac
6734fi
6735MV=$ac_cv_path_MV
6736if test -n "$MV"; then
6737 { echo "$as_me:$LINENO: result: $MV" >&5
6738echo "${ECHO_T}$MV" >&6; }
6739else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744
6745if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6747set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750if test "${ac_cv_prog_RANLIB+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 if test -n "$RANLIB"; then
6754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006762 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 +00006763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767done
6768done
6769IFS=$as_save_IFS
6770
6771fi
6772fi
6773RANLIB=$ac_cv_prog_RANLIB
6774if test -n "$RANLIB"; then
6775 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6776echo "${ECHO_T}$RANLIB" >&6; }
6777else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
6780fi
6781
6782
6783fi
6784if test -z "$ac_cv_prog_RANLIB"; then
6785 ac_ct_RANLIB=$RANLIB
6786 # Extract the first word of "ranlib", so it can be a program name with args.
6787set dummy ranlib; ac_word=$2
6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793 if test -n "$ac_ct_RANLIB"; then
6794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006802 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 +00006803 ac_cv_prog_ac_ct_RANLIB="ranlib"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6814if test -n "$ac_ct_RANLIB"; then
6815 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6816echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6817else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
6820fi
6821
6822 if test "x$ac_ct_RANLIB" = x; then
6823 RANLIB=":"
6824 else
6825 case $cross_compiling:$ac_tool_warned in
6826yes:)
6827{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6828whose name does not start with the host triplet. If you think this
6829configuration is useful to you, please write to autoconf@gnu.org." >&5
6830echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6831whose name does not start with the host triplet. If you think this
6832configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6833ac_tool_warned=yes ;;
6834esac
6835 RANLIB=$ac_ct_RANLIB
6836 fi
6837else
6838 RANLIB="$ac_cv_prog_RANLIB"
6839fi
6840
6841# Extract the first word of "rm", so it can be a program name with args.
6842set dummy rm; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_RM+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 case $RM in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006859 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 +00006860 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6869 ;;
6870esac
6871fi
6872RM=$ac_cv_path_RM
6873if test -n "$RM"; then
6874 { echo "$as_me:$LINENO: result: $RM" >&5
6875echo "${ECHO_T}$RM" >&6; }
6876else
6877 { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881
6882# Extract the first word of "sed", so it can be a program name with args.
6883set dummy sed; ac_word=$2
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886if test "${ac_cv_path_SED+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889 case $SED in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006900 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 +00006901 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906done
6907IFS=$as_save_IFS
6908
6909 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6910 ;;
6911esac
6912fi
6913SED=$ac_cv_path_SED
6914if test -n "$SED"; then
6915 { echo "$as_me:$LINENO: result: $SED" >&5
6916echo "${ECHO_T}$SED" >&6; }
6917else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922
6923# Extract the first word of "tar", so it can be a program name with args.
6924set dummy tar; ac_word=$2
6925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_TAR+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 case $TAR in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006941 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 +00006942 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948IFS=$as_save_IFS
6949
6950 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6951 ;;
6952esac
6953fi
6954TAR=$ac_cv_path_TAR
6955if test -n "$TAR"; then
6956 { echo "$as_me:$LINENO: result: $TAR" >&5
6957echo "${ECHO_T}$TAR" >&6; }
6958else
6959 { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963
6964# Extract the first word of "pwd", so it can be a program name with args.
6965set dummy pwd; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_BINPWD+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 case $BINPWD in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006982 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 +00006983 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6992 ;;
6993esac
6994fi
6995BINPWD=$ac_cv_path_BINPWD
6996if test -n "$BINPWD"; then
6997 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6998echo "${ECHO_T}$BINPWD" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005
7006# Extract the first word of "Graphviz", so it can be a program name with args.
7007set dummy Graphviz; ac_word=$2
7008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013 case $GRAPHVIZ in
7014 [\\/]* | ?:[\\/]*)
7015 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7016 ;;
7017 *)
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007024 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 +00007025 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7034 ;;
7035esac
7036fi
7037GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7038if test -n "$GRAPHVIZ"; then
7039 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7040echo "${ECHO_T}$GRAPHVIZ" >&6; }
7041else
7042 { echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6; }
7044fi
7045
7046
7047if test "$GRAPHVIZ" != "echo Graphviz" ; then
7048
7049cat >>confdefs.h <<\_ACEOF
7050#define HAVE_GRAPHVIZ 1
7051_ACEOF
7052
Jeff Cohen28783c32007-01-12 18:22:38 +00007053 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007054 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7055 fi
7056
7057cat >>confdefs.h <<_ACEOF
7058#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7059_ACEOF
7060
7061fi
7062# Extract the first word of "dot", so it can be a program name with args.
7063set dummy dot; ac_word=$2
7064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066if test "${ac_cv_path_DOT+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 case $DOT in
7070 [\\/]* | ?:[\\/]*)
7071 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7072 ;;
7073 *)
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007080 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 +00007081 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086done
7087IFS=$as_save_IFS
7088
7089 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7090 ;;
7091esac
7092fi
7093DOT=$ac_cv_path_DOT
7094if test -n "$DOT"; then
7095 { echo "$as_me:$LINENO: result: $DOT" >&5
7096echo "${ECHO_T}$DOT" >&6; }
7097else
7098 { echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6; }
7100fi
7101
7102
7103if test "$DOT" != "echo dot" ; then
7104
7105cat >>confdefs.h <<\_ACEOF
7106#define HAVE_DOT 1
7107_ACEOF
7108
Jeff Cohen28783c32007-01-12 18:22:38 +00007109 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007110 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7111 fi
7112
7113cat >>confdefs.h <<_ACEOF
7114#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7115_ACEOF
7116
7117fi
7118for ac_prog in gv gsview32
7119do
7120 # Extract the first word of "$ac_prog", so it can be a program name with args.
7121set dummy $ac_prog; ac_word=$2
7122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_GV+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 case $GV in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007138 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 +00007139 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145IFS=$as_save_IFS
7146
7147 ;;
7148esac
7149fi
7150GV=$ac_cv_path_GV
7151if test -n "$GV"; then
7152 { echo "$as_me:$LINENO: result: $GV" >&5
7153echo "${ECHO_T}$GV" >&6; }
7154else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159
7160 test -n "$GV" && break
7161done
7162test -n "$GV" || GV="echo gv"
7163
7164if test "$GV" != "echo gv" ; then
7165
7166cat >>confdefs.h <<\_ACEOF
7167#define HAVE_GV 1
7168_ACEOF
7169
Jeff Cohen28783c32007-01-12 18:22:38 +00007170 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007171 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7172 fi
7173
7174cat >>confdefs.h <<_ACEOF
7175#define LLVM_PATH_GV "$GV${EXEEXT}"
7176_ACEOF
7177
7178fi
7179# Extract the first word of "dotty", so it can be a program name with args.
7180set dummy dotty; ac_word=$2
7181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_path_DOTTY+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186 case $DOTTY in
7187 [\\/]* | ?:[\\/]*)
7188 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7189 ;;
7190 *)
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007197 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 +00007198 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202done
7203done
7204IFS=$as_save_IFS
7205
7206 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7207 ;;
7208esac
7209fi
7210DOTTY=$ac_cv_path_DOTTY
7211if test -n "$DOTTY"; then
7212 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7213echo "${ECHO_T}$DOTTY" >&6; }
7214else
7215 { echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6; }
7217fi
7218
7219
7220if test "$DOTTY" != "echo dotty" ; then
7221
7222cat >>confdefs.h <<\_ACEOF
7223#define HAVE_DOTTY 1
7224_ACEOF
7225
Jeff Cohen28783c32007-01-12 18:22:38 +00007226 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007227 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7228 fi
7229
7230cat >>confdefs.h <<_ACEOF
7231#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7232_ACEOF
7233
7234fi
7235
7236
7237# Extract the first word of "perl", so it can be a program name with args.
7238set dummy perl; ac_word=$2
7239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241if test "${ac_cv_path_PERL+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244 case $PERL in
7245 [\\/]* | ?:[\\/]*)
7246 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7247 ;;
7248 *)
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007255 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 +00007256 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262IFS=$as_save_IFS
7263
7264 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7265 ;;
7266esac
7267fi
7268PERL=$ac_cv_path_PERL
7269if test -n "$PERL"; then
7270 { echo "$as_me:$LINENO: result: $PERL" >&5
7271echo "${ECHO_T}$PERL" >&6; }
7272else
7273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
7275fi
7276
7277
7278if test "$PERL" != "none"; then
7279 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7280echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7281 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7282 { echo "$as_me:$LINENO: result: yes" >&5
7283echo "${ECHO_T}yes" >&6; }
7284 else
7285 PERL=none
7286 { echo "$as_me:$LINENO: result: not found" >&5
7287echo "${ECHO_T}not found" >&6; }
7288 fi
7289fi
7290
7291
7292if test x"$PERL" = xnone; then
7293 HAVE_PERL=0
7294
Reid Spencer59807fa2007-05-17 18:11:03 +00007295 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7296echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7297 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007298else
7299 HAVE_PERL=1
7300
7301fi
7302
7303# Find a good install program. We prefer a C program (faster),
7304# so one script is as good as another. But avoid the broken or
7305# incompatible versions:
7306# SysV /etc/install, /usr/sbin/install
7307# SunOS /usr/etc/install
7308# IRIX /sbin/install
7309# AIX /bin/install
7310# AmigaOS /C/install, which installs bootblocks on floppy discs
7311# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7312# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7313# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7314# OS/2's system install, which has a completely different semantic
7315# ./install, which can be erroneously created by make from ./install.sh.
7316{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7317echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7318if test -z "$INSTALL"; then
7319if test "${ac_cv_path_install+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 # Account for people who put trailing slashes in PATH elements.
7328case $as_dir/ in
7329 ./ | .// | /cC/* | \
7330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7331 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7332 /usr/ucb/* ) ;;
7333 *)
7334 # OSF1 and SCO ODT 3.0 have their own names for install.
7335 # Don't use installbsd from OSF since it installs stuff as root
7336 # by default.
7337 for ac_prog in ginstall scoinst install; do
7338 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007339 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 +00007340 if test $ac_prog = install &&
7341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7342 # AIX install. It has an incompatible calling convention.
7343 :
7344 elif test $ac_prog = install &&
7345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346 # program-specific install script used by HP pwplus--don't use.
7347 :
7348 else
7349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7350 break 3
7351 fi
7352 fi
7353 done
7354 done
7355 ;;
7356esac
7357done
7358IFS=$as_save_IFS
7359
7360
7361fi
7362 if test "${ac_cv_path_install+set}" = set; then
7363 INSTALL=$ac_cv_path_install
7364 else
7365 # As a last resort, use the slow shell script. Don't cache a
7366 # value for INSTALL within a source directory, because that will
7367 # break other packages using the cache if that directory is
7368 # removed, or if the value is a relative name.
7369 INSTALL=$ac_install_sh
7370 fi
7371fi
7372{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7373echo "${ECHO_T}$INSTALL" >&6; }
7374
7375# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7376# It thinks the first close brace ends the variable substitution.
7377test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7378
7379test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7380
7381test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7382
7383
7384# Extract the first word of "bzip2", so it can be a program name with args.
7385set dummy bzip2; ac_word=$2
7386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_BZIP2+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 case $BZIP2 in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007402 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 +00007403 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407done
7408done
7409IFS=$as_save_IFS
7410
Reid Spencera773bd52006-08-04 18:18:08 +00007411 ;;
7412esac
7413fi
7414BZIP2=$ac_cv_path_BZIP2
7415if test -n "$BZIP2"; then
7416 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7417echo "${ECHO_T}$BZIP2" >&6; }
7418else
7419 { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
7421fi
7422
7423
7424# Extract the first word of "doxygen", so it can be a program name with args.
7425set dummy doxygen; ac_word=$2
7426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_DOXYGEN+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 case $DOXYGEN in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007442 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 +00007443 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449IFS=$as_save_IFS
7450
Reid Spencera773bd52006-08-04 18:18:08 +00007451 ;;
7452esac
7453fi
7454DOXYGEN=$ac_cv_path_DOXYGEN
7455if test -n "$DOXYGEN"; then
7456 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7457echo "${ECHO_T}$DOXYGEN" >&6; }
7458else
7459 { echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6; }
7461fi
7462
7463
Reid Spencera773bd52006-08-04 18:18:08 +00007464# Extract the first word of "groff", so it can be a program name with args.
7465set dummy groff; ac_word=$2
7466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468if test "${ac_cv_path_GROFF+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 case $GROFF in
7472 [\\/]* | ?:[\\/]*)
7473 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7474 ;;
7475 *)
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007482 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 +00007483 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487done
7488done
7489IFS=$as_save_IFS
7490
Reid Spencera773bd52006-08-04 18:18:08 +00007491 ;;
7492esac
7493fi
7494GROFF=$ac_cv_path_GROFF
7495if test -n "$GROFF"; then
7496 { echo "$as_me:$LINENO: result: $GROFF" >&5
7497echo "${ECHO_T}$GROFF" >&6; }
7498else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
7501fi
7502
7503
7504# Extract the first word of "gzip", so it can be a program name with args.
7505set dummy gzip; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_GZIP+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $GZIP in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007522 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 +00007523 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
Reid Spencera773bd52006-08-04 18:18:08 +00007531 ;;
7532esac
7533fi
7534GZIP=$ac_cv_path_GZIP
7535if test -n "$GZIP"; then
7536 { echo "$as_me:$LINENO: result: $GZIP" >&5
7537echo "${ECHO_T}$GZIP" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
7544# Extract the first word of "pod2html", so it can be a program name with args.
7545set dummy pod2html; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_POD2HTML+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $POD2HTML in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007562 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 +00007563 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569IFS=$as_save_IFS
7570
Reid Spencera773bd52006-08-04 18:18:08 +00007571 ;;
7572esac
7573fi
7574POD2HTML=$ac_cv_path_POD2HTML
7575if test -n "$POD2HTML"; then
7576 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7577echo "${ECHO_T}$POD2HTML" >&6; }
7578else
7579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
7581fi
7582
7583
7584# Extract the first word of "pod2man", so it can be a program name with args.
7585set dummy pod2man; ac_word=$2
7586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588if test "${ac_cv_path_POD2MAN+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 case $POD2MAN in
7592 [\\/]* | ?:[\\/]*)
7593 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007602 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 +00007603 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607done
7608done
7609IFS=$as_save_IFS
7610
Reid Spencera773bd52006-08-04 18:18:08 +00007611 ;;
7612esac
7613fi
7614POD2MAN=$ac_cv_path_POD2MAN
7615if test -n "$POD2MAN"; then
7616 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7617echo "${ECHO_T}$POD2MAN" >&6; }
7618else
7619 { echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6; }
7621fi
7622
7623
7624# Extract the first word of "runtest", so it can be a program name with args.
7625set dummy runtest; ac_word=$2
7626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628if test "${ac_cv_path_RUNTEST+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631 case $RUNTEST in
7632 [\\/]* | ?:[\\/]*)
7633 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7634 ;;
7635 *)
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007642 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 +00007643 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648done
7649IFS=$as_save_IFS
7650
Reid Spencera773bd52006-08-04 18:18:08 +00007651 ;;
7652esac
7653fi
7654RUNTEST=$ac_cv_path_RUNTEST
7655if test -n "$RUNTEST"; then
7656 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7657echo "${ECHO_T}$RUNTEST" >&6; }
7658else
7659 { echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6; }
7661fi
7662
7663
7664
7665no_itcl=true
7666{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7667echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7668
7669# Check whether --with-tclinclude was given.
7670if test "${with_tclinclude+set}" = set; then
7671 withval=$with_tclinclude; with_tclinclude=${withval}
7672else
7673 with_tclinclude=''
7674fi
7675
7676if test "${ac_cv_path_tclsh+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679
7680if test x"${with_tclinclude}" != x ; then
7681 if test -f ${with_tclinclude}/tclsh ; then
7682 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7683 elif test -f ${with_tclinclude}/src/tclsh ; then
7684 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7685 else
7686 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7687echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7688 { (exit 1); exit 1; }; }
7689 fi
7690fi
7691
7692if test x"${ac_cv_path_tclsh}" = x ; then
7693 { echo "$as_me:$LINENO: result: none" >&5
7694echo "${ECHO_T}none" >&6; }
7695 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
7696do
7697 # Extract the first word of "$ac_prog", so it can be a program name with args.
7698set dummy $ac_prog; ac_word=$2
7699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701if test "${ac_cv_path_TCLSH+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704 case $TCLSH in
7705 [\\/]* | ?:[\\/]*)
7706 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7707 ;;
7708 *)
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007715 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 +00007716 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720done
7721done
7722IFS=$as_save_IFS
7723
7724 ;;
7725esac
7726fi
7727TCLSH=$ac_cv_path_TCLSH
7728if test -n "$TCLSH"; then
7729 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7730echo "${ECHO_T}$TCLSH" >&6; }
7731else
7732 { echo "$as_me:$LINENO: result: no" >&5
7733echo "${ECHO_T}no" >&6; }
7734fi
7735
7736
7737 test -n "$TCLSH" && break
7738done
7739
7740 if test x"${TCLSH}" = x ; then
7741 ac_cv_path_tclsh='';
7742 else
7743 ac_cv_path_tclsh="${TCLSH}";
7744 fi
7745else
7746 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7747echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7748 TCLSH="${ac_cv_path_tclsh}"
7749
7750fi
7751
7752fi
7753
7754# Extract the first word of "zip", so it can be a program name with args.
7755set dummy zip; ac_word=$2
7756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7758if test "${ac_cv_path_ZIP+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761 case $ZIP in
7762 [\\/]* | ?:[\\/]*)
7763 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7764 ;;
7765 *)
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007772 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 +00007773 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777done
7778done
7779IFS=$as_save_IFS
7780
Reid Spencera773bd52006-08-04 18:18:08 +00007781 ;;
7782esac
7783fi
7784ZIP=$ac_cv_path_ZIP
7785if test -n "$ZIP"; then
7786 { echo "$as_me:$LINENO: result: $ZIP" >&5
7787echo "${ECHO_T}$ZIP" >&6; }
7788else
7789 { echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6; }
7791fi
7792
7793
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007794for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007795do
7796 # Extract the first word of "$ac_prog", so it can be a program name with args.
7797set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800if test "${ac_cv_path_OCAMLC+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 case $OCAMLC in
7804 [\\/]* | ?:[\\/]*)
7805 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7806 ;;
7807 *)
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007814 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 +00007815 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819done
7820done
7821IFS=$as_save_IFS
7822
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007823 ;;
7824esac
7825fi
7826OCAMLC=$ac_cv_path_OCAMLC
7827if test -n "$OCAMLC"; then
7828 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7829echo "${ECHO_T}$OCAMLC" >&6; }
7830else
7831 { echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6; }
7833fi
7834
7835
Gordon Henriksene7072162008-03-07 18:20:01 +00007836 test -n "$OCAMLC" && break
7837done
7838
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007839for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007840do
7841 # Extract the first word of "$ac_prog", so it can be a program name with args.
7842set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848 case $OCAMLOPT in
7849 [\\/]* | ?:[\\/]*)
7850 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7851 ;;
7852 *)
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007859 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 +00007860 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865done
7866IFS=$as_save_IFS
7867
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007868 ;;
7869esac
7870fi
7871OCAMLOPT=$ac_cv_path_OCAMLOPT
7872if test -n "$OCAMLOPT"; then
7873 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7874echo "${ECHO_T}$OCAMLOPT" >&6; }
7875else
7876 { echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6; }
7878fi
7879
7880
Gordon Henriksene7072162008-03-07 18:20:01 +00007881 test -n "$OCAMLOPT" && break
7882done
7883
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007884for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007885do
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893 case $OCAMLDEP in
7894 [\\/]* | ?:[\\/]*)
7895 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7896 ;;
7897 *)
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007904 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 +00007905 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909done
7910done
7911IFS=$as_save_IFS
7912
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007913 ;;
7914esac
7915fi
7916OCAMLDEP=$ac_cv_path_OCAMLDEP
7917if test -n "$OCAMLDEP"; then
7918 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7919echo "${ECHO_T}$OCAMLDEP" >&6; }
7920else
7921 { echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6; }
7923fi
7924
7925
Gordon Henriksene7072162008-03-07 18:20:01 +00007926 test -n "$OCAMLDEP" && break
7927done
7928
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007929for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007930do
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932set dummy $ac_prog; ac_word=$2
7933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7935if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938 case $OCAMLDOC in
7939 [\\/]* | ?:[\\/]*)
7940 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7941 ;;
7942 *)
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007950 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955done
7956IFS=$as_save_IFS
7957
7958 ;;
7959esac
7960fi
7961OCAMLDOC=$ac_cv_path_OCAMLDOC
7962if test -n "$OCAMLDOC"; then
7963 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7964echo "${ECHO_T}$OCAMLDOC" >&6; }
7965else
7966 { echo "$as_me:$LINENO: result: no" >&5
7967echo "${ECHO_T}no" >&6; }
7968fi
7969
7970
7971 test -n "$OCAMLDOC" && break
7972done
7973
Torok Edwincc499a42008-10-22 09:56:27 +00007974for ac_prog in gas as
7975do
7976 # Extract the first word of "$ac_prog", so it can be a program name with args.
7977set dummy $ac_prog; ac_word=$2
7978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7980if test "${ac_cv_path_GAS+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 case $GAS in
7984 [\\/]* | ?:[\\/]*)
7985 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7986 ;;
7987 *)
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007995 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999done
8000done
8001IFS=$as_save_IFS
8002
8003 ;;
8004esac
8005fi
8006GAS=$ac_cv_path_GAS
8007if test -n "$GAS"; then
8008 { echo "$as_me:$LINENO: result: $GAS" >&5
8009echo "${ECHO_T}$GAS" >&6; }
8010else
8011 { echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6; }
8013fi
8014
8015
8016 test -n "$GAS" && break
8017done
8018
Reid Spencera773bd52006-08-04 18:18:08 +00008019
8020{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8021echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8022if test "${llvm_cv_link_use_r+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025 ac_ext=c
8026ac_cpp='$CPP $CPPFLAGS'
8027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031 oldcflags="$CFLAGS"
8032 CFLAGS="$CFLAGS -Wl,-R."
8033 cat >conftest.$ac_ext <<_ACEOF
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
8039
8040int
8041main ()
8042{
8043int main() { return 0; }
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext conftest$ac_exeext
8049if { (ac_try="$ac_link"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008082 llvm_cv_link_use_r=yes
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 llvm_cv_link_use_r=no
8088fi
8089
Bill Wendlingebcceee2009-04-18 11:20:33 +00008090rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008091 conftest$ac_exeext conftest.$ac_ext
8092 CFLAGS="$oldcflags"
8093 ac_ext=c
8094ac_cpp='$CPP $CPPFLAGS'
8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099
8100fi
8101{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8102echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8103if test "$llvm_cv_link_use_r" = yes ; then
8104
8105cat >>confdefs.h <<\_ACEOF
8106#define HAVE_LINK_R 1
8107_ACEOF
8108
8109 fi
8110
8111
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008112{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8113echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8114if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117 ac_ext=c
8118ac_cpp='$CPP $CPPFLAGS'
8119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123 oldcflags="$CFLAGS"
8124 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8125 cat >conftest.$ac_ext <<_ACEOF
8126/* confdefs.h. */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h. */
8131
8132int
8133main ()
8134{
8135int main() { return 0; }
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext conftest$ac_exeext
8141if { (ac_try="$ac_link"
8142case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168esac
8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008174 llvm_cv_link_use_export_dynamic=yes
8175else
8176 echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 llvm_cv_link_use_export_dynamic=no
8180fi
8181
Bill Wendlingebcceee2009-04-18 11:20:33 +00008182rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008183 conftest$ac_exeext conftest.$ac_ext
8184 CFLAGS="$oldcflags"
8185 ac_ext=c
8186ac_cpp='$CPP $CPPFLAGS'
8187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8189ac_compiler_gnu=$ac_cv_c_compiler_gnu
8190
8191
8192fi
8193{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8194echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8195if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8196
8197cat >>confdefs.h <<\_ACEOF
8198#define HAVE_LINK_EXPORT_DYNAMIC 1
8199_ACEOF
8200
8201 fi
8202
8203
Reid Spencera773bd52006-08-04 18:18:08 +00008204
8205
8206{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8207echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8208if test "${ac_cv_c_const+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
8217
8218int
8219main ()
8220{
8221/* FIXME: Include the comments suggested by Paul. */
8222#ifndef __cplusplus
8223 /* Ultrix mips cc rejects this. */
8224 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008225 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008226 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008227 char const *const *ccp;
8228 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008229 /* NEC SVR4.0.2 mips cc rejects this. */
8230 struct point {int x, y;};
8231 static struct point const zero = {0,0};
8232 /* AIX XL C 1.02.0.0 rejects this.
8233 It does not let you subtract one const X* pointer from another in
8234 an arm of an if-expression whose if-part is not a constant
8235 expression */
8236 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008237 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008238 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008239 ++ccp;
8240 p = (char**) ccp;
8241 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008242 { /* SCO 3.2v4 cc rejects this. */
8243 char *t;
8244 char const *s = 0 ? (char *) 0 : (char const *) 0;
8245
8246 *t++ = 0;
8247 if (s) return 0;
8248 }
8249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8250 int x[] = {25, 17};
8251 const int *foo = &x[0];
8252 ++foo;
8253 }
8254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8255 typedef const int *iptr;
8256 iptr p = 0;
8257 ++p;
8258 }
8259 { /* AIX XL C 1.02.0.0 rejects this saying
8260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8261 struct s { int j; const int *ap[3]; };
8262 struct s *b; b->j = 5;
8263 }
8264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8265 const int foo = 10;
8266 if (!foo) return 0;
8267 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008268 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008269#endif
8270
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext
8276if { (ac_try="$ac_compile"
8277case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008309 ac_cv_c_const=yes
8310else
8311 echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ac_cv_c_const=no
8315fi
8316
8317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318fi
8319{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8320echo "${ECHO_T}$ac_cv_c_const" >&6; }
8321if test $ac_cv_c_const = no; then
8322
8323cat >>confdefs.h <<\_ACEOF
8324#define const
8325_ACEOF
8326
8327fi
8328
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008329
8330
8331
8332
8333
8334ac_header_dirent=no
8335for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8336 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008337{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8338echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 cat >conftest.$ac_ext <<_ACEOF
8343/* confdefs.h. */
8344_ACEOF
8345cat confdefs.h >>conftest.$ac_ext
8346cat >>conftest.$ac_ext <<_ACEOF
8347/* end confdefs.h. */
8348#include <sys/types.h>
8349#include <$ac_hdr>
8350
8351int
8352main ()
8353{
8354if ((DIR *) 0)
8355return 0;
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008361if { (ac_try="$ac_compile"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8375 { (case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378esac
8379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_try") 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_try") 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008394 eval "$as_ac_Header=yes"
8395else
8396 echo "$as_me: failed program was:" >&5
8397sed 's/^/| /' conftest.$ac_ext >&5
8398
Reid Spencera773bd52006-08-04 18:18:08 +00008399 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008400fi
Reid Spencera773bd52006-08-04 18:18:08 +00008401
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008403fi
Reid Spencera773bd52006-08-04 18:18:08 +00008404ac_res=`eval echo '${'$as_ac_Header'}'`
8405 { echo "$as_me:$LINENO: result: $ac_res" >&5
8406echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008407if test `eval echo '${'$as_ac_Header'}'` = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8410_ACEOF
8411
8412ac_header_dirent=$ac_hdr; break
8413fi
8414
8415done
8416# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8417if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008418 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8419echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008420if test "${ac_cv_search_opendir+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008424cat >conftest.$ac_ext <<_ACEOF
8425/* confdefs.h. */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h. */
8430
Reid Spencera773bd52006-08-04 18:18:08 +00008431/* Override any GCC internal prototype to avoid an error.
8432 Use char because int might match the return type of a GCC
8433 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008434#ifdef __cplusplus
8435extern "C"
8436#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008437char opendir ();
8438int
8439main ()
8440{
Reid Spencera773bd52006-08-04 18:18:08 +00008441return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008442 ;
8443 return 0;
8444}
8445_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008446for ac_lib in '' dir; do
8447 if test -z "$ac_lib"; then
8448 ac_res="none required"
8449 else
8450 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008452 fi
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (ac_try="$ac_link"
8455case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458esac
8459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471esac
8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_try") 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481esac
8482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_try") 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008487 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008488else
8489 echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008492
8493fi
8494
Bill Wendlingebcceee2009-04-18 11:20:33 +00008495rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008496 conftest$ac_exeext
8497 if test "${ac_cv_search_opendir+set}" = set; then
8498 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008499fi
John Criswell7a73b802003-06-30 21:59:07 +00008500done
Reid Spencera773bd52006-08-04 18:18:08 +00008501if test "${ac_cv_search_opendir+set}" = set; then
8502 :
8503else
8504 ac_cv_search_opendir=no
8505fi
8506rm conftest.$ac_ext
8507LIBS=$ac_func_search_save_LIBS
8508fi
8509{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8510echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8511ac_res=$ac_cv_search_opendir
8512if test "$ac_res" != no; then
8513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008514
Reid Spencera773bd52006-08-04 18:18:08 +00008515fi
8516
8517else
8518 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8519echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8520if test "${ac_cv_search_opendir+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522else
8523 ac_func_search_save_LIBS=$LIBS
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530
8531/* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8534#ifdef __cplusplus
8535extern "C"
8536#endif
8537char opendir ();
8538int
8539main ()
8540{
8541return opendir ();
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546for ac_lib in '' x; do
8547 if test -z "$ac_lib"; then
8548 ac_res="none required"
8549 else
8550 ac_res=-l$ac_lib
8551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8552 fi
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554if { (ac_try="$ac_link"
8555case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558esac
8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_link") 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8568 { (case "(($ac_try" in
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8571esac
8572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_try") 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581esac
8582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_try") 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008587 ac_cv_search_opendir=$ac_res
8588else
8589 echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592
8593fi
8594
Bill Wendlingebcceee2009-04-18 11:20:33 +00008595rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008596 conftest$ac_exeext
8597 if test "${ac_cv_search_opendir+set}" = set; then
8598 break
8599fi
8600done
8601if test "${ac_cv_search_opendir+set}" = set; then
8602 :
8603else
8604 ac_cv_search_opendir=no
8605fi
8606rm conftest.$ac_ext
8607LIBS=$ac_func_search_save_LIBS
8608fi
8609{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8611ac_res=$ac_cv_search_opendir
8612if test "$ac_res" != no; then
8613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8614
8615fi
8616
8617fi
John Criswell7a73b802003-06-30 21:59:07 +00008618
8619
8620for ac_header in dlfcn.h
8621do
8622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008627 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008628fi
Reid Spencera773bd52006-08-04 18:18:08 +00008629ac_res=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008632else
Brian Gaeke0a621332004-09-08 20:38:05 +00008633 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008634{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8635echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008636cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008637/* confdefs.h. */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008642$ac_includes_default
8643#include <$ac_header>
8644_ACEOF
8645rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008646if { (ac_try="$ac_compile"
8647case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
8651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008653 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8660 { (case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8663esac
8664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_try") 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try='test -s conftest.$ac_objext'
8670 { (case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673esac
8674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_try") 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008679 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008680else
8681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008682sed 's/^/| /' conftest.$ac_ext >&5
8683
Reid Spencera773bd52006-08-04 18:18:08 +00008684 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008685fi
Reid Spencera773bd52006-08-04 18:18:08 +00008686
8687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008690
8691# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008692{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008694cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
8700#include <$ac_header>
8701_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008702if { (ac_try="$ac_cpp conftest.$ac_ext"
8703case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706esac
8707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008714 (exit $ac_status); } >/dev/null; then
8715 if test -s conftest.err; then
8716 ac_cpp_err=$ac_c_preproc_warn_flag
8717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8718 else
8719 ac_cpp_err=
8720 fi
8721else
8722 ac_cpp_err=yes
8723fi
8724if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008725 ac_header_preproc=yes
8726else
8727 echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ac_header_preproc=no
8731fi
Reid Spencera773bd52006-08-04 18:18:08 +00008732
Brian Gaeke0a621332004-09-08 20:38:05 +00008733rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008734{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008736
8737# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008745 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008746 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008759 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008760## ----------------------------------- ##
8761## Report this to llvmbugs@cs.uiuc.edu ##
8762## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008763_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008764 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008765 ;;
8766esac
Reid Spencera773bd52006-08-04 18:18:08 +00008767{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008772 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008773fi
Reid Spencera773bd52006-08-04 18:18:08 +00008774ac_res=`eval echo '${'$as_ac_Header'}'`
8775 { echo "$as_me:$LINENO: result: $ac_res" >&5
8776echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008777
8778fi
John Criswell7a73b802003-06-30 21:59:07 +00008779if test `eval echo '${'$as_ac_Header'}'` = yes; then
8780 cat >>confdefs.h <<_ACEOF
8781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8782_ACEOF
8783
8784fi
8785
8786done
8787
Reid Spencera773bd52006-08-04 18:18:08 +00008788# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008789if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008790 enableval=$enable_ltdl_install;
8791fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008793
Bill Wendlingebcceee2009-04-18 11:20:33 +00008794
8795
8796if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008797 INSTALL_LTDL_TRUE=
8798 INSTALL_LTDL_FALSE='#'
8799else
8800 INSTALL_LTDL_TRUE='#'
8801 INSTALL_LTDL_FALSE=
8802fi
8803
Bill Wendlingebcceee2009-04-18 11:20:33 +00008804
8805
8806if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008807 CONVENIENCE_LTDL_TRUE=
8808 CONVENIENCE_LTDL_FALSE='#'
8809else
8810 CONVENIENCE_LTDL_TRUE='#'
8811 CONVENIENCE_LTDL_FALSE=
8812fi
8813
8814
Reid Spencera773bd52006-08-04 18:18:08 +00008815{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8816echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817library_names_spec=
8818libname_spec='lib$name'
8819soname_spec=
8820shrext_cmds=".so"
8821postinstall_cmds=
8822postuninstall_cmds=
8823finish_cmds=
8824finish_eval=
8825shlibpath_var=
8826shlibpath_overrides_runpath=unknown
8827version_type=none
8828dynamic_linker="$host_os ld.so"
8829sys_lib_dlsearch_path_spec="/lib /usr/lib"
8830if test "$GCC" = yes; then
8831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8832 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8833 # if the path contains ";" then we assume it to be the separator
8834 # otherwise default to the standard path separator (i.e. ":") - it is
8835 # assumed that no part of a normal pathname contains ";" but that should
8836 # okay in the real world where ";" in dirpaths is itself problematic.
8837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8838 else
8839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8840 fi
8841else
8842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8843fi
8844need_lib_prefix=unknown
8845hardcode_into_libs=no
8846
8847# when you set need_version to no, make sure it does not cause -set_version
8848# flags to be left without arguments
8849need_version=unknown
8850
8851case $host_os in
8852aix3*)
8853 version_type=linux
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8855 shlibpath_var=LIBPATH
8856
8857 # AIX 3 has no versioning support, so we append a major version to the name.
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 ;;
8860
8861aix4* | aix5*)
8862 version_type=linux
8863 need_lib_prefix=no
8864 need_version=no
8865 hardcode_into_libs=yes
8866 if test "$host_cpu" = ia64; then
8867 # AIX 5 supports IA64
8868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 else
8871 # With GCC up to 2.95.x, collect2 would create an import file
8872 # for dependence libraries. The import file would start with
8873 # the line `#! .'. This would cause the generated library to
8874 # depend on `.', always an invalid library. This was fixed in
8875 # development snapshots of GCC prior to 3.0.
8876 case $host_os in
8877 aix4 | aix4.[01] | aix4.[01].*)
8878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8879 echo ' yes '
8880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8881 :
8882 else
8883 can_build_shared=no
8884 fi
8885 ;;
8886 esac
8887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8888 # soname into executable. Probably we can add versioning support to
8889 # collect2, so additional links can be useful in future.
8890 if test "$aix_use_runtimelinking" = yes; then
8891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8892 # instead of lib<name>.a to let people know that these are not
8893 # typical AIX shared libraries.
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 else
8896 # We preserve .a as extension for shared libraries through AIX4.2
8897 # and later when we are not doing run time linking.
8898 library_names_spec='${libname}${release}.a $libname.a'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 fi
8901 shlibpath_var=LIBPATH
8902 fi
8903 ;;
8904
8905amigaos*)
8906 library_names_spec='$libname.ixlibrary $libname.a'
8907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8908 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'
8909 ;;
8910
8911beos*)
8912 library_names_spec='${libname}${shared_ext}'
8913 dynamic_linker="$host_os ld.so"
8914 shlibpath_var=LIBRARY_PATH
8915 ;;
8916
8917bsdi[45]*)
8918 version_type=linux
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8926 # the default ld.so.conf also contains /usr/contrib/lib and
8927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8928 # libtool to hard-code these into programs
8929 ;;
8930
8931cygwin* | mingw* | pw32*)
8932 version_type=windows
8933 shrext_cmds=".dll"
8934 need_version=no
8935 need_lib_prefix=no
8936
8937 case $GCC,$host_os in
8938 yes,cygwin* | yes,mingw* | yes,pw32*)
8939 library_names_spec='$libname.dll.a'
8940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8941 postinstall_cmds='base_file=`basename \${file}`~
8942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8943 dldir=$destdir/`dirname \$dlpath`~
8944 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008945 $install_prog $dir/$dlname \$dldir/$dlname~
8946 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8948 dlpath=$dir/\$dldll~
8949 $rm \$dlpath'
8950 shlibpath_overrides_runpath=yes
8951
8952 case $host_os in
8953 cygwin*)
8954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8957 ;;
8958 mingw*)
8959 # MinGW DLLs use traditional 'lib' prefix
8960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8963 # It is most probably a Windows format PATH printed by
8964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8965 # path with ; separators, and with drive letters. We can handle the
8966 # drive letters (cygwin fileutils understands them), so leave them,
8967 # especially as we might pass files found there to a mingw objdump,
8968 # which wouldn't understand a cygwinified path. Ahh.
8969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8970 else
8971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8972 fi
8973 ;;
8974 pw32*)
8975 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008976 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 +00008977 ;;
8978 esac
8979 ;;
8980
8981 *)
8982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8983 ;;
8984 esac
8985 dynamic_linker='Win32 ld.exe'
8986 # FIXME: first we should search . and the directory the executable is in
8987 shlibpath_var=PATH
8988 ;;
8989
8990darwin* | rhapsody*)
8991 dynamic_linker="$host_os dyld"
8992 version_type=darwin
8993 need_lib_prefix=no
8994 need_version=no
8995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8996 soname_spec='${libname}${release}${major}$shared_ext'
8997 shlibpath_overrides_runpath=yes
8998 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008999 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9001 if test "$GCC" = yes; then
9002 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"`
9003 else
9004 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9005 fi
9006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9007 ;;
9008
9009dgux*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 ;;
9017
9018freebsd1*)
9019 dynamic_linker=no
9020 ;;
9021
9022kfreebsd*-gnu)
9023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9031 dynamic_linker='GNU ld.so'
9032 ;;
9033
Reid Spencera773bd52006-08-04 18:18:08 +00009034freebsd* | dragonfly*)
9035 # DragonFly does not have aout. When/if they implement a new
9036 # versioning mechanism, adjust this.
9037 if test -x /usr/bin/objformat; then
9038 objformat=`/usr/bin/objformat`
9039 else
9040 case $host_os in
9041 freebsd[123]*) objformat=aout ;;
9042 *) objformat=elf ;;
9043 esac
9044 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009045 version_type=freebsd-$objformat
9046 case $version_type in
9047 freebsd-elf*)
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9049 need_version=no
9050 need_lib_prefix=no
9051 ;;
9052 freebsd-*)
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9054 need_version=yes
9055 ;;
9056 esac
9057 shlibpath_var=LD_LIBRARY_PATH
9058 case $host_os in
9059 freebsd2*)
9060 shlibpath_overrides_runpath=yes
9061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009062 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9065 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009068 shlibpath_overrides_runpath=no
9069 hardcode_into_libs=yes
9070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009071 freebsd*) # from 4.6 on
9072 shlibpath_overrides_runpath=yes
9073 hardcode_into_libs=yes
9074 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009075 esac
9076 ;;
9077
9078gnu*)
9079 version_type=linux
9080 need_lib_prefix=no
9081 need_version=no
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 hardcode_into_libs=yes
9086 ;;
9087
9088hpux9* | hpux10* | hpux11*)
9089 # Give a soname corresponding to the major version so that dld.sl refuses to
9090 # link against other versions.
9091 version_type=sunos
9092 need_lib_prefix=no
9093 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009094 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009095 ia64*)
9096 shrext_cmds='.so'
9097 hardcode_into_libs=yes
9098 dynamic_linker="$host_os dld.so"
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 if test "X$HPUX_IA64_MODE" = X32; then
9104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9105 else
9106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9107 fi
9108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9109 ;;
9110 hppa*64*)
9111 shrext_cmds='.sl'
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.sl"
9114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9120 ;;
9121 *)
9122 shrext_cmds='.sl'
9123 dynamic_linker="$host_os dld.sl"
9124 shlibpath_var=SHLIB_PATH
9125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 ;;
9129 esac
9130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9131 postinstall_cmds='chmod 555 $lib'
9132 ;;
9133
Reid Spencera773bd52006-08-04 18:18:08 +00009134interix3*)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=no
9143 hardcode_into_libs=yes
9144 ;;
9145
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009146irix5* | irix6* | nonstopux*)
9147 case $host_os in
9148 nonstopux*) version_type=nonstopux ;;
9149 *)
9150 if test "$lt_cv_prog_gnu_ld" = yes; then
9151 version_type=linux
9152 else
9153 version_type=irix
9154 fi ;;
9155 esac
9156 need_lib_prefix=no
9157 need_version=no
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9160 case $host_os in
9161 irix5* | nonstopux*)
9162 libsuff= shlibsuff=
9163 ;;
9164 *)
9165 case $LD in # libtool.m4 will add one of these switches to LD
9166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9167 libsuff= shlibsuff= libmagic=32-bit;;
9168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9169 libsuff=32 shlibsuff=N32 libmagic=N32;;
9170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9172 *) libsuff= shlibsuff= libmagic=never-match;;
9173 esac
9174 ;;
9175 esac
9176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9177 shlibpath_overrides_runpath=no
9178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9180 hardcode_into_libs=yes
9181 ;;
9182
9183# No shared lib support for Linux oldld, aout, or coff.
9184linux*oldld* | linux*aout* | linux*coff*)
9185 dynamic_linker=no
9186 ;;
9187
9188# This must be Linux ELF.
9189linux*)
9190 version_type=linux
9191 need_lib_prefix=no
9192 need_version=no
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=no
9198 # This implies no fast_install, which is unacceptable.
9199 # Some rework will be needed to allow for fast_install
9200 # before this can be enabled.
9201 hardcode_into_libs=yes
9202
9203 # Append ld.so.conf contents to the search path
9204 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009205 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 +00009206 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9207 fi
9208
9209 # We used to test for /lib/ld.so.1 and disable shared libraries on
9210 # powerpc, because MkLinux only supported shared libraries with the
9211 # GNU dynamic linker. Since this was broken with cross compilers,
9212 # most powerpc-linux boxes support dynamic linking these days and
9213 # people can always --disable-shared, the test was removed, and we
9214 # assume the GNU/Linux dynamic linker is in use.
9215 dynamic_linker='GNU/Linux ld.so'
9216 ;;
9217
9218knetbsd*-gnu)
9219 version_type=linux
9220 need_lib_prefix=no
9221 need_version=no
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=no
9226 hardcode_into_libs=yes
9227 dynamic_linker='GNU ld.so'
9228 ;;
9229
9230netbsd*)
9231 version_type=sunos
9232 need_lib_prefix=no
9233 need_version=no
9234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9237 dynamic_linker='NetBSD (a.out) ld.so'
9238 else
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 dynamic_linker='NetBSD ld.elf_so'
9242 fi
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes
9245 hardcode_into_libs=yes
9246 ;;
9247
9248newsos6)
9249 version_type=linux
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9253 ;;
9254
9255nto-qnx*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9263 ;;
9264
9265openbsd*)
9266 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009267 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009268 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9270 case $host_os in
9271 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9272 *) need_version=no ;;
9273 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9278 case $host_os in
9279 openbsd2.[89] | openbsd2.[89].*)
9280 shlibpath_overrides_runpath=no
9281 ;;
9282 *)
9283 shlibpath_overrides_runpath=yes
9284 ;;
9285 esac
9286 else
9287 shlibpath_overrides_runpath=yes
9288 fi
9289 ;;
9290
9291os2*)
9292 libname_spec='$name'
9293 shrext_cmds=".dll"
9294 need_lib_prefix=no
9295 library_names_spec='$libname${shared_ext} $libname.a'
9296 dynamic_linker='OS/2 ld.exe'
9297 shlibpath_var=LIBPATH
9298 ;;
9299
9300osf3* | osf4* | osf5*)
9301 version_type=osf
9302 need_lib_prefix=no
9303 need_version=no
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9309 ;;
9310
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009311solaris*)
9312 version_type=linux
9313 need_lib_prefix=no
9314 need_version=no
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9320 # ldd complains unless libraries are executable
9321 postinstall_cmds='chmod +x $lib'
9322 ;;
9323
9324sunos4*)
9325 version_type=sunos
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9330 if test "$with_gnu_ld" = yes; then
9331 need_lib_prefix=no
9332 fi
9333 need_version=yes
9334 ;;
9335
Reid Spencera773bd52006-08-04 18:18:08 +00009336sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 version_type=linux
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 case $host_vendor in
9342 sni)
9343 shlibpath_overrides_runpath=no
9344 need_lib_prefix=no
9345 export_dynamic_flag_spec='${wl}-Blargedynsym'
9346 runpath_var=LD_RUN_PATH
9347 ;;
9348 siemens)
9349 need_lib_prefix=no
9350 ;;
9351 motorola)
9352 need_lib_prefix=no
9353 need_version=no
9354 shlibpath_overrides_runpath=no
9355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9356 ;;
9357 esac
9358 ;;
9359
9360sysv4*MP*)
9361 if test -d /usr/nec ;then
9362 version_type=linux
9363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9364 soname_spec='$libname${shared_ext}.$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 fi
9367 ;;
9368
Reid Spencera773bd52006-08-04 18:18:08 +00009369sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9370 version_type=freebsd-elf
9371 need_lib_prefix=no
9372 need_version=no
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 hardcode_into_libs=yes
9377 if test "$with_gnu_ld" = yes; then
9378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9379 shlibpath_overrides_runpath=no
9380 else
9381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9382 shlibpath_overrides_runpath=yes
9383 case $host_os in
9384 sco3.2v5*)
9385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9386 ;;
9387 esac
9388 fi
9389 sys_lib_dlsearch_path_spec='/usr/lib'
9390 ;;
9391
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009392uts4*)
9393 version_type=linux
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 ;;
9398
9399*)
9400 dynamic_linker=no
9401 ;;
9402esac
Reid Spencera773bd52006-08-04 18:18:08 +00009403{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9404echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009405test "$dynamic_linker" = no && can_build_shared=no
9406
Reid Spencera773bd52006-08-04 18:18:08 +00009407variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9408if test "$GCC" = yes; then
9409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9410fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411
Reid Spencera773bd52006-08-04 18:18:08 +00009412
9413{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9414echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009415if test "${libltdl_cv_shlibext+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418
9419module=yes
9420eval libltdl_cv_shlibext=$shrext_cmds
9421
9422fi
Reid Spencera773bd52006-08-04 18:18:08 +00009423{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9424echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425if test -n "$libltdl_cv_shlibext"; then
9426
9427cat >>confdefs.h <<_ACEOF
9428#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9429_ACEOF
9430
9431fi
9432
9433
Reid Spencera773bd52006-08-04 18:18:08 +00009434{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9435echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436if test "${libltdl_cv_shlibpath_var+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438else
9439 libltdl_cv_shlibpath_var="$shlibpath_var"
9440fi
Reid Spencera773bd52006-08-04 18:18:08 +00009441{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9442echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009443if test -n "$libltdl_cv_shlibpath_var"; then
9444
9445cat >>confdefs.h <<_ACEOF
9446#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9447_ACEOF
9448
9449fi
9450
9451
Reid Spencera773bd52006-08-04 18:18:08 +00009452{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9453echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454if test "${libltdl_cv_sys_search_path+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9458fi
Reid Spencera773bd52006-08-04 18:18:08 +00009459{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9460echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009461if test -n "$libltdl_cv_sys_search_path"; then
9462 sys_search_path=
9463 for dir in $libltdl_cv_sys_search_path; do
9464 if test -z "$sys_search_path"; then
9465 sys_search_path="$dir"
9466 else
9467 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9468 fi
9469 done
9470
9471cat >>confdefs.h <<_ACEOF
9472#define LTDL_SYSSEARCHPATH "$sys_search_path"
9473_ACEOF
9474
9475fi
9476
Reid Spencera773bd52006-08-04 18:18:08 +00009477{ echo "$as_me:$LINENO: checking for objdir" >&5
9478echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009479if test "${libltdl_cv_objdir+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 libltdl_cv_objdir="$objdir"
9483 if test -n "$objdir"; then
9484 :
9485 else
9486 rm -f .libs 2>/dev/null
9487 mkdir .libs 2>/dev/null
9488 if test -d .libs; then
9489 libltdl_cv_objdir=.libs
9490 else
9491 # MS-DOS does not allow filenames that begin with a dot.
9492 libltdl_cv_objdir=_libs
9493 fi
9494 rmdir .libs 2>/dev/null
9495 fi
9496
9497fi
Reid Spencera773bd52006-08-04 18:18:08 +00009498{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9499echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500
9501cat >>confdefs.h <<_ACEOF
9502#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9503_ACEOF
9504
9505
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506
9507
9508
9509
9510# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009511{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9512echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516
9517# These are sane defaults that work on at least a few old systems.
9518# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9519
9520# Character class describing NM global symbol codes.
9521symcode='[BCDEGRST]'
9522
9523# Regexp to match symbols that can be accessed directly from C.
9524sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9525
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009526# Transform an extracted symbol line into a proper C declaration
9527lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9528
9529# Transform an extracted symbol line into symbol name and symbol address
9530lt_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'"
9531
9532# Define system-specific variables.
9533case $host_os in
9534aix*)
9535 symcode='[BCDT]'
9536 ;;
9537cygwin* | mingw* | pw32*)
9538 symcode='[ABCDGISTW]'
9539 ;;
9540hpux*) # Its linker distinguishes data from code symbols
9541 if test "$host_cpu" = ia64; then
9542 symcode='[ABCDEGRST]'
9543 fi
9544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9545 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'"
9546 ;;
9547linux*)
9548 if test "$host_cpu" = ia64; then
9549 symcode='[ABCDGIRSTW]'
9550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9551 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'"
9552 fi
9553 ;;
9554irix* | nonstopux*)
9555 symcode='[BCDEGRST]'
9556 ;;
9557osf*)
9558 symcode='[BCDEGQRST]'
9559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009560solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009561 symcode='[BDRT]'
9562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009563sco3.2v5*)
9564 symcode='[DT]'
9565 ;;
9566sysv4.2uw2*)
9567 symcode='[DT]'
9568 ;;
9569sysv5* | sco5v6* | unixware* | OpenUNIX*)
9570 symcode='[ABDT]'
9571 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572sysv4)
9573 symcode='[DFNSTU]'
9574 ;;
9575esac
9576
9577# Handle CRLF in mingw tool chain
9578opt_cr=
9579case $build_os in
9580mingw*)
9581 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9582 ;;
9583esac
9584
9585# If we're using GNU nm, then use its standard symbol codes.
9586case `$NM -V 2>&1` in
9587*GNU* | *'with BFD'*)
9588 symcode='[ABCDGIRSTW]' ;;
9589esac
9590
9591# Try without a prefix undercore, then with it.
9592for ac_symprfx in "" "_"; do
9593
Reid Spencera773bd52006-08-04 18:18:08 +00009594 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9595 symxfrm="\\1 $ac_symprfx\\2 \\2"
9596
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009597 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009598 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 +00009599
9600 # Check to see that the pipe works correctly.
9601 pipe_works=no
9602
9603 rm -f conftest*
9604 cat > conftest.$ac_ext <<EOF
9605#ifdef __cplusplus
9606extern "C" {
9607#endif
9608char nm_test_var;
9609void nm_test_func(){}
9610#ifdef __cplusplus
9611}
9612#endif
9613int main(){nm_test_var='a';nm_test_func();return(0);}
9614EOF
9615
9616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9617 (eval $ac_compile) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; then
9621 # Now try to grab the symbols.
9622 nlist=conftest.nm
9623 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9624 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && test -s "$nlist"; then
9628 # Try sorting and uniquifying the output.
9629 if sort "$nlist" | uniq > "$nlist"T; then
9630 mv -f "$nlist"T "$nlist"
9631 else
9632 rm -f "$nlist"T
9633 fi
9634
9635 # Make sure that we snagged all the symbols we need.
9636 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9637 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9638 cat <<EOF > conftest.$ac_ext
9639#ifdef __cplusplus
9640extern "C" {
9641#endif
9642
9643EOF
9644 # Now generate the symbol file.
9645 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9646
9647 cat <<EOF >> conftest.$ac_ext
9648#if defined (__STDC__) && __STDC__
9649# define lt_ptr_t void *
9650#else
9651# define lt_ptr_t char *
9652# define const
9653#endif
9654
9655/* The mapping between symbol names and symbols. */
9656const struct {
9657 const char *name;
9658 lt_ptr_t address;
9659}
9660lt_preloaded_symbols[] =
9661{
9662EOF
9663 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9664 cat <<\EOF >> conftest.$ac_ext
9665 {0, (lt_ptr_t) 0}
9666};
9667
9668#ifdef __cplusplus
9669}
9670#endif
9671EOF
9672 # Now try linking the two files.
9673 mv conftest.$ac_objext conftstm.$ac_objext
9674 lt_save_LIBS="$LIBS"
9675 lt_save_CFLAGS="$CFLAGS"
9676 LIBS="conftstm.$ac_objext"
9677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9683 pipe_works=yes
9684 fi
9685 LIBS="$lt_save_LIBS"
9686 CFLAGS="$lt_save_CFLAGS"
9687 else
9688 echo "cannot find nm_test_func in $nlist" >&5
9689 fi
9690 else
9691 echo "cannot find nm_test_var in $nlist" >&5
9692 fi
9693 else
9694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9695 fi
9696 else
9697 echo "$progname: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 fi
9700 rm -f conftest* conftst*
9701
9702 # Do not use the global_symbol_pipe unless it works.
9703 if test "$pipe_works" = yes; then
9704 break
9705 else
9706 lt_cv_sys_global_symbol_pipe=
9707 fi
9708done
9709
9710fi
9711
9712if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713 lt_cv_sys_global_symbol_to_cdecl=
9714fi
9715if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009716 { echo "$as_me:$LINENO: result: failed" >&5
9717echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009718else
Reid Spencera773bd52006-08-04 18:18:08 +00009719 { echo "$as_me:$LINENO: result: ok" >&5
9720echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009721fi
9722
9723
Reid Spencera773bd52006-08-04 18:18:08 +00009724{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9725echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728else
9729 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9730 libltdl_cv_preloaded_symbols=yes
9731 else
9732 libltdl_cv_preloaded_symbols=no
9733 fi
9734
9735fi
Reid Spencera773bd52006-08-04 18:18:08 +00009736{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9737echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009738if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9739
9740cat >>confdefs.h <<\_ACEOF
9741#define HAVE_PRELOADED_SYMBOLS 1
9742_ACEOF
9743
9744fi
9745
9746LIBADD_DL=
9747
9748ac_ext=c
9749ac_cpp='$CPP $CPPFLAGS'
9750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9752ac_compiler_gnu=$ac_cv_c_compiler_gnu
9753
9754
Reid Spencera773bd52006-08-04 18:18:08 +00009755{ echo "$as_me:$LINENO: checking for shl_load" >&5
9756echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757if test "${ac_cv_func_shl_load+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760 cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h. */
9766/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9768#define shl_load innocuous_shl_load
9769
9770/* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char shl_load (); below.
9772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773 <limits.h> exists even on freestanding compilers. */
9774
9775#ifdef __STDC__
9776# include <limits.h>
9777#else
9778# include <assert.h>
9779#endif
9780
9781#undef shl_load
9782
Reid Spencera773bd52006-08-04 18:18:08 +00009783/* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786#ifdef __cplusplus
9787extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789char shl_load ();
9790/* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009793#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009795#endif
9796
9797int
9798main ()
9799{
Reid Spencera773bd52006-08-04 18:18:08 +00009800return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801 ;
9802 return 0;
9803}
9804_ACEOF
9805rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009806if { (ac_try="$ac_link"
9807case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 ac_cv_func_shl_load=yes
9840else
9841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
Reid Spencera773bd52006-08-04 18:18:08 +00009844 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845fi
Reid Spencera773bd52006-08-04 18:18:08 +00009846
Bill Wendlingebcceee2009-04-18 11:20:33 +00009847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848 conftest$ac_exeext conftest.$ac_ext
9849fi
Reid Spencera773bd52006-08-04 18:18:08 +00009850{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9851echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852if test $ac_cv_func_shl_load = yes; then
9853
9854cat >>confdefs.h <<\_ACEOF
9855#define HAVE_SHL_LOAD 1
9856_ACEOF
9857
9858else
Reid Spencera773bd52006-08-04 18:18:08 +00009859 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9860echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-ldld $LIBS"
9866cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
9872
Reid Spencera773bd52006-08-04 18:18:08 +00009873/* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876#ifdef __cplusplus
9877extern "C"
9878#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879char shl_load ();
9880int
9881main ()
9882{
Reid Spencera773bd52006-08-04 18:18:08 +00009883return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884 ;
9885 return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009889if { (ac_try="$ac_link"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009922 ac_cv_lib_dld_shl_load=yes
9923else
9924 echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
Reid Spencera773bd52006-08-04 18:18:08 +00009927 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928fi
Reid Spencera773bd52006-08-04 18:18:08 +00009929
Bill Wendlingebcceee2009-04-18 11:20:33 +00009930rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931 conftest$ac_exeext conftest.$ac_ext
9932LIBS=$ac_check_lib_save_LIBS
9933fi
Reid Spencera773bd52006-08-04 18:18:08 +00009934{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9935echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936if test $ac_cv_lib_dld_shl_load = yes; then
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define HAVE_SHL_LOAD 1
9940_ACEOF
9941
9942 LIBADD_DL="$LIBADD_DL -ldld"
9943else
Reid Spencera773bd52006-08-04 18:18:08 +00009944 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9945echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 ac_check_lib_save_LIBS=$LIBS
9950LIBS="-ldl $LIBS"
9951cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h. */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h. */
9957
Reid Spencera773bd52006-08-04 18:18:08 +00009958/* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961#ifdef __cplusplus
9962extern "C"
9963#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964char dlopen ();
9965int
9966main ()
9967{
Reid Spencera773bd52006-08-04 18:18:08 +00009968return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969 ;
9970 return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009974if { (ac_try="$ac_link"
9975case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010007 ac_cv_lib_dl_dlopen=yes
10008else
10009 echo "$as_me: failed program was:" >&5
10010sed 's/^/| /' conftest.$ac_ext >&5
10011
Reid Spencera773bd52006-08-04 18:18:08 +000010012 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013fi
Reid Spencera773bd52006-08-04 18:18:08 +000010014
Bill Wendlingebcceee2009-04-18 11:20:33 +000010015rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016 conftest$ac_exeext conftest.$ac_ext
10017LIBS=$ac_check_lib_save_LIBS
10018fi
Reid Spencera773bd52006-08-04 18:18:08 +000010019{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10020echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021if test $ac_cv_lib_dl_dlopen = yes; then
10022
10023cat >>confdefs.h <<\_ACEOF
10024#define HAVE_LIBDL 1
10025_ACEOF
10026
10027 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10028else
10029 cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h. */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h. */
10035#if HAVE_DLFCN_H
10036# include <dlfcn.h>
10037#endif
10038
10039int
10040main ()
10041{
10042dlopen(0, 0);
10043 ;
10044 return 0;
10045}
10046_ACEOF
10047rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010048if { (ac_try="$ac_link"
10049case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081
10082cat >>confdefs.h <<\_ACEOF
10083#define HAVE_LIBDL 1
10084_ACEOF
10085 libltdl_cv_func_dlopen="yes"
10086else
10087 echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
Reid Spencera773bd52006-08-04 18:18:08 +000010090 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10091echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094else
10095 ac_check_lib_save_LIBS=$LIBS
10096LIBS="-lsvld $LIBS"
10097cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h. */
10103
Reid Spencera773bd52006-08-04 18:18:08 +000010104/* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107#ifdef __cplusplus
10108extern "C"
10109#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110char dlopen ();
10111int
10112main ()
10113{
Reid Spencera773bd52006-08-04 18:18:08 +000010114return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115 ;
10116 return 0;
10117}
10118_ACEOF
10119rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010120if { (ac_try="$ac_link"
10121case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153 ac_cv_lib_svld_dlopen=yes
10154else
10155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
Reid Spencera773bd52006-08-04 18:18:08 +000010158 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159fi
Reid Spencera773bd52006-08-04 18:18:08 +000010160
Bill Wendlingebcceee2009-04-18 11:20:33 +000010161rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162 conftest$ac_exeext conftest.$ac_ext
10163LIBS=$ac_check_lib_save_LIBS
10164fi
Reid Spencera773bd52006-08-04 18:18:08 +000010165{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167if test $ac_cv_lib_svld_dlopen = yes; then
10168
10169cat >>confdefs.h <<\_ACEOF
10170#define HAVE_LIBDL 1
10171_ACEOF
10172
10173 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10174else
Reid Spencera773bd52006-08-04 18:18:08 +000010175 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10176echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010177if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179else
10180 ac_check_lib_save_LIBS=$LIBS
10181LIBS="-ldld $LIBS"
10182cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188
Reid Spencera773bd52006-08-04 18:18:08 +000010189/* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192#ifdef __cplusplus
10193extern "C"
10194#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195char dld_link ();
10196int
10197main ()
10198{
Reid Spencera773bd52006-08-04 18:18:08 +000010199return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200 ;
10201 return 0;
10202}
10203_ACEOF
10204rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010205if { (ac_try="$ac_link"
10206case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238 ac_cv_lib_dld_dld_link=yes
10239else
10240 echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
Reid Spencera773bd52006-08-04 18:18:08 +000010243 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244fi
Reid Spencera773bd52006-08-04 18:18:08 +000010245
Bill Wendlingebcceee2009-04-18 11:20:33 +000010246rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010247 conftest$ac_exeext conftest.$ac_ext
10248LIBS=$ac_check_lib_save_LIBS
10249fi
Reid Spencera773bd52006-08-04 18:18:08 +000010250{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10251echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010252if test $ac_cv_lib_dld_dld_link = yes; then
10253
10254cat >>confdefs.h <<\_ACEOF
10255#define HAVE_DLD 1
10256_ACEOF
10257
10258 LIBADD_DL="$LIBADD_DL -ldld"
10259else
Reid Spencera773bd52006-08-04 18:18:08 +000010260 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10261echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265 cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h. */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h. */
10271/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10273#define _dyld_func_lookup innocuous__dyld_func_lookup
10274
10275/* System header to define __stub macros and hopefully few prototypes,
10276 which can conflict with char _dyld_func_lookup (); below.
10277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10278 <limits.h> exists even on freestanding compilers. */
10279
10280#ifdef __STDC__
10281# include <limits.h>
10282#else
10283# include <assert.h>
10284#endif
10285
10286#undef _dyld_func_lookup
10287
Reid Spencera773bd52006-08-04 18:18:08 +000010288/* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291#ifdef __cplusplus
10292extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010294char _dyld_func_lookup ();
10295/* The GNU C library defines this for functions which it implements
10296 to always fail with ENOSYS. Some functions are actually named
10297 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010298#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300#endif
10301
10302int
10303main ()
10304{
Reid Spencera773bd52006-08-04 18:18:08 +000010305return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010311if { (ac_try="$ac_link"
10312case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315esac
10316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10338esac
10339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_try") 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344 ac_cv_func__dyld_func_lookup=yes
10345else
10346 echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
Reid Spencera773bd52006-08-04 18:18:08 +000010349 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350fi
Reid Spencera773bd52006-08-04 18:18:08 +000010351
Bill Wendlingebcceee2009-04-18 11:20:33 +000010352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353 conftest$ac_exeext conftest.$ac_ext
10354fi
Reid Spencera773bd52006-08-04 18:18:08 +000010355{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10356echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357if test $ac_cv_func__dyld_func_lookup = yes; then
10358
10359cat >>confdefs.h <<\_ACEOF
10360#define HAVE_DYLD 1
10361_ACEOF
10362
10363fi
10364
10365
10366fi
10367
10368
10369fi
10370
10371
10372fi
Reid Spencera773bd52006-08-04 18:18:08 +000010373
Bill Wendlingebcceee2009-04-18 11:20:33 +000010374rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375 conftest$ac_exeext conftest.$ac_ext
10376
10377fi
10378
10379
10380fi
10381
10382
10383fi
10384
10385
10386if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10387then
10388 lt_save_LIBS="$LIBS"
10389 LIBS="$LIBS $LIBADD_DL"
10390
10391for ac_func in dlerror
10392do
10393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010394{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10396if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398else
10399 cat >conftest.$ac_ext <<_ACEOF
10400/* confdefs.h. */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h. */
10405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10407#define $ac_func innocuous_$ac_func
10408
10409/* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char $ac_func (); below.
10411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412 <limits.h> exists even on freestanding compilers. */
10413
10414#ifdef __STDC__
10415# include <limits.h>
10416#else
10417# include <assert.h>
10418#endif
10419
10420#undef $ac_func
10421
Reid Spencera773bd52006-08-04 18:18:08 +000010422/* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425#ifdef __cplusplus
10426extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428char $ac_func ();
10429/* The GNU C library defines this for functions which it implements
10430 to always fail with ENOSYS. Some functions are actually named
10431 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010432#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434#endif
10435
10436int
10437main ()
10438{
Reid Spencera773bd52006-08-04 18:18:08 +000010439return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 ;
10441 return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010445if { (ac_try="$ac_link"
10446case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449esac
10450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010457 (exit $ac_status); } &&
10458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462esac
10463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_try") 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_try") 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478 eval "$as_ac_var=yes"
10479else
10480 echo "$as_me: failed program was:" >&5
10481sed 's/^/| /' conftest.$ac_ext >&5
10482
Reid Spencera773bd52006-08-04 18:18:08 +000010483 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484fi
Reid Spencera773bd52006-08-04 18:18:08 +000010485
Bill Wendlingebcceee2009-04-18 11:20:33 +000010486rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487 conftest$ac_exeext conftest.$ac_ext
10488fi
Reid Spencera773bd52006-08-04 18:18:08 +000010489ac_res=`eval echo '${'$as_ac_var'}'`
10490 { echo "$as_me:$LINENO: result: $ac_res" >&5
10491echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492if test `eval echo '${'$as_ac_var'}'` = yes; then
10493 cat >>confdefs.h <<_ACEOF
10494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10495_ACEOF
10496
10497fi
10498done
10499
10500 LIBS="$lt_save_LIBS"
10501fi
10502ac_ext=c
10503ac_cpp='$CPP $CPPFLAGS'
10504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10506ac_compiler_gnu=$ac_cv_c_compiler_gnu
10507
10508
10509
Reid Spencera773bd52006-08-04 18:18:08 +000010510{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10511echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514else
10515 ac_cv_sys_symbol_underscore=no
10516 cat > conftest.$ac_ext <<EOF
10517void nm_test_func(){}
10518int main(){nm_test_func;return 0;}
10519EOF
10520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521 (eval $ac_compile) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; then
10525 # Now try to grab the symbols.
10526 ac_nlist=conftest.nm
10527 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10528 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && test -s "$ac_nlist"; then
10532 # See whether the symbols have a leading underscore.
10533 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10534 ac_cv_sys_symbol_underscore=yes
10535 else
10536 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10537 :
10538 else
10539 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10540 fi
10541 fi
10542 else
10543 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10544 fi
10545 else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.c >&5
10548 fi
10549 rm -rf conftest*
10550
10551fi
Reid Spencera773bd52006-08-04 18:18:08 +000010552{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10553echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554
10555
10556if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10557 if test x"$libltdl_cv_func_dlopen" = xyes ||
10558 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010559 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10560echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561if test "${libltdl_cv_need_uscore+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563else
10564 libltdl_cv_need_uscore=unknown
10565 save_LIBS="$LIBS"
10566 LIBS="$LIBS $LIBADD_DL"
10567 if test "$cross_compiling" = yes; then :
10568 libltdl_cv_need_uscore=cross
10569else
10570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571 lt_status=$lt_dlunknown
10572 cat > conftest.$ac_ext <<EOF
Owen Andersond4b272b2009-05-18 23:58:51 +000010573#line 10573 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574#include "confdefs.h"
10575
10576#if HAVE_DLFCN_H
10577#include <dlfcn.h>
10578#endif
10579
10580#include <stdio.h>
10581
10582#ifdef RTLD_GLOBAL
10583# define LT_DLGLOBAL RTLD_GLOBAL
10584#else
10585# ifdef DL_GLOBAL
10586# define LT_DLGLOBAL DL_GLOBAL
10587# else
10588# define LT_DLGLOBAL 0
10589# endif
10590#endif
10591
10592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593 find out it does not work in some platform. */
10594#ifndef LT_DLLAZY_OR_NOW
10595# ifdef RTLD_LAZY
10596# define LT_DLLAZY_OR_NOW RTLD_LAZY
10597# else
10598# ifdef DL_LAZY
10599# define LT_DLLAZY_OR_NOW DL_LAZY
10600# else
10601# ifdef RTLD_NOW
10602# define LT_DLLAZY_OR_NOW RTLD_NOW
10603# else
10604# ifdef DL_NOW
10605# define LT_DLLAZY_OR_NOW DL_NOW
10606# else
10607# define LT_DLLAZY_OR_NOW 0
10608# endif
10609# endif
10610# endif
10611# endif
10612#endif
10613
10614#ifdef __cplusplus
10615extern "C" void exit (int);
10616#endif
10617
10618void fnord() { int i=42;}
10619int main ()
10620{
10621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622 int status = $lt_dlunknown;
10623
10624 if (self)
10625 {
10626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628 /* dlclose (self); */
10629 }
Reid Spencera773bd52006-08-04 18:18:08 +000010630 else
10631 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632
10633 exit (status);
10634}
10635EOF
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010641 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642 lt_status=$?
10643 case x$lt_status in
10644 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10645 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010646 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 esac
10648 else :
10649 # compilation failed
10650
10651 fi
10652fi
10653rm -fr conftest*
10654
10655 LIBS="$save_LIBS"
10656
10657fi
Reid Spencera773bd52006-08-04 18:18:08 +000010658{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10659echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660 fi
10661fi
10662
10663if test x"$libltdl_cv_need_uscore" = xyes; then
10664
10665cat >>confdefs.h <<\_ACEOF
10666#define NEED_USCORE 1
10667_ACEOF
10668
10669fi
10670
10671
Reid Spencera773bd52006-08-04 18:18:08 +000010672{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10673echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676else
10677 # PORTME does your system automatically load deplibs for dlopen?
10678 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10679 # For now, we just catch OSes we know something about -- in the
10680 # future, we'll try test this programmatically.
10681 libltdl_cv_sys_dlopen_deplibs=unknown
10682 case "$host_os" in
10683 aix3*|aix4.1.*|aix4.2.*)
10684 # Unknown whether this is true for these versions of AIX, but
10685 # we want this `case' here to explicitly catch those versions.
10686 libltdl_cv_sys_dlopen_deplibs=unknown
10687 ;;
10688 aix[45]*)
10689 libltdl_cv_sys_dlopen_deplibs=yes
10690 ;;
10691 darwin*)
10692 # Assuming the user has installed a libdl from somewhere, this is true
10693 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10694 libltdl_cv_sys_dlopen_deplibs=yes
10695 ;;
10696 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10697 # GNU and its variants, using gnu ld.so (Glibc)
10698 libltdl_cv_sys_dlopen_deplibs=yes
10699 ;;
10700 hpux10*|hpux11*)
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010703 interix*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706 irix[12345]*|irix6.[01]*)
10707 # Catch all versions of IRIX before 6.2, and indicate that we don't
10708 # know how it worked for any of those versions.
10709 libltdl_cv_sys_dlopen_deplibs=unknown
10710 ;;
10711 irix*)
10712 # The case above catches anything before 6.2, and it's known that
10713 # at 6.2 and later dlopen does load deplibs.
10714 libltdl_cv_sys_dlopen_deplibs=yes
10715 ;;
10716 netbsd*)
10717 libltdl_cv_sys_dlopen_deplibs=yes
10718 ;;
10719 openbsd*)
10720 libltdl_cv_sys_dlopen_deplibs=yes
10721 ;;
10722 osf[1234]*)
10723 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10724 # it did *not* use an RPATH in a shared library to find objects the
10725 # library depends on, so we explictly say `no'.
10726 libltdl_cv_sys_dlopen_deplibs=no
10727 ;;
10728 osf5.0|osf5.0a|osf5.1)
10729 # dlopen *does* load deplibs and with the right loader patch applied
10730 # it even uses RPATH in a shared library to search for shared objects
10731 # that the library depends on, but there's no easy way to know if that
10732 # patch is installed. Since this is the case, all we can really
10733 # say is unknown -- it depends on the patch being installed. If
10734 # it is, this changes to `yes'. Without it, it would be `no'.
10735 libltdl_cv_sys_dlopen_deplibs=unknown
10736 ;;
10737 osf*)
10738 # the two cases above should catch all versions of osf <= 5.1. Read
10739 # the comments above for what we know about them.
10740 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10741 # is used to find them so we can finally say `yes'.
10742 libltdl_cv_sys_dlopen_deplibs=yes
10743 ;;
10744 solaris*)
10745 libltdl_cv_sys_dlopen_deplibs=yes
10746 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10748 libltdl_cv_sys_dlopen_deplibs=yes
10749 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750 esac
10751
10752fi
Reid Spencera773bd52006-08-04 18:18:08 +000010753{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10754echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10756
10757cat >>confdefs.h <<\_ACEOF
10758#define LTDL_DLOPEN_DEPLIBS 1
10759_ACEOF
10760
10761fi
10762
10763
10764for ac_header in argz.h
10765do
10766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772fi
Reid Spencera773bd52006-08-04 18:18:08 +000010773ac_res=`eval echo '${'$as_ac_Header'}'`
10774 { echo "$as_me:$LINENO: result: $ac_res" >&5
10775echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776else
10777 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010778{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780cat >conftest.$ac_ext <<_ACEOF
10781/* confdefs.h. */
10782_ACEOF
10783cat confdefs.h >>conftest.$ac_ext
10784cat >>conftest.$ac_ext <<_ACEOF
10785/* end confdefs.h. */
10786$ac_includes_default
10787#include <$ac_header>
10788_ACEOF
10789rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010790if { (ac_try="$ac_compile"
10791case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797 ac_status=$?
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010802 (exit $ac_status); } &&
10803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; } &&
10813 { ac_try='test -s conftest.$ac_objext'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817esac
10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823 ac_header_compiler=yes
10824else
10825 echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
Reid Spencera773bd52006-08-04 18:18:08 +000010828 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829fi
Reid Spencera773bd52006-08-04 18:18:08 +000010830
10831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834
10835# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010836{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h. */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */
10844#include <$ac_header>
10845_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010846if { (ac_try="$ac_cpp conftest.$ac_ext"
10847case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850esac
10851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010858 (exit $ac_status); } >/dev/null; then
10859 if test -s conftest.err; then
10860 ac_cpp_err=$ac_c_preproc_warn_flag
10861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10862 else
10863 ac_cpp_err=
10864 fi
10865else
10866 ac_cpp_err=yes
10867fi
10868if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010869 ac_header_preproc=yes
10870else
10871 echo "$as_me: failed program was:" >&5
10872sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 ac_header_preproc=no
10875fi
Reid Spencera773bd52006-08-04 18:18:08 +000010876
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010878{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10879echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880
10881# So? What about this header?
10882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10883 yes:no: )
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10885echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10887echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10888 ac_header_preproc=yes
10889 ;;
10890 no:yes:* )
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10896echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10898echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10902echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010903 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904## ----------------------------------- ##
10905## Report this to llvmbugs@cs.uiuc.edu ##
10906## ----------------------------------- ##
10907_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010908 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909 ;;
10910esac
Reid Spencera773bd52006-08-04 18:18:08 +000010911{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 eval "$as_ac_Header=\$ac_header_preproc"
10917fi
Reid Spencera773bd52006-08-04 18:18:08 +000010918ac_res=`eval echo '${'$as_ac_Header'}'`
10919 { echo "$as_me:$LINENO: result: $ac_res" >&5
10920echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921
10922fi
10923if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10926_ACEOF
10927
10928fi
10929
10930done
10931
10932
Reid Spencera773bd52006-08-04 18:18:08 +000010933{ echo "$as_me:$LINENO: checking for error_t" >&5
10934echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935if test "${ac_cv_type_error_t+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 cat >conftest.$ac_ext <<_ACEOF
10939/* confdefs.h. */
10940_ACEOF
10941cat confdefs.h >>conftest.$ac_ext
10942cat >>conftest.$ac_ext <<_ACEOF
10943/* end confdefs.h. */
10944#if HAVE_ARGZ_H
10945# include <argz.h>
10946#endif
10947
Reid Spencera773bd52006-08-04 18:18:08 +000010948typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949int
10950main ()
10951{
Reid Spencera773bd52006-08-04 18:18:08 +000010952if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010954if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955 return 0;
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010961if { (ac_try="$ac_compile"
10962case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
10966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10975 { (case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978esac
10979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_try") 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988esac
10989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994 ac_cv_type_error_t=yes
10995else
10996 echo "$as_me: failed program was:" >&5
10997sed 's/^/| /' conftest.$ac_ext >&5
10998
Reid Spencera773bd52006-08-04 18:18:08 +000010999 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000fi
Reid Spencera773bd52006-08-04 18:18:08 +000011001
11002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003fi
Reid Spencera773bd52006-08-04 18:18:08 +000011004{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11005echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006if test $ac_cv_type_error_t = yes; then
11007
11008cat >>confdefs.h <<_ACEOF
11009#define HAVE_ERROR_T 1
11010_ACEOF
11011
11012
11013else
11014
11015cat >>confdefs.h <<\_ACEOF
11016#define error_t int
11017_ACEOF
11018
11019fi
11020
11021
11022
11023
11024
11025
11026
11027for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11028do
11029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011030{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11032if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11043#define $ac_func innocuous_$ac_func
11044
11045/* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char $ac_func (); below.
11047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11048 <limits.h> exists even on freestanding compilers. */
11049
11050#ifdef __STDC__
11051# include <limits.h>
11052#else
11053# include <assert.h>
11054#endif
11055
11056#undef $ac_func
11057
Reid Spencera773bd52006-08-04 18:18:08 +000011058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061#ifdef __cplusplus
11062extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011064char $ac_func ();
11065/* The GNU C library defines this for functions which it implements
11066 to always fail with ENOSYS. Some functions are actually named
11067 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011068#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070#endif
11071
11072int
11073main ()
11074{
Reid Spencera773bd52006-08-04 18:18:08 +000011075return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076 ;
11077 return 0;
11078}
11079_ACEOF
11080rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011081if { (ac_try="$ac_link"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114 eval "$as_ac_var=yes"
11115else
11116 echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
Reid Spencera773bd52006-08-04 18:18:08 +000011119 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120fi
Reid Spencera773bd52006-08-04 18:18:08 +000011121
Bill Wendlingebcceee2009-04-18 11:20:33 +000011122rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123 conftest$ac_exeext conftest.$ac_ext
11124fi
Reid Spencera773bd52006-08-04 18:18:08 +000011125ac_res=`eval echo '${'$as_ac_var'}'`
11126 { echo "$as_me:$LINENO: result: $ac_res" >&5
11127echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128if test `eval echo '${'$as_ac_var'}'` = yes; then
11129 cat >>confdefs.h <<_ACEOF
11130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131_ACEOF
11132
11133fi
11134done
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11164 stdio.h unistd.h
11165do
11166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172fi
Reid Spencera773bd52006-08-04 18:18:08 +000011173ac_res=`eval echo '${'$as_ac_Header'}'`
11174 { echo "$as_me:$LINENO: result: $ac_res" >&5
11175echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176else
11177 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011178{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h. */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h. */
11186$ac_includes_default
11187#include <$ac_header>
11188_ACEOF
11189rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011190if { (ac_try="$ac_compile"
11191case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194esac
11195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204 { (case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207esac
11208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_try") 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217esac
11218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11220 ac_status=$?
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011223 ac_header_compiler=yes
11224else
11225 echo "$as_me: failed program was:" >&5
11226sed 's/^/| /' conftest.$ac_ext >&5
11227
Reid Spencera773bd52006-08-04 18:18:08 +000011228 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229fi
Reid Spencera773bd52006-08-04 18:18:08 +000011230
11231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11233echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234
11235# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011236{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011238cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244#include <$ac_header>
11245_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011246if { (ac_try="$ac_cpp conftest.$ac_ext"
11247case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250esac
11251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011258 (exit $ac_status); } >/dev/null; then
11259 if test -s conftest.err; then
11260 ac_cpp_err=$ac_c_preproc_warn_flag
11261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11262 else
11263 ac_cpp_err=
11264 fi
11265else
11266 ac_cpp_err=yes
11267fi
11268if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269 ac_header_preproc=yes
11270else
11271 echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274 ac_header_preproc=no
11275fi
Reid Spencera773bd52006-08-04 18:18:08 +000011276
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011278{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280
11281# So? What about this header?
11282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283 yes:no: )
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11288 ac_header_preproc=yes
11289 ;;
11290 no:yes:* )
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011303 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304## ----------------------------------- ##
11305## Report this to llvmbugs@cs.uiuc.edu ##
11306## ----------------------------------- ##
11307_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011308 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309 ;;
11310esac
Reid Spencera773bd52006-08-04 18:18:08 +000011311{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 eval "$as_ac_Header=\$ac_header_preproc"
11317fi
Reid Spencera773bd52006-08-04 18:18:08 +000011318ac_res=`eval echo '${'$as_ac_Header'}'`
11319 { echo "$as_me:$LINENO: result: $ac_res" >&5
11320echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321
11322fi
11323if test `eval echo '${'$as_ac_Header'}'` = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326_ACEOF
11327
11328fi
11329
11330done
11331
11332
11333
11334
11335
11336for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11337do
11338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344fi
Reid Spencera773bd52006-08-04 18:18:08 +000011345ac_res=`eval echo '${'$as_ac_Header'}'`
11346 { echo "$as_me:$LINENO: result: $ac_res" >&5
11347echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011348else
11349 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011350{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352cat >conftest.$ac_ext <<_ACEOF
11353/* confdefs.h. */
11354_ACEOF
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h. */
11358$ac_includes_default
11359#include <$ac_header>
11360_ACEOF
11361rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011362if { (ac_try="$ac_compile"
11363case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366esac
11367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379esac
11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try='test -s conftest.$ac_objext'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011395 ac_header_compiler=yes
11396else
11397 echo "$as_me: failed program was:" >&5
11398sed 's/^/| /' conftest.$ac_ext >&5
11399
Reid Spencera773bd52006-08-04 18:18:08 +000011400 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011401fi
Reid Spencera773bd52006-08-04 18:18:08 +000011402
11403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406
11407# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011408{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
11416#include <$ac_header>
11417_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011418if { (ac_try="$ac_cpp conftest.$ac_ext"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011430 (exit $ac_status); } >/dev/null; then
11431 if test -s conftest.err; then
11432 ac_cpp_err=$ac_c_preproc_warn_flag
11433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11434 else
11435 ac_cpp_err=
11436 fi
11437else
11438 ac_cpp_err=yes
11439fi
11440if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011441 ac_header_preproc=yes
11442else
11443 echo "$as_me: failed program was:" >&5
11444sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_header_preproc=no
11447fi
Reid Spencera773bd52006-08-04 18:18:08 +000011448
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11451echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452
11453# So? What about this header?
11454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11455 yes:no: )
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11460 ac_header_preproc=yes
11461 ;;
11462 no:yes:* )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011475 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476## ----------------------------------- ##
11477## Report this to llvmbugs@cs.uiuc.edu ##
11478## ----------------------------------- ##
11479_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011480 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011481 ;;
11482esac
Reid Spencera773bd52006-08-04 18:18:08 +000011483{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488 eval "$as_ac_Header=\$ac_header_preproc"
11489fi
Reid Spencera773bd52006-08-04 18:18:08 +000011490ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493
11494fi
11495if test `eval echo '${'$as_ac_Header'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11498_ACEOF
11499
11500fi
11501
11502done
11503
11504
11505
11506for ac_header in string.h strings.h
11507do
11508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514fi
Reid Spencera773bd52006-08-04 18:18:08 +000011515ac_res=`eval echo '${'$as_ac_Header'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518else
11519 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
11528$ac_includes_default
11529#include <$ac_header>
11530_ACEOF
11531rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011532if { (ac_try="$ac_compile"
11533case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11559esac
11560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565 ac_header_compiler=yes
11566else
11567 echo "$as_me: failed program was:" >&5
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
Reid Spencera773bd52006-08-04 18:18:08 +000011570 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571fi
Reid Spencera773bd52006-08-04 18:18:08 +000011572
11573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576
11577# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
11586#include <$ac_header>
11587_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011588if { (ac_try="$ac_cpp conftest.$ac_ext"
11589case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11592esac
11593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011600 (exit $ac_status); } >/dev/null; then
11601 if test -s conftest.err; then
11602 ac_cpp_err=$ac_c_preproc_warn_flag
11603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11604 else
11605 ac_cpp_err=
11606 fi
11607else
11608 ac_cpp_err=yes
11609fi
11610if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611 ac_header_preproc=yes
11612else
11613 echo "$as_me: failed program was:" >&5
11614sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_header_preproc=no
11617fi
Reid Spencera773bd52006-08-04 18:18:08 +000011618
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011622
11623# So? What about this header?
11624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625 yes:no: )
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11630 ac_header_preproc=yes
11631 ;;
11632 no:yes:* )
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011645 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646## ----------------------------------- ##
11647## Report this to llvmbugs@cs.uiuc.edu ##
11648## ----------------------------------- ##
11649_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011650 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651 ;;
11652esac
Reid Spencera773bd52006-08-04 18:18:08 +000011653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 eval "$as_ac_Header=\$ac_header_preproc"
11659fi
Reid Spencera773bd52006-08-04 18:18:08 +000011660ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663
11664fi
11665if test `eval echo '${'$as_ac_Header'}'` = yes; then
11666 cat >>confdefs.h <<_ACEOF
11667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668_ACEOF
11669 break
11670fi
11671
11672done
11673
11674
11675
11676
11677for ac_func in strchr index
11678do
11679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011680{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11682if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684else
11685 cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
11691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11693#define $ac_func innocuous_$ac_func
11694
11695/* System header to define __stub macros and hopefully few prototypes,
11696 which can conflict with char $ac_func (); below.
11697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11698 <limits.h> exists even on freestanding compilers. */
11699
11700#ifdef __STDC__
11701# include <limits.h>
11702#else
11703# include <assert.h>
11704#endif
11705
11706#undef $ac_func
11707
Reid Spencera773bd52006-08-04 18:18:08 +000011708/* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711#ifdef __cplusplus
11712extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011713#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011714char $ac_func ();
11715/* The GNU C library defines this for functions which it implements
11716 to always fail with ENOSYS. Some functions are actually named
11717 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011718#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720#endif
11721
11722int
11723main ()
11724{
Reid Spencera773bd52006-08-04 18:18:08 +000011725return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011731if { (ac_try="$ac_link"
11732case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735esac
11736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest$ac_exeext'
11755 { (case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11758esac
11759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_try") 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764 eval "$as_ac_var=yes"
11765else
11766 echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
Reid Spencera773bd52006-08-04 18:18:08 +000011769 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770fi
Reid Spencera773bd52006-08-04 18:18:08 +000011771
Bill Wendlingebcceee2009-04-18 11:20:33 +000011772rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773 conftest$ac_exeext conftest.$ac_ext
11774fi
Reid Spencera773bd52006-08-04 18:18:08 +000011775ac_res=`eval echo '${'$as_ac_var'}'`
11776 { echo "$as_me:$LINENO: result: $ac_res" >&5
11777echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778if test `eval echo '${'$as_ac_var'}'` = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11781_ACEOF
11782 break
11783fi
11784done
11785
11786
11787
11788for ac_func in strrchr rindex
11789do
11790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011791{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11793if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11804#define $ac_func innocuous_$ac_func
11805
11806/* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below.
11808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 <limits.h> exists even on freestanding compilers. */
11810
11811#ifdef __STDC__
11812# include <limits.h>
11813#else
11814# include <assert.h>
11815#endif
11816
11817#undef $ac_func
11818
Reid Spencera773bd52006-08-04 18:18:08 +000011819/* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822#ifdef __cplusplus
11823extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825char $ac_func ();
11826/* The GNU C library defines this for functions which it implements
11827 to always fail with ENOSYS. Some functions are actually named
11828 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011829#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831#endif
11832
11833int
11834main ()
11835{
Reid Spencera773bd52006-08-04 18:18:08 +000011836return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837 ;
11838 return 0;
11839}
11840_ACEOF
11841rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011842if { (ac_try="$ac_link"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869esac
11870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011875 eval "$as_ac_var=yes"
11876else
11877 echo "$as_me: failed program was:" >&5
11878sed 's/^/| /' conftest.$ac_ext >&5
11879
Reid Spencera773bd52006-08-04 18:18:08 +000011880 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881fi
Reid Spencera773bd52006-08-04 18:18:08 +000011882
Bill Wendlingebcceee2009-04-18 11:20:33 +000011883rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884 conftest$ac_exeext conftest.$ac_ext
11885fi
Reid Spencera773bd52006-08-04 18:18:08 +000011886ac_res=`eval echo '${'$as_ac_var'}'`
11887 { echo "$as_me:$LINENO: result: $ac_res" >&5
11888echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889if test `eval echo '${'$as_ac_var'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892_ACEOF
11893 break
11894fi
11895done
11896
11897
11898
11899for ac_func in memcpy bcopy
11900do
11901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011902{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11904if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907 cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11915#define $ac_func innocuous_$ac_func
11916
11917/* System header to define __stub macros and hopefully few prototypes,
11918 which can conflict with char $ac_func (); below.
11919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11920 <limits.h> exists even on freestanding compilers. */
11921
11922#ifdef __STDC__
11923# include <limits.h>
11924#else
11925# include <assert.h>
11926#endif
11927
11928#undef $ac_func
11929
Reid Spencera773bd52006-08-04 18:18:08 +000011930/* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933#ifdef __cplusplus
11934extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011936char $ac_func ();
11937/* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011940#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942#endif
11943
11944int
11945main ()
11946{
Reid Spencera773bd52006-08-04 18:18:08 +000011947return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 ;
11949 return 0;
11950}
11951_ACEOF
11952rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011953if { (ac_try="$ac_link"
11954case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957esac
11958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970esac
11971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980esac
11981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011986 eval "$as_ac_var=yes"
11987else
11988 echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
Reid Spencera773bd52006-08-04 18:18:08 +000011991 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992fi
Reid Spencera773bd52006-08-04 18:18:08 +000011993
Bill Wendlingebcceee2009-04-18 11:20:33 +000011994rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995 conftest$ac_exeext conftest.$ac_ext
11996fi
Reid Spencera773bd52006-08-04 18:18:08 +000011997ac_res=`eval echo '${'$as_ac_var'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000if test `eval echo '${'$as_ac_var'}'` = yes; then
12001 cat >>confdefs.h <<_ACEOF
12002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003_ACEOF
12004 break
12005fi
12006done
12007
12008
12009
12010for ac_func in memmove strcmp
12011do
12012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018 cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12026#define $ac_func innocuous_$ac_func
12027
12028/* System header to define __stub macros and hopefully few prototypes,
12029 which can conflict with char $ac_func (); below.
12030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031 <limits.h> exists even on freestanding compilers. */
12032
12033#ifdef __STDC__
12034# include <limits.h>
12035#else
12036# include <assert.h>
12037#endif
12038
12039#undef $ac_func
12040
Reid Spencera773bd52006-08-04 18:18:08 +000012041/* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044#ifdef __cplusplus
12045extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012047char $ac_func ();
12048/* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012051#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053#endif
12054
12055int
12056main ()
12057{
Reid Spencera773bd52006-08-04 18:18:08 +000012058return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059 ;
12060 return 0;
12061}
12062_ACEOF
12063rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012064if { (ac_try="$ac_link"
12065case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068esac
12069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012097 eval "$as_ac_var=yes"
12098else
12099 echo "$as_me: failed program was:" >&5
12100sed 's/^/| /' conftest.$ac_ext >&5
12101
Reid Spencera773bd52006-08-04 18:18:08 +000012102 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103fi
Reid Spencera773bd52006-08-04 18:18:08 +000012104
Bill Wendlingebcceee2009-04-18 11:20:33 +000012105rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012106 conftest$ac_exeext conftest.$ac_ext
12107fi
Reid Spencera773bd52006-08-04 18:18:08 +000012108ac_res=`eval echo '${'$as_ac_var'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111if test `eval echo '${'$as_ac_var'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114_ACEOF
12115
12116fi
12117done
12118
12119
12120
12121
12122for ac_func in closedir opendir readdir
12123do
12124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130 cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12138#define $ac_func innocuous_$ac_func
12139
12140/* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below.
12142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143 <limits.h> exists even on freestanding compilers. */
12144
12145#ifdef __STDC__
12146# include <limits.h>
12147#else
12148# include <assert.h>
12149#endif
12150
12151#undef $ac_func
12152
Reid Spencera773bd52006-08-04 18:18:08 +000012153/* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012156#ifdef __cplusplus
12157extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012158#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159char $ac_func ();
12160/* The GNU C library defines this for functions which it implements
12161 to always fail with ENOSYS. Some functions are actually named
12162 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012163#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165#endif
12166
12167int
12168main ()
12169{
Reid Spencera773bd52006-08-04 18:18:08 +000012170return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171 ;
12172 return 0;
12173}
12174_ACEOF
12175rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012176if { (ac_try="$ac_link"
12177case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180esac
12181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest$ac_exeext'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203esac
12204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012209 eval "$as_ac_var=yes"
12210else
12211 echo "$as_me: failed program was:" >&5
12212sed 's/^/| /' conftest.$ac_ext >&5
12213
Reid Spencera773bd52006-08-04 18:18:08 +000012214 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012215fi
Reid Spencera773bd52006-08-04 18:18:08 +000012216
Bill Wendlingebcceee2009-04-18 11:20:33 +000012217rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218 conftest$ac_exeext conftest.$ac_ext
12219fi
Reid Spencera773bd52006-08-04 18:18:08 +000012220ac_res=`eval echo '${'$as_ac_var'}'`
12221 { echo "$as_me:$LINENO: result: $ac_res" >&5
12222echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223if test `eval echo '${'$as_ac_var'}'` = yes; then
12224 cat >>confdefs.h <<_ACEOF
12225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12226_ACEOF
12227
12228fi
12229done
12230
12231
Reid Spencera773bd52006-08-04 18:18:08 +000012232# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012234 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012235 case $enableval in
12236 yes) enable_shared=yes ;;
12237 no) enable_shared=no ;;
12238 *)
12239 enable_shared=no
12240 # Look at the argument we got. We use all the common list separators.
12241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12242 for pkg in $enableval; do
12243 IFS="$lt_save_ifs"
12244 if test "X$pkg" = "X$p"; then
12245 enable_shared=yes
12246 fi
12247 done
12248 IFS="$lt_save_ifs"
12249 ;;
12250 esac
12251else
12252 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012253fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254
Reid Spencera773bd52006-08-04 18:18:08 +000012255
12256# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012258 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259 case $enableval in
12260 yes) enable_static=yes ;;
12261 no) enable_static=no ;;
12262 *)
12263 enable_static=no
12264 # Look at the argument we got. We use all the common list separators.
12265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12266 for pkg in $enableval; do
12267 IFS="$lt_save_ifs"
12268 if test "X$pkg" = "X$p"; then
12269 enable_static=yes
12270 fi
12271 done
12272 IFS="$lt_save_ifs"
12273 ;;
12274 esac
12275else
12276 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012277fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278
Reid Spencera773bd52006-08-04 18:18:08 +000012279
12280# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012282 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283 case $enableval in
12284 yes) enable_fast_install=yes ;;
12285 no) enable_fast_install=no ;;
12286 *)
12287 enable_fast_install=no
12288 # Look at the argument we got. We use all the common list separators.
12289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12290 for pkg in $enableval; do
12291 IFS="$lt_save_ifs"
12292 if test "X$pkg" = "X$p"; then
12293 enable_fast_install=yes
12294 fi
12295 done
12296 IFS="$lt_save_ifs"
12297 ;;
12298 esac
12299else
12300 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012301fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012302
Reid Spencera773bd52006-08-04 18:18:08 +000012303
12304{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12305echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012306if test "${lt_cv_path_SED+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 # Loop through the user's path and test for sed and gsed.
12310# Then use that list of sed's as ones to test for truncation.
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for lt_ac_prog in sed gsed; do
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12319 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12320 fi
12321 done
12322 done
12323done
12324lt_ac_max=0
12325lt_ac_count=0
12326# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12327# along with /bin/sed that truncates output.
12328for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012329 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330 cat /dev/null > conftest.in
12331 lt_ac_count=0
12332 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12333 # Check for GNU sed and select it if it is found.
12334 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12335 lt_cv_path_SED=$lt_ac_sed
12336 break
12337 fi
12338 while true; do
12339 cat conftest.in conftest.in >conftest.tmp
12340 mv conftest.tmp conftest.in
12341 cp conftest.in conftest.nl
12342 echo >>conftest.nl
12343 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12344 cmp -s conftest.out conftest.nl || break
12345 # 10000 chars as input seems more than enough
12346 test $lt_ac_count -gt 10 && break
12347 lt_ac_count=`expr $lt_ac_count + 1`
12348 if test $lt_ac_count -gt $lt_ac_max; then
12349 lt_ac_max=$lt_ac_count
12350 lt_cv_path_SED=$lt_ac_sed
12351 fi
12352 done
12353done
12354
12355fi
12356
12357SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012358{ echo "$as_me:$LINENO: result: $SED" >&5
12359echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360
12361
Reid Spencera773bd52006-08-04 18:18:08 +000012362# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012364 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365else
12366 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012367fi
12368
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012369ac_prog=ld
12370if test "$GCC" = yes; then
12371 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012372 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12373echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374 case $host in
12375 *-*-mingw*)
12376 # gcc leaves a trailing carriage return which upsets mingw
12377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12378 *)
12379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12380 esac
12381 case $ac_prog in
12382 # Accept absolute paths.
12383 [\\/]* | ?:[\\/]*)
12384 re_direlt='/[^/][^/]*/\.\./'
12385 # Canonicalize the pathname of ld
12386 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12387 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12388 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12389 done
12390 test -z "$LD" && LD="$ac_prog"
12391 ;;
12392 "")
12393 # If it fails, then pretend we aren't using GCC.
12394 ac_prog=ld
12395 ;;
12396 *)
12397 # If it is relative, then search for the first ld in PATH.
12398 with_gnu_ld=unknown
12399 ;;
12400 esac
12401elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012402 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12403echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012404else
Reid Spencera773bd52006-08-04 18:18:08 +000012405 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12406echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012407fi
12408if test "${lt_cv_path_LD+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410else
12411 if test -z "$LD"; then
12412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12413 for ac_dir in $PATH; do
12414 IFS="$lt_save_ifs"
12415 test -z "$ac_dir" && ac_dir=.
12416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12417 lt_cv_path_LD="$ac_dir/$ac_prog"
12418 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012419 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012420 # Break only if it was the GNU/non-GNU ld that we prefer.
12421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12422 *GNU* | *'with BFD'*)
12423 test "$with_gnu_ld" != no && break
12424 ;;
12425 *)
12426 test "$with_gnu_ld" != yes && break
12427 ;;
12428 esac
12429 fi
12430 done
12431 IFS="$lt_save_ifs"
12432else
12433 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12434fi
12435fi
12436
12437LD="$lt_cv_path_LD"
12438if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012439 { echo "$as_me:$LINENO: result: $LD" >&5
12440echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012441else
Reid Spencera773bd52006-08-04 18:18:08 +000012442 { echo "$as_me:$LINENO: result: no" >&5
12443echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444fi
12445test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12446echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12447 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012448{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12449echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450if test "${lt_cv_prog_gnu_ld+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452else
Reid Spencera773bd52006-08-04 18:18:08 +000012453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012454case `$LD -v 2>&1 </dev/null` in
12455*GNU* | *'with BFD'*)
12456 lt_cv_prog_gnu_ld=yes
12457 ;;
12458*)
12459 lt_cv_prog_gnu_ld=no
12460 ;;
12461esac
12462fi
Reid Spencera773bd52006-08-04 18:18:08 +000012463{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12464echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465with_gnu_ld=$lt_cv_prog_gnu_ld
12466
12467
Reid Spencera773bd52006-08-04 18:18:08 +000012468{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12469echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470if test "${lt_cv_ld_reload_flag+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 lt_cv_ld_reload_flag='-r'
12474fi
Reid Spencera773bd52006-08-04 18:18:08 +000012475{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12476echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477reload_flag=$lt_cv_ld_reload_flag
12478case $reload_flag in
12479"" | " "*) ;;
12480*) reload_flag=" $reload_flag" ;;
12481esac
12482reload_cmds='$LD$reload_flag -o $output$reload_objs'
12483case $host_os in
12484 darwin*)
12485 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487 else
12488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12489 fi
12490 ;;
12491esac
12492
Reid Spencera773bd52006-08-04 18:18:08 +000012493{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12494echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012495if test "${lt_cv_deplibs_check_method+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497else
12498 lt_cv_file_magic_cmd='$MAGIC_CMD'
12499lt_cv_file_magic_test_file=
12500lt_cv_deplibs_check_method='unknown'
12501# Need to set the preceding variable on all platforms that support
12502# interlibrary dependencies.
12503# 'none' -- dependencies not supported.
12504# `unknown' -- same as none, but documents that we really don't know.
12505# 'pass_all' -- all dependencies passed with no checks.
12506# 'test_compile' -- check by making test program.
12507# 'file_magic [[regex]]' -- check by looking for files in library path
12508# which responds to the $file_magic_cmd with a given extended regex.
12509# If you have `file' or equivalent on your system and you're not sure
12510# whether `pass_all' will *always* work, you probably want this one.
12511
12512case $host_os in
12513aix4* | aix5*)
12514 lt_cv_deplibs_check_method=pass_all
12515 ;;
12516
12517beos*)
12518 lt_cv_deplibs_check_method=pass_all
12519 ;;
12520
12521bsdi[45]*)
12522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12523 lt_cv_file_magic_cmd='/usr/bin/file -L'
12524 lt_cv_file_magic_test_file=/shlib/libc.so
12525 ;;
12526
12527cygwin*)
12528 # func_win32_libid is a shell function defined in ltmain.sh
12529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12530 lt_cv_file_magic_cmd='func_win32_libid'
12531 ;;
12532
12533mingw* | pw32*)
12534 # Base MSYS/MinGW do not provide the 'file' command needed by
12535 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12536 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12537 lt_cv_file_magic_cmd='$OBJDUMP -f'
12538 ;;
12539
12540darwin* | rhapsody*)
12541 lt_cv_deplibs_check_method=pass_all
12542 ;;
12543
Reid Spencera773bd52006-08-04 18:18:08 +000012544freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12546 case $host_cpu in
12547 i*86 )
12548 # Not sure whether the presence of OpenBSD here was a mistake.
12549 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012550 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 +000012551 lt_cv_file_magic_cmd=/usr/bin/file
12552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12553 ;;
12554 esac
12555 else
12556 lt_cv_deplibs_check_method=pass_all
12557 fi
12558 ;;
12559
12560gnu*)
12561 lt_cv_deplibs_check_method=pass_all
12562 ;;
12563
12564hpux10.20* | hpux11*)
12565 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012566 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567 ia64*)
12568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12570 ;;
12571 hppa*64*)
12572 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]'
12573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12574 ;;
12575 *)
12576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12578 ;;
12579 esac
12580 ;;
12581
Reid Spencera773bd52006-08-04 18:18:08 +000012582interix3*)
12583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12585 ;;
12586
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587irix5* | irix6* | nonstopux*)
12588 case $LD in
12589 *-32|*"-32 ") libmagic=32-bit;;
12590 *-n32|*"-n32 ") libmagic=N32;;
12591 *-64|*"-64 ") libmagic=64-bit;;
12592 *) libmagic=never-match;;
12593 esac
12594 lt_cv_deplibs_check_method=pass_all
12595 ;;
12596
12597# This must be Linux ELF.
12598linux*)
12599 lt_cv_deplibs_check_method=pass_all
12600 ;;
12601
12602netbsd*)
12603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12605 else
12606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12607 fi
12608 ;;
12609
12610newos6*)
12611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12612 lt_cv_file_magic_cmd=/usr/bin/file
12613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12614 ;;
12615
12616nto-qnx*)
12617 lt_cv_deplibs_check_method=unknown
12618 ;;
12619
12620openbsd*)
12621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12623 else
12624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12625 fi
12626 ;;
12627
12628osf3* | osf4* | osf5*)
12629 lt_cv_deplibs_check_method=pass_all
12630 ;;
12631
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012632solaris*)
12633 lt_cv_deplibs_check_method=pass_all
12634 ;;
12635
Reid Spencera773bd52006-08-04 18:18:08 +000012636sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637 case $host_vendor in
12638 motorola)
12639 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]'
12640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12641 ;;
12642 ncr)
12643 lt_cv_deplibs_check_method=pass_all
12644 ;;
12645 sequent)
12646 lt_cv_file_magic_cmd='/bin/file'
12647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12648 ;;
12649 sni)
12650 lt_cv_file_magic_cmd='/bin/file'
12651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12652 lt_cv_file_magic_test_file=/lib/libc.so
12653 ;;
12654 siemens)
12655 lt_cv_deplibs_check_method=pass_all
12656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012657 pc)
12658 lt_cv_deplibs_check_method=pass_all
12659 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012660 esac
12661 ;;
12662
Reid Spencera773bd52006-08-04 18:18:08 +000012663sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012664 lt_cv_deplibs_check_method=pass_all
12665 ;;
12666esac
12667
12668fi
Reid Spencera773bd52006-08-04 18:18:08 +000012669{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12670echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012671file_magic_cmd=$lt_cv_file_magic_cmd
12672deplibs_check_method=$lt_cv_deplibs_check_method
12673test -z "$deplibs_check_method" && deplibs_check_method=unknown
12674
12675
12676
12677# If no C compiler was specified, use CC.
12678LTCC=${LTCC-"$CC"}
12679
Reid Spencera773bd52006-08-04 18:18:08 +000012680# If no C compiler flags were specified, use CFLAGS.
12681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12682
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012683# Allow CC to be a program name with arguments.
12684compiler=$CC
12685
Reid Spencera773bd52006-08-04 18:18:08 +000012686# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012687if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012688 enableval=$enable_libtool_lock;
12689fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012690
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012691test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12692
12693# Some flags need to be propagated to the compiler or linker for good
12694# libtool support.
12695case $host in
12696ia64-*-hpux*)
12697 # Find out which ABI we are using.
12698 echo 'int i;' > conftest.$ac_ext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700 (eval $ac_compile) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; then
12704 case `/usr/bin/file conftest.$ac_objext` in
12705 *ELF-32*)
12706 HPUX_IA64_MODE="32"
12707 ;;
12708 *ELF-64*)
12709 HPUX_IA64_MODE="64"
12710 ;;
12711 esac
12712 fi
12713 rm -rf conftest*
12714 ;;
12715*-*-irix6*)
12716 # Find out which ABI we are using.
Owen Andersond4b272b2009-05-18 23:58:51 +000012717 echo '#line 12717 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; then
12723 if test "$lt_cv_prog_gnu_ld" = yes; then
12724 case `/usr/bin/file conftest.$ac_objext` in
12725 *32-bit*)
12726 LD="${LD-ld} -melf32bsmip"
12727 ;;
12728 *N32*)
12729 LD="${LD-ld} -melf32bmipn32"
12730 ;;
12731 *64-bit*)
12732 LD="${LD-ld} -melf64bmip"
12733 ;;
12734 esac
12735 else
12736 case `/usr/bin/file conftest.$ac_objext` in
12737 *32-bit*)
12738 LD="${LD-ld} -32"
12739 ;;
12740 *N32*)
12741 LD="${LD-ld} -n32"
12742 ;;
12743 *64-bit*)
12744 LD="${LD-ld} -64"
12745 ;;
12746 esac
12747 fi
12748 fi
12749 rm -rf conftest*
12750 ;;
12751
12752x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12753 # Find out which ABI we are using.
12754 echo 'int i;' > conftest.$ac_ext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012760 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012761 *32-bit*)
12762 case $host in
12763 x86_64-*linux*)
12764 LD="${LD-ld} -m elf_i386"
12765 ;;
12766 ppc64-*linux*|powerpc64-*linux*)
12767 LD="${LD-ld} -m elf32ppclinux"
12768 ;;
12769 s390x-*linux*)
12770 LD="${LD-ld} -m elf_s390"
12771 ;;
12772 sparc64-*linux*)
12773 LD="${LD-ld} -m elf32_sparc"
12774 ;;
12775 esac
12776 ;;
12777 *64-bit*)
12778 case $host in
12779 x86_64-*linux*)
12780 LD="${LD-ld} -m elf_x86_64"
12781 ;;
12782 ppc*-*linux*|powerpc*-*linux*)
12783 LD="${LD-ld} -m elf64ppc"
12784 ;;
12785 s390*-*linux*)
12786 LD="${LD-ld} -m elf64_s390"
12787 ;;
12788 sparc*-*linux*)
12789 LD="${LD-ld} -m elf64_sparc"
12790 ;;
12791 esac
12792 ;;
12793 esac
12794 fi
12795 rm -rf conftest*
12796 ;;
12797
12798*-*-sco3.2v5*)
12799 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12800 SAVE_CFLAGS="$CFLAGS"
12801 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012802 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12803echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012804if test "${lt_cv_cc_needs_belf+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806else
12807 ac_ext=c
12808ac_cpp='$CPP $CPPFLAGS'
12809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12811ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812
12813 cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
12819
Reid Spencera773bd52006-08-04 18:18:08 +000012820int
12821main ()
12822{
12823
12824 ;
12825 return 0;
12826}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827_ACEOF
12828rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012829if { (ac_try="$ac_link"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12843 { (case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_try") 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856esac
12857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012862 lt_cv_cc_needs_belf=yes
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
Reid Spencera773bd52006-08-04 18:18:08 +000012867 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012868fi
Reid Spencera773bd52006-08-04 18:18:08 +000012869
Bill Wendlingebcceee2009-04-18 11:20:33 +000012870rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012871 conftest$ac_exeext conftest.$ac_ext
12872 ac_ext=c
12873ac_cpp='$CPP $CPPFLAGS'
12874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876ac_compiler_gnu=$ac_cv_c_compiler_gnu
12877
12878fi
Reid Spencera773bd52006-08-04 18:18:08 +000012879{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12880echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12883 CFLAGS="$SAVE_CFLAGS"
12884 fi
12885 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012886sparc*-*solaris*)
12887 # Find out which ABI we are using.
12888 echo 'int i;' > conftest.$ac_ext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; then
12894 case `/usr/bin/file conftest.o` in
12895 *64-bit*)
12896 case $lt_cv_prog_gnu_ld in
12897 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12898 *) LD="${LD-ld} -64" ;;
12899 esac
12900 ;;
12901 esac
12902 fi
12903 rm -rf conftest*
12904 ;;
12905
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012906
12907esac
12908
12909need_locks="$enable_libtool_lock"
12910
12911
Reid Spencer2706f8c2004-09-19 23:53:36 +000012912
12913
12914if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12915 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12916 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012917 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012918ac_cpp='$CXXCPP $CPPFLAGS'
12919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012922{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12923echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012924if test -z "$CXXCPP"; then
12925 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012926 echo $ECHO_N "(cached) $ECHO_C" >&6
12927else
John Criswell47fdd832003-07-14 16:52:07 +000012928 # Double quotes because CXXCPP needs to be expanded
12929 for CXXCPP in "$CXX -E" "/lib/cpp"
12930 do
12931 ac_preproc_ok=false
12932for ac_cxx_preproc_warn_flag in '' yes
12933do
12934 # Use a header file that comes with gcc, so configuring glibc
12935 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012938 # On the NeXT, cc -E runs the code through the compiler's parser,
12939 # not just through cpp. "Syntax error" is here to catch this case.
12940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946#ifdef __STDC__
12947# include <limits.h>
12948#else
12949# include <assert.h>
12950#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012951 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012952_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012953if { (ac_try="$ac_cpp conftest.$ac_ext"
12954case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012960 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012961 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_cxx_preproc_warn_flag
12968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12969 else
12970 ac_cpp_err=
12971 fi
12972else
12973 ac_cpp_err=yes
12974fi
12975if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012976 :
12977else
12978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012979sed 's/^/| /' conftest.$ac_ext >&5
12980
John Criswell47fdd832003-07-14 16:52:07 +000012981 # Broken: fails on valid input.
12982continue
12983fi
Reid Spencera773bd52006-08-04 18:18:08 +000012984
John Criswell47fdd832003-07-14 16:52:07 +000012985rm -f conftest.err conftest.$ac_ext
12986
Reid Spencera773bd52006-08-04 18:18:08 +000012987 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012988 # can be detected and how.
12989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012995#include <ac_nonexistent.h>
12996_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012997if { (ac_try="$ac_cpp conftest.$ac_ext"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013004 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013005 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_cxx_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13013 else
13014 ac_cpp_err=
13015 fi
13016else
13017 ac_cpp_err=yes
13018fi
13019if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013020 # Broken: success on invalid input.
13021continue
13022else
13023 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013024sed 's/^/| /' conftest.$ac_ext >&5
13025
John Criswell47fdd832003-07-14 16:52:07 +000013026 # Passes both tests.
13027ac_preproc_ok=:
13028break
13029fi
Reid Spencera773bd52006-08-04 18:18:08 +000013030
John Criswell47fdd832003-07-14 16:52:07 +000013031rm -f conftest.err conftest.$ac_ext
13032
13033done
13034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13035rm -f conftest.err conftest.$ac_ext
13036if $ac_preproc_ok; then
13037 break
John Criswell7a73b802003-06-30 21:59:07 +000013038fi
13039
John Criswell47fdd832003-07-14 16:52:07 +000013040 done
13041 ac_cv_prog_CXXCPP=$CXXCPP
13042
13043fi
13044 CXXCPP=$ac_cv_prog_CXXCPP
13045else
13046 ac_cv_prog_CXXCPP=$CXXCPP
13047fi
Reid Spencera773bd52006-08-04 18:18:08 +000013048{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13049echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013050ac_preproc_ok=false
13051for ac_cxx_preproc_warn_flag in '' yes
13052do
13053 # Use a header file that comes with gcc, so configuring glibc
13054 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13056 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013057 # On the NeXT, cc -E runs the code through the compiler's parser,
13058 # not just through cpp. "Syntax error" is here to catch this case.
13059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065#ifdef __STDC__
13066# include <limits.h>
13067#else
13068# include <assert.h>
13069#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013070 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013071_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013072if { (ac_try="$ac_cpp conftest.$ac_ext"
13073case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076esac
13077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013079 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013080 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013084 (exit $ac_status); } >/dev/null; then
13085 if test -s conftest.err; then
13086 ac_cpp_err=$ac_cxx_preproc_warn_flag
13087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13088 else
13089 ac_cpp_err=
13090 fi
13091else
13092 ac_cpp_err=yes
13093fi
13094if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013095 :
13096else
13097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013098sed 's/^/| /' conftest.$ac_ext >&5
13099
John Criswell47fdd832003-07-14 16:52:07 +000013100 # Broken: fails on valid input.
13101continue
13102fi
Reid Spencera773bd52006-08-04 18:18:08 +000013103
John Criswell47fdd832003-07-14 16:52:07 +000013104rm -f conftest.err conftest.$ac_ext
13105
Reid Spencera773bd52006-08-04 18:18:08 +000013106 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013107 # can be detected and how.
13108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013114#include <ac_nonexistent.h>
13115_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013116if { (ac_try="$ac_cpp conftest.$ac_ext"
13117case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013123 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013124 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013125 rm -f conftest.er1
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013128 (exit $ac_status); } >/dev/null; then
13129 if test -s conftest.err; then
13130 ac_cpp_err=$ac_cxx_preproc_warn_flag
13131 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13132 else
13133 ac_cpp_err=
13134 fi
13135else
13136 ac_cpp_err=yes
13137fi
13138if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013139 # Broken: success on invalid input.
13140continue
13141else
13142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013143sed 's/^/| /' conftest.$ac_ext >&5
13144
John Criswell47fdd832003-07-14 16:52:07 +000013145 # Passes both tests.
13146ac_preproc_ok=:
13147break
13148fi
Reid Spencera773bd52006-08-04 18:18:08 +000013149
John Criswell47fdd832003-07-14 16:52:07 +000013150rm -f conftest.err conftest.$ac_ext
13151
13152done
13153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13154rm -f conftest.err conftest.$ac_ext
13155if $ac_preproc_ok; then
13156 :
13157else
John Criswell0c38eaf2003-09-10 15:17:25 +000013158 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13159See \`config.log' for more details." >&5
13160echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13161See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013162 { (exit 1); exit 1; }; }
13163fi
13164
Reid Spencera773bd52006-08-04 18:18:08 +000013165ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013166ac_cpp='$CXXCPP $CPPFLAGS'
13167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170
Reid Spencer2706f8c2004-09-19 23:53:36 +000013171fi
13172
John Criswell47fdd832003-07-14 16:52:07 +000013173
13174ac_ext=f
13175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013179 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
John Criswell47fdd832003-07-14 16:52:07 +000013180 do
13181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013185if test "${ac_cv_prog_F77+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188 if test -n "$F77"; then
13189 ac_cv_prog_F77="$F77" # Let the user override the test.
13190else
13191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192for as_dir in $PATH
13193do
13194 IFS=$as_save_IFS
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013198 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13200 break 2
13201 fi
13202done
13203done
Reid Spencera773bd52006-08-04 18:18:08 +000013204IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013205
13206fi
13207fi
13208F77=$ac_cv_prog_F77
13209if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013210 { echo "$as_me:$LINENO: result: $F77" >&5
13211echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013212else
Reid Spencera773bd52006-08-04 18:18:08 +000013213 { echo "$as_me:$LINENO: result: no" >&5
13214echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013215fi
13216
Reid Spencera773bd52006-08-04 18:18:08 +000013217
John Criswell47fdd832003-07-14 16:52:07 +000013218 test -n "$F77" && break
13219 done
13220fi
13221if test -z "$F77"; then
13222 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013223 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 +000013224do
13225 # Extract the first word of "$ac_prog", so it can be a program name with args.
13226set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013229if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231else
13232 if test -n "$ac_ct_F77"; then
13233 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13234else
13235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236for as_dir in $PATH
13237do
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013241 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 +000013242 ac_cv_prog_ac_ct_F77="$ac_prog"
13243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13245 fi
13246done
13247done
Reid Spencera773bd52006-08-04 18:18:08 +000013248IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013249
13250fi
13251fi
13252ac_ct_F77=$ac_cv_prog_ac_ct_F77
13253if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013254 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13255echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013256else
Reid Spencera773bd52006-08-04 18:18:08 +000013257 { echo "$as_me:$LINENO: result: no" >&5
13258echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013259fi
13260
Reid Spencera773bd52006-08-04 18:18:08 +000013261
John Criswell47fdd832003-07-14 16:52:07 +000013262 test -n "$ac_ct_F77" && break
13263done
13264
Reid Spencera773bd52006-08-04 18:18:08 +000013265 if test "x$ac_ct_F77" = x; then
13266 F77=""
13267 else
13268 case $cross_compiling:$ac_tool_warned in
13269yes:)
13270{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13271whose name does not start with the host triplet. If you think this
13272configuration is useful to you, please write to autoconf@gnu.org." >&5
13273echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13274whose name does not start with the host triplet. If you think this
13275configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13276ac_tool_warned=yes ;;
13277esac
13278 F77=$ac_ct_F77
13279 fi
John Criswell47fdd832003-07-14 16:52:07 +000013280fi
13281
13282
13283# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013284echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013285ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013286{ (ac_try="$ac_compiler --version >&5"
13287case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290esac
13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013296{ (ac_try="$ac_compiler -v >&5"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013306{ (ac_try="$ac_compiler -V >&5"
13307case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310esac
13311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013316rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013317
13318# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013319# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013320ac_save_ext=$ac_ext
13321ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013322{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13323echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013324if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 cat >conftest.$ac_ext <<_ACEOF
13328 program main
13329#ifndef __GNUC__
13330 choke me
13331#endif
13332
13333 end
13334_ACEOF
13335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013336if { (ac_try="$ac_compile"
13337case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340esac
13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013369 ac_compiler_gnu=yes
13370else
13371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013372sed 's/^/| /' conftest.$ac_ext >&5
13373
Reid Spencera773bd52006-08-04 18:18:08 +000013374 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013375fi
Reid Spencera773bd52006-08-04 18:18:08 +000013376
13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013378ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13379
13380fi
Reid Spencera773bd52006-08-04 18:18:08 +000013381{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13382echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013383ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013384ac_test_FFLAGS=${FFLAGS+set}
13385ac_save_FFLAGS=$FFLAGS
13386FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013387{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13388echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013389if test "${ac_cv_prog_f77_g+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392 FFLAGS=-g
13393cat >conftest.$ac_ext <<_ACEOF
13394 program main
13395
13396 end
13397_ACEOF
13398rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013399if { (ac_try="$ac_compile"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013432 ac_cv_prog_f77_g=yes
13433else
13434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013435sed 's/^/| /' conftest.$ac_ext >&5
13436
Reid Spencera773bd52006-08-04 18:18:08 +000013437 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013438fi
Reid Spencera773bd52006-08-04 18:18:08 +000013439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013441
13442fi
Reid Spencera773bd52006-08-04 18:18:08 +000013443{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13444echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013445if test "$ac_test_FFLAGS" = set; then
13446 FFLAGS=$ac_save_FFLAGS
13447elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013448 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013449 FFLAGS="-g -O2"
13450 else
13451 FFLAGS="-g"
13452 fi
13453else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013454 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013455 FFLAGS="-O2"
13456 else
13457 FFLAGS=
13458 fi
13459fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013460
13461G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013462ac_ext=c
13463ac_cpp='$CPP $CPPFLAGS'
13464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467
13468
13469
13470# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13471
13472# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013473{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13474echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013475if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013479 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013480
13481 case $build_os in
13482 msdosdjgpp*)
13483 # On DJGPP, this test can blow up pretty badly due to problems in libc
13484 # (any single argument exceeding 2000 bytes causes a buffer overrun
13485 # during glob expansion). Even if it were fixed, the result of this
13486 # check would be larger than it should be.
13487 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13488 ;;
13489
13490 gnu*)
13491 # Under GNU Hurd, this test is not required because there is
13492 # no limit to the length of command line arguments.
13493 # Libtool will interpret -1 as no limit whatsoever
13494 lt_cv_sys_max_cmd_len=-1;
13495 ;;
13496
13497 cygwin* | mingw*)
13498 # On Win9x/ME, this test blows up -- it succeeds, but takes
13499 # about 5 minutes as the teststring grows exponentially.
13500 # Worse, since 9x/ME are not pre-emptively multitasking,
13501 # you end up with a "frozen" computer, even though with patience
13502 # the test eventually succeeds (with a max line length of 256k).
13503 # Instead, let's just punt: use the minimum linelength reported by
13504 # all of the supported platforms: 8192 (on NT/2K/XP).
13505 lt_cv_sys_max_cmd_len=8192;
13506 ;;
13507
Reid Spencer2706f8c2004-09-19 23:53:36 +000013508 amigaos*)
13509 # On AmigaOS with pdksh, this test takes hours, literally.
13510 # So we just punt and use a minimum line length of 8192.
13511 lt_cv_sys_max_cmd_len=8192;
13512 ;;
13513
Reid Spencera773bd52006-08-04 18:18:08 +000013514 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013515 # This has been around since 386BSD, at least. Likely further.
13516 if test -x /sbin/sysctl; then
13517 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13518 elif test -x /usr/sbin/sysctl; then
13519 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13520 else
Reid Spencera773bd52006-08-04 18:18:08 +000013521 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013522 fi
13523 # And add a safety zone
13524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013526 ;;
13527
Reid Spencera773bd52006-08-04 18:18:08 +000013528 interix*)
13529 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13530 lt_cv_sys_max_cmd_len=196608
13531 ;;
13532
13533 osf*)
13534 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13535 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13536 # nice to cause kernel panics so lets avoid the loop below.
13537 # First set a reasonable default.
13538 lt_cv_sys_max_cmd_len=16384
13539 #
13540 if test -x /sbin/sysconfig; then
13541 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13542 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13543 esac
13544 fi
13545 ;;
13546 sco3.2v5*)
13547 lt_cv_sys_max_cmd_len=102400
13548 ;;
13549 sysv5* | sco5v6* | sysv4.2uw2*)
13550 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13551 if test -n "$kargmax"; then
13552 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13553 else
13554 lt_cv_sys_max_cmd_len=32768
13555 fi
13556 ;;
13557 *)
John Criswell47fdd832003-07-14 16:52:07 +000013558 # If test is not a shell built-in, we'll probably end up computing a
13559 # maximum length that is only half of the actual maximum length, but
13560 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013561 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13562 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13563 = "XX$teststring") >/dev/null 2>&1 &&
13564 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013565 lt_cv_sys_max_cmd_len=$new_result &&
13566 test $i != 17 # 1/2 MB should be enough
13567 do
13568 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013569 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013570 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013571 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013572 # Add a significant safety factor because C++ compilers can tack on massive
13573 # amounts of additional arguments before passing them to the linker.
13574 # It appears as though 1/2 is a usable value.
13575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13576 ;;
13577 esac
13578
13579fi
13580
13581if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013582 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13583echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013584else
Reid Spencera773bd52006-08-04 18:18:08 +000013585 { echo "$as_me:$LINENO: result: none" >&5
13586echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013587fi
13588
13589
13590
13591
13592# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013593{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13594echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013595if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597else
13598
13599# These are sane defaults that work on at least a few old systems.
13600# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13601
13602# Character class describing NM global symbol codes.
13603symcode='[BCDEGRST]'
13604
13605# Regexp to match symbols that can be accessed directly from C.
13606sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13607
John Criswell47fdd832003-07-14 16:52:07 +000013608# Transform an extracted symbol line into a proper C declaration
13609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13610
13611# Transform an extracted symbol line into symbol name and symbol address
13612lt_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'"
13613
13614# Define system-specific variables.
13615case $host_os in
13616aix*)
13617 symcode='[BCDT]'
13618 ;;
13619cygwin* | mingw* | pw32*)
13620 symcode='[ABCDGISTW]'
13621 ;;
13622hpux*) # Its linker distinguishes data from code symbols
13623 if test "$host_cpu" = ia64; then
13624 symcode='[ABCDEGRST]'
13625 fi
13626 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13627 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'"
13628 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013629linux*)
13630 if test "$host_cpu" = ia64; then
13631 symcode='[ABCDGIRSTW]'
13632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13633 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'"
13634 fi
13635 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013636irix* | nonstopux*)
13637 symcode='[BCDEGRST]'
13638 ;;
13639osf*)
13640 symcode='[BCDEGQRST]'
13641 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013642solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013643 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013645sco3.2v5*)
13646 symcode='[DT]'
13647 ;;
13648sysv4.2uw2*)
13649 symcode='[DT]'
13650 ;;
13651sysv5* | sco5v6* | unixware* | OpenUNIX*)
13652 symcode='[ABDT]'
13653 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013654sysv4)
13655 symcode='[DFNSTU]'
13656 ;;
13657esac
13658
13659# Handle CRLF in mingw tool chain
13660opt_cr=
13661case $build_os in
13662mingw*)
13663 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13664 ;;
13665esac
13666
13667# If we're using GNU nm, then use its standard symbol codes.
13668case `$NM -V 2>&1` in
13669*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013670 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013671esac
13672
13673# Try without a prefix undercore, then with it.
13674for ac_symprfx in "" "_"; do
13675
Reid Spencera773bd52006-08-04 18:18:08 +000013676 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13677 symxfrm="\\1 $ac_symprfx\\2 \\2"
13678
John Criswell47fdd832003-07-14 16:52:07 +000013679 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013680 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 +000013681
13682 # Check to see that the pipe works correctly.
13683 pipe_works=no
13684
13685 rm -f conftest*
13686 cat > conftest.$ac_ext <<EOF
13687#ifdef __cplusplus
13688extern "C" {
13689#endif
13690char nm_test_var;
13691void nm_test_func(){}
13692#ifdef __cplusplus
13693}
13694#endif
13695int main(){nm_test_var='a';nm_test_func();return(0);}
13696EOF
13697
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; then
13703 # Now try to grab the symbols.
13704 nlist=conftest.nm
13705 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13706 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && test -s "$nlist"; then
13710 # Try sorting and uniquifying the output.
13711 if sort "$nlist" | uniq > "$nlist"T; then
13712 mv -f "$nlist"T "$nlist"
13713 else
13714 rm -f "$nlist"T
13715 fi
13716
13717 # Make sure that we snagged all the symbols we need.
13718 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13719 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13720 cat <<EOF > conftest.$ac_ext
13721#ifdef __cplusplus
13722extern "C" {
13723#endif
13724
13725EOF
13726 # Now generate the symbol file.
13727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13728
13729 cat <<EOF >> conftest.$ac_ext
13730#if defined (__STDC__) && __STDC__
13731# define lt_ptr_t void *
13732#else
13733# define lt_ptr_t char *
13734# define const
13735#endif
13736
13737/* The mapping between symbol names and symbols. */
13738const struct {
13739 const char *name;
13740 lt_ptr_t address;
13741}
13742lt_preloaded_symbols[] =
13743{
13744EOF
13745 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13746 cat <<\EOF >> conftest.$ac_ext
13747 {0, (lt_ptr_t) 0}
13748};
13749
13750#ifdef __cplusplus
13751}
13752#endif
13753EOF
13754 # Now try linking the two files.
13755 mv conftest.$ac_objext conftstm.$ac_objext
13756 lt_save_LIBS="$LIBS"
13757 lt_save_CFLAGS="$CFLAGS"
13758 LIBS="conftstm.$ac_objext"
13759 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761 (eval $ac_link) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13765 pipe_works=yes
13766 fi
13767 LIBS="$lt_save_LIBS"
13768 CFLAGS="$lt_save_CFLAGS"
13769 else
13770 echo "cannot find nm_test_func in $nlist" >&5
13771 fi
13772 else
13773 echo "cannot find nm_test_var in $nlist" >&5
13774 fi
13775 else
13776 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13777 fi
13778 else
13779 echo "$progname: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13781 fi
13782 rm -f conftest* conftst*
13783
13784 # Do not use the global_symbol_pipe unless it works.
13785 if test "$pipe_works" = yes; then
13786 break
13787 else
13788 lt_cv_sys_global_symbol_pipe=
13789 fi
13790done
13791
13792fi
13793
13794if test -z "$lt_cv_sys_global_symbol_pipe"; then
13795 lt_cv_sys_global_symbol_to_cdecl=
13796fi
13797if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013798 { echo "$as_me:$LINENO: result: failed" >&5
13799echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013800else
Reid Spencera773bd52006-08-04 18:18:08 +000013801 { echo "$as_me:$LINENO: result: ok" >&5
13802echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013803fi
13804
Reid Spencera773bd52006-08-04 18:18:08 +000013805{ echo "$as_me:$LINENO: checking for objdir" >&5
13806echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013807if test "${lt_cv_objdir+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 rm -f .libs 2>/dev/null
13811mkdir .libs 2>/dev/null
13812if test -d .libs; then
13813 lt_cv_objdir=.libs
13814else
13815 # MS-DOS does not allow filenames that begin with a dot.
13816 lt_cv_objdir=_libs
13817fi
13818rmdir .libs 2>/dev/null
13819fi
Reid Spencera773bd52006-08-04 18:18:08 +000013820{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13821echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013822objdir=$lt_cv_objdir
13823
13824
13825
13826
13827
13828case $host_os in
13829aix3*)
13830 # AIX sometimes has problems with the GCC collect2 program. For some
13831 # reason, if we set the COLLECT_NAMES environment variable, the problems
13832 # vanish in a puff of smoke.
13833 if test "X${COLLECT_NAMES+set}" != Xset; then
13834 COLLECT_NAMES=
13835 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013836 fi
13837 ;;
13838esac
13839
John Criswell47fdd832003-07-14 16:52:07 +000013840# Sed substitution that helps us do robust quoting. It backslashifies
13841# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013842Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013843sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13844
13845# Same as above, but do not quote variable references.
13846double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13847
13848# Sed substitution to delay expansion of an escaped shell variable in a
13849# double_quote_subst'ed string.
13850delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13851
13852# Sed substitution to avoid accidental globbing in evaled expressions
13853no_glob_subst='s/\*/\\\*/g'
13854
13855# Constants:
13856rm="rm -f"
13857
13858# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013859default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013860can_build_shared=yes
13861
Reid Spencera773bd52006-08-04 18:18:08 +000013862# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013863# which needs '.lib').
13864libext=a
13865ltmain="$ac_aux_dir/ltmain.sh"
13866ofile="$default_ofile"
13867with_gnu_ld="$lt_cv_prog_gnu_ld"
13868
13869if test -n "$ac_tool_prefix"; then
13870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13871set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013874if test "${ac_cv_prog_AR+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 if test -n "$AR"; then
13878 ac_cv_prog_AR="$AR" # Let the user override the test.
13879else
13880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013886 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 +000013887 ac_cv_prog_AR="${ac_tool_prefix}ar"
13888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891done
13892done
Reid Spencera773bd52006-08-04 18:18:08 +000013893IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013894
13895fi
13896fi
13897AR=$ac_cv_prog_AR
13898if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013899 { echo "$as_me:$LINENO: result: $AR" >&5
13900echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013901else
Reid Spencera773bd52006-08-04 18:18:08 +000013902 { echo "$as_me:$LINENO: result: no" >&5
13903echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013904fi
13905
Reid Spencera773bd52006-08-04 18:18:08 +000013906
John Criswell47fdd832003-07-14 16:52:07 +000013907fi
13908if test -z "$ac_cv_prog_AR"; then
13909 ac_ct_AR=$AR
13910 # Extract the first word of "ar", so it can be a program name with args.
13911set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013914if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916else
13917 if test -n "$ac_ct_AR"; then
13918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13919else
13920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921for as_dir in $PATH
13922do
13923 IFS=$as_save_IFS
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013926 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 +000013927 ac_cv_prog_ac_ct_AR="ar"
13928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13929 break 2
13930 fi
13931done
13932done
Reid Spencera773bd52006-08-04 18:18:08 +000013933IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013934
John Criswell47fdd832003-07-14 16:52:07 +000013935fi
13936fi
13937ac_ct_AR=$ac_cv_prog_ac_ct_AR
13938if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013939 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13940echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013941else
Reid Spencera773bd52006-08-04 18:18:08 +000013942 { echo "$as_me:$LINENO: result: no" >&5
13943echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013944fi
13945
Reid Spencera773bd52006-08-04 18:18:08 +000013946 if test "x$ac_ct_AR" = x; then
13947 AR="false"
13948 else
13949 case $cross_compiling:$ac_tool_warned in
13950yes:)
13951{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13952whose name does not start with the host triplet. If you think this
13953configuration is useful to you, please write to autoconf@gnu.org." >&5
13954echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13955whose name does not start with the host triplet. If you think this
13956configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13957ac_tool_warned=yes ;;
13958esac
13959 AR=$ac_ct_AR
13960 fi
John Criswell47fdd832003-07-14 16:52:07 +000013961else
13962 AR="$ac_cv_prog_AR"
13963fi
13964
John Criswell7a73b802003-06-30 21:59:07 +000013965if test -n "$ac_tool_prefix"; then
13966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013970if test "${ac_cv_prog_RANLIB+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973 if test -n "$RANLIB"; then
13974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13975else
13976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977for as_dir in $PATH
13978do
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013982 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 +000013983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13986 fi
13987done
13988done
Reid Spencera773bd52006-08-04 18:18:08 +000013989IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013990
13991fi
13992fi
13993RANLIB=$ac_cv_prog_RANLIB
13994if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013995 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13996echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013997else
Reid Spencera773bd52006-08-04 18:18:08 +000013998 { echo "$as_me:$LINENO: result: no" >&5
13999echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014000fi
14001
Reid Spencera773bd52006-08-04 18:18:08 +000014002
John Criswell7a73b802003-06-30 21:59:07 +000014003fi
14004if test -z "$ac_cv_prog_RANLIB"; then
14005 ac_ct_RANLIB=$RANLIB
14006 # Extract the first word of "ranlib", so it can be a program name with args.
14007set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014010if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013 if test -n "$ac_ct_RANLIB"; then
14014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14015else
14016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017for as_dir in $PATH
14018do
14019 IFS=$as_save_IFS
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014022 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 +000014023 ac_cv_prog_ac_ct_RANLIB="ranlib"
14024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14025 break 2
14026 fi
14027done
14028done
Reid Spencera773bd52006-08-04 18:18:08 +000014029IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014030
John Criswell7a73b802003-06-30 21:59:07 +000014031fi
14032fi
14033ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14034if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014035 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14036echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014037else
Reid Spencera773bd52006-08-04 18:18:08 +000014038 { echo "$as_me:$LINENO: result: no" >&5
14039echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014040fi
14041
Reid Spencera773bd52006-08-04 18:18:08 +000014042 if test "x$ac_ct_RANLIB" = x; then
14043 RANLIB=":"
14044 else
14045 case $cross_compiling:$ac_tool_warned in
14046yes:)
14047{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14048whose name does not start with the host triplet. If you think this
14049configuration is useful to you, please write to autoconf@gnu.org." >&5
14050echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14051whose name does not start with the host triplet. If you think this
14052configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14053ac_tool_warned=yes ;;
14054esac
14055 RANLIB=$ac_ct_RANLIB
14056 fi
John Criswell7a73b802003-06-30 21:59:07 +000014057else
14058 RANLIB="$ac_cv_prog_RANLIB"
14059fi
14060
14061if test -n "$ac_tool_prefix"; then
14062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14063set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014066if test "${ac_cv_prog_STRIP+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068else
14069 if test -n "$STRIP"; then
14070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14071else
14072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073for as_dir in $PATH
14074do
14075 IFS=$as_save_IFS
14076 test -z "$as_dir" && as_dir=.
14077 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014078 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 +000014079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14081 break 2
14082 fi
14083done
14084done
Reid Spencera773bd52006-08-04 18:18:08 +000014085IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014086
14087fi
14088fi
14089STRIP=$ac_cv_prog_STRIP
14090if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014091 { echo "$as_me:$LINENO: result: $STRIP" >&5
14092echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014093else
Reid Spencera773bd52006-08-04 18:18:08 +000014094 { echo "$as_me:$LINENO: result: no" >&5
14095echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014096fi
14097
Reid Spencera773bd52006-08-04 18:18:08 +000014098
John Criswell7a73b802003-06-30 21:59:07 +000014099fi
14100if test -z "$ac_cv_prog_STRIP"; then
14101 ac_ct_STRIP=$STRIP
14102 # Extract the first word of "strip", so it can be a program name with args.
14103set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014106if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108else
14109 if test -n "$ac_ct_STRIP"; then
14110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14111else
14112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113for as_dir in $PATH
14114do
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014118 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 +000014119 ac_cv_prog_ac_ct_STRIP="strip"
14120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14122 fi
14123done
14124done
Reid Spencera773bd52006-08-04 18:18:08 +000014125IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014126
John Criswell7a73b802003-06-30 21:59:07 +000014127fi
14128fi
14129ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14130if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014131 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14132echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014133else
Reid Spencera773bd52006-08-04 18:18:08 +000014134 { echo "$as_me:$LINENO: result: no" >&5
14135echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014136fi
14137
Reid Spencera773bd52006-08-04 18:18:08 +000014138 if test "x$ac_ct_STRIP" = x; then
14139 STRIP=":"
14140 else
14141 case $cross_compiling:$ac_tool_warned in
14142yes:)
14143{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14144whose name does not start with the host triplet. If you think this
14145configuration is useful to you, please write to autoconf@gnu.org." >&5
14146echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14147whose name does not start with the host triplet. If you think this
14148configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14149ac_tool_warned=yes ;;
14150esac
14151 STRIP=$ac_ct_STRIP
14152 fi
John Criswell7a73b802003-06-30 21:59:07 +000014153else
14154 STRIP="$ac_cv_prog_STRIP"
14155fi
14156
14157
John Criswell7a73b802003-06-30 21:59:07 +000014158old_CC="$CC"
14159old_CFLAGS="$CFLAGS"
14160
14161# Set sane defaults for various variables
14162test -z "$AR" && AR=ar
14163test -z "$AR_FLAGS" && AR_FLAGS=cru
14164test -z "$AS" && AS=as
14165test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014166test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014167test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014168test -z "$DLLTOOL" && DLLTOOL=dlltool
14169test -z "$LD" && LD=ld
14170test -z "$LN_S" && LN_S="ln -s"
14171test -z "$MAGIC_CMD" && MAGIC_CMD=file
14172test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014173test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014174test -z "$OBJDUMP" && OBJDUMP=objdump
14175test -z "$RANLIB" && RANLIB=:
14176test -z "$STRIP" && STRIP=:
14177test -z "$ac_objext" && ac_objext=o
14178
John Criswell7a73b802003-06-30 21:59:07 +000014179# Determine commands to create old-style static archives.
14180old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14181old_postinstall_cmds='chmod 644 $oldlib'
14182old_postuninstall_cmds=
14183
14184if test -n "$RANLIB"; then
14185 case $host_os in
14186 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014187 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014188 ;;
14189 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014191 ;;
14192 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014193 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014194fi
14195
Reid Spencera773bd52006-08-04 18:18:08 +000014196for cc_temp in $compiler""; do
14197 case $cc_temp in
14198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14200 \-*) ;;
14201 *) break;;
14202 esac
14203done
14204cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14205
Reid Spencer2706f8c2004-09-19 23:53:36 +000014206
John Criswell47fdd832003-07-14 16:52:07 +000014207# Only perform the check for file, if the check method requires it
14208case $deplibs_check_method in
14209file_magic*)
14210 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014211 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14212echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014213if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014215else
John Criswell47fdd832003-07-14 16:52:07 +000014216 case $MAGIC_CMD in
14217[\\/*] | ?:[\\/]*)
14218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14219 ;;
14220*)
14221 lt_save_MAGIC_CMD="$MAGIC_CMD"
14222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14224 for ac_dir in $ac_dummy; do
14225 IFS="$lt_save_ifs"
14226 test -z "$ac_dir" && ac_dir=.
14227 if test -f $ac_dir/${ac_tool_prefix}file; then
14228 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14229 if test -n "$file_magic_test_file"; then
14230 case $deplibs_check_method in
14231 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14235 $EGREP "$file_magic_regex" > /dev/null; then
14236 :
14237 else
14238 cat <<EOF 1>&2
14239
14240*** Warning: the command libtool uses to detect shared libraries,
14241*** $file_magic_cmd, produces output that libtool cannot recognize.
14242*** The result is that libtool may fail to recognize shared libraries
14243*** as such. This will affect the creation of libtool libraries that
14244*** depend on shared libraries, but programs linked with such libtool
14245*** libraries will work regardless of this problem. Nevertheless, you
14246*** may want to report the problem to your system manager and/or to
14247*** bug-libtool@gnu.org
14248
14249EOF
14250 fi ;;
14251 esac
14252 fi
14253 break
14254 fi
14255 done
14256 IFS="$lt_save_ifs"
14257 MAGIC_CMD="$lt_save_MAGIC_CMD"
14258 ;;
14259esac
John Criswell7a73b802003-06-30 21:59:07 +000014260fi
John Criswell7a73b802003-06-30 21:59:07 +000014261
John Criswell47fdd832003-07-14 16:52:07 +000014262MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14263if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014264 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14265echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014266else
Reid Spencera773bd52006-08-04 18:18:08 +000014267 { echo "$as_me:$LINENO: result: no" >&5
14268echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014269fi
John Criswell7a73b802003-06-30 21:59:07 +000014270
John Criswell47fdd832003-07-14 16:52:07 +000014271if test -z "$lt_cv_path_MAGIC_CMD"; then
14272 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014273 { echo "$as_me:$LINENO: checking for file" >&5
14274echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014275if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277else
14278 case $MAGIC_CMD in
14279[\\/*] | ?:[\\/]*)
14280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14281 ;;
14282*)
14283 lt_save_MAGIC_CMD="$MAGIC_CMD"
14284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14286 for ac_dir in $ac_dummy; do
14287 IFS="$lt_save_ifs"
14288 test -z "$ac_dir" && ac_dir=.
14289 if test -f $ac_dir/file; then
14290 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14291 if test -n "$file_magic_test_file"; then
14292 case $deplibs_check_method in
14293 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14297 $EGREP "$file_magic_regex" > /dev/null; then
14298 :
14299 else
14300 cat <<EOF 1>&2
14301
14302*** Warning: the command libtool uses to detect shared libraries,
14303*** $file_magic_cmd, produces output that libtool cannot recognize.
14304*** The result is that libtool may fail to recognize shared libraries
14305*** as such. This will affect the creation of libtool libraries that
14306*** depend on shared libraries, but programs linked with such libtool
14307*** libraries will work regardless of this problem. Nevertheless, you
14308*** may want to report the problem to your system manager and/or to
14309*** bug-libtool@gnu.org
14310
14311EOF
14312 fi ;;
14313 esac
14314 fi
14315 break
14316 fi
14317 done
14318 IFS="$lt_save_ifs"
14319 MAGIC_CMD="$lt_save_MAGIC_CMD"
14320 ;;
14321esac
14322fi
14323
14324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14325if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014326 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14327echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014328else
Reid Spencera773bd52006-08-04 18:18:08 +000014329 { echo "$as_me:$LINENO: result: no" >&5
14330echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014331fi
14332
14333 else
14334 MAGIC_CMD=:
14335 fi
14336fi
14337
14338 fi
14339 ;;
14340esac
14341
Reid Spencer17795972004-11-18 09:47:37 +000014342enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014343enable_win32_dll=no
14344
Reid Spencera773bd52006-08-04 18:18:08 +000014345# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014346if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014347 enableval=$enable_libtool_lock;
14348fi
John Criswell47fdd832003-07-14 16:52:07 +000014349
John Criswell47fdd832003-07-14 16:52:07 +000014350test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14351
John Criswell7a73b802003-06-30 21:59:07 +000014352
Reid Spencera773bd52006-08-04 18:18:08 +000014353# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014354if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014355 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014356else
14357 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014358fi
14359
John Criswell7a73b802003-06-30 21:59:07 +000014360test -z "$pic_mode" && pic_mode=default
14361
John Criswell47fdd832003-07-14 16:52:07 +000014362# Use C for the default configuration in the libtool script
14363tagname=
14364lt_save_CC="$CC"
14365ac_ext=c
14366ac_cpp='$CPP $CPPFLAGS'
14367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369ac_compiler_gnu=$ac_cv_c_compiler_gnu
14370
14371
14372# Source file extension for C test sources.
14373ac_ext=c
14374
14375# Object file extension for compiled C test sources.
14376objext=o
14377objext=$objext
14378
14379# Code to be used in simple compile tests
14380lt_simple_compile_test_code="int some_variable = 0;\n"
14381
14382# Code to be used in simple link tests
14383lt_simple_link_test_code='int main(){return(0);}\n'
14384
14385
14386# If no C compiler was specified, use CC.
14387LTCC=${LTCC-"$CC"}
14388
Reid Spencera773bd52006-08-04 18:18:08 +000014389# If no C compiler flags were specified, use CFLAGS.
14390LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14391
John Criswell47fdd832003-07-14 16:52:07 +000014392# Allow CC to be a program name with arguments.
14393compiler=$CC
14394
14395
Reid Spencera773bd52006-08-04 18:18:08 +000014396# save warnings/boilerplate of simple test code
14397ac_outfile=conftest.$ac_objext
14398printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14399eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400_lt_compiler_boilerplate=`cat conftest.err`
14401$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014402
Reid Spencera773bd52006-08-04 18:18:08 +000014403ac_outfile=conftest.$ac_objext
14404printf "$lt_simple_link_test_code" >conftest.$ac_ext
14405eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406_lt_linker_boilerplate=`cat conftest.err`
14407$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014408
14409
John Criswell47fdd832003-07-14 16:52:07 +000014410
14411lt_prog_compiler_no_builtin_flag=
14412
14413if test "$GCC" = yes; then
14414 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14415
Reid Spencer2706f8c2004-09-19 23:53:36 +000014416
Reid Spencera773bd52006-08-04 18:18:08 +000014417{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14418echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014419if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422 lt_cv_prog_compiler_rtti_exceptions=no
14423 ac_outfile=conftest.$ac_objext
14424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14425 lt_compiler_flag="-fno-rtti -fno-exceptions"
14426 # Insert the option either (1) after the last *FLAGS variable, or
14427 # (2) before a word containing "conftest.", or (3) at the end.
14428 # Note that $ac_compile itself does not contain backslashes and begins
14429 # with a dollar sign (not a hyphen), so the echo should work correctly.
14430 # The option is referenced via a variable to avoid confusing sed.
14431 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14434 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000014435 (eval echo "\"\$as_me:14435: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014436 (eval "$lt_compile" 2>conftest.err)
14437 ac_status=$?
14438 cat conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000014439 echo "$as_me:14439: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014440 if (exit $ac_status) && test -s "$ac_outfile"; then
14441 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014442 # So say no if there are warnings other than the usual output.
14443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014446 lt_cv_prog_compiler_rtti_exceptions=yes
14447 fi
14448 fi
14449 $rm conftest*
14450
14451fi
Reid Spencera773bd52006-08-04 18:18:08 +000014452{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14453echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014454
14455if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14457else
14458 :
14459fi
14460
14461fi
14462
14463lt_prog_compiler_wl=
14464lt_prog_compiler_pic=
14465lt_prog_compiler_static=
14466
Reid Spencera773bd52006-08-04 18:18:08 +000014467{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14468echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014469
14470 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014471 lt_prog_compiler_wl='-Wl,'
14472 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014473
14474 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014475 aix*)
14476 # All AIX code is PIC.
14477 if test "$host_cpu" = ia64; then
14478 # AIX 5 now supports IA64 processor
14479 lt_prog_compiler_static='-Bstatic'
14480 fi
John Criswell7a73b802003-06-30 21:59:07 +000014481 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014482
John Criswell7a73b802003-06-30 21:59:07 +000014483 amigaos*)
14484 # FIXME: we need at least 68020 code to build shared libraries, but
14485 # adding the `-m68020' flag to GCC prevents building anything better,
14486 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014487 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014488 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014489
14490 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014491 # PIC is the default for these OSes.
14492 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014493
14494 mingw* | pw32* | os2*)
14495 # This hack is so that the source file can tell whether it is being
14496 # built for inclusion in a dll (and should export symbols for example).
14497 lt_prog_compiler_pic='-DDLL_EXPORT'
14498 ;;
14499
John Criswell7a73b802003-06-30 21:59:07 +000014500 darwin* | rhapsody*)
14501 # PIC is the default on this platform
14502 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014503 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014504 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014505
Reid Spencera773bd52006-08-04 18:18:08 +000014506 interix3*)
14507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508 # Instead, we relocate shared libraries at runtime.
14509 ;;
14510
John Criswell47fdd832003-07-14 16:52:07 +000014511 msdosdjgpp*)
14512 # Just because we use GCC doesn't mean we suddenly get shared libraries
14513 # on systems that don't support them.
14514 lt_prog_compiler_can_build_shared=no
14515 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014516 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014517
John Criswell7a73b802003-06-30 21:59:07 +000014518 sysv4*MP*)
14519 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014520 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014521 fi
14522 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014523
14524 hpux*)
14525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014527 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014528 hppa*64*|ia64*)
14529 # +Z the default
14530 ;;
14531 *)
14532 lt_prog_compiler_pic='-fPIC'
14533 ;;
14534 esac
14535 ;;
14536
John Criswell7a73b802003-06-30 21:59:07 +000014537 *)
John Criswell47fdd832003-07-14 16:52:07 +000014538 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014539 ;;
14540 esac
14541 else
John Criswell47fdd832003-07-14 16:52:07 +000014542 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014543 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014544 aix*)
14545 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014546 if test "$host_cpu" = ia64; then
14547 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014548 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014549 else
John Criswell47fdd832003-07-14 16:52:07 +000014550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014551 fi
14552 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014553 darwin*)
14554 # PIC is the default on this platform
14555 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014556 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014557 xlc*)
14558 lt_prog_compiler_pic='-qnocommon'
14559 lt_prog_compiler_wl='-Wl,'
14560 ;;
14561 esac
14562 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014563
John Criswell47fdd832003-07-14 16:52:07 +000014564 mingw* | pw32* | os2*)
14565 # This hack is so that the source file can tell whether it is being
14566 # built for inclusion in a dll (and should export symbols for example).
14567 lt_prog_compiler_pic='-DDLL_EXPORT'
14568 ;;
14569
John Criswell7a73b802003-06-30 21:59:07 +000014570 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014571 lt_prog_compiler_wl='-Wl,'
14572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14573 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014574 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014575 hppa*64*|ia64*)
14576 # +Z the default
14577 ;;
14578 *)
14579 lt_prog_compiler_pic='+Z'
14580 ;;
14581 esac
14582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14583 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014584 ;;
14585
John Criswell47fdd832003-07-14 16:52:07 +000014586 irix5* | irix6* | nonstopux*)
14587 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014588 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014589 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014590 ;;
14591
14592 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014593 lt_prog_compiler_pic='-KPIC'
14594 lt_prog_compiler_static='-Bstatic'
14595 ;;
14596
14597 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014598 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014599 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014600 lt_prog_compiler_wl='-Wl,'
14601 lt_prog_compiler_pic='-KPIC'
14602 lt_prog_compiler_static='-static'
14603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014604 pgcc* | pgf77* | pgf90* | pgf95*)
14605 # Portland Group compilers (*not* the Pentium gcc compiler,
14606 # which looks to be a dead project)
14607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-fpic'
14609 lt_prog_compiler_static='-Bstatic'
14610 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014611 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014612 lt_prog_compiler_wl='-Wl,'
14613 # All Alpha code is PIC.
14614 lt_prog_compiler_static='-non_shared'
14615 ;;
14616 esac
John Criswell7a73b802003-06-30 21:59:07 +000014617 ;;
14618
14619 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014620 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014621 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014622 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014623 ;;
14624
John Criswell7a73b802003-06-30 21:59:07 +000014625 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014626 lt_prog_compiler_pic='-KPIC'
14627 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014628 case $cc_basename in
14629 f77* | f90* | f95*)
14630 lt_prog_compiler_wl='-Qoption ld ';;
14631 *)
14632 lt_prog_compiler_wl='-Wl,';;
14633 esac
John Criswell7a73b802003-06-30 21:59:07 +000014634 ;;
14635
14636 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014637 lt_prog_compiler_wl='-Qoption ld '
14638 lt_prog_compiler_pic='-PIC'
14639 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014640 ;;
14641
Reid Spencera773bd52006-08-04 18:18:08 +000014642 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014643 lt_prog_compiler_wl='-Wl,'
14644 lt_prog_compiler_pic='-KPIC'
14645 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014646 ;;
14647
14648 sysv4*MP*)
14649 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014650 lt_prog_compiler_pic='-Kconform_pic'
14651 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014652 fi
14653 ;;
14654
Reid Spencera773bd52006-08-04 18:18:08 +000014655 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14656 lt_prog_compiler_wl='-Wl,'
14657 lt_prog_compiler_pic='-KPIC'
14658 lt_prog_compiler_static='-Bstatic'
14659 ;;
14660
14661 unicos*)
14662 lt_prog_compiler_wl='-Wl,'
14663 lt_prog_compiler_can_build_shared=no
14664 ;;
14665
John Criswell47fdd832003-07-14 16:52:07 +000014666 uts4*)
14667 lt_prog_compiler_pic='-pic'
14668 lt_prog_compiler_static='-Bstatic'
14669 ;;
14670
John Criswell7a73b802003-06-30 21:59:07 +000014671 *)
John Criswell47fdd832003-07-14 16:52:07 +000014672 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014673 ;;
14674 esac
14675 fi
14676
Reid Spencera773bd52006-08-04 18:18:08 +000014677{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14678echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014679
John Criswell47fdd832003-07-14 16:52:07 +000014680#
14681# Check to make sure the PIC flag actually works.
14682#
14683if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014684
Reid Spencera773bd52006-08-04 18:18:08 +000014685{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14686echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014687if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689else
John Criswell47fdd832003-07-14 16:52:07 +000014690 lt_prog_compiler_pic_works=no
14691 ac_outfile=conftest.$ac_objext
14692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14693 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14694 # Insert the option either (1) after the last *FLAGS variable, or
14695 # (2) before a word containing "conftest.", or (3) at the end.
14696 # Note that $ac_compile itself does not contain backslashes and begins
14697 # with a dollar sign (not a hyphen), so the echo should work correctly.
14698 # The option is referenced via a variable to avoid confusing sed.
14699 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14702 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000014703 (eval echo "\"\$as_me:14703: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014704 (eval "$lt_compile" 2>conftest.err)
14705 ac_status=$?
14706 cat conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000014707 echo "$as_me:14707: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014708 if (exit $ac_status) && test -s "$ac_outfile"; then
14709 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014710 # So say no if there are warnings other than the usual output.
14711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014714 lt_prog_compiler_pic_works=yes
14715 fi
14716 fi
14717 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014718
John Criswell47fdd832003-07-14 16:52:07 +000014719fi
Reid Spencera773bd52006-08-04 18:18:08 +000014720{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14721echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014722
John Criswell47fdd832003-07-14 16:52:07 +000014723if test x"$lt_prog_compiler_pic_works" = xyes; then
14724 case $lt_prog_compiler_pic in
14725 "" | " "*) ;;
14726 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14727 esac
John Criswell7a73b802003-06-30 21:59:07 +000014728else
John Criswell47fdd832003-07-14 16:52:07 +000014729 lt_prog_compiler_pic=
14730 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014731fi
14732
John Criswell7a73b802003-06-30 21:59:07 +000014733fi
Reid Spencera773bd52006-08-04 18:18:08 +000014734case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014735 # For platforms which do not support PIC, -DPIC is meaningless:
14736 *djgpp*)
14737 lt_prog_compiler_pic=
14738 ;;
14739 *)
14740 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14741 ;;
14742esac
John Criswell7a73b802003-06-30 21:59:07 +000014743
Reid Spencera773bd52006-08-04 18:18:08 +000014744#
14745# Check to make sure the static flag actually works.
14746#
14747wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14748{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14749echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14750if test "${lt_prog_compiler_static_works+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 lt_prog_compiler_static_works=no
14754 save_LDFLAGS="$LDFLAGS"
14755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14756 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14758 # The linker can only warn and ignore the option if not recognized
14759 # So say no if there are warnings
14760 if test -s conftest.err; then
14761 # Append any errors to the config.log.
14762 cat conftest.err 1>&5
14763 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765 if diff conftest.exp conftest.er2 >/dev/null; then
14766 lt_prog_compiler_static_works=yes
14767 fi
14768 else
14769 lt_prog_compiler_static_works=yes
14770 fi
14771 fi
14772 $rm conftest*
14773 LDFLAGS="$save_LDFLAGS"
14774
14775fi
14776{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14777echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14778
14779if test x"$lt_prog_compiler_static_works" = xyes; then
14780 :
14781else
14782 lt_prog_compiler_static=
14783fi
14784
14785
14786{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14787echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014788if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else
John Criswell47fdd832003-07-14 16:52:07 +000014791 lt_cv_prog_compiler_c_o=no
14792 $rm -r conftest 2>/dev/null
14793 mkdir conftest
14794 cd conftest
14795 mkdir out
14796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014797
John Criswell47fdd832003-07-14 16:52:07 +000014798 lt_compiler_flag="-o out/conftest2.$ac_objext"
14799 # Insert the option either (1) after the last *FLAGS variable, or
14800 # (2) before a word containing "conftest.", or (3) at the end.
14801 # Note that $ac_compile itself does not contain backslashes and begins
14802 # with a dollar sign (not a hyphen), so the echo should work correctly.
14803 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14806 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000014807 (eval echo "\"\$as_me:14807: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014808 (eval "$lt_compile" 2>out/conftest.err)
14809 ac_status=$?
14810 cat out/conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000014811 echo "$as_me:14811: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14813 then
14814 # The compiler can only warn and ignore the option if not recognized
14815 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014819 lt_cv_prog_compiler_c_o=yes
14820 fi
14821 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014822 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014823 $rm conftest*
14824 # SGI C++ compiler will create directory out/ii_files/ for
14825 # template instantiation
14826 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14827 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014828 cd ..
14829 rmdir conftest
14830 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014831
14832fi
Reid Spencera773bd52006-08-04 18:18:08 +000014833{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14834echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014835
John Criswell7a73b802003-06-30 21:59:07 +000014836
John Criswell7a73b802003-06-30 21:59:07 +000014837hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014838if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014839 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014840 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14841echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014842 hard_links=yes
14843 $rm conftest*
14844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14845 touch conftest.a
14846 ln conftest.a conftest.b 2>&5 || hard_links=no
14847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014848 { echo "$as_me:$LINENO: result: $hard_links" >&5
14849echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014850 if test "$hard_links" = no; then
14851 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14852echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14853 need_locks=warn
14854 fi
14855else
14856 need_locks=no
14857fi
John Criswell7a73b802003-06-30 21:59:07 +000014858
Reid Spencera773bd52006-08-04 18:18:08 +000014859{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14860echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014861
14862 runpath_var=
14863 allow_undefined_flag=
14864 enable_shared_with_static_runtimes=no
14865 archive_cmds=
14866 archive_expsym_cmds=
14867 old_archive_From_new_cmds=
14868 old_archive_from_expsyms_cmds=
14869 export_dynamic_flag_spec=
14870 whole_archive_flag_spec=
14871 thread_safe_flag_spec=
14872 hardcode_libdir_flag_spec=
14873 hardcode_libdir_flag_spec_ld=
14874 hardcode_libdir_separator=
14875 hardcode_direct=no
14876 hardcode_minus_L=no
14877 hardcode_shlibpath_var=unsupported
14878 link_all_deplibs=unknown
14879 hardcode_automatic=no
14880 module_cmds=
14881 module_expsym_cmds=
14882 always_export_symbols=no
14883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14884 # include_expsyms should be a list of space-separated symbols to be *always*
14885 # included in the symbol list
14886 include_expsyms=
14887 # exclude_expsyms can be an extended regexp of symbols to exclude
14888 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14889 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14890 # as well as any symbol that contains `d'.
14891 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14892 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14893 # platforms (ab)use it in PIC code, but their linkers get confused if
14894 # the symbol is explicitly referenced. Since portable code cannot
14895 # rely on this symbol name, it's probably fine to never include it in
14896 # preloaded symbol tables.
14897 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014898 # Just being paranoid about ensuring that cc_basename is set.
14899 for cc_temp in $compiler""; do
14900 case $cc_temp in
14901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14903 \-*) ;;
14904 *) break;;
14905 esac
14906done
14907cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014908
14909 case $host_os in
14910 cygwin* | mingw* | pw32*)
14911 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14912 # When not using gcc, we currently assume that we are using
14913 # Microsoft Visual C++.
14914 if test "$GCC" != yes; then
14915 with_gnu_ld=no
14916 fi
14917 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014918 interix*)
14919 # we just hope/assume this is gcc and not c89 (= MSVC++)
14920 with_gnu_ld=yes
14921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014922 openbsd*)
14923 with_gnu_ld=no
14924 ;;
14925 esac
14926
14927 ld_shlibs=yes
14928 if test "$with_gnu_ld" = yes; then
14929 # If archive_cmds runs LD, not CC, wlarc should be empty
14930 wlarc='${wl}'
14931
Reid Spencera773bd52006-08-04 18:18:08 +000014932 # Set some defaults for GNU ld with shared library support. These
14933 # are reset later if shared libraries are not supported. Putting them
14934 # here allows them to be overridden if necessary.
14935 runpath_var=LD_RUN_PATH
14936 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14937 export_dynamic_flag_spec='${wl}--export-dynamic'
14938 # ancient GNU ld didn't support --whole-archive et. al.
14939 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14940 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14941 else
14942 whole_archive_flag_spec=
14943 fi
14944 supports_anon_versioning=no
14945 case `$LD -v 2>/dev/null` in
14946 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14947 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14948 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14949 *\ 2.11.*) ;; # other 2.11 versions
14950 *) supports_anon_versioning=yes ;;
14951 esac
14952
John Criswell47fdd832003-07-14 16:52:07 +000014953 # See if GNU ld supports shared libraries.
14954 case $host_os in
14955 aix3* | aix4* | aix5*)
14956 # On AIX/PPC, the GNU linker is very broken
14957 if test "$host_cpu" != ia64; then
14958 ld_shlibs=no
14959 cat <<EOF 1>&2
14960
14961*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14962*** to be unable to reliably create shared libraries on AIX.
14963*** Therefore, libtool is disabling shared libraries support. If you
14964*** really care for shared libraries, you may want to modify your PATH
14965*** so that a non-GNU linker is found, and then restart.
14966
14967EOF
14968 fi
14969 ;;
14970
14971 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014972 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 +000014973 hardcode_libdir_flag_spec='-L$libdir'
14974 hardcode_minus_L=yes
14975
14976 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14977 # that the semantics of dynamic libraries on AmigaOS, at least up
14978 # to version 4, is to share data among multiple programs linked
14979 # with the same dynamic library. Since this doesn't match the
14980 # behavior of shared libraries on other platforms, we can't use
14981 # them.
14982 ld_shlibs=no
14983 ;;
14984
14985 beos*)
14986 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987 allow_undefined_flag=unsupported
14988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14989 # support --undefined. This deserves some investigation. FIXME
14990 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14991 else
14992 ld_shlibs=no
14993 fi
14994 ;;
14995
14996 cygwin* | mingw* | pw32*)
14997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14998 # as there is no search path for DLLs.
14999 hardcode_libdir_flag_spec='-L$libdir'
15000 allow_undefined_flag=unsupported
15001 always_export_symbols=no
15002 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015003 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 +000015004
15005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015006 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 +000015007 # If the export-symbols file already is a .def file (1st line
15008 # is EXPORTS), use it as is; otherwise, prepend...
15009 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15010 cp $export_symbols $output_objdir/$soname.def;
15011 else
15012 echo EXPORTS > $output_objdir/$soname.def;
15013 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015014 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015015 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15016 else
15017 ld_shlibs=no
15018 fi
15019 ;;
15020
15021 interix3*)
15022 hardcode_direct=no
15023 hardcode_shlibpath_var=no
15024 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15025 export_dynamic_flag_spec='${wl}-E'
15026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15027 # Instead, shared libraries are loaded at an image base (0x10000000 by
15028 # default) and relocated if they conflict, which is a slow very memory
15029 # consuming and fragmenting process. To avoid this, we pick a random,
15030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15031 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15032 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15033 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'
15034 ;;
15035
15036 linux*)
15037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15038 tmp_addflag=
15039 case $cc_basename,$host_cpu in
15040 pgcc*) # Portland Group C compiler
15041 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'
15042 tmp_addflag=' $pic_flag'
15043 ;;
15044 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15045 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'
15046 tmp_addflag=' $pic_flag -Mnomain' ;;
15047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15048 tmp_addflag=' -i_dynamic' ;;
15049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15050 tmp_addflag=' -i_dynamic -nofor_main' ;;
15051 ifc* | ifort*) # Intel Fortran compiler
15052 tmp_addflag=' -nofor_main' ;;
15053 esac
15054 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055
15056 if test $supports_anon_versioning = yes; then
15057 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15059 $echo "local: *; };" >> $output_objdir/$libname.ver~
15060 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15061 fi
John Criswell47fdd832003-07-14 16:52:07 +000015062 else
15063 ld_shlibs=no
15064 fi
15065 ;;
15066
15067 netbsd*)
15068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15069 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15070 wlarc=
15071 else
15072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15074 fi
15075 ;;
15076
Reid Spencera773bd52006-08-04 18:18:08 +000015077 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015078 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15079 ld_shlibs=no
15080 cat <<EOF 1>&2
15081
15082*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15083*** create shared libraries on Solaris systems. Therefore, libtool
15084*** is disabling shared libraries support. We urge you to upgrade GNU
15085*** binutils to release 2.9.1 or newer. Another option is to modify
15086*** your PATH or compiler configuration so that the native linker is
15087*** used, and then restart.
15088
15089EOF
15090 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15093 else
15094 ld_shlibs=no
15095 fi
15096 ;;
15097
Reid Spencera773bd52006-08-04 18:18:08 +000015098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15099 case `$LD -v 2>&1` in
15100 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15101 ld_shlibs=no
15102 cat <<_LT_EOF 1>&2
15103
15104*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15105*** reliably create shared libraries on SCO systems. Therefore, libtool
15106*** is disabling shared libraries support. We urge you to upgrade GNU
15107*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15108*** your PATH or compiler configuration so that the native linker is
15109*** used, and then restart.
15110
15111_LT_EOF
15112 ;;
15113 *)
15114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15118 else
15119 ld_shlibs=no
15120 fi
15121 ;;
15122 esac
15123 ;;
15124
John Criswell47fdd832003-07-14 16:52:07 +000015125 sunos4*)
15126 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15127 wlarc=
15128 hardcode_direct=yes
15129 hardcode_shlibpath_var=no
15130 ;;
15131
15132 *)
15133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136 else
15137 ld_shlibs=no
15138 fi
15139 ;;
15140 esac
15141
Reid Spencera773bd52006-08-04 18:18:08 +000015142 if test "$ld_shlibs" = no; then
15143 runpath_var=
15144 hardcode_libdir_flag_spec=
15145 export_dynamic_flag_spec=
15146 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015147 fi
15148 else
15149 # PORTME fill in a description of your system's linker (not GNU ld)
15150 case $host_os in
15151 aix3*)
15152 allow_undefined_flag=unsupported
15153 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015154 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 +000015155 # Note: this linker hardcodes the directories in LIBPATH if there
15156 # are no directories specified by -L.
15157 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015158 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015159 # Neither direct hardcoding nor static linking is supported with a
15160 # broken collect2.
15161 hardcode_direct=unsupported
15162 fi
15163 ;;
15164
15165 aix4* | aix5*)
15166 if test "$host_cpu" = ia64; then
15167 # On IA64, the linker does run time linking by default, so we don't
15168 # have to do anything special.
15169 aix_use_runtimelinking=no
15170 exp_sym_flag='-Bexport'
15171 no_entry_flag=""
15172 else
15173 # If we're using GNU nm, then we don't want the "-C" option.
15174 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15175 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15176 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'
15177 else
15178 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'
15179 fi
15180 aix_use_runtimelinking=no
15181
15182 # Test if we are trying to use run time linking or normal
15183 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15184 # need to do runtime linking.
15185 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15186 for ld_flag in $LDFLAGS; do
15187 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15188 aix_use_runtimelinking=yes
15189 break
15190 fi
15191 done
Reid Spencera773bd52006-08-04 18:18:08 +000015192 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015193 esac
15194
15195 exp_sym_flag='-bexport'
15196 no_entry_flag='-bnoentry'
15197 fi
15198
15199 # When large executables or shared objects are built, AIX ld can
15200 # have problems creating the table of contents. If linking a library
15201 # or program results in "error TOC overflow" add -mminimal-toc to
15202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15204
15205 archive_cmds=''
15206 hardcode_direct=yes
15207 hardcode_libdir_separator=':'
15208 link_all_deplibs=yes
15209
15210 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015211 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015212 # We only want to do this on AIX 4.2 and lower, the check
15213 # below for broken collect2 doesn't work under 4.3+
15214 collect2name=`${CC} -print-prog-name=collect2`
15215 if test -f "$collect2name" && \
15216 strings "$collect2name" | grep resolve_lib_name >/dev/null
15217 then
15218 # We have reworked collect2
15219 hardcode_direct=yes
15220 else
15221 # We have old collect2
15222 hardcode_direct=unsupported
15223 # It fails to find uninstalled libraries when the uninstalled
15224 # path is not listed in the libpath. Setting hardcode_minus_L
15225 # to unsupported forces relinking
15226 hardcode_minus_L=yes
15227 hardcode_libdir_flag_spec='-L$libdir'
15228 hardcode_libdir_separator=
15229 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015230 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015231 esac
15232 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015233 if test "$aix_use_runtimelinking" = yes; then
15234 shared_flag="$shared_flag "'${wl}-G'
15235 fi
John Criswell47fdd832003-07-14 16:52:07 +000015236 else
15237 # not using gcc
15238 if test "$host_cpu" = ia64; then
15239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15240 # chokes on -Wl,-G. The following line is correct:
15241 shared_flag='-G'
15242 else
Reid Spencera773bd52006-08-04 18:18:08 +000015243 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015244 shared_flag='${wl}-G'
15245 else
15246 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015247 fi
John Criswell47fdd832003-07-14 16:52:07 +000015248 fi
15249 fi
15250
15251 # It seems that -bexpall does not export symbols beginning with
15252 # underscore (_), so it is better to generate a list of symbols to export.
15253 always_export_symbols=yes
15254 if test "$aix_use_runtimelinking" = yes; then
15255 # Warning - without using the other runtime loading flags (-brtl),
15256 # -berok will link without error, but may produce a broken library.
15257 allow_undefined_flag='-berok'
15258 # Determine the default libpath from the value encoded in an empty executable.
15259 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
15264/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015265
John Criswell7a73b802003-06-30 21:59:07 +000015266int
15267main ()
15268{
John Criswell47fdd832003-07-14 16:52:07 +000015269
John Criswell7a73b802003-06-30 21:59:07 +000015270 ;
15271 return 0;
15272}
15273_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015274rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015275if { (ac_try="$ac_link"
15276case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279esac
15280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015282 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292esac
15293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015308
John Criswell47fdd832003-07-14 16:52:07 +000015309aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15310}'`
15311# Check for a 64-bit object if we didn't find anything.
15312if 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; }
15313}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015314else
15315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015316sed 's/^/| /' conftest.$ac_ext >&5
15317
Reid Spencera773bd52006-08-04 18:18:08 +000015318
John Criswell7a73b802003-06-30 21:59:07 +000015319fi
Reid Spencera773bd52006-08-04 18:18:08 +000015320
Bill Wendlingebcceee2009-04-18 11:20:33 +000015321rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015322 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015324
John Criswell47fdd832003-07-14 16:52:07 +000015325 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015326 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 +000015327 else
15328 if test "$host_cpu" = ia64; then
15329 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15330 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015331 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 +000015332 else
15333 # Determine the default libpath from the value encoded in an empty executable.
15334 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015340
John Criswell47fdd832003-07-14 16:52:07 +000015341int
15342main ()
15343{
John Criswell7a73b802003-06-30 21:59:07 +000015344
John Criswell47fdd832003-07-14 16:52:07 +000015345 ;
15346 return 0;
15347}
15348_ACEOF
15349rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015350if { (ac_try="$ac_link"
15351case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354esac
15355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest$ac_exeext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377esac
15378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015383
John Criswell47fdd832003-07-14 16:52:07 +000015384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15385}'`
15386# Check for a 64-bit object if we didn't find anything.
15387if 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; }
15388}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015389else
John Criswell47fdd832003-07-14 16:52:07 +000015390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015391sed 's/^/| /' conftest.$ac_ext >&5
15392
Reid Spencera773bd52006-08-04 18:18:08 +000015393
John Criswell47fdd832003-07-14 16:52:07 +000015394fi
Reid Spencera773bd52006-08-04 18:18:08 +000015395
Bill Wendlingebcceee2009-04-18 11:20:33 +000015396rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015397 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015399
John Criswell47fdd832003-07-14 16:52:07 +000015400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15401 # Warning - without using the other run time loading flags,
15402 # -berok will link without error, but may produce a broken library.
15403 no_undefined_flag=' ${wl}-bernotok'
15404 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015405 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015406 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015407 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015408 # This is similar to how AIX traditionally builds its shared libraries.
15409 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 +000015410 fi
15411 fi
John Criswell7a73b802003-06-30 21:59:07 +000015412 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015413
15414 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015415 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 +000015416 hardcode_libdir_flag_spec='-L$libdir'
15417 hardcode_minus_L=yes
15418 # see comment about different semantics on the GNU ld section
15419 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015420 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015421
Reid Spencer2706f8c2004-09-19 23:53:36 +000015422 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015423 export_dynamic_flag_spec=-rdynamic
15424 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015425
John Criswell47fdd832003-07-14 16:52:07 +000015426 cygwin* | mingw* | pw32*)
15427 # When not using gcc, we currently assume that we are using
15428 # Microsoft Visual C++.
15429 # hardcode_libdir_flag_spec is actually meaningless, as there is
15430 # no search path for DLLs.
15431 hardcode_libdir_flag_spec=' '
15432 allow_undefined_flag=unsupported
15433 # Tell ltmain to make .lib files, not .a files.
15434 libext=lib
15435 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015436 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015437 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015439 # The linker will automatically build a .lib file if we build a DLL.
15440 old_archive_From_new_cmds='true'
15441 # FIXME: Should let the user specify the lib program.
15442 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15443 fix_srcfile_path='`cygpath -w "$srcfile"`'
15444 enable_shared_with_static_runtimes=yes
15445 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015446
John Criswell47fdd832003-07-14 16:52:07 +000015447 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015448 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015449 rhapsody* | darwin1.[012])
15450 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15451 ;;
15452 *) # Darwin 1.3 on
15453 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15454 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15455 else
15456 case ${MACOSX_DEPLOYMENT_TARGET} in
15457 10.[012])
15458 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15459 ;;
15460 10.*)
15461 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15462 ;;
15463 esac
15464 fi
15465 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015466 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015467 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015468 hardcode_direct=no
15469 hardcode_automatic=yes
15470 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015471 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015472 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015473 if test "$GCC" = yes ; then
15474 output_verbose_link_cmd='echo'
15475 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15476 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015477 # 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 +000015478 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}'
15479 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 +000015480 else
Reid Spencera773bd52006-08-04 18:18:08 +000015481 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015482 xlc*)
15483 output_verbose_link_cmd='echo'
15484 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15485 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015486 # 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 +000015487 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}'
15488 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 +000015489 ;;
15490 *)
15491 ld_shlibs=no
15492 ;;
15493 esac
John Criswell7a73b802003-06-30 21:59:07 +000015494 fi
John Criswell47fdd832003-07-14 16:52:07 +000015495 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015496
John Criswell47fdd832003-07-14 16:52:07 +000015497 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015499 hardcode_libdir_flag_spec='-L$libdir'
15500 hardcode_shlibpath_var=no
15501 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015502
John Criswell47fdd832003-07-14 16:52:07 +000015503 freebsd1*)
15504 ld_shlibs=no
15505 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015506
John Criswell47fdd832003-07-14 16:52:07 +000015507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15508 # support. Future versions do this automatically, but an explicit c++rt0.o
15509 # does not break anything, and helps significantly (at the cost of a little
15510 # extra space).
15511 freebsd2.2*)
15512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15513 hardcode_libdir_flag_spec='-R$libdir'
15514 hardcode_direct=yes
15515 hardcode_shlibpath_var=no
15516 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015517
John Criswell47fdd832003-07-14 16:52:07 +000015518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15519 freebsd2*)
15520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct=yes
15522 hardcode_minus_L=yes
15523 hardcode_shlibpath_var=no
15524 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015525
John Criswell47fdd832003-07-14 16:52:07 +000015526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015527 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015528 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15529 hardcode_libdir_flag_spec='-R$libdir'
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15532 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015533
John Criswell47fdd832003-07-14 16:52:07 +000015534 hpux9*)
15535 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015536 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 +000015537 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015538 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 +000015539 fi
15540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_separator=:
15542 hardcode_direct=yes
15543
15544 # hardcode_minus_L: Not really in the search PATH,
15545 # but as the default location of the library.
15546 hardcode_minus_L=yes
15547 export_dynamic_flag_spec='${wl}-E'
15548 ;;
15549
Reid Spencera773bd52006-08-04 18:18:08 +000015550 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553 else
15554 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15555 fi
15556 if test "$with_gnu_ld" = no; then
15557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15558 hardcode_libdir_separator=:
15559
15560 hardcode_direct=yes
15561 export_dynamic_flag_spec='${wl}-E'
15562
15563 # hardcode_minus_L: Not really in the search PATH,
15564 # but as the default location of the library.
15565 hardcode_minus_L=yes
15566 fi
15567 ;;
15568
15569 hpux11*)
15570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15571 case $host_cpu in
15572 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015573 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015575 ia64*)
15576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15577 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015578 *)
15579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15580 ;;
15581 esac
15582 else
Reid Spencera773bd52006-08-04 18:18:08 +000015583 case $host_cpu in
15584 hppa*64*)
15585 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 ;;
15587 ia64*)
15588 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015589 ;;
15590 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015591 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 +000015592 ;;
15593 esac
15594 fi
15595 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15597 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015598
Reid Spencera773bd52006-08-04 18:18:08 +000015599 case $host_cpu in
15600 hppa*64*|ia64*)
15601 hardcode_libdir_flag_spec_ld='+b $libdir'
15602 hardcode_direct=no
15603 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015604 ;;
15605 *)
John Criswell47fdd832003-07-14 16:52:07 +000015606 hardcode_direct=yes
15607 export_dynamic_flag_spec='${wl}-E'
15608
15609 # hardcode_minus_L: Not really in the search PATH,
15610 # but as the default location of the library.
15611 hardcode_minus_L=yes
15612 ;;
15613 esac
15614 fi
15615 ;;
15616
15617 irix5* | irix6* | nonstopux*)
15618 if test "$GCC" = yes; then
15619 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'
15620 else
15621 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'
15622 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15623 fi
15624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15625 hardcode_libdir_separator=:
15626 link_all_deplibs=yes
15627 ;;
15628
15629 netbsd*)
15630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15632 else
15633 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15634 fi
15635 hardcode_libdir_flag_spec='-R$libdir'
15636 hardcode_direct=yes
15637 hardcode_shlibpath_var=no
15638 ;;
15639
15640 newsos6)
15641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642 hardcode_direct=yes
15643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15644 hardcode_libdir_separator=:
15645 hardcode_shlibpath_var=no
15646 ;;
15647
15648 openbsd*)
15649 hardcode_direct=yes
15650 hardcode_shlibpath_var=no
15651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015653 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 +000015654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15655 export_dynamic_flag_spec='${wl}-E'
15656 else
15657 case $host_os in
15658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15660 hardcode_libdir_flag_spec='-R$libdir'
15661 ;;
15662 *)
15663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15665 ;;
15666 esac
15667 fi
15668 ;;
15669
15670 os2*)
15671 hardcode_libdir_flag_spec='-L$libdir'
15672 hardcode_minus_L=yes
15673 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015674 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 +000015675 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15676 ;;
15677
15678 osf3*)
15679 if test "$GCC" = yes; then
15680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15681 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'
15682 else
15683 allow_undefined_flag=' -expect_unresolved \*'
15684 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'
15685 fi
15686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15687 hardcode_libdir_separator=:
15688 ;;
15689
15690 osf4* | osf5*) # as osf3* with the addition of -msym flag
15691 if test "$GCC" = yes; then
15692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15693 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'
15694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15695 else
15696 allow_undefined_flag=' -expect_unresolved \*'
15697 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 +000015698 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 +000015699 $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 +000015700
John Criswell47fdd832003-07-14 16:52:07 +000015701 # Both c and cxx compiler support -rpath directly
15702 hardcode_libdir_flag_spec='-rpath $libdir'
15703 fi
15704 hardcode_libdir_separator=:
15705 ;;
15706
John Criswell47fdd832003-07-14 16:52:07 +000015707 solaris*)
15708 no_undefined_flag=' -z text'
15709 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015710 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015711 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015712 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15713 $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 +000015714 else
Reid Spencera773bd52006-08-04 18:18:08 +000015715 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015716 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15718 $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 +000015719 fi
15720 hardcode_libdir_flag_spec='-R$libdir'
15721 hardcode_shlibpath_var=no
15722 case $host_os in
15723 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015724 *)
15725 # The compiler driver will combine linker options so we
15726 # cannot just pass the convience library names through
15727 # without $wl, iff we do not link with $LD.
15728 # Luckily, gcc supports the same syntax we need for Sun Studio.
15729 # Supported since Solaris 2.6 (maybe 2.5.1?)
15730 case $wlarc in
15731 '')
15732 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15733 *)
15734 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' ;;
15735 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015736 esac
15737 link_all_deplibs=yes
15738 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015739
John Criswell47fdd832003-07-14 16:52:07 +000015740 sunos4*)
15741 if test "x$host_vendor" = xsequent; then
15742 # Use $CC to link under sequent, because it throws in some extra .o
15743 # files that make .init and .fini sections work.
15744 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15745 else
15746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15747 fi
15748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_direct=yes
15750 hardcode_minus_L=yes
15751 hardcode_shlibpath_var=no
15752 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015753
John Criswell47fdd832003-07-14 16:52:07 +000015754 sysv4)
15755 case $host_vendor in
15756 sni)
15757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_direct=yes # is this really true???
15759 ;;
15760 siemens)
15761 ## LD is ld it makes a PLAMLIB
15762 ## CC just makes a GrossModule.
15763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15764 reload_cmds='$CC -r -o $output$reload_objs'
15765 hardcode_direct=no
15766 ;;
15767 motorola)
15768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15770 ;;
15771 esac
15772 runpath_var='LD_RUN_PATH'
15773 hardcode_shlibpath_var=no
15774 ;;
15775
15776 sysv4.3*)
15777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778 hardcode_shlibpath_var=no
15779 export_dynamic_flag_spec='-Bexport'
15780 ;;
15781
15782 sysv4*MP*)
15783 if test -d /usr/nec; then
15784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785 hardcode_shlibpath_var=no
15786 runpath_var=LD_RUN_PATH
15787 hardcode_runpath_var=yes
15788 ld_shlibs=yes
15789 fi
15790 ;;
15791
Reid Spencera773bd52006-08-04 18:18:08 +000015792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15793 no_undefined_flag='${wl}-z,text'
15794 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015795 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015796 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015797
John Criswell47fdd832003-07-14 16:52:07 +000015798 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 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 +000015801 else
Reid Spencera773bd52006-08-04 18:18:08 +000015802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 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 +000015804 fi
John Criswell47fdd832003-07-14 16:52:07 +000015805 ;;
15806
Reid Spencera773bd52006-08-04 18:18:08 +000015807 sysv5* | sco3.2v5* | sco5v6*)
15808 # Note: We can NOT use -z defs as we might desire, because we do not
15809 # link with -lc, and that would cause any symbols used from libc to
15810 # always be unresolved, which means just about no library would
15811 # ever link correctly. If we're not using GNU ld we use -z text
15812 # though, which does catch some bad symbols but isn't as heavy-handed
15813 # as -z defs.
15814 no_undefined_flag='${wl}-z,text'
15815 allow_undefined_flag='${wl}-z,nodefs'
15816 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015817 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015818 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15819 hardcode_libdir_separator=':'
15820 link_all_deplibs=yes
15821 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015822 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015823
15824 if test "$GCC" = yes; then
15825 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 else
15828 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15830 fi
John Criswell47fdd832003-07-14 16:52:07 +000015831 ;;
15832
15833 uts4*)
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_libdir_flag_spec='-L$libdir'
15836 hardcode_shlibpath_var=no
15837 ;;
15838
15839 *)
15840 ld_shlibs=no
15841 ;;
15842 esac
15843 fi
15844
Reid Spencera773bd52006-08-04 18:18:08 +000015845{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15846echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015847test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015848
John Criswell47fdd832003-07-14 16:52:07 +000015849#
15850# Do we need to explicitly link libc?
15851#
15852case "x$archive_cmds_need_lc" in
15853x|xyes)
15854 # Assume -lc should be added
15855 archive_cmds_need_lc=yes
15856
15857 if test "$enable_shared" = yes && test "$GCC" = yes; then
15858 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015859 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015860 # FIXME: we may have to deal with multi-command sequences.
15861 ;;
15862 '$CC '*)
15863 # Test whether the compiler implicitly links with -lc since on some
15864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15865 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015866 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15867echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015868 $rm conftest*
15869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15870
15871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15872 (eval $ac_compile) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } 2>conftest.err; then
15876 soname=conftest
15877 lib=conftest
15878 libobjs=conftest.$ac_objext
15879 deplibs=
15880 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015881 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015882 compiler_flags=-v
15883 linker_flags=-v
15884 verstring=
15885 output_objdir=.
15886 libname=conftest
15887 lt_save_allow_undefined_flag=$allow_undefined_flag
15888 allow_undefined_flag=
15889 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15890 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }
15894 then
15895 archive_cmds_need_lc=no
15896 else
15897 archive_cmds_need_lc=yes
15898 fi
15899 allow_undefined_flag=$lt_save_allow_undefined_flag
15900 else
15901 cat conftest.err 1>&5
15902 fi
15903 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015904 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15905echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015906 ;;
15907 esac
15908 fi
15909 ;;
15910esac
15911
Reid Spencera773bd52006-08-04 18:18:08 +000015912{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15913echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015914library_names_spec=
15915libname_spec='lib$name'
15916soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015917shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015918postinstall_cmds=
15919postuninstall_cmds=
15920finish_cmds=
15921finish_eval=
15922shlibpath_var=
15923shlibpath_overrides_runpath=unknown
15924version_type=none
15925dynamic_linker="$host_os ld.so"
15926sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015927if test "$GCC" = yes; then
15928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15929 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15930 # if the path contains ";" then we assume it to be the separator
15931 # otherwise default to the standard path separator (i.e. ":") - it is
15932 # assumed that no part of a normal pathname contains ";" but that should
15933 # okay in the real world where ";" in dirpaths is itself problematic.
15934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15935 else
15936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15937 fi
15938else
15939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15940fi
15941need_lib_prefix=unknown
15942hardcode_into_libs=no
15943
15944# when you set need_version to no, make sure it does not cause -set_version
15945# flags to be left without arguments
15946need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015947
15948case $host_os in
15949aix3*)
15950 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015952 shlibpath_var=LIBPATH
15953
John Criswell47fdd832003-07-14 16:52:07 +000015954 # AIX 3 has no versioning support, so we append a major version to the name.
15955 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015956 ;;
15957
15958aix4* | aix5*)
15959 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015960 need_lib_prefix=no
15961 need_version=no
15962 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015963 if test "$host_cpu" = ia64; then
15964 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015966 shlibpath_var=LD_LIBRARY_PATH
15967 else
15968 # With GCC up to 2.95.x, collect2 would create an import file
15969 # for dependence libraries. The import file would start with
15970 # the line `#! .'. This would cause the generated library to
15971 # depend on `.', always an invalid library. This was fixed in
15972 # development snapshots of GCC prior to 3.0.
15973 case $host_os in
15974 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15976 echo ' yes '
15977 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15978 :
15979 else
15980 can_build_shared=no
15981 fi
15982 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015983 esac
John Criswell47fdd832003-07-14 16:52:07 +000015984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15985 # soname into executable. Probably we can add versioning support to
15986 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015987 if test "$aix_use_runtimelinking" = yes; then
15988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15989 # instead of lib<name>.a to let people know that these are not
15990 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015992 else
15993 # We preserve .a as extension for shared libraries through AIX4.2
15994 # and later when we are not doing run time linking.
15995 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015996 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015997 fi
15998 shlibpath_var=LIBPATH
15999 fi
16000 ;;
16001
16002amigaos*)
16003 library_names_spec='$libname.ixlibrary $libname.a'
16004 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016005 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 +000016006 ;;
16007
16008beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016009 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016010 dynamic_linker="$host_os ld.so"
16011 shlibpath_var=LIBRARY_PATH
16012 ;;
16013
Reid Spencer2706f8c2004-09-19 23:53:36 +000016014bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016015 version_type=linux
16016 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016023 # the default ld.so.conf also contains /usr/contrib/lib and
16024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16025 # libtool to hard-code these into programs
16026 ;;
16027
16028cygwin* | mingw* | pw32*)
16029 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016030 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016031 need_version=no
16032 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016033
John Criswell7a73b802003-06-30 21:59:07 +000016034 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016035 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016036 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016037 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016038 postinstall_cmds='base_file=`basename \${file}`~
16039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16040 dldir=$destdir/`dirname \$dlpath`~
16041 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016042 $install_prog $dir/$dlname \$dldir/$dlname~
16043 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16045 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016046 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016047 shlibpath_overrides_runpath=yes
16048
16049 case $host_os in
16050 cygwin*)
16051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16052 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 +000016053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016054 ;;
16055 mingw*)
16056 # MinGW DLLs use traditional 'lib' prefix
16057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16060 # It is most probably a Windows format PATH printed by
16061 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16062 # path with ; separators, and with drive letters. We can handle the
16063 # drive letters (cygwin fileutils understands them), so leave them,
16064 # especially as we might pass files found there to a mingw objdump,
16065 # which wouldn't understand a cygwinified path. Ahh.
16066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16067 else
16068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16069 fi
16070 ;;
16071 pw32*)
16072 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016073 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 +000016074 ;;
16075 esac
John Criswell7a73b802003-06-30 21:59:07 +000016076 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016077
John Criswell7a73b802003-06-30 21:59:07 +000016078 *)
John Criswell47fdd832003-07-14 16:52:07 +000016079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016080 ;;
16081 esac
16082 dynamic_linker='Win32 ld.exe'
16083 # FIXME: first we should search . and the directory the executable is in
16084 shlibpath_var=PATH
16085 ;;
16086
16087darwin* | rhapsody*)
16088 dynamic_linker="$host_os dyld"
16089 version_type=darwin
16090 need_lib_prefix=no
16091 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016093 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016094 shlibpath_overrides_runpath=yes
16095 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016096 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016097 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016098 if test "$GCC" = yes; then
16099 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"`
16100 else
16101 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016102 fi
16103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16104 ;;
16105
16106dgux*)
16107 version_type=linux
16108 need_lib_prefix=no
16109 need_version=no
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016113 ;;
16114
16115freebsd1*)
16116 dynamic_linker=no
16117 ;;
16118
Reid Spencer2706f8c2004-09-19 23:53:36 +000016119kfreebsd*-gnu)
16120 version_type=linux
16121 need_lib_prefix=no
16122 need_version=no
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=no
16127 hardcode_into_libs=yes
16128 dynamic_linker='GNU ld.so'
16129 ;;
16130
Reid Spencera773bd52006-08-04 18:18:08 +000016131freebsd* | dragonfly*)
16132 # DragonFly does not have aout. When/if they implement a new
16133 # versioning mechanism, adjust this.
16134 if test -x /usr/bin/objformat; then
16135 objformat=`/usr/bin/objformat`
16136 else
16137 case $host_os in
16138 freebsd[123]*) objformat=aout ;;
16139 *) objformat=elf ;;
16140 esac
16141 fi
John Criswell7a73b802003-06-30 21:59:07 +000016142 version_type=freebsd-$objformat
16143 case $version_type in
16144 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016146 need_version=no
16147 need_lib_prefix=no
16148 ;;
16149 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016151 need_version=yes
16152 ;;
16153 esac
16154 shlibpath_var=LD_LIBRARY_PATH
16155 case $host_os in
16156 freebsd2*)
16157 shlibpath_overrides_runpath=yes
16158 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016159 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016160 shlibpath_overrides_runpath=yes
16161 hardcode_into_libs=yes
16162 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016165 shlibpath_overrides_runpath=no
16166 hardcode_into_libs=yes
16167 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016168 freebsd*) # from 4.6 on
16169 shlibpath_overrides_runpath=yes
16170 hardcode_into_libs=yes
16171 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016172 esac
16173 ;;
16174
16175gnu*)
16176 version_type=linux
16177 need_lib_prefix=no
16178 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016181 shlibpath_var=LD_LIBRARY_PATH
16182 hardcode_into_libs=yes
16183 ;;
16184
16185hpux9* | hpux10* | hpux11*)
16186 # Give a soname corresponding to the major version so that dld.sl refuses to
16187 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016188 version_type=sunos
16189 need_lib_prefix=no
16190 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016191 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016192 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016193 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016194 hardcode_into_libs=yes
16195 dynamic_linker="$host_os dld.so"
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 if test "X$HPUX_IA64_MODE" = X32; then
16201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16202 else
16203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16204 fi
16205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16206 ;;
16207 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016208 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016209 hardcode_into_libs=yes
16210 dynamic_linker="$host_os dld.sl"
16211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16217 ;;
16218 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016219 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016220 dynamic_linker="$host_os dld.sl"
16221 shlibpath_var=SHLIB_PATH
16222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 ;;
16226 esac
John Criswell7a73b802003-06-30 21:59:07 +000016227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16228 postinstall_cmds='chmod 555 $lib'
16229 ;;
16230
Reid Spencera773bd52006-08-04 18:18:08 +000016231interix3*)
16232 version_type=linux
16233 need_lib_prefix=no
16234 need_version=no
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 shlibpath_overrides_runpath=no
16240 hardcode_into_libs=yes
16241 ;;
16242
John Criswell47fdd832003-07-14 16:52:07 +000016243irix5* | irix6* | nonstopux*)
16244 case $host_os in
16245 nonstopux*) version_type=nonstopux ;;
16246 *)
16247 if test "$lt_cv_prog_gnu_ld" = yes; then
16248 version_type=linux
16249 else
16250 version_type=irix
16251 fi ;;
16252 esac
John Criswell7a73b802003-06-30 21:59:07 +000016253 need_lib_prefix=no
16254 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016255 soname_spec='${libname}${release}${shared_ext}$major'
16256 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 +000016257 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016258 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016259 libsuff= shlibsuff=
16260 ;;
16261 *)
16262 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16264 libsuff= shlibsuff= libmagic=32-bit;;
16265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16266 libsuff=32 shlibsuff=N32 libmagic=N32;;
16267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016269 *) libsuff= shlibsuff= libmagic=never-match;;
16270 esac
16271 ;;
16272 esac
16273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16274 shlibpath_overrides_runpath=no
16275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016277 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016278 ;;
16279
16280# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016281linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016282 dynamic_linker=no
16283 ;;
16284
16285# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016286linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016287 version_type=linux
16288 need_lib_prefix=no
16289 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=no
16295 # This implies no fast_install, which is unacceptable.
16296 # Some rework will be needed to allow for fast_install
16297 # before this can be enabled.
16298 hardcode_into_libs=yes
16299
Reid Spencer2706f8c2004-09-19 23:53:36 +000016300 # Append ld.so.conf contents to the search path
16301 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016302 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 +000016303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16304 fi
16305
John Criswell7a73b802003-06-30 21:59:07 +000016306 # We used to test for /lib/ld.so.1 and disable shared libraries on
16307 # powerpc, because MkLinux only supported shared libraries with the
16308 # GNU dynamic linker. Since this was broken with cross compilers,
16309 # most powerpc-linux boxes support dynamic linking these days and
16310 # people can always --disable-shared, the test was removed, and we
16311 # assume the GNU/Linux dynamic linker is in use.
16312 dynamic_linker='GNU/Linux ld.so'
16313 ;;
16314
Reid Spencer2706f8c2004-09-19 23:53:36 +000016315knetbsd*-gnu)
16316 version_type=linux
16317 need_lib_prefix=no
16318 need_version=no
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=no
16323 hardcode_into_libs=yes
16324 dynamic_linker='GNU ld.so'
16325 ;;
16326
John Criswell7a73b802003-06-30 21:59:07 +000016327netbsd*)
16328 version_type=sunos
16329 need_lib_prefix=no
16330 need_version=no
16331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16334 dynamic_linker='NetBSD (a.out) ld.so'
16335 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016337 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016338 dynamic_linker='NetBSD ld.elf_so'
16339 fi
16340 shlibpath_var=LD_LIBRARY_PATH
16341 shlibpath_overrides_runpath=yes
16342 hardcode_into_libs=yes
16343 ;;
16344
16345newsos6)
16346 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16350 ;;
16351
Reid Spencer2706f8c2004-09-19 23:53:36 +000016352nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016353 version_type=linux
16354 need_lib_prefix=no
16355 need_version=no
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016358 shlibpath_var=LD_LIBRARY_PATH
16359 shlibpath_overrides_runpath=yes
16360 ;;
16361
16362openbsd*)
16363 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016364 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016365 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16367 case $host_os in
16368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16369 *) need_version=no ;;
16370 esac
John Criswell47fdd832003-07-14 16:52:07 +000016371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16373 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016374 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 +000016375 case $host_os in
16376 openbsd2.[89] | openbsd2.[89].*)
16377 shlibpath_overrides_runpath=no
16378 ;;
16379 *)
16380 shlibpath_overrides_runpath=yes
16381 ;;
16382 esac
John Criswell7a73b802003-06-30 21:59:07 +000016383 else
16384 shlibpath_overrides_runpath=yes
16385 fi
John Criswell7a73b802003-06-30 21:59:07 +000016386 ;;
16387
16388os2*)
16389 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016390 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016391 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016392 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016393 dynamic_linker='OS/2 ld.exe'
16394 shlibpath_var=LIBPATH
16395 ;;
16396
16397osf3* | osf4* | osf5*)
16398 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016399 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016400 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016401 soname_spec='${libname}${release}${shared_ext}$major'
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016403 shlibpath_var=LD_LIBRARY_PATH
16404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16406 ;;
16407
John Criswell7a73b802003-06-30 21:59:07 +000016408solaris*)
16409 version_type=linux
16410 need_lib_prefix=no
16411 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 hardcode_into_libs=yes
16417 # ldd complains unless libraries are executable
16418 postinstall_cmds='chmod +x $lib'
16419 ;;
16420
16421sunos4*)
16422 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16427 if test "$with_gnu_ld" = yes; then
16428 need_lib_prefix=no
16429 fi
16430 need_version=yes
16431 ;;
16432
Reid Spencera773bd52006-08-04 18:18:08 +000016433sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016434 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016437 shlibpath_var=LD_LIBRARY_PATH
16438 case $host_vendor in
16439 sni)
16440 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016441 need_lib_prefix=no
16442 export_dynamic_flag_spec='${wl}-Blargedynsym'
16443 runpath_var=LD_RUN_PATH
16444 ;;
16445 siemens)
16446 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016447 ;;
16448 motorola)
16449 need_lib_prefix=no
16450 need_version=no
16451 shlibpath_overrides_runpath=no
16452 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16453 ;;
16454 esac
16455 ;;
16456
John Criswell7a73b802003-06-30 21:59:07 +000016457sysv4*MP*)
16458 if test -d /usr/nec ;then
16459 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016460 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16461 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016462 shlibpath_var=LD_LIBRARY_PATH
16463 fi
16464 ;;
16465
Reid Spencera773bd52006-08-04 18:18:08 +000016466sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16467 version_type=freebsd-elf
16468 need_lib_prefix=no
16469 need_version=no
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 hardcode_into_libs=yes
16474 if test "$with_gnu_ld" = yes; then
16475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16476 shlibpath_overrides_runpath=no
16477 else
16478 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16479 shlibpath_overrides_runpath=yes
16480 case $host_os in
16481 sco3.2v5*)
16482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16483 ;;
16484 esac
16485 fi
16486 sys_lib_dlsearch_path_spec='/usr/lib'
16487 ;;
16488
John Criswell47fdd832003-07-14 16:52:07 +000016489uts4*)
16490 version_type=linux
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 ;;
16495
John Criswell7a73b802003-06-30 21:59:07 +000016496*)
16497 dynamic_linker=no
16498 ;;
16499esac
Reid Spencera773bd52006-08-04 18:18:08 +000016500{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16501echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016502test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016503
Reid Spencera773bd52006-08-04 18:18:08 +000016504variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16505if test "$GCC" = yes; then
16506 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16507fi
16508
16509{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16510echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016511hardcode_action=
16512if test -n "$hardcode_libdir_flag_spec" || \
16513 test -n "$runpath_var" || \
16514 test "X$hardcode_automatic" = "Xyes" ; then
16515
16516 # We can hardcode non-existant directories.
16517 if test "$hardcode_direct" != no &&
16518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16519 # have to relink, otherwise we might link with an installed library
16520 # when we should be linking with a yet-to-be-installed one
16521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16522 test "$hardcode_minus_L" != no; then
16523 # Linking always hardcodes the temporary library directory.
16524 hardcode_action=relink
16525 else
16526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16527 hardcode_action=immediate
16528 fi
16529else
16530 # We cannot hardcode anything, or else we can only hardcode existing
16531 # directories.
16532 hardcode_action=unsupported
16533fi
Reid Spencera773bd52006-08-04 18:18:08 +000016534{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16535echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016536
16537if test "$hardcode_action" = relink; then
16538 # Fast installation is not supported
16539 enable_fast_install=no
16540elif test "$shlibpath_overrides_runpath" = yes ||
16541 test "$enable_shared" = no; then
16542 # Fast installation is not necessary
16543 enable_fast_install=needless
16544fi
16545
16546striplib=
16547old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016548{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16549echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016550if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16551 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16552 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016553 { echo "$as_me:$LINENO: result: yes" >&5
16554echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016555else
16556# FIXME - insert some real tests, host_os isn't really good enough
16557 case $host_os in
16558 darwin*)
16559 if test -n "$STRIP" ; then
16560 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016561 { echo "$as_me:$LINENO: result: yes" >&5
16562echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016563 else
Reid Spencera773bd52006-08-04 18:18:08 +000016564 { echo "$as_me:$LINENO: result: no" >&5
16565echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016566fi
16567 ;;
16568 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016569 { echo "$as_me:$LINENO: result: no" >&5
16570echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016571 ;;
16572 esac
16573fi
16574
John Criswell7a73b802003-06-30 21:59:07 +000016575if test "x$enable_dlopen" != xyes; then
16576 enable_dlopen=unknown
16577 enable_dlopen_self=unknown
16578 enable_dlopen_self_static=unknown
16579else
16580 lt_cv_dlopen=no
16581 lt_cv_dlopen_libs=
16582
16583 case $host_os in
16584 beos*)
16585 lt_cv_dlopen="load_add_on"
16586 lt_cv_dlopen_libs=
16587 lt_cv_dlopen_self=yes
16588 ;;
16589
John Criswell47fdd832003-07-14 16:52:07 +000016590 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016591 lt_cv_dlopen="LoadLibrary"
16592 lt_cv_dlopen_libs=
16593 ;;
16594
John Criswell47fdd832003-07-14 16:52:07 +000016595 cygwin*)
16596 lt_cv_dlopen="dlopen"
16597 lt_cv_dlopen_libs=
16598 ;;
16599
16600 darwin*)
16601 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016602 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16603echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016604if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606else
16607 ac_check_lib_save_LIBS=$LIBS
16608LIBS="-ldl $LIBS"
16609cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016610/* confdefs.h. */
16611_ACEOF
16612cat confdefs.h >>conftest.$ac_ext
16613cat >>conftest.$ac_ext <<_ACEOF
16614/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016615
Reid Spencera773bd52006-08-04 18:18:08 +000016616/* Override any GCC internal prototype to avoid an error.
16617 Use char because int might match the return type of a GCC
16618 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016619#ifdef __cplusplus
16620extern "C"
16621#endif
John Criswell47fdd832003-07-14 16:52:07 +000016622char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016623int
16624main ()
16625{
Reid Spencera773bd52006-08-04 18:18:08 +000016626return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016627 ;
16628 return 0;
16629}
16630_ACEOF
16631rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016632if { (ac_try="$ac_link"
16633case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest$ac_exeext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659esac
16660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016665 ac_cv_lib_dl_dlopen=yes
16666else
16667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016668sed 's/^/| /' conftest.$ac_ext >&5
16669
Reid Spencera773bd52006-08-04 18:18:08 +000016670 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016671fi
Reid Spencera773bd52006-08-04 18:18:08 +000016672
Bill Wendlingebcceee2009-04-18 11:20:33 +000016673rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016674 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016675LIBS=$ac_check_lib_save_LIBS
16676fi
Reid Spencera773bd52006-08-04 18:18:08 +000016677{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16678echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016679if test $ac_cv_lib_dl_dlopen = yes; then
16680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16681else
16682
16683 lt_cv_dlopen="dyld"
16684 lt_cv_dlopen_libs=
16685 lt_cv_dlopen_self=yes
16686
16687fi
16688
16689 ;;
16690
John Criswell7a73b802003-06-30 21:59:07 +000016691 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016692 { echo "$as_me:$LINENO: checking for shl_load" >&5
16693echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016694if test "${ac_cv_func_shl_load+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16696else
16697 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016698/* confdefs.h. */
16699_ACEOF
16700cat confdefs.h >>conftest.$ac_ext
16701cat >>conftest.$ac_ext <<_ACEOF
16702/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016703/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16705#define shl_load innocuous_shl_load
16706
John Criswell7a73b802003-06-30 21:59:07 +000016707/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016708 which can conflict with char shl_load (); below.
16709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16710 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016711
John Criswell0c38eaf2003-09-10 15:17:25 +000016712#ifdef __STDC__
16713# include <limits.h>
16714#else
16715# include <assert.h>
16716#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016717
16718#undef shl_load
16719
Reid Spencera773bd52006-08-04 18:18:08 +000016720/* Override any GCC internal prototype to avoid an error.
16721 Use char because int might match the return type of a GCC
16722 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016723#ifdef __cplusplus
16724extern "C"
16725#endif
John Criswell7a73b802003-06-30 21:59:07 +000016726char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016727/* The GNU C library defines this for functions which it implements
16728 to always fail with ENOSYS. Some functions are actually named
16729 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016730#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016731choke me
John Criswell7a73b802003-06-30 21:59:07 +000016732#endif
16733
John Criswell0c38eaf2003-09-10 15:17:25 +000016734int
16735main ()
16736{
Reid Spencera773bd52006-08-04 18:18:08 +000016737return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016743if { (ac_try="$ac_link"
16744case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747esac
16748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016755 (exit $ac_status); } &&
16756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest$ac_exeext'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016776 ac_cv_func_shl_load=yes
16777else
16778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016779sed 's/^/| /' conftest.$ac_ext >&5
16780
Reid Spencera773bd52006-08-04 18:18:08 +000016781 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016782fi
Reid Spencera773bd52006-08-04 18:18:08 +000016783
Bill Wendlingebcceee2009-04-18 11:20:33 +000016784rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016785 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016786fi
Reid Spencera773bd52006-08-04 18:18:08 +000016787{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16788echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016789if test $ac_cv_func_shl_load = yes; then
16790 lt_cv_dlopen="shl_load"
16791else
Reid Spencera773bd52006-08-04 18:18:08 +000016792 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16793echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016794if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796else
16797 ac_check_lib_save_LIBS=$LIBS
16798LIBS="-ldld $LIBS"
16799cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016805
Reid Spencera773bd52006-08-04 18:18:08 +000016806/* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016809#ifdef __cplusplus
16810extern "C"
16811#endif
John Criswell7a73b802003-06-30 21:59:07 +000016812char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016813int
16814main ()
16815{
Reid Spencera773bd52006-08-04 18:18:08 +000016816return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016817 ;
16818 return 0;
16819}
16820_ACEOF
16821rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016822if { (ac_try="$ac_link"
16823case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016829 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest$ac_exeext'
16846 { (case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16849esac
16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_try") 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016855 ac_cv_lib_dld_shl_load=yes
16856else
16857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016858sed 's/^/| /' conftest.$ac_ext >&5
16859
Reid Spencera773bd52006-08-04 18:18:08 +000016860 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016861fi
Reid Spencera773bd52006-08-04 18:18:08 +000016862
Bill Wendlingebcceee2009-04-18 11:20:33 +000016863rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016864 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016865LIBS=$ac_check_lib_save_LIBS
16866fi
Reid Spencera773bd52006-08-04 18:18:08 +000016867{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16868echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016869if test $ac_cv_lib_dld_shl_load = yes; then
16870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16871else
Reid Spencera773bd52006-08-04 18:18:08 +000016872 { echo "$as_me:$LINENO: checking for dlopen" >&5
16873echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016874if test "${ac_cv_func_dlopen+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876else
16877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016878/* confdefs.h. */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016883/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16885#define dlopen innocuous_dlopen
16886
John Criswell7a73b802003-06-30 21:59:07 +000016887/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016888 which can conflict with char dlopen (); below.
16889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16890 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016891
John Criswell0c38eaf2003-09-10 15:17:25 +000016892#ifdef __STDC__
16893# include <limits.h>
16894#else
16895# include <assert.h>
16896#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016897
16898#undef dlopen
16899
Reid Spencera773bd52006-08-04 18:18:08 +000016900/* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016903#ifdef __cplusplus
16904extern "C"
16905#endif
John Criswell7a73b802003-06-30 21:59:07 +000016906char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016907/* The GNU C library defines this for functions which it implements
16908 to always fail with ENOSYS. Some functions are actually named
16909 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016910#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016911choke me
John Criswell7a73b802003-06-30 21:59:07 +000016912#endif
16913
John Criswell0c38eaf2003-09-10 15:17:25 +000016914int
16915main ()
16916{
Reid Spencera773bd52006-08-04 18:18:08 +000016917return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016918 ;
16919 return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016923if { (ac_try="$ac_link"
16924case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927esac
16928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940esac
16941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950esac
16951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016956 ac_cv_func_dlopen=yes
16957else
16958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016959sed 's/^/| /' conftest.$ac_ext >&5
16960
Reid Spencera773bd52006-08-04 18:18:08 +000016961 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016962fi
Reid Spencera773bd52006-08-04 18:18:08 +000016963
Bill Wendlingebcceee2009-04-18 11:20:33 +000016964rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016965 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016966fi
Reid Spencera773bd52006-08-04 18:18:08 +000016967{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16968echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016969if test $ac_cv_func_dlopen = yes; then
16970 lt_cv_dlopen="dlopen"
16971else
Reid Spencera773bd52006-08-04 18:18:08 +000016972 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16973echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016974if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16976else
16977 ac_check_lib_save_LIBS=$LIBS
16978LIBS="-ldl $LIBS"
16979cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016985
Reid Spencera773bd52006-08-04 18:18:08 +000016986/* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016989#ifdef __cplusplus
16990extern "C"
16991#endif
John Criswell7a73b802003-06-30 21:59:07 +000016992char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016993int
16994main ()
16995{
Reid Spencera773bd52006-08-04 18:18:08 +000016996return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016997 ;
16998 return 0;
16999}
17000_ACEOF
17001rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017002if { (ac_try="$ac_link"
17003case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17006esac
17007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017035 ac_cv_lib_dl_dlopen=yes
17036else
17037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017038sed 's/^/| /' conftest.$ac_ext >&5
17039
Reid Spencera773bd52006-08-04 18:18:08 +000017040 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017041fi
Reid Spencera773bd52006-08-04 18:18:08 +000017042
Bill Wendlingebcceee2009-04-18 11:20:33 +000017043rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017044 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017045LIBS=$ac_check_lib_save_LIBS
17046fi
Reid Spencera773bd52006-08-04 18:18:08 +000017047{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17048echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017049if test $ac_cv_lib_dl_dlopen = yes; then
17050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17051else
Reid Spencera773bd52006-08-04 18:18:08 +000017052 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17053echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017054if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056else
17057 ac_check_lib_save_LIBS=$LIBS
17058LIBS="-lsvld $LIBS"
17059cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017065
Reid Spencera773bd52006-08-04 18:18:08 +000017066/* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017069#ifdef __cplusplus
17070extern "C"
17071#endif
John Criswell7a73b802003-06-30 21:59:07 +000017072char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017073int
17074main ()
17075{
Reid Spencera773bd52006-08-04 18:18:08 +000017076return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017077 ;
17078 return 0;
17079}
17080_ACEOF
17081rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017082if { (ac_try="$ac_link"
17083case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086esac
17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest$ac_exeext'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017115 ac_cv_lib_svld_dlopen=yes
17116else
17117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017118sed 's/^/| /' conftest.$ac_ext >&5
17119
Reid Spencera773bd52006-08-04 18:18:08 +000017120 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017121fi
Reid Spencera773bd52006-08-04 18:18:08 +000017122
Bill Wendlingebcceee2009-04-18 11:20:33 +000017123rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017124 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017125LIBS=$ac_check_lib_save_LIBS
17126fi
Reid Spencera773bd52006-08-04 18:18:08 +000017127{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17128echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017129if test $ac_cv_lib_svld_dlopen = yes; then
17130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17131else
Reid Spencera773bd52006-08-04 18:18:08 +000017132 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17133echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017134if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136else
17137 ac_check_lib_save_LIBS=$LIBS
17138LIBS="-ldld $LIBS"
17139cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017145
Reid Spencera773bd52006-08-04 18:18:08 +000017146/* Override any GCC internal prototype to avoid an error.
17147 Use char because int might match the return type of a GCC
17148 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017149#ifdef __cplusplus
17150extern "C"
17151#endif
John Criswell7a73b802003-06-30 21:59:07 +000017152char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017153int
17154main ()
17155{
Reid Spencera773bd52006-08-04 18:18:08 +000017156return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017162if { (ac_try="$ac_link"
17163case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166esac
17167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017169 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017174 (exit $ac_status); } &&
17175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest$ac_exeext'
17186 { (case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189esac
17190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_try") 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017195 ac_cv_lib_dld_dld_link=yes
17196else
17197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017198sed 's/^/| /' conftest.$ac_ext >&5
17199
Reid Spencera773bd52006-08-04 18:18:08 +000017200 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017201fi
Reid Spencera773bd52006-08-04 18:18:08 +000017202
Bill Wendlingebcceee2009-04-18 11:20:33 +000017203rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017204 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017205LIBS=$ac_check_lib_save_LIBS
17206fi
Reid Spencera773bd52006-08-04 18:18:08 +000017207{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17208echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017209if test $ac_cv_lib_dld_dld_link = yes; then
17210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17211fi
17212
17213
17214fi
17215
17216
17217fi
17218
17219
17220fi
17221
17222
17223fi
17224
17225
17226fi
17227
17228 ;;
17229 esac
17230
17231 if test "x$lt_cv_dlopen" != xno; then
17232 enable_dlopen=yes
17233 else
17234 enable_dlopen=no
17235 fi
17236
17237 case $lt_cv_dlopen in
17238 dlopen)
17239 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017241
17242 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017244
17245 save_LIBS="$LIBS"
17246 LIBS="$lt_cv_dlopen_libs $LIBS"
17247
Reid Spencera773bd52006-08-04 18:18:08 +000017248 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17249echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017250if test "${lt_cv_dlopen_self+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252else
17253 if test "$cross_compiling" = yes; then :
17254 lt_cv_dlopen_self=cross
17255else
John Criswell47fdd832003-07-14 16:52:07 +000017256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017257 lt_status=$lt_dlunknown
17258 cat > conftest.$ac_ext <<EOF
Owen Andersond4b272b2009-05-18 23:58:51 +000017259#line 17259 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017260#include "confdefs.h"
17261
17262#if HAVE_DLFCN_H
17263#include <dlfcn.h>
17264#endif
17265
17266#include <stdio.h>
17267
17268#ifdef RTLD_GLOBAL
17269# define LT_DLGLOBAL RTLD_GLOBAL
17270#else
17271# ifdef DL_GLOBAL
17272# define LT_DLGLOBAL DL_GLOBAL
17273# else
17274# define LT_DLGLOBAL 0
17275# endif
17276#endif
17277
17278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17279 find out it does not work in some platform. */
17280#ifndef LT_DLLAZY_OR_NOW
17281# ifdef RTLD_LAZY
17282# define LT_DLLAZY_OR_NOW RTLD_LAZY
17283# else
17284# ifdef DL_LAZY
17285# define LT_DLLAZY_OR_NOW DL_LAZY
17286# else
17287# ifdef RTLD_NOW
17288# define LT_DLLAZY_OR_NOW RTLD_NOW
17289# else
17290# ifdef DL_NOW
17291# define LT_DLLAZY_OR_NOW DL_NOW
17292# else
17293# define LT_DLLAZY_OR_NOW 0
17294# endif
17295# endif
17296# endif
17297# endif
17298#endif
17299
17300#ifdef __cplusplus
17301extern "C" void exit (int);
17302#endif
17303
17304void fnord() { int i=42;}
17305int main ()
17306{
17307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17308 int status = $lt_dlunknown;
17309
17310 if (self)
17311 {
17312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17314 /* dlclose (self); */
17315 }
Reid Spencera773bd52006-08-04 18:18:08 +000017316 else
17317 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017318
17319 exit (status);
17320}
17321EOF
17322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17323 (eval $ac_link) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017327 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017328 lt_status=$?
17329 case x$lt_status in
17330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017333 esac
17334 else :
17335 # compilation failed
17336 lt_cv_dlopen_self=no
17337 fi
17338fi
17339rm -fr conftest*
17340
17341
17342fi
Reid Spencera773bd52006-08-04 18:18:08 +000017343{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17344echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017345
17346 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17348 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17349echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017350if test "${lt_cv_dlopen_self_static+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352else
17353 if test "$cross_compiling" = yes; then :
17354 lt_cv_dlopen_self_static=cross
17355else
John Criswell47fdd832003-07-14 16:52:07 +000017356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017357 lt_status=$lt_dlunknown
17358 cat > conftest.$ac_ext <<EOF
Owen Andersond4b272b2009-05-18 23:58:51 +000017359#line 17359 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017360#include "confdefs.h"
17361
17362#if HAVE_DLFCN_H
17363#include <dlfcn.h>
17364#endif
17365
17366#include <stdio.h>
17367
17368#ifdef RTLD_GLOBAL
17369# define LT_DLGLOBAL RTLD_GLOBAL
17370#else
17371# ifdef DL_GLOBAL
17372# define LT_DLGLOBAL DL_GLOBAL
17373# else
17374# define LT_DLGLOBAL 0
17375# endif
17376#endif
17377
17378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17379 find out it does not work in some platform. */
17380#ifndef LT_DLLAZY_OR_NOW
17381# ifdef RTLD_LAZY
17382# define LT_DLLAZY_OR_NOW RTLD_LAZY
17383# else
17384# ifdef DL_LAZY
17385# define LT_DLLAZY_OR_NOW DL_LAZY
17386# else
17387# ifdef RTLD_NOW
17388# define LT_DLLAZY_OR_NOW RTLD_NOW
17389# else
17390# ifdef DL_NOW
17391# define LT_DLLAZY_OR_NOW DL_NOW
17392# else
17393# define LT_DLLAZY_OR_NOW 0
17394# endif
17395# endif
17396# endif
17397# endif
17398#endif
17399
17400#ifdef __cplusplus
17401extern "C" void exit (int);
17402#endif
17403
17404void fnord() { int i=42;}
17405int main ()
17406{
17407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17408 int status = $lt_dlunknown;
17409
17410 if (self)
17411 {
17412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17414 /* dlclose (self); */
17415 }
Reid Spencera773bd52006-08-04 18:18:08 +000017416 else
17417 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017418
17419 exit (status);
17420}
17421EOF
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017427 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017428 lt_status=$?
17429 case x$lt_status in
17430 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17431 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017432 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017433 esac
17434 else :
17435 # compilation failed
17436 lt_cv_dlopen_self_static=no
17437 fi
17438fi
17439rm -fr conftest*
17440
17441
17442fi
Reid Spencera773bd52006-08-04 18:18:08 +000017443{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17444echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017445 fi
17446
17447 CPPFLAGS="$save_CPPFLAGS"
17448 LDFLAGS="$save_LDFLAGS"
17449 LIBS="$save_LIBS"
17450 ;;
17451 esac
17452
17453 case $lt_cv_dlopen_self in
17454 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17455 *) enable_dlopen_self=unknown ;;
17456 esac
17457
17458 case $lt_cv_dlopen_self_static in
17459 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17460 *) enable_dlopen_self_static=unknown ;;
17461 esac
17462fi
17463
17464
Reid Spencera773bd52006-08-04 18:18:08 +000017465# Report which library types will actually be built
17466{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17467echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17468{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17469echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017470
Reid Spencera773bd52006-08-04 18:18:08 +000017471{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17472echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017473test "$can_build_shared" = "no" && enable_shared=no
17474
17475# On AIX, shared libraries and static libraries use the same namespace, and
17476# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017477case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017478aix3*)
17479 test "$enable_shared" = yes && enable_static=no
17480 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017482 postinstall_cmds='$RANLIB $lib'
17483 fi
17484 ;;
17485
Reid Spencer2706f8c2004-09-19 23:53:36 +000017486aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017487 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17488 test "$enable_shared" = yes && enable_static=no
17489 fi
John Criswell7a73b802003-06-30 21:59:07 +000017490 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017491esac
Reid Spencera773bd52006-08-04 18:18:08 +000017492{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17493echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017494
Reid Spencera773bd52006-08-04 18:18:08 +000017495{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17496echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017497# Make sure either enable_shared or enable_static is yes.
17498test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017499{ echo "$as_me:$LINENO: result: $enable_static" >&5
17500echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017501
17502# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017503# libtool distribution, otherwise you forgot to ship ltmain.sh
17504# with your package, and you will get complaints that there are
17505# no rules to generate ltmain.sh.
17506if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017507 # See if we are running on zsh, and set the options which allow our commands through
17508 # without removal of \ escapes.
17509 if test -n "${ZSH_VERSION+set}" ; then
17510 setopt NO_GLOB_SUBST
17511 fi
John Criswell7a73b802003-06-30 21:59:07 +000017512 # Now quote all the things that may contain metacharacters while being
17513 # careful not to overquote the AC_SUBSTed values. We take copies of the
17514 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017515 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 +000017516 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017517 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17518 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17519 deplibs_check_method reload_flag reload_cmds need_locks \
17520 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17521 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017522 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017523 old_postinstall_cmds old_postuninstall_cmds \
17524 compiler \
17525 CC \
17526 LD \
17527 lt_prog_compiler_wl \
17528 lt_prog_compiler_pic \
17529 lt_prog_compiler_static \
17530 lt_prog_compiler_no_builtin_flag \
17531 export_dynamic_flag_spec \
17532 thread_safe_flag_spec \
17533 whole_archive_flag_spec \
17534 enable_shared_with_static_runtimes \
17535 old_archive_cmds \
17536 old_archive_from_new_cmds \
17537 predep_objects \
17538 postdep_objects \
17539 predeps \
17540 postdeps \
17541 compiler_lib_search_path \
17542 archive_cmds \
17543 archive_expsym_cmds \
17544 postinstall_cmds \
17545 postuninstall_cmds \
17546 old_archive_from_expsyms_cmds \
17547 allow_undefined_flag \
17548 no_undefined_flag \
17549 export_symbols_cmds \
17550 hardcode_libdir_flag_spec \
17551 hardcode_libdir_flag_spec_ld \
17552 hardcode_libdir_separator \
17553 hardcode_automatic \
17554 module_cmds \
17555 module_expsym_cmds \
17556 lt_cv_prog_compiler_c_o \
17557 exclude_expsyms \
17558 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017559
17560 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017561 old_archive_cmds | \
17562 old_archive_from_new_cmds | \
17563 archive_cmds | \
17564 archive_expsym_cmds | \
17565 module_cmds | \
17566 module_expsym_cmds | \
17567 old_archive_from_expsyms_cmds | \
17568 export_symbols_cmds | \
17569 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017570 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017571 old_postinstall_cmds | old_postuninstall_cmds | \
17572 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017573 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017574 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 +000017575 ;;
17576 *)
17577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17578 ;;
17579 esac
17580 done
17581
John Criswell47fdd832003-07-14 16:52:07 +000017582 case $lt_echo in
17583 *'\$0 --fallback-echo"')
17584 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17585 ;;
17586 esac
17587
17588cfgfile="${ofile}T"
17589 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17590 $rm -f "$cfgfile"
17591 { echo "$as_me:$LINENO: creating $ofile" >&5
17592echo "$as_me: creating $ofile" >&6;}
17593
17594 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017595#! $SHELL
17596
John Criswell47fdd832003-07-14 16:52:07 +000017597# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017598# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17599# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17600#
John Criswell47fdd832003-07-14 16:52:07 +000017601# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17602# Free Software Foundation, Inc.
17603#
17604# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017605# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17606#
17607# This program is free software; you can redistribute it and/or modify
17608# it under the terms of the GNU General Public License as published by
17609# the Free Software Foundation; either version 2 of the License, or
17610# (at your option) any later version.
17611#
17612# This program is distributed in the hope that it will be useful, but
17613# WITHOUT ANY WARRANTY; without even the implied warranty of
17614# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17615# General Public License for more details.
17616#
17617# You should have received a copy of the GNU General Public License
17618# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017619# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017620#
17621# As a special exception to the GNU General Public License, if you
17622# distribute this file as part of a program that contains a
17623# configuration script generated by Autoconf, you may include it under
17624# the same distribution terms that you use for the rest of that program.
17625
John Criswell47fdd832003-07-14 16:52:07 +000017626# A sed program that does not truncate output.
17627SED=$lt_SED
17628
John Criswell7a73b802003-06-30 21:59:07 +000017629# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017630Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017631
17632# The HP-UX ksh and POSIX shell print the target directory to stdout
17633# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017634(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017635
John Criswell47fdd832003-07-14 16:52:07 +000017636# The names of the tagged configurations supported by this script.
17637available_tags=
17638
John Criswell7a73b802003-06-30 21:59:07 +000017639# ### BEGIN LIBTOOL CONFIG
17640
17641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17642
17643# Shell to use when invoking shell scripts.
17644SHELL=$lt_SHELL
17645
17646# Whether or not to build shared libraries.
17647build_libtool_libs=$enable_shared
17648
17649# Whether or not to build static libraries.
17650build_old_libs=$enable_static
17651
17652# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017653build_libtool_need_lc=$archive_cmds_need_lc
17654
17655# Whether or not to disallow shared libs when runtime libs are static
17656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017657
17658# Whether or not to optimize for fast installation.
17659fast_install=$enable_fast_install
17660
17661# The host system.
17662host_alias=$host_alias
17663host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017664host_os=$host_os
17665
17666# The build system.
17667build_alias=$build_alias
17668build=$build
17669build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017670
17671# An echo program that does not interpret backslashes.
17672echo=$lt_echo
17673
17674# The archiver.
17675AR=$lt_AR
17676AR_FLAGS=$lt_AR_FLAGS
17677
John Criswell47fdd832003-07-14 16:52:07 +000017678# A C compiler.
17679LTCC=$lt_LTCC
17680
Reid Spencera773bd52006-08-04 18:18:08 +000017681# LTCC compiler flags.
17682LTCFLAGS=$lt_LTCFLAGS
17683
John Criswell47fdd832003-07-14 16:52:07 +000017684# A language-specific compiler.
17685CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017686
17687# Is the compiler the GNU C compiler?
17688with_gcc=$GCC
17689
John Criswell47fdd832003-07-14 16:52:07 +000017690# An ERE matcher.
17691EGREP=$lt_EGREP
17692
John Criswell7a73b802003-06-30 21:59:07 +000017693# The linker used to build libraries.
17694LD=$lt_LD
17695
17696# Whether we need hard or soft links.
17697LN_S=$lt_LN_S
17698
17699# A BSD-compatible nm program.
17700NM=$lt_NM
17701
17702# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017703STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017704
17705# Used to examine libraries when file_magic_cmd begins "file"
17706MAGIC_CMD=$MAGIC_CMD
17707
17708# Used on cygwin: DLL creation program.
17709DLLTOOL="$DLLTOOL"
17710
17711# Used on cygwin: object dumper.
17712OBJDUMP="$OBJDUMP"
17713
17714# Used on cygwin: assembler.
17715AS="$AS"
17716
17717# The name of the directory that contains temporary libtool files.
17718objdir=$objdir
17719
17720# How to create reloadable object files.
17721reload_flag=$lt_reload_flag
17722reload_cmds=$lt_reload_cmds
17723
17724# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017725wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017726
17727# Object file suffix (normally "o").
17728objext="$ac_objext"
17729
17730# Old archive suffix (normally "a").
17731libext="$libext"
17732
John Criswell47fdd832003-07-14 16:52:07 +000017733# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017734shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017735
John Criswell7a73b802003-06-30 21:59:07 +000017736# Executable file suffix (normally "").
17737exeext="$exeext"
17738
17739# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017740pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017741pic_mode=$pic_mode
17742
John Criswell47fdd832003-07-14 16:52:07 +000017743# What is the maximum length of a command?
17744max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017745
John Criswell47fdd832003-07-14 16:52:07 +000017746# Does compiler simultaneously support -c and -o options?
17747compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017748
Reid Spencera773bd52006-08-04 18:18:08 +000017749# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017750need_locks=$lt_need_locks
17751
17752# Do we need the lib prefix for modules?
17753need_lib_prefix=$need_lib_prefix
17754
17755# Do we need a version for libraries?
17756need_version=$need_version
17757
17758# Whether dlopen is supported.
17759dlopen_support=$enable_dlopen
17760
17761# Whether dlopen of programs is supported.
17762dlopen_self=$enable_dlopen_self
17763
17764# Whether dlopen of statically linked programs is supported.
17765dlopen_self_static=$enable_dlopen_self_static
17766
17767# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017768link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017769
17770# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017772
17773# Compiler flag to allow reflexive dlopens.
17774export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17775
17776# Compiler flag to generate shared objects directly from archives.
17777whole_archive_flag_spec=$lt_whole_archive_flag_spec
17778
17779# Compiler flag to generate thread-safe objects.
17780thread_safe_flag_spec=$lt_thread_safe_flag_spec
17781
17782# Library versioning type.
17783version_type=$version_type
17784
17785# Format of library name prefix.
17786libname_spec=$lt_libname_spec
17787
17788# List of archive names. First name is the real one, the rest are links.
17789# The last name is the one that the linker finds with -lNAME.
17790library_names_spec=$lt_library_names_spec
17791
17792# The coded name of the library, if different from the real name.
17793soname_spec=$lt_soname_spec
17794
17795# Commands used to build and install an old-style archive.
17796RANLIB=$lt_RANLIB
17797old_archive_cmds=$lt_old_archive_cmds
17798old_postinstall_cmds=$lt_old_postinstall_cmds
17799old_postuninstall_cmds=$lt_old_postuninstall_cmds
17800
17801# Create an old-style archive from a shared archive.
17802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17803
17804# Create a temporary old-style archive to link instead of a shared archive.
17805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17806
17807# Commands used to build and install a shared archive.
17808archive_cmds=$lt_archive_cmds
17809archive_expsym_cmds=$lt_archive_expsym_cmds
17810postinstall_cmds=$lt_postinstall_cmds
17811postuninstall_cmds=$lt_postuninstall_cmds
17812
John Criswell47fdd832003-07-14 16:52:07 +000017813# Commands used to build a loadable module (assumed same as above if empty)
17814module_cmds=$lt_module_cmds
17815module_expsym_cmds=$lt_module_expsym_cmds
17816
John Criswell7a73b802003-06-30 21:59:07 +000017817# Commands to strip libraries.
17818old_striplib=$lt_old_striplib
17819striplib=$lt_striplib
17820
John Criswell47fdd832003-07-14 16:52:07 +000017821# Dependencies to place before the objects being linked to create a
17822# shared library.
17823predep_objects=$lt_predep_objects
17824
17825# Dependencies to place after the objects being linked to create a
17826# shared library.
17827postdep_objects=$lt_postdep_objects
17828
17829# Dependencies to place before the objects being linked to create a
17830# shared library.
17831predeps=$lt_predeps
17832
17833# Dependencies to place after the objects being linked to create a
17834# shared library.
17835postdeps=$lt_postdeps
17836
17837# The library search path used internally by the compiler when linking
17838# a shared library.
17839compiler_lib_search_path=$lt_compiler_lib_search_path
17840
John Criswell7a73b802003-06-30 21:59:07 +000017841# Method to check whether dependent libraries are shared objects.
17842deplibs_check_method=$lt_deplibs_check_method
17843
17844# Command to use when deplibs_check_method == file_magic.
17845file_magic_cmd=$lt_file_magic_cmd
17846
17847# Flag that allows shared libraries with undefined symbols to be built.
17848allow_undefined_flag=$lt_allow_undefined_flag
17849
17850# Flag that forces no undefined symbols.
17851no_undefined_flag=$lt_no_undefined_flag
17852
17853# Commands used to finish a libtool library installation in a directory.
17854finish_cmds=$lt_finish_cmds
17855
17856# Same as above, but a single script fragment to be evaled but not shown.
17857finish_eval=$lt_finish_eval
17858
17859# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017861
17862# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017864
17865# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017867
17868# This is the shared library runtime path variable.
17869runpath_var=$runpath_var
17870
17871# This is the shared library path variable.
17872shlibpath_var=$shlibpath_var
17873
17874# Is shlibpath searched before the hard-coded library search path?
17875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17876
17877# How to hardcode a shared library path into an executable.
17878hardcode_action=$hardcode_action
17879
17880# Whether we should hardcode library paths into libraries.
17881hardcode_into_libs=$hardcode_into_libs
17882
17883# Flag to hardcode \$libdir into a binary during linking.
17884# This must work even if \$libdir does not exist.
17885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17886
John Criswell47fdd832003-07-14 16:52:07 +000017887# If ld is used when linking, flag to hardcode \$libdir into
17888# a binary during linking. This must work even if \$libdir does
17889# not exist.
17890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17891
John Criswell7a73b802003-06-30 21:59:07 +000017892# Whether we need a single -rpath flag with a separated argument.
17893hardcode_libdir_separator=$lt_hardcode_libdir_separator
17894
John Criswell47fdd832003-07-14 16:52:07 +000017895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017896# resulting binary.
17897hardcode_direct=$hardcode_direct
17898
17899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17900# resulting binary.
17901hardcode_minus_L=$hardcode_minus_L
17902
17903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17904# the resulting binary.
17905hardcode_shlibpath_var=$hardcode_shlibpath_var
17906
John Criswell47fdd832003-07-14 16:52:07 +000017907# Set to yes if building a shared library automatically hardcodes DIR into the library
17908# and all subsequent libraries and executables linked against it.
17909hardcode_automatic=$hardcode_automatic
17910
John Criswell7a73b802003-06-30 21:59:07 +000017911# Variables whose values should be saved in libtool wrapper scripts and
17912# restored at relink time.
17913variables_saved_for_relink="$variables_saved_for_relink"
17914
17915# Whether libtool must link a program against all its dependency libraries.
17916link_all_deplibs=$link_all_deplibs
17917
17918# Compile-time system search path for libraries
17919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17920
17921# Run-time system search path for libraries
17922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17923
17924# Fix the shell variable \$srcfile for the compiler.
17925fix_srcfile_path="$fix_srcfile_path"
17926
17927# Set to yes if exported symbols are required.
17928always_export_symbols=$always_export_symbols
17929
17930# The commands to list exported symbols.
17931export_symbols_cmds=$lt_export_symbols_cmds
17932
17933# The commands to extract the exported symbol list from a shared archive.
17934extract_expsyms_cmds=$lt_extract_expsyms_cmds
17935
17936# Symbols that should not be listed in the preloaded symbols.
17937exclude_expsyms=$lt_exclude_expsyms
17938
17939# Symbols that must always be exported.
17940include_expsyms=$lt_include_expsyms
17941
17942# ### END LIBTOOL CONFIG
17943
17944__EOF__
17945
John Criswell47fdd832003-07-14 16:52:07 +000017946
John Criswell7a73b802003-06-30 21:59:07 +000017947 case $host_os in
17948 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017949 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017950
17951# AIX sometimes has problems with the GCC collect2 program. For some
17952# reason, if we set the COLLECT_NAMES environment variable, the problems
17953# vanish in a puff of smoke.
17954if test "X${COLLECT_NAMES+set}" != Xset; then
17955 COLLECT_NAMES=
17956 export COLLECT_NAMES
17957fi
17958EOF
17959 ;;
17960 esac
17961
John Criswell7a73b802003-06-30 21:59:07 +000017962 # We use sed instead of cat because bash on DJGPP gets confused if
17963 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17964 # text mode, it properly converts lines to CR/LF. This bash problem
17965 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017966 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017967
John Criswell47fdd832003-07-14 16:52:07 +000017968 mv -f "$cfgfile" "$ofile" || \
17969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017970 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017971
17972else
17973 # If there is no Makefile yet, we rely on a make rule to execute
17974 # `config.status --recheck' to rerun these tests and create the
17975 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017976 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17977 if test -f "$ltmain_in"; then
17978 test -f Makefile && make "$ltmain"
17979 fi
John Criswell7a73b802003-06-30 21:59:07 +000017980fi
John Criswell7a73b802003-06-30 21:59:07 +000017981
17982
John Criswell47fdd832003-07-14 16:52:07 +000017983ac_ext=c
17984ac_cpp='$CPP $CPPFLAGS'
17985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988
17989CC="$lt_save_CC"
17990
17991
Reid Spencera773bd52006-08-04 18:18:08 +000017992# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017993if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017994 withval=$with_tags; tagnames="$withval"
17995fi
17996
John Criswell47fdd832003-07-14 16:52:07 +000017997
17998if test -f "$ltmain" && test -n "$tagnames"; then
17999 if test ! -f "${ofile}"; then
18000 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18001echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18002 fi
18003
18004 if test -z "$LTCC"; then
18005 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18006 if test -z "$LTCC"; then
18007 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18008echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18009 else
18010 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18011echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18012 fi
18013 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018014 if test -z "$LTCFLAGS"; then
18015 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18016 fi
John Criswell47fdd832003-07-14 16:52:07 +000018017
18018 # Extract list of available tagged configurations in $ofile.
18019 # Note that this assumes the entire list is on one line.
18020 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18021
18022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18023 for tagname in $tagnames; do
18024 IFS="$lt_save_ifs"
18025 # Check whether tagname contains only valid characters
18026 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18027 "") ;;
18028 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18029echo "$as_me: error: invalid tag name: $tagname" >&2;}
18030 { (exit 1); exit 1; }; }
18031 ;;
18032 esac
18033
18034 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18035 then
18036 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18037echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18038 { (exit 1); exit 1; }; }
18039 fi
18040
18041 # Update the list of available tags.
18042 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018043 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018044
18045 case $tagname in
18046 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018047 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18048 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18049 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018050 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018051ac_cpp='$CXXCPP $CPPFLAGS'
18052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18055
18056
18057
18058
18059archive_cmds_need_lc_CXX=no
18060allow_undefined_flag_CXX=
18061always_export_symbols_CXX=no
18062archive_expsym_cmds_CXX=
18063export_dynamic_flag_spec_CXX=
18064hardcode_direct_CXX=no
18065hardcode_libdir_flag_spec_CXX=
18066hardcode_libdir_flag_spec_ld_CXX=
18067hardcode_libdir_separator_CXX=
18068hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018069hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018070hardcode_automatic_CXX=no
18071module_cmds_CXX=
18072module_expsym_cmds_CXX=
18073link_all_deplibs_CXX=unknown
18074old_archive_cmds_CXX=$old_archive_cmds
18075no_undefined_flag_CXX=
18076whole_archive_flag_spec_CXX=
18077enable_shared_with_static_runtimes_CXX=no
18078
18079# Dependencies to place before and after the object being linked:
18080predep_objects_CXX=
18081postdep_objects_CXX=
18082predeps_CXX=
18083postdeps_CXX=
18084compiler_lib_search_path_CXX=
18085
18086# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018087ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018088
18089# Object file extension for compiled C++ test sources.
18090objext=o
18091objext_CXX=$objext
18092
18093# Code to be used in simple compile tests
18094lt_simple_compile_test_code="int some_variable = 0;\n"
18095
18096# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018097lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018098
18099# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18100
18101# If no C compiler was specified, use CC.
18102LTCC=${LTCC-"$CC"}
18103
Reid Spencera773bd52006-08-04 18:18:08 +000018104# If no C compiler flags were specified, use CFLAGS.
18105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18106
John Criswell47fdd832003-07-14 16:52:07 +000018107# Allow CC to be a program name with arguments.
18108compiler=$CC
18109
18110
Reid Spencera773bd52006-08-04 18:18:08 +000018111# save warnings/boilerplate of simple test code
18112ac_outfile=conftest.$ac_objext
18113printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18114eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18115_lt_compiler_boilerplate=`cat conftest.err`
18116$rm conftest*
18117
18118ac_outfile=conftest.$ac_objext
18119printf "$lt_simple_link_test_code" >conftest.$ac_ext
18120eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18121_lt_linker_boilerplate=`cat conftest.err`
18122$rm conftest*
18123
18124
John Criswell47fdd832003-07-14 16:52:07 +000018125# Allow CC to be a program name with arguments.
18126lt_save_CC=$CC
18127lt_save_LD=$LD
18128lt_save_GCC=$GCC
18129GCC=$GXX
18130lt_save_with_gnu_ld=$with_gnu_ld
18131lt_save_path_LD=$lt_cv_path_LD
18132if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18133 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18134else
Reid Spencera773bd52006-08-04 18:18:08 +000018135 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018136fi
18137if test -n "${lt_cv_path_LDCXX+set}"; then
18138 lt_cv_path_LD=$lt_cv_path_LDCXX
18139else
Reid Spencera773bd52006-08-04 18:18:08 +000018140 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018141fi
18142test -z "${LDCXX+set}" || LD=$LDCXX
18143CC=${CXX-"c++"}
18144compiler=$CC
18145compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018146for cc_temp in $compiler""; do
18147 case $cc_temp in
18148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18150 \-*) ;;
18151 *) break;;
18152 esac
18153done
18154cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18155
John Criswell47fdd832003-07-14 16:52:07 +000018156
18157# We don't want -fno-exception wen compiling C++ code, so set the
18158# no_builtin_flag separately
18159if test "$GXX" = yes; then
18160 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18161else
18162 lt_prog_compiler_no_builtin_flag_CXX=
18163fi
18164
18165if test "$GXX" = yes; then
18166 # Set up default GNU C++ configuration
18167
18168
Reid Spencera773bd52006-08-04 18:18:08 +000018169# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018170if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018172else
18173 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018174fi
18175
John Criswell47fdd832003-07-14 16:52:07 +000018176ac_prog=ld
18177if test "$GCC" = yes; then
18178 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018179 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18180echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018181 case $host in
18182 *-*-mingw*)
18183 # gcc leaves a trailing carriage return which upsets mingw
18184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18185 *)
18186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18187 esac
18188 case $ac_prog in
18189 # Accept absolute paths.
18190 [\\/]* | ?:[\\/]*)
18191 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018192 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018193 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18195 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18196 done
18197 test -z "$LD" && LD="$ac_prog"
18198 ;;
18199 "")
18200 # If it fails, then pretend we aren't using GCC.
18201 ac_prog=ld
18202 ;;
18203 *)
18204 # If it is relative, then search for the first ld in PATH.
18205 with_gnu_ld=unknown
18206 ;;
18207 esac
18208elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018209 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18210echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018211else
Reid Spencera773bd52006-08-04 18:18:08 +000018212 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18213echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018214fi
18215if test "${lt_cv_path_LD+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218 if test -z "$LD"; then
18219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18220 for ac_dir in $PATH; do
18221 IFS="$lt_save_ifs"
18222 test -z "$ac_dir" && ac_dir=.
18223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18224 lt_cv_path_LD="$ac_dir/$ac_prog"
18225 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018226 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018227 # Break only if it was the GNU/non-GNU ld that we prefer.
18228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18229 *GNU* | *'with BFD'*)
18230 test "$with_gnu_ld" != no && break
18231 ;;
18232 *)
18233 test "$with_gnu_ld" != yes && break
18234 ;;
18235 esac
18236 fi
18237 done
18238 IFS="$lt_save_ifs"
18239else
18240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18241fi
18242fi
18243
18244LD="$lt_cv_path_LD"
18245if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018246 { echo "$as_me:$LINENO: result: $LD" >&5
18247echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018248else
Reid Spencera773bd52006-08-04 18:18:08 +000018249 { echo "$as_me:$LINENO: result: no" >&5
18250echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018251fi
18252test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18253echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18254 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018255{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18256echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018257if test "${lt_cv_prog_gnu_ld+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18259else
Reid Spencera773bd52006-08-04 18:18:08 +000018260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018261case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018262*GNU* | *'with BFD'*)
18263 lt_cv_prog_gnu_ld=yes
18264 ;;
18265*)
18266 lt_cv_prog_gnu_ld=no
18267 ;;
18268esac
18269fi
Reid Spencera773bd52006-08-04 18:18:08 +000018270{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18271echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018272with_gnu_ld=$lt_cv_prog_gnu_ld
18273
18274
18275
18276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18277 # archiving commands below assume that GNU ld is being used.
18278 if test "$with_gnu_ld" = yes; then
18279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18280 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'
18281
18282 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18284
18285 # If archive_cmds runs LD, not CC, wlarc should be empty
18286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18287 # investigate it a little bit more. (MM)
18288 wlarc='${wl}'
18289
18290 # ancient GNU ld didn't support --whole-archive et. al.
18291 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18292 grep 'no-whole-archive' > /dev/null; then
18293 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18294 else
18295 whole_archive_flag_spec_CXX=
18296 fi
18297 else
18298 with_gnu_ld=no
18299 wlarc=
18300
18301 # A generic and very simple default shared library creation
18302 # command for GNU C++ for the case where it uses the native
18303 # linker, instead of GNU ld. If possible, this setting should
18304 # overridden to take advantage of the native linker features on
18305 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018307 fi
18308
18309 # Commands to make compiler produce verbose output that lists
18310 # what "hidden" libraries, object files and flags are used when
18311 # linking a shared library.
18312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18313
18314else
18315 GXX=no
18316 with_gnu_ld=no
18317 wlarc=
18318fi
18319
18320# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018321{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18322echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018323ld_shlibs_CXX=yes
18324case $host_os in
18325 aix3*)
18326 # FIXME: insert proper C++ library support
18327 ld_shlibs_CXX=no
18328 ;;
18329 aix4* | aix5*)
18330 if test "$host_cpu" = ia64; then
18331 # On IA64, the linker does run time linking by default, so we don't
18332 # have to do anything special.
18333 aix_use_runtimelinking=no
18334 exp_sym_flag='-Bexport'
18335 no_entry_flag=""
18336 else
18337 aix_use_runtimelinking=no
18338
18339 # Test if we are trying to use run time linking or normal
18340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18341 # need to do runtime linking.
18342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18343 for ld_flag in $LDFLAGS; do
18344 case $ld_flag in
18345 *-brtl*)
18346 aix_use_runtimelinking=yes
18347 break
18348 ;;
18349 esac
18350 done
Reid Spencera773bd52006-08-04 18:18:08 +000018351 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018352 esac
18353
18354 exp_sym_flag='-bexport'
18355 no_entry_flag='-bnoentry'
18356 fi
18357
18358 # When large executables or shared objects are built, AIX ld can
18359 # have problems creating the table of contents. If linking a library
18360 # or program results in "error TOC overflow" add -mminimal-toc to
18361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18363
18364 archive_cmds_CXX=''
18365 hardcode_direct_CXX=yes
18366 hardcode_libdir_separator_CXX=':'
18367 link_all_deplibs_CXX=yes
18368
18369 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018370 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018371 # We only want to do this on AIX 4.2 and lower, the check
18372 # below for broken collect2 doesn't work under 4.3+
18373 collect2name=`${CC} -print-prog-name=collect2`
18374 if test -f "$collect2name" && \
18375 strings "$collect2name" | grep resolve_lib_name >/dev/null
18376 then
18377 # We have reworked collect2
18378 hardcode_direct_CXX=yes
18379 else
18380 # We have old collect2
18381 hardcode_direct_CXX=unsupported
18382 # It fails to find uninstalled libraries when the uninstalled
18383 # path is not listed in the libpath. Setting hardcode_minus_L
18384 # to unsupported forces relinking
18385 hardcode_minus_L_CXX=yes
18386 hardcode_libdir_flag_spec_CXX='-L$libdir'
18387 hardcode_libdir_separator_CXX=
18388 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018389 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018390 esac
18391 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018392 if test "$aix_use_runtimelinking" = yes; then
18393 shared_flag="$shared_flag "'${wl}-G'
18394 fi
John Criswell47fdd832003-07-14 16:52:07 +000018395 else
18396 # not using gcc
18397 if test "$host_cpu" = ia64; then
18398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18399 # chokes on -Wl,-G. The following line is correct:
18400 shared_flag='-G'
18401 else
18402 if test "$aix_use_runtimelinking" = yes; then
18403 shared_flag='${wl}-G'
18404 else
18405 shared_flag='${wl}-bM:SRE'
18406 fi
18407 fi
18408 fi
18409
18410 # It seems that -bexpall does not export symbols beginning with
18411 # underscore (_), so it is better to generate a list of symbols to export.
18412 always_export_symbols_CXX=yes
18413 if test "$aix_use_runtimelinking" = yes; then
18414 # Warning - without using the other runtime loading flags (-brtl),
18415 # -berok will link without error, but may produce a broken library.
18416 allow_undefined_flag_CXX='-berok'
18417 # Determine the default libpath from the value encoded in an empty executable.
18418 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018419/* confdefs.h. */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018424
John Criswell47fdd832003-07-14 16:52:07 +000018425int
18426main ()
18427{
18428
18429 ;
18430 return 0;
18431}
18432_ACEOF
18433rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018434if { (ac_try="$ac_link"
18435case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018446 (exit $ac_status); } &&
18447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest$ac_exeext'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018467
18468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18469}'`
18470# Check for a 64-bit object if we didn't find anything.
18471if 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; }
18472}'`; fi
18473else
18474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018475sed 's/^/| /' conftest.$ac_ext >&5
18476
Reid Spencera773bd52006-08-04 18:18:08 +000018477
John Criswell47fdd832003-07-14 16:52:07 +000018478fi
Reid Spencera773bd52006-08-04 18:18:08 +000018479
Bill Wendlingebcceee2009-04-18 11:20:33 +000018480rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018481 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18483
18484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18485
Reid Spencera773bd52006-08-04 18:18:08 +000018486 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 +000018487 else
18488 if test "$host_cpu" = ia64; then
18489 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18490 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018491 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 +000018492 else
18493 # Determine the default libpath from the value encoded in an empty executable.
18494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018500
John Criswell47fdd832003-07-14 16:52:07 +000018501int
18502main ()
18503{
18504
18505 ;
18506 return 0;
18507}
18508_ACEOF
18509rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018510if { (ac_try="$ac_link"
18511case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; } &&
18533 { ac_try='test -s conftest$ac_exeext'
18534 { (case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18537esac
18538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_try") 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018543
18544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18545}'`
18546# Check for a 64-bit object if we didn't find anything.
18547if 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; }
18548}'`; fi
18549else
18550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018551sed 's/^/| /' conftest.$ac_ext >&5
18552
Reid Spencera773bd52006-08-04 18:18:08 +000018553
John Criswell47fdd832003-07-14 16:52:07 +000018554fi
Reid Spencera773bd52006-08-04 18:18:08 +000018555
Bill Wendlingebcceee2009-04-18 11:20:33 +000018556rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018557 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18559
18560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18561 # Warning - without using the other run time loading flags,
18562 # -berok will link without error, but may produce a broken library.
18563 no_undefined_flag_CXX=' ${wl}-bernotok'
18564 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018565 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018566 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018567 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018568 # This is similar to how AIX traditionally builds its shared libraries.
18569 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 +000018570 fi
18571 fi
18572 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018573
18574 beos*)
18575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18576 allow_undefined_flag_CXX=unsupported
18577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18578 # support --undefined. This deserves some investigation. FIXME
18579 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18580 else
18581 ld_shlibs_CXX=no
18582 fi
18583 ;;
18584
John Criswell47fdd832003-07-14 16:52:07 +000018585 chorus*)
18586 case $cc_basename in
18587 *)
18588 # FIXME: insert proper C++ library support
18589 ld_shlibs_CXX=no
18590 ;;
18591 esac
18592 ;;
18593
18594 cygwin* | mingw* | pw32*)
18595 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18596 # as there is no search path for DLLs.
18597 hardcode_libdir_flag_spec_CXX='-L$libdir'
18598 allow_undefined_flag_CXX=unsupported
18599 always_export_symbols_CXX=no
18600 enable_shared_with_static_runtimes_CXX=yes
18601
18602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018603 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 +000018604 # If the export-symbols file already is a .def file (1st line
18605 # is EXPORTS), use it as is; otherwise, prepend...
18606 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18607 cp $export_symbols $output_objdir/$soname.def;
18608 else
18609 echo EXPORTS > $output_objdir/$soname.def;
18610 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018611 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018612 $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 +000018613 else
18614 ld_shlibs_CXX=no
18615 fi
18616 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018617 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018618 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018619 rhapsody* | darwin1.[012])
18620 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18621 ;;
18622 *) # Darwin 1.3 on
18623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18624 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18625 else
18626 case ${MACOSX_DEPLOYMENT_TARGET} in
18627 10.[012])
18628 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18629 ;;
18630 10.*)
18631 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18632 ;;
18633 esac
18634 fi
18635 ;;
18636 esac
18637 archive_cmds_need_lc_CXX=no
18638 hardcode_direct_CXX=no
18639 hardcode_automatic_CXX=yes
18640 hardcode_shlibpath_var_CXX=unsupported
18641 whole_archive_flag_spec_CXX=''
18642 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018643
Reid Spencer2706f8c2004-09-19 23:53:36 +000018644 if test "$GXX" = yes ; then
18645 lt_int_apple_cc_single_mod=no
18646 output_verbose_link_cmd='echo'
18647 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18648 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018649 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018650 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018651 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 +000018652 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018653 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 +000018654 fi
18655 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018656 # 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 +000018657 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018658 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 +000018659 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018660 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 +000018661 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018662 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 +000018663 else
Reid Spencera773bd52006-08-04 18:18:08 +000018664 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018665 xlc*)
18666 output_verbose_link_cmd='echo'
18667 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'
18668 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018669 # 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 +000018670 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}'
18671 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 +000018672 ;;
18673 *)
18674 ld_shlibs_CXX=no
18675 ;;
18676 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018677 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018678 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018679
18680 dgux*)
18681 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018682 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018683 # FIXME: insert proper C++ library support
18684 ld_shlibs_CXX=no
18685 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018686 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018687 # Green Hills C++ Compiler
18688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18690 ;;
18691 *)
18692 # FIXME: insert proper C++ library support
18693 ld_shlibs_CXX=no
18694 ;;
18695 esac
18696 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018697 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018698 # C++ shared libraries reported to be fairly broken before switch to ELF
18699 ld_shlibs_CXX=no
18700 ;;
18701 freebsd-elf*)
18702 archive_cmds_need_lc_CXX=no
18703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018704 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18706 # conventions
18707 ld_shlibs_CXX=yes
18708 ;;
18709 gnu*)
18710 ;;
18711 hpux9*)
18712 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18713 hardcode_libdir_separator_CXX=:
18714 export_dynamic_flag_spec_CXX='${wl}-E'
18715 hardcode_direct_CXX=yes
18716 hardcode_minus_L_CXX=yes # Not in the search PATH,
18717 # but as the default
18718 # location of the library.
18719
18720 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018721 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018722 # FIXME: insert proper C++ library support
18723 ld_shlibs_CXX=no
18724 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018725 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018726 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 +000018727 # Commands to make compiler produce verbose output that lists
18728 # what "hidden" libraries, object files and flags are used when
18729 # linking a shared library.
18730 #
18731 # There doesn't appear to be a way to prevent this compiler from
18732 # explicitly linking system object files so we need to strip them
18733 # from the output so that they don't get included in the library
18734 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018735 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 +000018736 ;;
18737 *)
18738 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018739 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 +000018740 else
18741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18743 fi
18744 ;;
18745 esac
18746 ;;
18747 hpux10*|hpux11*)
18748 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18750 hardcode_libdir_separator_CXX=:
18751
18752 case $host_cpu in
18753 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018754 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018755 ;;
18756 *)
John Criswell47fdd832003-07-14 16:52:07 +000018757 export_dynamic_flag_spec_CXX='${wl}-E'
18758 ;;
18759 esac
18760 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018761 case $host_cpu in
18762 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018763 hardcode_direct_CXX=no
18764 hardcode_shlibpath_var_CXX=no
18765 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018766 *)
18767 hardcode_direct_CXX=yes
18768 hardcode_minus_L_CXX=yes # Not in the search PATH,
18769 # but as the default
18770 # location of the library.
18771 ;;
18772 esac
18773
18774 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018775 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018776 # FIXME: insert proper C++ library support
18777 ld_shlibs_CXX=no
18778 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018779 aCC*)
18780 case $host_cpu in
18781 hppa*64*)
18782 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18783 ;;
18784 ia64*)
18785 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 +000018786 ;;
18787 *)
18788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18789 ;;
18790 esac
18791 # Commands to make compiler produce verbose output that lists
18792 # what "hidden" libraries, object files and flags are used when
18793 # linking a shared library.
18794 #
18795 # There doesn't appear to be a way to prevent this compiler from
18796 # explicitly linking system object files so we need to strip them
18797 # from the output so that they don't get included in the library
18798 # dependencies.
18799 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'
18800 ;;
18801 *)
18802 if test "$GXX" = yes; then
18803 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018804 case $host_cpu in
18805 hppa*64*)
18806 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18807 ;;
18808 ia64*)
18809 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 +000018810 ;;
18811 *)
18812 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'
18813 ;;
18814 esac
18815 fi
18816 else
18817 # FIXME: insert proper C++ library support
18818 ld_shlibs_CXX=no
18819 fi
18820 ;;
18821 esac
18822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018823 interix3*)
18824 hardcode_direct_CXX=no
18825 hardcode_shlibpath_var_CXX=no
18826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18827 export_dynamic_flag_spec_CXX='${wl}-E'
18828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18829 # Instead, shared libraries are loaded at an image base (0x10000000 by
18830 # default) and relocated if they conflict, which is a slow very memory
18831 # consuming and fragmenting process. To avoid this, we pick a random,
18832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18834 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'
18835 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'
18836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018837 irix5* | irix6*)
18838 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018839 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018840 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018841 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 +000018842
18843 # Archives containing C++ object files must be created using
18844 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18845 # necessary to make sure instantiated templates are included
18846 # in the archive.
18847 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18848 ;;
18849 *)
18850 if test "$GXX" = yes; then
18851 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018852 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 +000018853 else
18854 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'
18855 fi
18856 fi
18857 link_all_deplibs_CXX=yes
18858 ;;
18859 esac
18860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18861 hardcode_libdir_separator_CXX=:
18862 ;;
18863 linux*)
18864 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018865 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018866 # Kuck and Associates, Inc. (KAI) C++ Compiler
18867
18868 # KCC will only create a shared library if the output file
18869 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18870 # to its proper name (with version) after linking.
18871 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'
18872 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'
18873 # Commands to make compiler produce verbose output that lists
18874 # what "hidden" libraries, object files and flags are used when
18875 # linking a shared library.
18876 #
18877 # There doesn't appear to be a way to prevent this compiler from
18878 # explicitly linking system object files so we need to strip them
18879 # from the output so that they don't get included in the library
18880 # dependencies.
18881 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'
18882
18883 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18885
18886 # Archives containing C++ object files must be created using
18887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018890 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018891 # Intel C++
18892 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018893 # version 8.0 and above of icpc choke on multiply defined symbols
18894 # if we add $predep_objects and $postdep_objects, however 7.1 and
18895 # earlier do not add the objects themselves.
18896 case `$CC -V 2>&1` in
18897 *"Version 7."*)
18898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899 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'
18900 ;;
18901 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018902 tmp_idyn=
18903 case $host_cpu in
18904 ia64*) tmp_idyn=' -i_dynamic';;
18905 esac
18906 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18907 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 +000018908 ;;
18909 esac
John Criswell47fdd832003-07-14 16:52:07 +000018910 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18914 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018915 pgCC*)
18916 # Portland Group C++ compiler
18917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18918 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'
18919
18920 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18922 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'
18923 ;;
18924 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018925 # Compaq C++
18926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927 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'
18928
18929 runpath_var=LD_RUN_PATH
18930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18931 hardcode_libdir_separator_CXX=:
18932
18933 # Commands to make compiler produce verbose output that lists
18934 # what "hidden" libraries, object files and flags are used when
18935 # linking a shared library.
18936 #
18937 # There doesn't appear to be a way to prevent this compiler from
18938 # explicitly linking system object files so we need to strip them
18939 # from the output so that they don't get included in the library
18940 # dependencies.
18941 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'
18942 ;;
18943 esac
18944 ;;
18945 lynxos*)
18946 # FIXME: insert proper C++ library support
18947 ld_shlibs_CXX=no
18948 ;;
18949 m88k*)
18950 # FIXME: insert proper C++ library support
18951 ld_shlibs_CXX=no
18952 ;;
18953 mvs*)
18954 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018955 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018956 # FIXME: insert proper C++ library support
18957 ld_shlibs_CXX=no
18958 ;;
18959 *)
18960 # FIXME: insert proper C++ library support
18961 ld_shlibs_CXX=no
18962 ;;
18963 esac
18964 ;;
18965 netbsd*)
18966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18967 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18968 wlarc=
18969 hardcode_libdir_flag_spec_CXX='-R$libdir'
18970 hardcode_direct_CXX=yes
18971 hardcode_shlibpath_var_CXX=no
18972 fi
18973 # Workaround some broken pre-1.5 toolchains
18974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18975 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018976 openbsd2*)
18977 # C++ shared libraries are fairly broken
18978 ld_shlibs_CXX=no
18979 ;;
18980 openbsd*)
18981 hardcode_direct_CXX=yes
18982 hardcode_shlibpath_var_CXX=no
18983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18986 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18987 export_dynamic_flag_spec_CXX='${wl}-E'
18988 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18989 fi
18990 output_verbose_link_cmd='echo'
18991 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018992 osf3*)
18993 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018994 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018995 # Kuck and Associates, Inc. (KAI) C++ Compiler
18996
18997 # KCC will only create a shared library if the output file
18998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18999 # to its proper name (with version) after linking.
19000 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'
19001
19002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19003 hardcode_libdir_separator_CXX=:
19004
19005 # Archives containing C++ object files must be created using
19006 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19007 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19008
19009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019010 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019011 # Rational C++ 2.4.1
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019015 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019017 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 +000019018
19019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19020 hardcode_libdir_separator_CXX=:
19021
19022 # Commands to make compiler produce verbose output that lists
19023 # what "hidden" libraries, object files and flags are used when
19024 # linking a shared library.
19025 #
19026 # There doesn't appear to be a way to prevent this compiler from
19027 # explicitly linking system object files so we need to strip them
19028 # from the output so that they don't get included in the library
19029 # dependencies.
19030 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'
19031 ;;
19032 *)
19033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19034 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019035 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 +000019036
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19038 hardcode_libdir_separator_CXX=:
19039
19040 # Commands to make compiler produce verbose output that lists
19041 # what "hidden" libraries, object files and flags are used when
19042 # linking a shared library.
19043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19044
19045 else
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19048 fi
19049 ;;
19050 esac
19051 ;;
19052 osf4* | osf5*)
19053 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019054 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019055 # Kuck and Associates, Inc. (KAI) C++ Compiler
19056
19057 # KCC will only create a shared library if the output file
19058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19059 # to its proper name (with version) after linking.
19060 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'
19061
19062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063 hardcode_libdir_separator_CXX=:
19064
19065 # Archives containing C++ object files must be created using
19066 # the KAI C++ compiler.
19067 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019069 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019070 # Rational C++ 2.4.1
19071 # FIXME: insert proper C++ library support
19072 ld_shlibs_CXX=no
19073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019074 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019075 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019076 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 +000019077 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19078 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019079 $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 +000019080 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019081
19082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19083 hardcode_libdir_separator_CXX=:
19084
19085 # Commands to make compiler produce verbose output that lists
19086 # what "hidden" libraries, object files and flags are used when
19087 # linking a shared library.
19088 #
19089 # There doesn't appear to be a way to prevent this compiler from
19090 # explicitly linking system object files so we need to strip them
19091 # from the output so that they don't get included in the library
19092 # dependencies.
19093 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'
19094 ;;
19095 *)
19096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019098 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 +000019099
19100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101 hardcode_libdir_separator_CXX=:
19102
19103 # Commands to make compiler produce verbose output that lists
19104 # what "hidden" libraries, object files and flags are used when
19105 # linking a shared library.
19106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19107
19108 else
19109 # FIXME: insert proper C++ library support
19110 ld_shlibs_CXX=no
19111 fi
19112 ;;
19113 esac
19114 ;;
19115 psos*)
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019119 sunos4*)
19120 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019121 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019122 # Sun C++ 4.x
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019126 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019127 # Lucid
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
19131 *)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135 esac
19136 ;;
19137 solaris*)
19138 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019139 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019140 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019141 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019142 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019143 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 +000019144 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 +000019145 $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 +000019146
19147 hardcode_libdir_flag_spec_CXX='-R$libdir'
19148 hardcode_shlibpath_var_CXX=no
19149 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019150 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019151 *)
19152 # The C++ compiler is used as linker so we must use $wl
19153 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019154 # linker. We must also pass each convience library through
19155 # to the system linker between allextract/defaultextract.
19156 # The C++ compiler will combine linker options so we
19157 # cannot just pass the convience library names through
19158 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019159 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019160 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 +000019161 ;;
19162 esac
19163 link_all_deplibs_CXX=yes
19164
Reid Spencera773bd52006-08-04 18:18:08 +000019165 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019166
19167 # Archives containing C++ object files must be created using
19168 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19169 # necessary to make sure instantiated templates are included
19170 # in the archive.
19171 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19172 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019173 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019174 # Green Hills C++ Compiler
19175 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19176
19177 # The C++ compiler must be used to create the archive.
19178 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19179 ;;
19180 *)
19181 # GNU C++ compiler with Solaris linker
19182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19183 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19184 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019185 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 +000019186 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19187 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19188
John Criswell47fdd832003-07-14 16:52:07 +000019189 # Commands to make compiler produce verbose output that lists
19190 # what "hidden" libraries, object files and flags are used when
19191 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019192 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019193 else
19194 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19195 # platform.
19196 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 +000019197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19198 $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 +000019199
19200 # Commands to make compiler produce verbose output that lists
19201 # what "hidden" libraries, object files and flags are used when
19202 # linking a shared library.
19203 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19204 fi
19205
19206 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19207 fi
19208 ;;
19209 esac
19210 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019211 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19212 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019213 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019214 hardcode_shlibpath_var_CXX=no
19215 runpath_var='LD_RUN_PATH'
19216
19217 case $cc_basename in
19218 CC*)
19219 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19220 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19221 ;;
19222 *)
19223 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19224 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19225 ;;
19226 esac
19227 ;;
19228 sysv5* | sco3.2v5* | sco5v6*)
19229 # Note: We can NOT use -z defs as we might desire, because we do not
19230 # link with -lc, and that would cause any symbols used from libc to
19231 # always be unresolved, which means just about no library would
19232 # ever link correctly. If we're not using GNU ld we use -z text
19233 # though, which does catch some bad symbols but isn't as heavy-handed
19234 # as -z defs.
19235 # For security reasons, it is highly recommended that you always
19236 # use absolute paths for naming shared libraries, and exclude the
19237 # DT_RUNPATH tag from executables and libraries. But doing so
19238 # requires that you compile everything twice, which is a pain.
19239 # So that behaviour is only enabled if SCOABSPATH is set to a
19240 # non-empty value in the environment. Most likely only useful for
19241 # creating official distributions of packages.
19242 # This is a hack until libtool officially supports absolute path
19243 # names for shared libraries.
19244 no_undefined_flag_CXX='${wl}-z,text'
19245 allow_undefined_flag_CXX='${wl}-z,nodefs'
19246 archive_cmds_need_lc_CXX=no
19247 hardcode_shlibpath_var_CXX=no
19248 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19249 hardcode_libdir_separator_CXX=':'
19250 link_all_deplibs_CXX=yes
19251 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19252 runpath_var='LD_RUN_PATH'
19253
19254 case $cc_basename in
19255 CC*)
19256 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19257 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19258 ;;
19259 *)
19260 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19261 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262 ;;
19263 esac
John Criswell47fdd832003-07-14 16:52:07 +000019264 ;;
19265 tandem*)
19266 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019267 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019268 # NonStop-UX NCC 3.20
19269 # FIXME: insert proper C++ library support
19270 ld_shlibs_CXX=no
19271 ;;
19272 *)
19273 # FIXME: insert proper C++ library support
19274 ld_shlibs_CXX=no
19275 ;;
19276 esac
19277 ;;
19278 vxworks*)
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19281 ;;
19282 *)
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19285 ;;
19286esac
Reid Spencera773bd52006-08-04 18:18:08 +000019287{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19288echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019289test "$ld_shlibs_CXX" = no && can_build_shared=no
19290
19291GCC_CXX="$GXX"
19292LD_CXX="$LD"
19293
John Criswell47fdd832003-07-14 16:52:07 +000019294
19295cat > conftest.$ac_ext <<EOF
19296class Foo
19297{
19298public:
19299 Foo (void) { a = 0; }
19300private:
19301 int a;
19302};
19303EOF
19304
19305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306 (eval $ac_compile) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; then
19310 # Parse the compiler output and extract the necessary
19311 # objects, libraries and library flags.
19312
19313 # Sentinel used to keep track of whether or not we are before
19314 # the conftest object file.
19315 pre_test_object_deps_done=no
19316
19317 # The `*' in the case matches for architectures that use `case' in
19318 # $output_verbose_cmd can trigger glob expansion during the loop
19319 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019320 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019321
19322 for p in `eval $output_verbose_link_cmd`; do
19323 case $p in
19324
19325 -L* | -R* | -l*)
19326 # Some compilers place space between "-{L,R}" and the path.
19327 # Remove the space.
19328 if test $p = "-L" \
19329 || test $p = "-R"; then
19330 prev=$p
19331 continue
19332 else
19333 prev=
19334 fi
19335
19336 if test "$pre_test_object_deps_done" = no; then
19337 case $p in
19338 -L* | -R*)
19339 # Internal compiler library paths should come after those
19340 # provided the user. The postdeps already come after the
19341 # user supplied libs so there is no need to process them.
19342 if test -z "$compiler_lib_search_path_CXX"; then
19343 compiler_lib_search_path_CXX="${prev}${p}"
19344 else
19345 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19346 fi
19347 ;;
19348 # The "-l" case would never come before the object being
19349 # linked, so don't bother handling this case.
19350 esac
19351 else
19352 if test -z "$postdeps_CXX"; then
19353 postdeps_CXX="${prev}${p}"
19354 else
19355 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19356 fi
19357 fi
19358 ;;
19359
19360 *.$objext)
19361 # This assumes that the test object file only shows up
19362 # once in the compiler output.
19363 if test "$p" = "conftest.$objext"; then
19364 pre_test_object_deps_done=yes
19365 continue
19366 fi
19367
19368 if test "$pre_test_object_deps_done" = no; then
19369 if test -z "$predep_objects_CXX"; then
19370 predep_objects_CXX="$p"
19371 else
19372 predep_objects_CXX="$predep_objects_CXX $p"
19373 fi
19374 else
19375 if test -z "$postdep_objects_CXX"; then
19376 postdep_objects_CXX="$p"
19377 else
19378 postdep_objects_CXX="$postdep_objects_CXX $p"
19379 fi
19380 fi
19381 ;;
19382
19383 *) ;; # Ignore the rest.
19384
19385 esac
19386 done
19387
19388 # Clean up.
19389 rm -f a.out a.exe
19390else
19391 echo "libtool.m4: error: problem compiling CXX test program"
19392fi
19393
19394$rm -f confest.$objext
19395
Reid Spencera773bd52006-08-04 18:18:08 +000019396# PORTME: override above test on systems where it is broken
19397case $host_os in
19398interix3*)
19399 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19400 # hack all around it, let's just trust "g++" to DTRT.
19401 predep_objects_CXX=
19402 postdep_objects_CXX=
19403 postdeps_CXX=
19404 ;;
19405
19406solaris*)
19407 case $cc_basename in
19408 CC*)
19409 # Adding this requires a known-good setup of shared libraries for
19410 # Sun compiler versions before 5.6, else PIC objects from an old
19411 # archive will be linked into the output, leading to subtle bugs.
19412 postdeps_CXX='-lCstd -lCrun'
19413 ;;
19414 esac
19415 ;;
19416esac
19417
19418
John Criswell47fdd832003-07-14 16:52:07 +000019419case " $postdeps_CXX " in
19420*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19421esac
19422
19423lt_prog_compiler_wl_CXX=
19424lt_prog_compiler_pic_CXX=
19425lt_prog_compiler_static_CXX=
19426
Reid Spencera773bd52006-08-04 18:18:08 +000019427{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19428echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019429
19430 # C++ specific cases for pic, static, wl, etc.
19431 if test "$GXX" = yes; then
19432 lt_prog_compiler_wl_CXX='-Wl,'
19433 lt_prog_compiler_static_CXX='-static'
19434
19435 case $host_os in
19436 aix*)
19437 # All AIX code is PIC.
19438 if test "$host_cpu" = ia64; then
19439 # AIX 5 now supports IA64 processor
19440 lt_prog_compiler_static_CXX='-Bstatic'
19441 fi
19442 ;;
19443 amigaos*)
19444 # FIXME: we need at least 68020 code to build shared libraries, but
19445 # adding the `-m68020' flag to GCC prevents building anything better,
19446 # like `-m68040'.
19447 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19448 ;;
19449 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19450 # PIC is the default for these OSes.
19451 ;;
19452 mingw* | os2* | pw32*)
19453 # This hack is so that the source file can tell whether it is being
19454 # built for inclusion in a dll (and should export symbols for example).
19455 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19456 ;;
19457 darwin* | rhapsody*)
19458 # PIC is the default on this platform
19459 # Common symbols not allowed in MH_DYLIB files
19460 lt_prog_compiler_pic_CXX='-fno-common'
19461 ;;
19462 *djgpp*)
19463 # DJGPP does not support shared libraries at all
19464 lt_prog_compiler_pic_CXX=
19465 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019466 interix3*)
19467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19468 # Instead, we relocate shared libraries at runtime.
19469 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019470 sysv4*MP*)
19471 if test -d /usr/nec; then
19472 lt_prog_compiler_pic_CXX=-Kconform_pic
19473 fi
19474 ;;
19475 hpux*)
19476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19477 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019478 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019479 hppa*64*|ia64*)
19480 ;;
19481 *)
19482 lt_prog_compiler_pic_CXX='-fPIC'
19483 ;;
19484 esac
19485 ;;
19486 *)
19487 lt_prog_compiler_pic_CXX='-fPIC'
19488 ;;
19489 esac
19490 else
19491 case $host_os in
19492 aix4* | aix5*)
19493 # All AIX code is PIC.
19494 if test "$host_cpu" = ia64; then
19495 # AIX 5 now supports IA64 processor
19496 lt_prog_compiler_static_CXX='-Bstatic'
19497 else
19498 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19499 fi
19500 ;;
19501 chorus*)
19502 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019503 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019504 # Green Hills C++ Compiler
19505 # _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"
19506 ;;
19507 esac
19508 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019509 darwin*)
19510 # PIC is the default on this platform
19511 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019512 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019513 xlc*)
19514 lt_prog_compiler_pic_CXX='-qnocommon'
19515 lt_prog_compiler_wl_CXX='-Wl,'
19516 ;;
19517 esac
19518 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019519 dgux*)
19520 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019521 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019522 lt_prog_compiler_pic_CXX='-KPIC'
19523 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019524 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019525 # Green Hills C++ Compiler
19526 lt_prog_compiler_pic_CXX='-pic'
19527 ;;
19528 *)
19529 ;;
19530 esac
19531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019532 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019533 # FreeBSD uses GNU C++
19534 ;;
19535 hpux9* | hpux10* | hpux11*)
19536 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019537 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019538 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019539 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019540 if test "$host_cpu" != ia64; then
19541 lt_prog_compiler_pic_CXX='+Z'
19542 fi
19543 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019544 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019545 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19547 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019548 hppa*64*|ia64*)
19549 # +Z the default
19550 ;;
19551 *)
19552 lt_prog_compiler_pic_CXX='+Z'
19553 ;;
19554 esac
19555 ;;
19556 *)
19557 ;;
19558 esac
19559 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019560 interix*)
19561 # This is c89, which is MS Visual C++ (no shared libs)
19562 # Anyone wants to do a port?
19563 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019564 irix5* | irix6* | nonstopux*)
19565 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019566 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019567 lt_prog_compiler_wl_CXX='-Wl,'
19568 lt_prog_compiler_static_CXX='-non_shared'
19569 # CC pic flag -KPIC is the default.
19570 ;;
19571 *)
19572 ;;
19573 esac
19574 ;;
19575 linux*)
19576 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019577 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019578 # KAI C++ Compiler
19579 lt_prog_compiler_wl_CXX='--backend -Wl,'
19580 lt_prog_compiler_pic_CXX='-fPIC'
19581 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019582 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019583 # Intel C++
19584 lt_prog_compiler_wl_CXX='-Wl,'
19585 lt_prog_compiler_pic_CXX='-KPIC'
19586 lt_prog_compiler_static_CXX='-static'
19587 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019588 pgCC*)
19589 # Portland Group C++ compiler.
19590 lt_prog_compiler_wl_CXX='-Wl,'
19591 lt_prog_compiler_pic_CXX='-fpic'
19592 lt_prog_compiler_static_CXX='-Bstatic'
19593 ;;
19594 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019595 # Compaq C++
19596 # Make sure the PIC flag is empty. It appears that all Alpha
19597 # Linux and Compaq Tru64 Unix objects are PIC.
19598 lt_prog_compiler_pic_CXX=
19599 lt_prog_compiler_static_CXX='-non_shared'
19600 ;;
19601 *)
19602 ;;
19603 esac
19604 ;;
19605 lynxos*)
19606 ;;
19607 m88k*)
19608 ;;
19609 mvs*)
19610 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019611 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019612 lt_prog_compiler_pic_CXX='-W c,exportall'
19613 ;;
19614 *)
19615 ;;
19616 esac
19617 ;;
19618 netbsd*)
19619 ;;
19620 osf3* | osf4* | osf5*)
19621 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019622 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019623 lt_prog_compiler_wl_CXX='--backend -Wl,'
19624 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019625 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019626 # Rational C++ 2.4.1
19627 lt_prog_compiler_pic_CXX='-pic'
19628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019629 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019630 # Digital/Compaq C++
19631 lt_prog_compiler_wl_CXX='-Wl,'
19632 # Make sure the PIC flag is empty. It appears that all Alpha
19633 # Linux and Compaq Tru64 Unix objects are PIC.
19634 lt_prog_compiler_pic_CXX=
19635 lt_prog_compiler_static_CXX='-non_shared'
19636 ;;
19637 *)
19638 ;;
19639 esac
19640 ;;
19641 psos*)
19642 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019643 solaris*)
19644 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019645 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019646 # Sun C++ 4.2, 5.x and Centerline C++
19647 lt_prog_compiler_pic_CXX='-KPIC'
19648 lt_prog_compiler_static_CXX='-Bstatic'
19649 lt_prog_compiler_wl_CXX='-Qoption ld '
19650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019651 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019652 # Green Hills C++ Compiler
19653 lt_prog_compiler_pic_CXX='-PIC'
19654 ;;
19655 *)
19656 ;;
19657 esac
19658 ;;
19659 sunos4*)
19660 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019661 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019662 # Sun C++ 4.x
19663 lt_prog_compiler_pic_CXX='-pic'
19664 lt_prog_compiler_static_CXX='-Bstatic'
19665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019666 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019667 # Lucid
19668 lt_prog_compiler_pic_CXX='-pic'
19669 ;;
19670 *)
19671 ;;
19672 esac
19673 ;;
19674 tandem*)
19675 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019676 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019677 # NonStop-UX NCC 3.20
19678 lt_prog_compiler_pic_CXX='-KPIC'
19679 ;;
19680 *)
19681 ;;
19682 esac
19683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19685 case $cc_basename in
19686 CC*)
19687 lt_prog_compiler_wl_CXX='-Wl,'
19688 lt_prog_compiler_pic_CXX='-KPIC'
19689 lt_prog_compiler_static_CXX='-Bstatic'
19690 ;;
19691 esac
John Criswell47fdd832003-07-14 16:52:07 +000019692 ;;
19693 vxworks*)
19694 ;;
19695 *)
19696 lt_prog_compiler_can_build_shared_CXX=no
19697 ;;
19698 esac
19699 fi
19700
Reid Spencera773bd52006-08-04 18:18:08 +000019701{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19702echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019703
19704#
19705# Check to make sure the PIC flag actually works.
19706#
19707if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019708
Reid Spencera773bd52006-08-04 18:18:08 +000019709{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19710echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019711if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713else
19714 lt_prog_compiler_pic_works_CXX=no
19715 ac_outfile=conftest.$ac_objext
19716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19717 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19718 # Insert the option either (1) after the last *FLAGS variable, or
19719 # (2) before a word containing "conftest.", or (3) at the end.
19720 # Note that $ac_compile itself does not contain backslashes and begins
19721 # with a dollar sign (not a hyphen), so the echo should work correctly.
19722 # The option is referenced via a variable to avoid confusing sed.
19723 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19726 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000019727 (eval echo "\"\$as_me:19727: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019728 (eval "$lt_compile" 2>conftest.err)
19729 ac_status=$?
19730 cat conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019731 echo "$as_me:19731: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019732 if (exit $ac_status) && test -s "$ac_outfile"; then
19733 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019734 # So say no if there are warnings other than the usual output.
19735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019738 lt_prog_compiler_pic_works_CXX=yes
19739 fi
19740 fi
19741 $rm conftest*
19742
19743fi
Reid Spencera773bd52006-08-04 18:18:08 +000019744{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19745echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019746
19747if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19748 case $lt_prog_compiler_pic_CXX in
19749 "" | " "*) ;;
19750 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19751 esac
19752else
19753 lt_prog_compiler_pic_CXX=
19754 lt_prog_compiler_can_build_shared_CXX=no
19755fi
19756
19757fi
Reid Spencera773bd52006-08-04 18:18:08 +000019758case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019759 # For platforms which do not support PIC, -DPIC is meaningless:
19760 *djgpp*)
19761 lt_prog_compiler_pic_CXX=
19762 ;;
19763 *)
19764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19765 ;;
19766esac
19767
Reid Spencera773bd52006-08-04 18:18:08 +000019768#
19769# Check to make sure the static flag actually works.
19770#
19771wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19772{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19773echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19774if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776else
19777 lt_prog_compiler_static_works_CXX=no
19778 save_LDFLAGS="$LDFLAGS"
19779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19780 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19782 # The linker can only warn and ignore the option if not recognized
19783 # So say no if there are warnings
19784 if test -s conftest.err; then
19785 # Append any errors to the config.log.
19786 cat conftest.err 1>&5
19787 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19789 if diff conftest.exp conftest.er2 >/dev/null; then
19790 lt_prog_compiler_static_works_CXX=yes
19791 fi
19792 else
19793 lt_prog_compiler_static_works_CXX=yes
19794 fi
19795 fi
19796 $rm conftest*
19797 LDFLAGS="$save_LDFLAGS"
19798
19799fi
19800{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19801echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19802
19803if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19804 :
19805else
19806 lt_prog_compiler_static_CXX=
19807fi
19808
19809
19810{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19811echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019812if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814else
19815 lt_cv_prog_compiler_c_o_CXX=no
19816 $rm -r conftest 2>/dev/null
19817 mkdir conftest
19818 cd conftest
19819 mkdir out
19820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19821
John Criswell47fdd832003-07-14 16:52:07 +000019822 lt_compiler_flag="-o out/conftest2.$ac_objext"
19823 # Insert the option either (1) after the last *FLAGS variable, or
19824 # (2) before a word containing "conftest.", or (3) at the end.
19825 # Note that $ac_compile itself does not contain backslashes and begins
19826 # with a dollar sign (not a hyphen), so the echo should work correctly.
19827 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19830 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000019831 (eval echo "\"\$as_me:19831: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019832 (eval "$lt_compile" 2>out/conftest.err)
19833 ac_status=$?
19834 cat out/conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019835 echo "$as_me:19835: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19837 then
19838 # The compiler can only warn and ignore the option if not recognized
19839 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019843 lt_cv_prog_compiler_c_o_CXX=yes
19844 fi
19845 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019846 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019847 $rm conftest*
19848 # SGI C++ compiler will create directory out/ii_files/ for
19849 # template instantiation
19850 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19851 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019852 cd ..
19853 rmdir conftest
19854 $rm conftest*
19855
19856fi
Reid Spencera773bd52006-08-04 18:18:08 +000019857{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19858echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019859
19860
19861hard_links="nottested"
19862if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19863 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019864 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19865echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019866 hard_links=yes
19867 $rm conftest*
19868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19869 touch conftest.a
19870 ln conftest.a conftest.b 2>&5 || hard_links=no
19871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019872 { echo "$as_me:$LINENO: result: $hard_links" >&5
19873echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019874 if test "$hard_links" = no; then
19875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19876echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19877 need_locks=warn
19878 fi
19879else
19880 need_locks=no
19881fi
19882
Reid Spencera773bd52006-08-04 18:18:08 +000019883{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19884echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019885
19886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19887 case $host_os in
19888 aix4* | aix5*)
19889 # If we're using GNU nm, then we don't want the "-C" option.
19890 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19891 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19892 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'
19893 else
19894 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'
19895 fi
19896 ;;
19897 pw32*)
19898 export_symbols_cmds_CXX="$ltdll_cmds"
19899 ;;
19900 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019901 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 +000019902 ;;
19903 *)
19904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19905 ;;
19906 esac
19907
Reid Spencera773bd52006-08-04 18:18:08 +000019908{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19909echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019910test "$ld_shlibs_CXX" = no && can_build_shared=no
19911
John Criswell47fdd832003-07-14 16:52:07 +000019912#
19913# Do we need to explicitly link libc?
19914#
19915case "x$archive_cmds_need_lc_CXX" in
19916x|xyes)
19917 # Assume -lc should be added
19918 archive_cmds_need_lc_CXX=yes
19919
19920 if test "$enable_shared" = yes && test "$GCC" = yes; then
19921 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019922 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019923 # FIXME: we may have to deal with multi-command sequences.
19924 ;;
19925 '$CC '*)
19926 # Test whether the compiler implicitly links with -lc since on some
19927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19928 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019929 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19930echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019931 $rm conftest*
19932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19933
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935 (eval $ac_compile) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } 2>conftest.err; then
19939 soname=conftest
19940 lib=conftest
19941 libobjs=conftest.$ac_objext
19942 deplibs=
19943 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019944 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019945 compiler_flags=-v
19946 linker_flags=-v
19947 verstring=
19948 output_objdir=.
19949 libname=conftest
19950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19951 allow_undefined_flag_CXX=
19952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19953 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }
19957 then
19958 archive_cmds_need_lc_CXX=no
19959 else
19960 archive_cmds_need_lc_CXX=yes
19961 fi
19962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19963 else
19964 cat conftest.err 1>&5
19965 fi
19966 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019967 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19968echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019969 ;;
19970 esac
19971 fi
19972 ;;
19973esac
19974
Reid Spencera773bd52006-08-04 18:18:08 +000019975{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19976echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019977library_names_spec=
19978libname_spec='lib$name'
19979soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019980shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019981postinstall_cmds=
19982postuninstall_cmds=
19983finish_cmds=
19984finish_eval=
19985shlibpath_var=
19986shlibpath_overrides_runpath=unknown
19987version_type=none
19988dynamic_linker="$host_os ld.so"
19989sys_lib_dlsearch_path_spec="/lib /usr/lib"
19990if test "$GCC" = yes; then
19991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19993 # if the path contains ";" then we assume it to be the separator
19994 # otherwise default to the standard path separator (i.e. ":") - it is
19995 # assumed that no part of a normal pathname contains ";" but that should
19996 # okay in the real world where ";" in dirpaths is itself problematic.
19997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19998 else
19999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20000 fi
20001else
20002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20003fi
20004need_lib_prefix=unknown
20005hardcode_into_libs=no
20006
20007# when you set need_version to no, make sure it does not cause -set_version
20008# flags to be left without arguments
20009need_version=unknown
20010
20011case $host_os in
20012aix3*)
20013 version_type=linux
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20015 shlibpath_var=LIBPATH
20016
20017 # AIX 3 has no versioning support, so we append a major version to the name.
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 ;;
20020
20021aix4* | aix5*)
20022 version_type=linux
20023 need_lib_prefix=no
20024 need_version=no
20025 hardcode_into_libs=yes
20026 if test "$host_cpu" = ia64; then
20027 # AIX 5 supports IA64
20028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20029 shlibpath_var=LD_LIBRARY_PATH
20030 else
20031 # With GCC up to 2.95.x, collect2 would create an import file
20032 # for dependence libraries. The import file would start with
20033 # the line `#! .'. This would cause the generated library to
20034 # depend on `.', always an invalid library. This was fixed in
20035 # development snapshots of GCC prior to 3.0.
20036 case $host_os in
20037 aix4 | aix4.[01] | aix4.[01].*)
20038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20039 echo ' yes '
20040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20041 :
20042 else
20043 can_build_shared=no
20044 fi
20045 ;;
20046 esac
20047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20048 # soname into executable. Probably we can add versioning support to
20049 # collect2, so additional links can be useful in future.
20050 if test "$aix_use_runtimelinking" = yes; then
20051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20052 # instead of lib<name>.a to let people know that these are not
20053 # typical AIX shared libraries.
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20055 else
20056 # We preserve .a as extension for shared libraries through AIX4.2
20057 # and later when we are not doing run time linking.
20058 library_names_spec='${libname}${release}.a $libname.a'
20059 soname_spec='${libname}${release}${shared_ext}$major'
20060 fi
20061 shlibpath_var=LIBPATH
20062 fi
20063 ;;
20064
20065amigaos*)
20066 library_names_spec='$libname.ixlibrary $libname.a'
20067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020068 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 +000020069 ;;
20070
20071beos*)
20072 library_names_spec='${libname}${shared_ext}'
20073 dynamic_linker="$host_os ld.so"
20074 shlibpath_var=LIBRARY_PATH
20075 ;;
20076
Reid Spencer2706f8c2004-09-19 23:53:36 +000020077bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020078 version_type=linux
20079 need_version=no
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20083 shlibpath_var=LD_LIBRARY_PATH
20084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20086 # the default ld.so.conf also contains /usr/contrib/lib and
20087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20088 # libtool to hard-code these into programs
20089 ;;
20090
20091cygwin* | mingw* | pw32*)
20092 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020093 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020094 need_version=no
20095 need_lib_prefix=no
20096
20097 case $GCC,$host_os in
20098 yes,cygwin* | yes,mingw* | yes,pw32*)
20099 library_names_spec='$libname.dll.a'
20100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020101 postinstall_cmds='base_file=`basename \${file}`~
20102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20103 dldir=$destdir/`dirname \$dlpath`~
20104 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020105 $install_prog $dir/$dlname \$dldir/$dlname~
20106 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20108 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020109 $rm \$dlpath'
20110 shlibpath_overrides_runpath=yes
20111
20112 case $host_os in
20113 cygwin*)
20114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20115 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 +000020116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020117 ;;
20118 mingw*)
20119 # MinGW DLLs use traditional 'lib' prefix
20120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20123 # It is most probably a Windows format PATH printed by
20124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20125 # path with ; separators, and with drive letters. We can handle the
20126 # drive letters (cygwin fileutils understands them), so leave them,
20127 # especially as we might pass files found there to a mingw objdump,
20128 # which wouldn't understand a cygwinified path. Ahh.
20129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20130 else
20131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20132 fi
20133 ;;
20134 pw32*)
20135 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020136 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 +000020137 ;;
20138 esac
20139 ;;
20140
20141 *)
20142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20143 ;;
20144 esac
20145 dynamic_linker='Win32 ld.exe'
20146 # FIXME: first we should search . and the directory the executable is in
20147 shlibpath_var=PATH
20148 ;;
20149
20150darwin* | rhapsody*)
20151 dynamic_linker="$host_os dyld"
20152 version_type=darwin
20153 need_lib_prefix=no
20154 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020156 soname_spec='${libname}${release}${major}$shared_ext'
20157 shlibpath_overrides_runpath=yes
20158 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020159 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020161 if test "$GCC" = yes; then
20162 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"`
20163 else
20164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020165 fi
20166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20167 ;;
20168
20169dgux*)
20170 version_type=linux
20171 need_lib_prefix=no
20172 need_version=no
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20174 soname_spec='${libname}${release}${shared_ext}$major'
20175 shlibpath_var=LD_LIBRARY_PATH
20176 ;;
20177
20178freebsd1*)
20179 dynamic_linker=no
20180 ;;
20181
Reid Spencer2706f8c2004-09-19 23:53:36 +000020182kfreebsd*-gnu)
20183 version_type=linux
20184 need_lib_prefix=no
20185 need_version=no
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=no
20190 hardcode_into_libs=yes
20191 dynamic_linker='GNU ld.so'
20192 ;;
20193
Reid Spencera773bd52006-08-04 18:18:08 +000020194freebsd* | dragonfly*)
20195 # DragonFly does not have aout. When/if they implement a new
20196 # versioning mechanism, adjust this.
20197 if test -x /usr/bin/objformat; then
20198 objformat=`/usr/bin/objformat`
20199 else
20200 case $host_os in
20201 freebsd[123]*) objformat=aout ;;
20202 *) objformat=elf ;;
20203 esac
20204 fi
John Criswell47fdd832003-07-14 16:52:07 +000020205 version_type=freebsd-$objformat
20206 case $version_type in
20207 freebsd-elf*)
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20209 need_version=no
20210 need_lib_prefix=no
20211 ;;
20212 freebsd-*)
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20214 need_version=yes
20215 ;;
20216 esac
20217 shlibpath_var=LD_LIBRARY_PATH
20218 case $host_os in
20219 freebsd2*)
20220 shlibpath_overrides_runpath=yes
20221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020222 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020223 shlibpath_overrides_runpath=yes
20224 hardcode_into_libs=yes
20225 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020228 shlibpath_overrides_runpath=no
20229 hardcode_into_libs=yes
20230 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020231 freebsd*) # from 4.6 on
20232 shlibpath_overrides_runpath=yes
20233 hardcode_into_libs=yes
20234 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020235 esac
20236 ;;
20237
20238gnu*)
20239 version_type=linux
20240 need_lib_prefix=no
20241 need_version=no
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 hardcode_into_libs=yes
20246 ;;
20247
20248hpux9* | hpux10* | hpux11*)
20249 # Give a soname corresponding to the major version so that dld.sl refuses to
20250 # link against other versions.
20251 version_type=sunos
20252 need_lib_prefix=no
20253 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020254 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020255 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020256 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020257 hardcode_into_libs=yes
20258 dynamic_linker="$host_os dld.so"
20259 shlibpath_var=LD_LIBRARY_PATH
20260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 if test "X$HPUX_IA64_MODE" = X32; then
20264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20265 else
20266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20267 fi
20268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20269 ;;
20270 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020271 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020272 hardcode_into_libs=yes
20273 dynamic_linker="$host_os dld.sl"
20274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277 soname_spec='${libname}${release}${shared_ext}$major'
20278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20280 ;;
20281 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020282 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020283 dynamic_linker="$host_os dld.sl"
20284 shlibpath_var=SHLIB_PATH
20285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20287 soname_spec='${libname}${release}${shared_ext}$major'
20288 ;;
20289 esac
20290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20291 postinstall_cmds='chmod 555 $lib'
20292 ;;
20293
Reid Spencera773bd52006-08-04 18:18:08 +000020294interix3*)
20295 version_type=linux
20296 need_lib_prefix=no
20297 need_version=no
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20301 shlibpath_var=LD_LIBRARY_PATH
20302 shlibpath_overrides_runpath=no
20303 hardcode_into_libs=yes
20304 ;;
20305
John Criswell47fdd832003-07-14 16:52:07 +000020306irix5* | irix6* | nonstopux*)
20307 case $host_os in
20308 nonstopux*) version_type=nonstopux ;;
20309 *)
20310 if test "$lt_cv_prog_gnu_ld" = yes; then
20311 version_type=linux
20312 else
20313 version_type=irix
20314 fi ;;
20315 esac
20316 need_lib_prefix=no
20317 need_version=no
20318 soname_spec='${libname}${release}${shared_ext}$major'
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20320 case $host_os in
20321 irix5* | nonstopux*)
20322 libsuff= shlibsuff=
20323 ;;
20324 *)
20325 case $LD in # libtool.m4 will add one of these switches to LD
20326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20327 libsuff= shlibsuff= libmagic=32-bit;;
20328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20329 libsuff=32 shlibsuff=N32 libmagic=N32;;
20330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20332 *) libsuff= shlibsuff= libmagic=never-match;;
20333 esac
20334 ;;
20335 esac
20336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20337 shlibpath_overrides_runpath=no
20338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20340 hardcode_into_libs=yes
20341 ;;
20342
20343# No shared lib support for Linux oldld, aout, or coff.
20344linux*oldld* | linux*aout* | linux*coff*)
20345 dynamic_linker=no
20346 ;;
20347
20348# This must be Linux ELF.
20349linux*)
20350 version_type=linux
20351 need_lib_prefix=no
20352 need_version=no
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=no
20358 # This implies no fast_install, which is unacceptable.
20359 # Some rework will be needed to allow for fast_install
20360 # before this can be enabled.
20361 hardcode_into_libs=yes
20362
Reid Spencer2706f8c2004-09-19 23:53:36 +000020363 # Append ld.so.conf contents to the search path
20364 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020365 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 +000020366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20367 fi
20368
John Criswell47fdd832003-07-14 16:52:07 +000020369 # We used to test for /lib/ld.so.1 and disable shared libraries on
20370 # powerpc, because MkLinux only supported shared libraries with the
20371 # GNU dynamic linker. Since this was broken with cross compilers,
20372 # most powerpc-linux boxes support dynamic linking these days and
20373 # people can always --disable-shared, the test was removed, and we
20374 # assume the GNU/Linux dynamic linker is in use.
20375 dynamic_linker='GNU/Linux ld.so'
20376 ;;
20377
Reid Spencer2706f8c2004-09-19 23:53:36 +000020378knetbsd*-gnu)
20379 version_type=linux
20380 need_lib_prefix=no
20381 need_version=no
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20383 soname_spec='${libname}${release}${shared_ext}$major'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=no
20386 hardcode_into_libs=yes
20387 dynamic_linker='GNU ld.so'
20388 ;;
20389
John Criswell47fdd832003-07-14 16:52:07 +000020390netbsd*)
20391 version_type=sunos
20392 need_lib_prefix=no
20393 need_version=no
20394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20397 dynamic_linker='NetBSD (a.out) ld.so'
20398 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020400 soname_spec='${libname}${release}${shared_ext}$major'
20401 dynamic_linker='NetBSD ld.elf_so'
20402 fi
20403 shlibpath_var=LD_LIBRARY_PATH
20404 shlibpath_overrides_runpath=yes
20405 hardcode_into_libs=yes
20406 ;;
20407
20408newsos6)
20409 version_type=linux
20410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20413 ;;
20414
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020416 version_type=linux
20417 need_lib_prefix=no
20418 need_version=no
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 shlibpath_overrides_runpath=yes
20423 ;;
20424
20425openbsd*)
20426 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020427 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020428 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20430 case $host_os in
20431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20432 *) need_version=no ;;
20433 esac
John Criswell47fdd832003-07-14 16:52:07 +000020434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20436 shlibpath_var=LD_LIBRARY_PATH
20437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20438 case $host_os in
20439 openbsd2.[89] | openbsd2.[89].*)
20440 shlibpath_overrides_runpath=no
20441 ;;
20442 *)
20443 shlibpath_overrides_runpath=yes
20444 ;;
20445 esac
20446 else
20447 shlibpath_overrides_runpath=yes
20448 fi
20449 ;;
20450
20451os2*)
20452 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020453 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020454 need_lib_prefix=no
20455 library_names_spec='$libname${shared_ext} $libname.a'
20456 dynamic_linker='OS/2 ld.exe'
20457 shlibpath_var=LIBPATH
20458 ;;
20459
20460osf3* | osf4* | osf5*)
20461 version_type=osf
20462 need_lib_prefix=no
20463 need_version=no
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20469 ;;
20470
John Criswell47fdd832003-07-14 16:52:07 +000020471solaris*)
20472 version_type=linux
20473 need_lib_prefix=no
20474 need_version=no
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20479 hardcode_into_libs=yes
20480 # ldd complains unless libraries are executable
20481 postinstall_cmds='chmod +x $lib'
20482 ;;
20483
20484sunos4*)
20485 version_type=sunos
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20488 shlibpath_var=LD_LIBRARY_PATH
20489 shlibpath_overrides_runpath=yes
20490 if test "$with_gnu_ld" = yes; then
20491 need_lib_prefix=no
20492 fi
20493 need_version=yes
20494 ;;
20495
Reid Spencera773bd52006-08-04 18:18:08 +000020496sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020497 version_type=linux
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 case $host_vendor in
20502 sni)
20503 shlibpath_overrides_runpath=no
20504 need_lib_prefix=no
20505 export_dynamic_flag_spec='${wl}-Blargedynsym'
20506 runpath_var=LD_RUN_PATH
20507 ;;
20508 siemens)
20509 need_lib_prefix=no
20510 ;;
20511 motorola)
20512 need_lib_prefix=no
20513 need_version=no
20514 shlibpath_overrides_runpath=no
20515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20516 ;;
20517 esac
20518 ;;
20519
20520sysv4*MP*)
20521 if test -d /usr/nec ;then
20522 version_type=linux
20523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20524 soname_spec='$libname${shared_ext}.$major'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 fi
20527 ;;
20528
Reid Spencera773bd52006-08-04 18:18:08 +000020529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20530 version_type=freebsd-elf
20531 need_lib_prefix=no
20532 need_version=no
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 hardcode_into_libs=yes
20537 if test "$with_gnu_ld" = yes; then
20538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20539 shlibpath_overrides_runpath=no
20540 else
20541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20542 shlibpath_overrides_runpath=yes
20543 case $host_os in
20544 sco3.2v5*)
20545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20546 ;;
20547 esac
20548 fi
20549 sys_lib_dlsearch_path_spec='/usr/lib'
20550 ;;
20551
John Criswell47fdd832003-07-14 16:52:07 +000020552uts4*)
20553 version_type=linux
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555 soname_spec='${libname}${release}${shared_ext}$major'
20556 shlibpath_var=LD_LIBRARY_PATH
20557 ;;
20558
20559*)
20560 dynamic_linker=no
20561 ;;
20562esac
Reid Spencera773bd52006-08-04 18:18:08 +000020563{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20564echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020565test "$dynamic_linker" = no && can_build_shared=no
20566
Reid Spencera773bd52006-08-04 18:18:08 +000020567variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20568if test "$GCC" = yes; then
20569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20570fi
20571
20572{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020574hardcode_action_CXX=
20575if test -n "$hardcode_libdir_flag_spec_CXX" || \
20576 test -n "$runpath_var_CXX" || \
20577 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20578
20579 # We can hardcode non-existant directories.
20580 if test "$hardcode_direct_CXX" != no &&
20581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20582 # have to relink, otherwise we might link with an installed library
20583 # when we should be linking with a yet-to-be-installed one
20584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20585 test "$hardcode_minus_L_CXX" != no; then
20586 # Linking always hardcodes the temporary library directory.
20587 hardcode_action_CXX=relink
20588 else
20589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20590 hardcode_action_CXX=immediate
20591 fi
20592else
20593 # We cannot hardcode anything, or else we can only hardcode existing
20594 # directories.
20595 hardcode_action_CXX=unsupported
20596fi
Reid Spencera773bd52006-08-04 18:18:08 +000020597{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20598echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020599
20600if test "$hardcode_action_CXX" = relink; then
20601 # Fast installation is not supported
20602 enable_fast_install=no
20603elif test "$shlibpath_overrides_runpath" = yes ||
20604 test "$enable_shared" = no; then
20605 # Fast installation is not necessary
20606 enable_fast_install=needless
20607fi
20608
John Criswell47fdd832003-07-14 16:52:07 +000020609
20610# The else clause should only fire when bootstrapping the
20611# libtool distribution, otherwise you forgot to ship ltmain.sh
20612# with your package, and you will get complaints that there are
20613# no rules to generate ltmain.sh.
20614if test -f "$ltmain"; then
20615 # See if we are running on zsh, and set the options which allow our commands through
20616 # without removal of \ escapes.
20617 if test -n "${ZSH_VERSION+set}" ; then
20618 setopt NO_GLOB_SUBST
20619 fi
20620 # Now quote all the things that may contain metacharacters while being
20621 # careful not to overquote the AC_SUBSTed values. We take copies of the
20622 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020623 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 +000020624 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20627 deplibs_check_method reload_flag reload_cmds need_locks \
20628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20629 lt_cv_sys_global_symbol_to_c_name_address \
20630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20631 old_postinstall_cmds old_postuninstall_cmds \
20632 compiler_CXX \
20633 CC_CXX \
20634 LD_CXX \
20635 lt_prog_compiler_wl_CXX \
20636 lt_prog_compiler_pic_CXX \
20637 lt_prog_compiler_static_CXX \
20638 lt_prog_compiler_no_builtin_flag_CXX \
20639 export_dynamic_flag_spec_CXX \
20640 thread_safe_flag_spec_CXX \
20641 whole_archive_flag_spec_CXX \
20642 enable_shared_with_static_runtimes_CXX \
20643 old_archive_cmds_CXX \
20644 old_archive_from_new_cmds_CXX \
20645 predep_objects_CXX \
20646 postdep_objects_CXX \
20647 predeps_CXX \
20648 postdeps_CXX \
20649 compiler_lib_search_path_CXX \
20650 archive_cmds_CXX \
20651 archive_expsym_cmds_CXX \
20652 postinstall_cmds_CXX \
20653 postuninstall_cmds_CXX \
20654 old_archive_from_expsyms_cmds_CXX \
20655 allow_undefined_flag_CXX \
20656 no_undefined_flag_CXX \
20657 export_symbols_cmds_CXX \
20658 hardcode_libdir_flag_spec_CXX \
20659 hardcode_libdir_flag_spec_ld_CXX \
20660 hardcode_libdir_separator_CXX \
20661 hardcode_automatic_CXX \
20662 module_cmds_CXX \
20663 module_expsym_cmds_CXX \
20664 lt_cv_prog_compiler_c_o_CXX \
20665 exclude_expsyms_CXX \
20666 include_expsyms_CXX; do
20667
20668 case $var in
20669 old_archive_cmds_CXX | \
20670 old_archive_from_new_cmds_CXX | \
20671 archive_cmds_CXX | \
20672 archive_expsym_cmds_CXX | \
20673 module_cmds_CXX | \
20674 module_expsym_cmds_CXX | \
20675 old_archive_from_expsyms_cmds_CXX | \
20676 export_symbols_cmds_CXX | \
20677 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20678 postinstall_cmds | postuninstall_cmds | \
20679 old_postinstall_cmds | old_postuninstall_cmds | \
20680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20681 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020682 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 +000020683 ;;
20684 *)
20685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20686 ;;
20687 esac
20688 done
20689
20690 case $lt_echo in
20691 *'\$0 --fallback-echo"')
20692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20693 ;;
20694 esac
20695
20696cfgfile="$ofile"
20697
20698 cat <<__EOF__ >> "$cfgfile"
20699# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20700
20701# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20702
20703# Shell to use when invoking shell scripts.
20704SHELL=$lt_SHELL
20705
20706# Whether or not to build shared libraries.
20707build_libtool_libs=$enable_shared
20708
20709# Whether or not to build static libraries.
20710build_old_libs=$enable_static
20711
20712# Whether or not to add -lc for building shared libraries.
20713build_libtool_need_lc=$archive_cmds_need_lc_CXX
20714
20715# Whether or not to disallow shared libs when runtime libs are static
20716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20717
20718# Whether or not to optimize for fast installation.
20719fast_install=$enable_fast_install
20720
20721# The host system.
20722host_alias=$host_alias
20723host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020724host_os=$host_os
20725
20726# The build system.
20727build_alias=$build_alias
20728build=$build
20729build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020730
20731# An echo program that does not interpret backslashes.
20732echo=$lt_echo
20733
20734# The archiver.
20735AR=$lt_AR
20736AR_FLAGS=$lt_AR_FLAGS
20737
20738# A C compiler.
20739LTCC=$lt_LTCC
20740
Reid Spencera773bd52006-08-04 18:18:08 +000020741# LTCC compiler flags.
20742LTCFLAGS=$lt_LTCFLAGS
20743
John Criswell47fdd832003-07-14 16:52:07 +000020744# A language-specific compiler.
20745CC=$lt_compiler_CXX
20746
20747# Is the compiler the GNU C compiler?
20748with_gcc=$GCC_CXX
20749
20750# An ERE matcher.
20751EGREP=$lt_EGREP
20752
20753# The linker used to build libraries.
20754LD=$lt_LD_CXX
20755
20756# Whether we need hard or soft links.
20757LN_S=$lt_LN_S
20758
20759# A BSD-compatible nm program.
20760NM=$lt_NM
20761
20762# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020763STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020764
20765# Used to examine libraries when file_magic_cmd begins "file"
20766MAGIC_CMD=$MAGIC_CMD
20767
20768# Used on cygwin: DLL creation program.
20769DLLTOOL="$DLLTOOL"
20770
20771# Used on cygwin: object dumper.
20772OBJDUMP="$OBJDUMP"
20773
20774# Used on cygwin: assembler.
20775AS="$AS"
20776
20777# The name of the directory that contains temporary libtool files.
20778objdir=$objdir
20779
20780# How to create reloadable object files.
20781reload_flag=$lt_reload_flag
20782reload_cmds=$lt_reload_cmds
20783
20784# How to pass a linker flag through the compiler.
20785wl=$lt_lt_prog_compiler_wl_CXX
20786
20787# Object file suffix (normally "o").
20788objext="$ac_objext"
20789
20790# Old archive suffix (normally "a").
20791libext="$libext"
20792
20793# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020794shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020795
20796# Executable file suffix (normally "").
20797exeext="$exeext"
20798
20799# Additional compiler flags for building library objects.
20800pic_flag=$lt_lt_prog_compiler_pic_CXX
20801pic_mode=$pic_mode
20802
20803# What is the maximum length of a command?
20804max_cmd_len=$lt_cv_sys_max_cmd_len
20805
20806# Does compiler simultaneously support -c and -o options?
20807compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20808
Reid Spencera773bd52006-08-04 18:18:08 +000020809# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020810need_locks=$lt_need_locks
20811
20812# Do we need the lib prefix for modules?
20813need_lib_prefix=$need_lib_prefix
20814
20815# Do we need a version for libraries?
20816need_version=$need_version
20817
20818# Whether dlopen is supported.
20819dlopen_support=$enable_dlopen
20820
20821# Whether dlopen of programs is supported.
20822dlopen_self=$enable_dlopen_self
20823
20824# Whether dlopen of statically linked programs is supported.
20825dlopen_self_static=$enable_dlopen_self_static
20826
20827# Compiler flag to prevent dynamic linking.
20828link_static_flag=$lt_lt_prog_compiler_static_CXX
20829
20830# Compiler flag to turn off builtin functions.
20831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20832
20833# Compiler flag to allow reflexive dlopens.
20834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20835
20836# Compiler flag to generate shared objects directly from archives.
20837whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20838
20839# Compiler flag to generate thread-safe objects.
20840thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20841
20842# Library versioning type.
20843version_type=$version_type
20844
20845# Format of library name prefix.
20846libname_spec=$lt_libname_spec
20847
20848# List of archive names. First name is the real one, the rest are links.
20849# The last name is the one that the linker finds with -lNAME.
20850library_names_spec=$lt_library_names_spec
20851
20852# The coded name of the library, if different from the real name.
20853soname_spec=$lt_soname_spec
20854
20855# Commands used to build and install an old-style archive.
20856RANLIB=$lt_RANLIB
20857old_archive_cmds=$lt_old_archive_cmds_CXX
20858old_postinstall_cmds=$lt_old_postinstall_cmds
20859old_postuninstall_cmds=$lt_old_postuninstall_cmds
20860
20861# Create an old-style archive from a shared archive.
20862old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20863
20864# Create a temporary old-style archive to link instead of a shared archive.
20865old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20866
20867# Commands used to build and install a shared archive.
20868archive_cmds=$lt_archive_cmds_CXX
20869archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20870postinstall_cmds=$lt_postinstall_cmds
20871postuninstall_cmds=$lt_postuninstall_cmds
20872
20873# Commands used to build a loadable module (assumed same as above if empty)
20874module_cmds=$lt_module_cmds_CXX
20875module_expsym_cmds=$lt_module_expsym_cmds_CXX
20876
20877# Commands to strip libraries.
20878old_striplib=$lt_old_striplib
20879striplib=$lt_striplib
20880
20881# Dependencies to place before the objects being linked to create a
20882# shared library.
20883predep_objects=$lt_predep_objects_CXX
20884
20885# Dependencies to place after the objects being linked to create a
20886# shared library.
20887postdep_objects=$lt_postdep_objects_CXX
20888
20889# Dependencies to place before the objects being linked to create a
20890# shared library.
20891predeps=$lt_predeps_CXX
20892
20893# Dependencies to place after the objects being linked to create a
20894# shared library.
20895postdeps=$lt_postdeps_CXX
20896
20897# The library search path used internally by the compiler when linking
20898# a shared library.
20899compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20900
20901# Method to check whether dependent libraries are shared objects.
20902deplibs_check_method=$lt_deplibs_check_method
20903
20904# Command to use when deplibs_check_method == file_magic.
20905file_magic_cmd=$lt_file_magic_cmd
20906
20907# Flag that allows shared libraries with undefined symbols to be built.
20908allow_undefined_flag=$lt_allow_undefined_flag_CXX
20909
20910# Flag that forces no undefined symbols.
20911no_undefined_flag=$lt_no_undefined_flag_CXX
20912
20913# Commands used to finish a libtool library installation in a directory.
20914finish_cmds=$lt_finish_cmds
20915
20916# Same as above, but a single script fragment to be evaled but not shown.
20917finish_eval=$lt_finish_eval
20918
20919# Take the output of nm and produce a listing of raw symbols and C names.
20920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20921
20922# Transform the output of nm in a proper C declaration
20923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20924
20925# Transform the output of nm in a C name address pair
20926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20927
20928# This is the shared library runtime path variable.
20929runpath_var=$runpath_var
20930
20931# This is the shared library path variable.
20932shlibpath_var=$shlibpath_var
20933
20934# Is shlibpath searched before the hard-coded library search path?
20935shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20936
20937# How to hardcode a shared library path into an executable.
20938hardcode_action=$hardcode_action_CXX
20939
20940# Whether we should hardcode library paths into libraries.
20941hardcode_into_libs=$hardcode_into_libs
20942
20943# Flag to hardcode \$libdir into a binary during linking.
20944# This must work even if \$libdir does not exist.
20945hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20946
20947# If ld is used when linking, flag to hardcode \$libdir into
20948# a binary during linking. This must work even if \$libdir does
20949# not exist.
20950hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20951
20952# Whether we need a single -rpath flag with a separated argument.
20953hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20954
20955# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20956# resulting binary.
20957hardcode_direct=$hardcode_direct_CXX
20958
20959# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20960# resulting binary.
20961hardcode_minus_L=$hardcode_minus_L_CXX
20962
20963# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20964# the resulting binary.
20965hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20966
20967# Set to yes if building a shared library automatically hardcodes DIR into the library
20968# and all subsequent libraries and executables linked against it.
20969hardcode_automatic=$hardcode_automatic_CXX
20970
20971# Variables whose values should be saved in libtool wrapper scripts and
20972# restored at relink time.
20973variables_saved_for_relink="$variables_saved_for_relink"
20974
20975# Whether libtool must link a program against all its dependency libraries.
20976link_all_deplibs=$link_all_deplibs_CXX
20977
20978# Compile-time system search path for libraries
20979sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20980
20981# Run-time system search path for libraries
20982sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20983
20984# Fix the shell variable \$srcfile for the compiler.
20985fix_srcfile_path="$fix_srcfile_path_CXX"
20986
20987# Set to yes if exported symbols are required.
20988always_export_symbols=$always_export_symbols_CXX
20989
20990# The commands to list exported symbols.
20991export_symbols_cmds=$lt_export_symbols_cmds_CXX
20992
20993# The commands to extract the exported symbol list from a shared archive.
20994extract_expsyms_cmds=$lt_extract_expsyms_cmds
20995
20996# Symbols that should not be listed in the preloaded symbols.
20997exclude_expsyms=$lt_exclude_expsyms_CXX
20998
20999# Symbols that must always be exported.
21000include_expsyms=$lt_include_expsyms_CXX
21001
21002# ### END LIBTOOL TAG CONFIG: $tagname
21003
21004__EOF__
21005
21006
21007else
21008 # If there is no Makefile yet, we rely on a make rule to execute
21009 # `config.status --recheck' to rerun these tests and create the
21010 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21012 if test -f "$ltmain_in"; then
21013 test -f Makefile && make "$ltmain"
21014 fi
John Criswell47fdd832003-07-14 16:52:07 +000021015fi
21016
21017
21018ac_ext=c
21019ac_cpp='$CPP $CPPFLAGS'
21020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024CC=$lt_save_CC
21025LDCXX=$LD
21026LD=$lt_save_LD
21027GCC=$lt_save_GCC
21028with_gnu_ldcxx=$with_gnu_ld
21029with_gnu_ld=$lt_save_with_gnu_ld
21030lt_cv_path_LDCXX=$lt_cv_path_LD
21031lt_cv_path_LD=$lt_save_path_LD
21032lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21033lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21034
21035 else
21036 tagname=""
21037 fi
21038 ;;
21039
21040 F77)
21041 if test -n "$F77" && test "X$F77" != "Xno"; then
21042
21043ac_ext=f
21044ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21045ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21047
21048
21049archive_cmds_need_lc_F77=no
21050allow_undefined_flag_F77=
21051always_export_symbols_F77=no
21052archive_expsym_cmds_F77=
21053export_dynamic_flag_spec_F77=
21054hardcode_direct_F77=no
21055hardcode_libdir_flag_spec_F77=
21056hardcode_libdir_flag_spec_ld_F77=
21057hardcode_libdir_separator_F77=
21058hardcode_minus_L_F77=no
21059hardcode_automatic_F77=no
21060module_cmds_F77=
21061module_expsym_cmds_F77=
21062link_all_deplibs_F77=unknown
21063old_archive_cmds_F77=$old_archive_cmds
21064no_undefined_flag_F77=
21065whole_archive_flag_spec_F77=
21066enable_shared_with_static_runtimes_F77=no
21067
21068# Source file extension for f77 test sources.
21069ac_ext=f
21070
21071# Object file extension for compiled f77 test sources.
21072objext=o
21073objext_F77=$objext
21074
21075# Code to be used in simple compile tests
21076lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21077
21078# Code to be used in simple link tests
21079lt_simple_link_test_code=" program t\n end\n"
21080
21081# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21082
21083# If no C compiler was specified, use CC.
21084LTCC=${LTCC-"$CC"}
21085
Reid Spencera773bd52006-08-04 18:18:08 +000021086# If no C compiler flags were specified, use CFLAGS.
21087LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21088
John Criswell47fdd832003-07-14 16:52:07 +000021089# Allow CC to be a program name with arguments.
21090compiler=$CC
21091
21092
Reid Spencera773bd52006-08-04 18:18:08 +000021093# save warnings/boilerplate of simple test code
21094ac_outfile=conftest.$ac_objext
21095printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21096eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21097_lt_compiler_boilerplate=`cat conftest.err`
21098$rm conftest*
21099
21100ac_outfile=conftest.$ac_objext
21101printf "$lt_simple_link_test_code" >conftest.$ac_ext
21102eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21103_lt_linker_boilerplate=`cat conftest.err`
21104$rm conftest*
21105
21106
John Criswell47fdd832003-07-14 16:52:07 +000021107# Allow CC to be a program name with arguments.
21108lt_save_CC="$CC"
21109CC=${F77-"f77"}
21110compiler=$CC
21111compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021112for cc_temp in $compiler""; do
21113 case $cc_temp in
21114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21116 \-*) ;;
21117 *) break;;
21118 esac
21119done
21120cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021121
John Criswell47fdd832003-07-14 16:52:07 +000021122
Reid Spencera773bd52006-08-04 18:18:08 +000021123{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21124echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21125{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21126echo "${ECHO_T}$can_build_shared" >&6; }
21127
21128{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21129echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021130test "$can_build_shared" = "no" && enable_shared=no
21131
21132# On AIX, shared libraries and static libraries use the same namespace, and
21133# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021134case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021135aix3*)
21136 test "$enable_shared" = yes && enable_static=no
21137 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021138 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021139 postinstall_cmds='$RANLIB $lib'
21140 fi
21141 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021142aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021143 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21144 test "$enable_shared" = yes && enable_static=no
21145 fi
John Criswell47fdd832003-07-14 16:52:07 +000021146 ;;
21147esac
Reid Spencera773bd52006-08-04 18:18:08 +000021148{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21149echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021150
Reid Spencera773bd52006-08-04 18:18:08 +000021151{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21152echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021153# Make sure either enable_shared or enable_static is yes.
21154test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021155{ echo "$as_me:$LINENO: result: $enable_static" >&5
21156echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021157
21158GCC_F77="$G77"
21159LD_F77="$LD"
21160
21161lt_prog_compiler_wl_F77=
21162lt_prog_compiler_pic_F77=
21163lt_prog_compiler_static_F77=
21164
Reid Spencera773bd52006-08-04 18:18:08 +000021165{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21166echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021167
21168 if test "$GCC" = yes; then
21169 lt_prog_compiler_wl_F77='-Wl,'
21170 lt_prog_compiler_static_F77='-static'
21171
21172 case $host_os in
21173 aix*)
21174 # All AIX code is PIC.
21175 if test "$host_cpu" = ia64; then
21176 # AIX 5 now supports IA64 processor
21177 lt_prog_compiler_static_F77='-Bstatic'
21178 fi
21179 ;;
21180
21181 amigaos*)
21182 # FIXME: we need at least 68020 code to build shared libraries, but
21183 # adding the `-m68020' flag to GCC prevents building anything better,
21184 # like `-m68040'.
21185 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21186 ;;
21187
21188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21189 # PIC is the default for these OSes.
21190 ;;
21191
21192 mingw* | pw32* | os2*)
21193 # This hack is so that the source file can tell whether it is being
21194 # built for inclusion in a dll (and should export symbols for example).
21195 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21196 ;;
21197
21198 darwin* | rhapsody*)
21199 # PIC is the default on this platform
21200 # Common symbols not allowed in MH_DYLIB files
21201 lt_prog_compiler_pic_F77='-fno-common'
21202 ;;
21203
Reid Spencera773bd52006-08-04 18:18:08 +000021204 interix3*)
21205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21206 # Instead, we relocate shared libraries at runtime.
21207 ;;
21208
John Criswell47fdd832003-07-14 16:52:07 +000021209 msdosdjgpp*)
21210 # Just because we use GCC doesn't mean we suddenly get shared libraries
21211 # on systems that don't support them.
21212 lt_prog_compiler_can_build_shared_F77=no
21213 enable_shared=no
21214 ;;
21215
21216 sysv4*MP*)
21217 if test -d /usr/nec; then
21218 lt_prog_compiler_pic_F77=-Kconform_pic
21219 fi
21220 ;;
21221
21222 hpux*)
21223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21224 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021225 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021226 hppa*64*|ia64*)
21227 # +Z the default
21228 ;;
21229 *)
21230 lt_prog_compiler_pic_F77='-fPIC'
21231 ;;
21232 esac
21233 ;;
21234
21235 *)
21236 lt_prog_compiler_pic_F77='-fPIC'
21237 ;;
21238 esac
21239 else
21240 # PORTME Check for flag to pass linker flags through the system compiler.
21241 case $host_os in
21242 aix*)
21243 lt_prog_compiler_wl_F77='-Wl,'
21244 if test "$host_cpu" = ia64; then
21245 # AIX 5 now supports IA64 processor
21246 lt_prog_compiler_static_F77='-Bstatic'
21247 else
21248 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21249 fi
21250 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021251 darwin*)
21252 # PIC is the default on this platform
21253 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021254 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021255 xlc*)
21256 lt_prog_compiler_pic_F77='-qnocommon'
21257 lt_prog_compiler_wl_F77='-Wl,'
21258 ;;
21259 esac
21260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021261
21262 mingw* | pw32* | os2*)
21263 # This hack is so that the source file can tell whether it is being
21264 # built for inclusion in a dll (and should export symbols for example).
21265 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21266 ;;
21267
21268 hpux9* | hpux10* | hpux11*)
21269 lt_prog_compiler_wl_F77='-Wl,'
21270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21271 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021272 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021273 hppa*64*|ia64*)
21274 # +Z the default
21275 ;;
21276 *)
21277 lt_prog_compiler_pic_F77='+Z'
21278 ;;
21279 esac
21280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21281 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21282 ;;
21283
21284 irix5* | irix6* | nonstopux*)
21285 lt_prog_compiler_wl_F77='-Wl,'
21286 # PIC (with -KPIC) is the default.
21287 lt_prog_compiler_static_F77='-non_shared'
21288 ;;
21289
21290 newsos6)
21291 lt_prog_compiler_pic_F77='-KPIC'
21292 lt_prog_compiler_static_F77='-Bstatic'
21293 ;;
21294
21295 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021296 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021297 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021298 lt_prog_compiler_wl_F77='-Wl,'
21299 lt_prog_compiler_pic_F77='-KPIC'
21300 lt_prog_compiler_static_F77='-static'
21301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021302 pgcc* | pgf77* | pgf90* | pgf95*)
21303 # Portland Group compilers (*not* the Pentium gcc compiler,
21304 # which looks to be a dead project)
21305 lt_prog_compiler_wl_F77='-Wl,'
21306 lt_prog_compiler_pic_F77='-fpic'
21307 lt_prog_compiler_static_F77='-Bstatic'
21308 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021309 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021310 lt_prog_compiler_wl_F77='-Wl,'
21311 # All Alpha code is PIC.
21312 lt_prog_compiler_static_F77='-non_shared'
21313 ;;
21314 esac
21315 ;;
21316
21317 osf3* | osf4* | osf5*)
21318 lt_prog_compiler_wl_F77='-Wl,'
21319 # All OSF/1 code is PIC.
21320 lt_prog_compiler_static_F77='-non_shared'
21321 ;;
21322
John Criswell47fdd832003-07-14 16:52:07 +000021323 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021324 lt_prog_compiler_pic_F77='-KPIC'
21325 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021326 case $cc_basename in
21327 f77* | f90* | f95*)
21328 lt_prog_compiler_wl_F77='-Qoption ld ';;
21329 *)
21330 lt_prog_compiler_wl_F77='-Wl,';;
21331 esac
John Criswell47fdd832003-07-14 16:52:07 +000021332 ;;
21333
21334 sunos4*)
21335 lt_prog_compiler_wl_F77='-Qoption ld '
21336 lt_prog_compiler_pic_F77='-PIC'
21337 lt_prog_compiler_static_F77='-Bstatic'
21338 ;;
21339
Reid Spencera773bd52006-08-04 18:18:08 +000021340 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021341 lt_prog_compiler_wl_F77='-Wl,'
21342 lt_prog_compiler_pic_F77='-KPIC'
21343 lt_prog_compiler_static_F77='-Bstatic'
21344 ;;
21345
21346 sysv4*MP*)
21347 if test -d /usr/nec ;then
21348 lt_prog_compiler_pic_F77='-Kconform_pic'
21349 lt_prog_compiler_static_F77='-Bstatic'
21350 fi
21351 ;;
21352
Reid Spencera773bd52006-08-04 18:18:08 +000021353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21354 lt_prog_compiler_wl_F77='-Wl,'
21355 lt_prog_compiler_pic_F77='-KPIC'
21356 lt_prog_compiler_static_F77='-Bstatic'
21357 ;;
21358
21359 unicos*)
21360 lt_prog_compiler_wl_F77='-Wl,'
21361 lt_prog_compiler_can_build_shared_F77=no
21362 ;;
21363
John Criswell47fdd832003-07-14 16:52:07 +000021364 uts4*)
21365 lt_prog_compiler_pic_F77='-pic'
21366 lt_prog_compiler_static_F77='-Bstatic'
21367 ;;
21368
21369 *)
21370 lt_prog_compiler_can_build_shared_F77=no
21371 ;;
21372 esac
21373 fi
21374
Reid Spencera773bd52006-08-04 18:18:08 +000021375{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21376echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021377
21378#
21379# Check to make sure the PIC flag actually works.
21380#
21381if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021382
Reid Spencera773bd52006-08-04 18:18:08 +000021383{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21384echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021385if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387else
21388 lt_prog_compiler_pic_works_F77=no
21389 ac_outfile=conftest.$ac_objext
21390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21391 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21392 # Insert the option either (1) after the last *FLAGS variable, or
21393 # (2) before a word containing "conftest.", or (3) at the end.
21394 # Note that $ac_compile itself does not contain backslashes and begins
21395 # with a dollar sign (not a hyphen), so the echo should work correctly.
21396 # The option is referenced via a variable to avoid confusing sed.
21397 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21400 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000021401 (eval echo "\"\$as_me:21401: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021402 (eval "$lt_compile" 2>conftest.err)
21403 ac_status=$?
21404 cat conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000021405 echo "$as_me:21405: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021406 if (exit $ac_status) && test -s "$ac_outfile"; then
21407 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021408 # So say no if there are warnings other than the usual output.
21409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021412 lt_prog_compiler_pic_works_F77=yes
21413 fi
21414 fi
21415 $rm conftest*
21416
21417fi
Reid Spencera773bd52006-08-04 18:18:08 +000021418{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21419echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021420
21421if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21422 case $lt_prog_compiler_pic_F77 in
21423 "" | " "*) ;;
21424 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21425 esac
21426else
21427 lt_prog_compiler_pic_F77=
21428 lt_prog_compiler_can_build_shared_F77=no
21429fi
21430
21431fi
Reid Spencera773bd52006-08-04 18:18:08 +000021432case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021433 # For platforms which do not support PIC, -DPIC is meaningless:
21434 *djgpp*)
21435 lt_prog_compiler_pic_F77=
21436 ;;
21437 *)
21438 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21439 ;;
21440esac
21441
Reid Spencera773bd52006-08-04 18:18:08 +000021442#
21443# Check to make sure the static flag actually works.
21444#
21445wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21446{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21447echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21448if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451 lt_prog_compiler_static_works_F77=no
21452 save_LDFLAGS="$LDFLAGS"
21453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21454 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21456 # The linker can only warn and ignore the option if not recognized
21457 # So say no if there are warnings
21458 if test -s conftest.err; then
21459 # Append any errors to the config.log.
21460 cat conftest.err 1>&5
21461 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21463 if diff conftest.exp conftest.er2 >/dev/null; then
21464 lt_prog_compiler_static_works_F77=yes
21465 fi
21466 else
21467 lt_prog_compiler_static_works_F77=yes
21468 fi
21469 fi
21470 $rm conftest*
21471 LDFLAGS="$save_LDFLAGS"
21472
21473fi
21474{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21475echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21476
21477if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21478 :
21479else
21480 lt_prog_compiler_static_F77=
21481fi
21482
21483
21484{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21485echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021486if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21488else
21489 lt_cv_prog_compiler_c_o_F77=no
21490 $rm -r conftest 2>/dev/null
21491 mkdir conftest
21492 cd conftest
21493 mkdir out
21494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21495
John Criswell47fdd832003-07-14 16:52:07 +000021496 lt_compiler_flag="-o out/conftest2.$ac_objext"
21497 # Insert the option either (1) after the last *FLAGS variable, or
21498 # (2) before a word containing "conftest.", or (3) at the end.
21499 # Note that $ac_compile itself does not contain backslashes and begins
21500 # with a dollar sign (not a hyphen), so the echo should work correctly.
21501 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21504 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000021505 (eval echo "\"\$as_me:21505: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021506 (eval "$lt_compile" 2>out/conftest.err)
21507 ac_status=$?
21508 cat out/conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000021509 echo "$as_me:21509: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21511 then
21512 # The compiler can only warn and ignore the option if not recognized
21513 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021517 lt_cv_prog_compiler_c_o_F77=yes
21518 fi
21519 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021520 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021521 $rm conftest*
21522 # SGI C++ compiler will create directory out/ii_files/ for
21523 # template instantiation
21524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21525 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021526 cd ..
21527 rmdir conftest
21528 $rm conftest*
21529
21530fi
Reid Spencera773bd52006-08-04 18:18:08 +000021531{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21532echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021533
21534
21535hard_links="nottested"
21536if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21537 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021538 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21539echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021540 hard_links=yes
21541 $rm conftest*
21542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21543 touch conftest.a
21544 ln conftest.a conftest.b 2>&5 || hard_links=no
21545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021546 { echo "$as_me:$LINENO: result: $hard_links" >&5
21547echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021548 if test "$hard_links" = no; then
21549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21550echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21551 need_locks=warn
21552 fi
21553else
21554 need_locks=no
21555fi
21556
Reid Spencera773bd52006-08-04 18:18:08 +000021557{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21558echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021559
21560 runpath_var=
21561 allow_undefined_flag_F77=
21562 enable_shared_with_static_runtimes_F77=no
21563 archive_cmds_F77=
21564 archive_expsym_cmds_F77=
21565 old_archive_From_new_cmds_F77=
21566 old_archive_from_expsyms_cmds_F77=
21567 export_dynamic_flag_spec_F77=
21568 whole_archive_flag_spec_F77=
21569 thread_safe_flag_spec_F77=
21570 hardcode_libdir_flag_spec_F77=
21571 hardcode_libdir_flag_spec_ld_F77=
21572 hardcode_libdir_separator_F77=
21573 hardcode_direct_F77=no
21574 hardcode_minus_L_F77=no
21575 hardcode_shlibpath_var_F77=unsupported
21576 link_all_deplibs_F77=unknown
21577 hardcode_automatic_F77=no
21578 module_cmds_F77=
21579 module_expsym_cmds_F77=
21580 always_export_symbols_F77=no
21581 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21582 # include_expsyms should be a list of space-separated symbols to be *always*
21583 # included in the symbol list
21584 include_expsyms_F77=
21585 # exclude_expsyms can be an extended regexp of symbols to exclude
21586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21588 # as well as any symbol that contains `d'.
21589 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21591 # platforms (ab)use it in PIC code, but their linkers get confused if
21592 # the symbol is explicitly referenced. Since portable code cannot
21593 # rely on this symbol name, it's probably fine to never include it in
21594 # preloaded symbol tables.
21595 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021596 # Just being paranoid about ensuring that cc_basename is set.
21597 for cc_temp in $compiler""; do
21598 case $cc_temp in
21599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21601 \-*) ;;
21602 *) break;;
21603 esac
21604done
21605cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021606
21607 case $host_os in
21608 cygwin* | mingw* | pw32*)
21609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21610 # When not using gcc, we currently assume that we are using
21611 # Microsoft Visual C++.
21612 if test "$GCC" != yes; then
21613 with_gnu_ld=no
21614 fi
21615 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021616 interix*)
21617 # we just hope/assume this is gcc and not c89 (= MSVC++)
21618 with_gnu_ld=yes
21619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021620 openbsd*)
21621 with_gnu_ld=no
21622 ;;
21623 esac
21624
21625 ld_shlibs_F77=yes
21626 if test "$with_gnu_ld" = yes; then
21627 # If archive_cmds runs LD, not CC, wlarc should be empty
21628 wlarc='${wl}'
21629
Reid Spencera773bd52006-08-04 18:18:08 +000021630 # Set some defaults for GNU ld with shared library support. These
21631 # are reset later if shared libraries are not supported. Putting them
21632 # here allows them to be overridden if necessary.
21633 runpath_var=LD_RUN_PATH
21634 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21635 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21636 # ancient GNU ld didn't support --whole-archive et. al.
21637 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21638 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21639 else
21640 whole_archive_flag_spec_F77=
21641 fi
21642 supports_anon_versioning=no
21643 case `$LD -v 2>/dev/null` in
21644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21647 *\ 2.11.*) ;; # other 2.11 versions
21648 *) supports_anon_versioning=yes ;;
21649 esac
21650
John Criswell47fdd832003-07-14 16:52:07 +000021651 # See if GNU ld supports shared libraries.
21652 case $host_os in
21653 aix3* | aix4* | aix5*)
21654 # On AIX/PPC, the GNU linker is very broken
21655 if test "$host_cpu" != ia64; then
21656 ld_shlibs_F77=no
21657 cat <<EOF 1>&2
21658
21659*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21660*** to be unable to reliably create shared libraries on AIX.
21661*** Therefore, libtool is disabling shared libraries support. If you
21662*** really care for shared libraries, you may want to modify your PATH
21663*** so that a non-GNU linker is found, and then restart.
21664
21665EOF
21666 fi
21667 ;;
21668
21669 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021670 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 +000021671 hardcode_libdir_flag_spec_F77='-L$libdir'
21672 hardcode_minus_L_F77=yes
21673
21674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21675 # that the semantics of dynamic libraries on AmigaOS, at least up
21676 # to version 4, is to share data among multiple programs linked
21677 # with the same dynamic library. Since this doesn't match the
21678 # behavior of shared libraries on other platforms, we can't use
21679 # them.
21680 ld_shlibs_F77=no
21681 ;;
21682
21683 beos*)
21684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21685 allow_undefined_flag_F77=unsupported
21686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21687 # support --undefined. This deserves some investigation. FIXME
21688 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21689 else
21690 ld_shlibs_F77=no
21691 fi
21692 ;;
21693
21694 cygwin* | mingw* | pw32*)
21695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21696 # as there is no search path for DLLs.
21697 hardcode_libdir_flag_spec_F77='-L$libdir'
21698 allow_undefined_flag_F77=unsupported
21699 always_export_symbols_F77=no
21700 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021701 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 +000021702
21703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021704 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 +000021705 # If the export-symbols file already is a .def file (1st line
21706 # is EXPORTS), use it as is; otherwise, prepend...
21707 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21708 cp $export_symbols $output_objdir/$soname.def;
21709 else
21710 echo EXPORTS > $output_objdir/$soname.def;
21711 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021712 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021713 $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 +000021714 else
Reid Spencera773bd52006-08-04 18:18:08 +000021715 ld_shlibs_F77=no
21716 fi
21717 ;;
21718
21719 interix3*)
21720 hardcode_direct_F77=no
21721 hardcode_shlibpath_var_F77=no
21722 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21723 export_dynamic_flag_spec_F77='${wl}-E'
21724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21725 # Instead, shared libraries are loaded at an image base (0x10000000 by
21726 # default) and relocated if they conflict, which is a slow very memory
21727 # consuming and fragmenting process. To avoid this, we pick a random,
21728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21730 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'
21731 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'
21732 ;;
21733
21734 linux*)
21735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21736 tmp_addflag=
21737 case $cc_basename,$host_cpu in
21738 pgcc*) # Portland Group C compiler
21739 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'
21740 tmp_addflag=' $pic_flag'
21741 ;;
21742 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21743 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'
21744 tmp_addflag=' $pic_flag -Mnomain' ;;
21745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21746 tmp_addflag=' -i_dynamic' ;;
21747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21748 tmp_addflag=' -i_dynamic -nofor_main' ;;
21749 ifc* | ifort*) # Intel Fortran compiler
21750 tmp_addflag=' -nofor_main' ;;
21751 esac
21752 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21753
21754 if test $supports_anon_versioning = yes; then
21755 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21757 $echo "local: *; };" >> $output_objdir/$libname.ver~
21758 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21759 fi
21760 else
21761 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021762 fi
21763 ;;
21764
21765 netbsd*)
21766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21767 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21768 wlarc=
21769 else
21770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21771 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21772 fi
21773 ;;
21774
Reid Spencera773bd52006-08-04 18:18:08 +000021775 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21777 ld_shlibs_F77=no
21778 cat <<EOF 1>&2
21779
21780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21781*** create shared libraries on Solaris systems. Therefore, libtool
21782*** is disabling shared libraries support. We urge you to upgrade GNU
21783*** binutils to release 2.9.1 or newer. Another option is to modify
21784*** your PATH or compiler configuration so that the native linker is
21785*** used, and then restart.
21786
21787EOF
21788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21791 else
21792 ld_shlibs_F77=no
21793 fi
21794 ;;
21795
Reid Spencera773bd52006-08-04 18:18:08 +000021796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21797 case `$LD -v 2>&1` in
21798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21799 ld_shlibs_F77=no
21800 cat <<_LT_EOF 1>&2
21801
21802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21803*** reliably create shared libraries on SCO systems. Therefore, libtool
21804*** is disabling shared libraries support. We urge you to upgrade GNU
21805*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21806*** your PATH or compiler configuration so that the native linker is
21807*** used, and then restart.
21808
21809_LT_EOF
21810 ;;
21811 *)
21812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21814 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21815 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21816 else
21817 ld_shlibs_F77=no
21818 fi
21819 ;;
21820 esac
21821 ;;
21822
John Criswell47fdd832003-07-14 16:52:07 +000021823 sunos4*)
21824 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21825 wlarc=
21826 hardcode_direct_F77=yes
21827 hardcode_shlibpath_var_F77=no
21828 ;;
21829
21830 *)
21831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21832 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21833 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21834 else
21835 ld_shlibs_F77=no
21836 fi
21837 ;;
21838 esac
21839
Reid Spencera773bd52006-08-04 18:18:08 +000021840 if test "$ld_shlibs_F77" = no; then
21841 runpath_var=
21842 hardcode_libdir_flag_spec_F77=
21843 export_dynamic_flag_spec_F77=
21844 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021845 fi
21846 else
21847 # PORTME fill in a description of your system's linker (not GNU ld)
21848 case $host_os in
21849 aix3*)
21850 allow_undefined_flag_F77=unsupported
21851 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021852 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 +000021853 # Note: this linker hardcodes the directories in LIBPATH if there
21854 # are no directories specified by -L.
21855 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021857 # Neither direct hardcoding nor static linking is supported with a
21858 # broken collect2.
21859 hardcode_direct_F77=unsupported
21860 fi
21861 ;;
21862
21863 aix4* | aix5*)
21864 if test "$host_cpu" = ia64; then
21865 # On IA64, the linker does run time linking by default, so we don't
21866 # have to do anything special.
21867 aix_use_runtimelinking=no
21868 exp_sym_flag='-Bexport'
21869 no_entry_flag=""
21870 else
21871 # If we're using GNU nm, then we don't want the "-C" option.
21872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21874 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'
21875 else
21876 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'
21877 fi
21878 aix_use_runtimelinking=no
21879
21880 # Test if we are trying to use run time linking or normal
21881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21882 # need to do runtime linking.
21883 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21884 for ld_flag in $LDFLAGS; do
21885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21886 aix_use_runtimelinking=yes
21887 break
21888 fi
21889 done
Reid Spencera773bd52006-08-04 18:18:08 +000021890 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021891 esac
21892
21893 exp_sym_flag='-bexport'
21894 no_entry_flag='-bnoentry'
21895 fi
21896
21897 # When large executables or shared objects are built, AIX ld can
21898 # have problems creating the table of contents. If linking a library
21899 # or program results in "error TOC overflow" add -mminimal-toc to
21900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21902
21903 archive_cmds_F77=''
21904 hardcode_direct_F77=yes
21905 hardcode_libdir_separator_F77=':'
21906 link_all_deplibs_F77=yes
21907
21908 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021909 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021910 # We only want to do this on AIX 4.2 and lower, the check
21911 # below for broken collect2 doesn't work under 4.3+
21912 collect2name=`${CC} -print-prog-name=collect2`
21913 if test -f "$collect2name" && \
21914 strings "$collect2name" | grep resolve_lib_name >/dev/null
21915 then
21916 # We have reworked collect2
21917 hardcode_direct_F77=yes
21918 else
21919 # We have old collect2
21920 hardcode_direct_F77=unsupported
21921 # It fails to find uninstalled libraries when the uninstalled
21922 # path is not listed in the libpath. Setting hardcode_minus_L
21923 # to unsupported forces relinking
21924 hardcode_minus_L_F77=yes
21925 hardcode_libdir_flag_spec_F77='-L$libdir'
21926 hardcode_libdir_separator_F77=
21927 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021928 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021929 esac
21930 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021931 if test "$aix_use_runtimelinking" = yes; then
21932 shared_flag="$shared_flag "'${wl}-G'
21933 fi
John Criswell47fdd832003-07-14 16:52:07 +000021934 else
21935 # not using gcc
21936 if test "$host_cpu" = ia64; then
21937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21938 # chokes on -Wl,-G. The following line is correct:
21939 shared_flag='-G'
21940 else
Reid Spencera773bd52006-08-04 18:18:08 +000021941 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021942 shared_flag='${wl}-G'
21943 else
21944 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021945 fi
John Criswell47fdd832003-07-14 16:52:07 +000021946 fi
21947 fi
21948
21949 # It seems that -bexpall does not export symbols beginning with
21950 # underscore (_), so it is better to generate a list of symbols to export.
21951 always_export_symbols_F77=yes
21952 if test "$aix_use_runtimelinking" = yes; then
21953 # Warning - without using the other runtime loading flags (-brtl),
21954 # -berok will link without error, but may produce a broken library.
21955 allow_undefined_flag_F77='-berok'
21956 # Determine the default libpath from the value encoded in an empty executable.
21957 cat >conftest.$ac_ext <<_ACEOF
21958 program main
21959
21960 end
21961_ACEOF
21962rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021963if { (ac_try="$ac_link"
21964case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21967esac
21968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021970 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
21973 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000021975 (exit $ac_status); } &&
21976 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21977 { (case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21980esac
21981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_try") 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try='test -s conftest$ac_exeext'
21987 { (case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21990esac
21991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_try") 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021996
21997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21998}'`
21999# Check for a 64-bit object if we didn't find anything.
22000if 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; }
22001}'`; fi
22002else
22003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022004sed 's/^/| /' conftest.$ac_ext >&5
22005
Reid Spencera773bd52006-08-04 18:18:08 +000022006
John Criswell47fdd832003-07-14 16:52:07 +000022007fi
Reid Spencera773bd52006-08-04 18:18:08 +000022008
Bill Wendlingebcceee2009-04-18 11:20:33 +000022009rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022010 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22012
22013 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022014 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 +000022015 else
22016 if test "$host_cpu" = ia64; then
22017 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22018 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022019 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 +000022020 else
22021 # Determine the default libpath from the value encoded in an empty executable.
22022 cat >conftest.$ac_ext <<_ACEOF
22023 program main
22024
22025 end
22026_ACEOF
22027rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022028if { (ac_try="$ac_link"
22029case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032esac
22033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022035 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22042 { (case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045esac
22046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_try") 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; } &&
22051 { ac_try='test -s conftest$ac_exeext'
22052 { (case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055esac
22056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_try") 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022061
22062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22063}'`
22064# Check for a 64-bit object if we didn't find anything.
22065if 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; }
22066}'`; fi
22067else
22068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022069sed 's/^/| /' conftest.$ac_ext >&5
22070
Reid Spencera773bd52006-08-04 18:18:08 +000022071
John Criswell47fdd832003-07-14 16:52:07 +000022072fi
Reid Spencera773bd52006-08-04 18:18:08 +000022073
Bill Wendlingebcceee2009-04-18 11:20:33 +000022074rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022075 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22077
22078 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22079 # Warning - without using the other run time loading flags,
22080 # -berok will link without error, but may produce a broken library.
22081 no_undefined_flag_F77=' ${wl}-bernotok'
22082 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022083 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022084 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022085 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022086 # This is similar to how AIX traditionally builds its shared libraries.
22087 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 +000022088 fi
22089 fi
22090 ;;
22091
22092 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022093 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 +000022094 hardcode_libdir_flag_spec_F77='-L$libdir'
22095 hardcode_minus_L_F77=yes
22096 # see comment about different semantics on the GNU ld section
22097 ld_shlibs_F77=no
22098 ;;
22099
Reid Spencer2706f8c2004-09-19 23:53:36 +000022100 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022101 export_dynamic_flag_spec_F77=-rdynamic
22102 ;;
22103
22104 cygwin* | mingw* | pw32*)
22105 # When not using gcc, we currently assume that we are using
22106 # Microsoft Visual C++.
22107 # hardcode_libdir_flag_spec is actually meaningless, as there is
22108 # no search path for DLLs.
22109 hardcode_libdir_flag_spec_F77=' '
22110 allow_undefined_flag_F77=unsupported
22111 # Tell ltmain to make .lib files, not .a files.
22112 libext=lib
22113 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022114 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022115 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022116 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 +000022117 # The linker will automatically build a .lib file if we build a DLL.
22118 old_archive_From_new_cmds_F77='true'
22119 # FIXME: Should let the user specify the lib program.
22120 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022121 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022122 enable_shared_with_static_runtimes_F77=yes
22123 ;;
22124
22125 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022126 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022127 rhapsody* | darwin1.[012])
22128 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22129 ;;
22130 *) # Darwin 1.3 on
22131 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22132 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22133 else
22134 case ${MACOSX_DEPLOYMENT_TARGET} in
22135 10.[012])
22136 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22137 ;;
22138 10.*)
22139 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22140 ;;
22141 esac
22142 fi
22143 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022144 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022145 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022146 hardcode_direct_F77=no
22147 hardcode_automatic_F77=yes
22148 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022149 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022150 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022151 if test "$GCC" = yes ; then
22152 output_verbose_link_cmd='echo'
22153 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22154 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022155 # 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 +000022156 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}'
22157 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 +000022158 else
Reid Spencera773bd52006-08-04 18:18:08 +000022159 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022160 xlc*)
22161 output_verbose_link_cmd='echo'
22162 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22163 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022164 # 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 +000022165 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}'
22166 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 +000022167 ;;
22168 *)
22169 ld_shlibs_F77=no
22170 ;;
22171 esac
John Criswell47fdd832003-07-14 16:52:07 +000022172 fi
22173 ;;
22174
22175 dgux*)
22176 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177 hardcode_libdir_flag_spec_F77='-L$libdir'
22178 hardcode_shlibpath_var_F77=no
22179 ;;
22180
22181 freebsd1*)
22182 ld_shlibs_F77=no
22183 ;;
22184
22185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22186 # support. Future versions do this automatically, but an explicit c++rt0.o
22187 # does not break anything, and helps significantly (at the cost of a little
22188 # extra space).
22189 freebsd2.2*)
22190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22191 hardcode_libdir_flag_spec_F77='-R$libdir'
22192 hardcode_direct_F77=yes
22193 hardcode_shlibpath_var_F77=no
22194 ;;
22195
22196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22197 freebsd2*)
22198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22199 hardcode_direct_F77=yes
22200 hardcode_minus_L_F77=yes
22201 hardcode_shlibpath_var_F77=no
22202 ;;
22203
22204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022205 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022206 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22207 hardcode_libdir_flag_spec_F77='-R$libdir'
22208 hardcode_direct_F77=yes
22209 hardcode_shlibpath_var_F77=no
22210 ;;
22211
22212 hpux9*)
22213 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022214 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 +000022215 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022216 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 +000022217 fi
22218 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22219 hardcode_libdir_separator_F77=:
22220 hardcode_direct_F77=yes
22221
22222 # hardcode_minus_L: Not really in the search PATH,
22223 # but as the default location of the library.
22224 hardcode_minus_L_F77=yes
22225 export_dynamic_flag_spec_F77='${wl}-E'
22226 ;;
22227
Reid Spencera773bd52006-08-04 18:18:08 +000022228 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022230 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22231 else
22232 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22233 fi
22234 if test "$with_gnu_ld" = no; then
22235 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22236 hardcode_libdir_separator_F77=:
22237
22238 hardcode_direct_F77=yes
22239 export_dynamic_flag_spec_F77='${wl}-E'
22240
22241 # hardcode_minus_L: Not really in the search PATH,
22242 # but as the default location of the library.
22243 hardcode_minus_L_F77=yes
22244 fi
22245 ;;
22246
22247 hpux11*)
22248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22249 case $host_cpu in
22250 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022251 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22252 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022253 ia64*)
22254 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22255 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022256 *)
22257 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22258 ;;
22259 esac
22260 else
Reid Spencera773bd52006-08-04 18:18:08 +000022261 case $host_cpu in
22262 hppa*64*)
22263 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264 ;;
22265 ia64*)
22266 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022267 ;;
22268 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022269 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 +000022270 ;;
22271 esac
22272 fi
22273 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022276
Reid Spencera773bd52006-08-04 18:18:08 +000022277 case $host_cpu in
22278 hppa*64*|ia64*)
22279 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22280 hardcode_direct_F77=no
22281 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022282 ;;
22283 *)
John Criswell47fdd832003-07-14 16:52:07 +000022284 hardcode_direct_F77=yes
22285 export_dynamic_flag_spec_F77='${wl}-E'
22286
22287 # hardcode_minus_L: Not really in the search PATH,
22288 # but as the default location of the library.
22289 hardcode_minus_L_F77=yes
22290 ;;
22291 esac
22292 fi
22293 ;;
22294
22295 irix5* | irix6* | nonstopux*)
22296 if test "$GCC" = yes; then
22297 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'
22298 else
22299 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'
22300 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22301 fi
22302 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303 hardcode_libdir_separator_F77=:
22304 link_all_deplibs_F77=yes
22305 ;;
22306
22307 netbsd*)
22308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22309 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22310 else
22311 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22312 fi
22313 hardcode_libdir_flag_spec_F77='-R$libdir'
22314 hardcode_direct_F77=yes
22315 hardcode_shlibpath_var_F77=no
22316 ;;
22317
22318 newsos6)
22319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22320 hardcode_direct_F77=yes
22321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22322 hardcode_libdir_separator_F77=:
22323 hardcode_shlibpath_var_F77=no
22324 ;;
22325
22326 openbsd*)
22327 hardcode_direct_F77=yes
22328 hardcode_shlibpath_var_F77=no
22329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22330 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022331 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 +000022332 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22333 export_dynamic_flag_spec_F77='${wl}-E'
22334 else
22335 case $host_os in
22336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22337 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22338 hardcode_libdir_flag_spec_F77='-R$libdir'
22339 ;;
22340 *)
22341 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22342 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22343 ;;
22344 esac
22345 fi
22346 ;;
22347
22348 os2*)
22349 hardcode_libdir_flag_spec_F77='-L$libdir'
22350 hardcode_minus_L_F77=yes
22351 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022352 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 +000022353 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22354 ;;
22355
22356 osf3*)
22357 if test "$GCC" = yes; then
22358 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22359 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'
22360 else
22361 allow_undefined_flag_F77=' -expect_unresolved \*'
22362 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'
22363 fi
22364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22365 hardcode_libdir_separator_F77=:
22366 ;;
22367
22368 osf4* | osf5*) # as osf3* with the addition of -msym flag
22369 if test "$GCC" = yes; then
22370 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22371 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'
22372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22373 else
22374 allow_undefined_flag_F77=' -expect_unresolved \*'
22375 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 +000022376 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 +000022377 $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 +000022378
John Criswell47fdd832003-07-14 16:52:07 +000022379 # Both c and cxx compiler support -rpath directly
22380 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22381 fi
22382 hardcode_libdir_separator_F77=:
22383 ;;
22384
John Criswell47fdd832003-07-14 16:52:07 +000022385 solaris*)
22386 no_undefined_flag_F77=' -z text'
22387 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022388 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022389 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022390 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22391 $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 +000022392 else
Reid Spencera773bd52006-08-04 18:18:08 +000022393 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022394 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022395 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22396 $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 +000022397 fi
22398 hardcode_libdir_flag_spec_F77='-R$libdir'
22399 hardcode_shlibpath_var_F77=no
22400 case $host_os in
22401 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022402 *)
22403 # The compiler driver will combine linker options so we
22404 # cannot just pass the convience library names through
22405 # without $wl, iff we do not link with $LD.
22406 # Luckily, gcc supports the same syntax we need for Sun Studio.
22407 # Supported since Solaris 2.6 (maybe 2.5.1?)
22408 case $wlarc in
22409 '')
22410 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22411 *)
22412 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' ;;
22413 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022414 esac
22415 link_all_deplibs_F77=yes
22416 ;;
22417
22418 sunos4*)
22419 if test "x$host_vendor" = xsequent; then
22420 # Use $CC to link under sequent, because it throws in some extra .o
22421 # files that make .init and .fini sections work.
22422 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22423 else
22424 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22425 fi
22426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_direct_F77=yes
22428 hardcode_minus_L_F77=yes
22429 hardcode_shlibpath_var_F77=no
22430 ;;
22431
22432 sysv4)
22433 case $host_vendor in
22434 sni)
22435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22436 hardcode_direct_F77=yes # is this really true???
22437 ;;
22438 siemens)
22439 ## LD is ld it makes a PLAMLIB
22440 ## CC just makes a GrossModule.
22441 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22442 reload_cmds_F77='$CC -r -o $output$reload_objs'
22443 hardcode_direct_F77=no
22444 ;;
22445 motorola)
22446 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22447 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22448 ;;
22449 esac
22450 runpath_var='LD_RUN_PATH'
22451 hardcode_shlibpath_var_F77=no
22452 ;;
22453
22454 sysv4.3*)
22455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22456 hardcode_shlibpath_var_F77=no
22457 export_dynamic_flag_spec_F77='-Bexport'
22458 ;;
22459
22460 sysv4*MP*)
22461 if test -d /usr/nec; then
22462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463 hardcode_shlibpath_var_F77=no
22464 runpath_var=LD_RUN_PATH
22465 hardcode_runpath_var=yes
22466 ld_shlibs_F77=yes
22467 fi
22468 ;;
22469
Reid Spencera773bd52006-08-04 18:18:08 +000022470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22471 no_undefined_flag_F77='${wl}-z,text'
22472 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022473 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022474 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022475
John Criswell47fdd832003-07-14 16:52:07 +000022476 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022477 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22478 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 +000022479 else
Reid Spencera773bd52006-08-04 18:18:08 +000022480 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 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 +000022482 fi
John Criswell47fdd832003-07-14 16:52:07 +000022483 ;;
22484
Reid Spencera773bd52006-08-04 18:18:08 +000022485 sysv5* | sco3.2v5* | sco5v6*)
22486 # Note: We can NOT use -z defs as we might desire, because we do not
22487 # link with -lc, and that would cause any symbols used from libc to
22488 # always be unresolved, which means just about no library would
22489 # ever link correctly. If we're not using GNU ld we use -z text
22490 # though, which does catch some bad symbols but isn't as heavy-handed
22491 # as -z defs.
22492 no_undefined_flag_F77='${wl}-z,text'
22493 allow_undefined_flag_F77='${wl}-z,nodefs'
22494 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022495 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022496 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22497 hardcode_libdir_separator_F77=':'
22498 link_all_deplibs_F77=yes
22499 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022500 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022501
22502 if test "$GCC" = yes; then
22503 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22504 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22505 else
22506 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22507 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22508 fi
John Criswell47fdd832003-07-14 16:52:07 +000022509 ;;
22510
22511 uts4*)
22512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_libdir_flag_spec_F77='-L$libdir'
22514 hardcode_shlibpath_var_F77=no
22515 ;;
22516
22517 *)
22518 ld_shlibs_F77=no
22519 ;;
22520 esac
22521 fi
22522
Reid Spencera773bd52006-08-04 18:18:08 +000022523{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22524echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022525test "$ld_shlibs_F77" = no && can_build_shared=no
22526
John Criswell47fdd832003-07-14 16:52:07 +000022527#
22528# Do we need to explicitly link libc?
22529#
22530case "x$archive_cmds_need_lc_F77" in
22531x|xyes)
22532 # Assume -lc should be added
22533 archive_cmds_need_lc_F77=yes
22534
22535 if test "$enable_shared" = yes && test "$GCC" = yes; then
22536 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022537 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022538 # FIXME: we may have to deal with multi-command sequences.
22539 ;;
22540 '$CC '*)
22541 # Test whether the compiler implicitly links with -lc since on some
22542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22543 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022546 $rm conftest*
22547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22548
22549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22550 (eval $ac_compile) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } 2>conftest.err; then
22554 soname=conftest
22555 lib=conftest
22556 libobjs=conftest.$ac_objext
22557 deplibs=
22558 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022559 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022560 compiler_flags=-v
22561 linker_flags=-v
22562 verstring=
22563 output_objdir=.
22564 libname=conftest
22565 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22566 allow_undefined_flag_F77=
22567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22568 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }
22572 then
22573 archive_cmds_need_lc_F77=no
22574 else
22575 archive_cmds_need_lc_F77=yes
22576 fi
22577 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22578 else
22579 cat conftest.err 1>&5
22580 fi
22581 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22583echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022584 ;;
22585 esac
22586 fi
22587 ;;
22588esac
22589
Reid Spencera773bd52006-08-04 18:18:08 +000022590{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022592library_names_spec=
22593libname_spec='lib$name'
22594soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022595shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022596postinstall_cmds=
22597postuninstall_cmds=
22598finish_cmds=
22599finish_eval=
22600shlibpath_var=
22601shlibpath_overrides_runpath=unknown
22602version_type=none
22603dynamic_linker="$host_os ld.so"
22604sys_lib_dlsearch_path_spec="/lib /usr/lib"
22605if test "$GCC" = yes; then
22606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22607 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22608 # if the path contains ";" then we assume it to be the separator
22609 # otherwise default to the standard path separator (i.e. ":") - it is
22610 # assumed that no part of a normal pathname contains ";" but that should
22611 # okay in the real world where ";" in dirpaths is itself problematic.
22612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22613 else
22614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22615 fi
22616else
22617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22618fi
22619need_lib_prefix=unknown
22620hardcode_into_libs=no
22621
22622# when you set need_version to no, make sure it does not cause -set_version
22623# flags to be left without arguments
22624need_version=unknown
22625
22626case $host_os in
22627aix3*)
22628 version_type=linux
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22630 shlibpath_var=LIBPATH
22631
22632 # AIX 3 has no versioning support, so we append a major version to the name.
22633 soname_spec='${libname}${release}${shared_ext}$major'
22634 ;;
22635
22636aix4* | aix5*)
22637 version_type=linux
22638 need_lib_prefix=no
22639 need_version=no
22640 hardcode_into_libs=yes
22641 if test "$host_cpu" = ia64; then
22642 # AIX 5 supports IA64
22643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22644 shlibpath_var=LD_LIBRARY_PATH
22645 else
22646 # With GCC up to 2.95.x, collect2 would create an import file
22647 # for dependence libraries. The import file would start with
22648 # the line `#! .'. This would cause the generated library to
22649 # depend on `.', always an invalid library. This was fixed in
22650 # development snapshots of GCC prior to 3.0.
22651 case $host_os in
22652 aix4 | aix4.[01] | aix4.[01].*)
22653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22654 echo ' yes '
22655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22656 :
22657 else
22658 can_build_shared=no
22659 fi
22660 ;;
22661 esac
22662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22663 # soname into executable. Probably we can add versioning support to
22664 # collect2, so additional links can be useful in future.
22665 if test "$aix_use_runtimelinking" = yes; then
22666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22667 # instead of lib<name>.a to let people know that these are not
22668 # typical AIX shared libraries.
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670 else
22671 # We preserve .a as extension for shared libraries through AIX4.2
22672 # and later when we are not doing run time linking.
22673 library_names_spec='${libname}${release}.a $libname.a'
22674 soname_spec='${libname}${release}${shared_ext}$major'
22675 fi
22676 shlibpath_var=LIBPATH
22677 fi
22678 ;;
22679
22680amigaos*)
22681 library_names_spec='$libname.ixlibrary $libname.a'
22682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022683 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 +000022684 ;;
22685
22686beos*)
22687 library_names_spec='${libname}${shared_ext}'
22688 dynamic_linker="$host_os ld.so"
22689 shlibpath_var=LIBRARY_PATH
22690 ;;
22691
Reid Spencer2706f8c2004-09-19 23:53:36 +000022692bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022693 version_type=linux
22694 need_version=no
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22701 # the default ld.so.conf also contains /usr/contrib/lib and
22702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22703 # libtool to hard-code these into programs
22704 ;;
22705
22706cygwin* | mingw* | pw32*)
22707 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022708 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022709 need_version=no
22710 need_lib_prefix=no
22711
22712 case $GCC,$host_os in
22713 yes,cygwin* | yes,mingw* | yes,pw32*)
22714 library_names_spec='$libname.dll.a'
22715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022716 postinstall_cmds='base_file=`basename \${file}`~
22717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22718 dldir=$destdir/`dirname \$dlpath`~
22719 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022720 $install_prog $dir/$dlname \$dldir/$dlname~
22721 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22723 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022724 $rm \$dlpath'
22725 shlibpath_overrides_runpath=yes
22726
22727 case $host_os in
22728 cygwin*)
22729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22730 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 +000022731 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022732 ;;
22733 mingw*)
22734 # MinGW DLLs use traditional 'lib' prefix
22735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22738 # It is most probably a Windows format PATH printed by
22739 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22740 # path with ; separators, and with drive letters. We can handle the
22741 # drive letters (cygwin fileutils understands them), so leave them,
22742 # especially as we might pass files found there to a mingw objdump,
22743 # which wouldn't understand a cygwinified path. Ahh.
22744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22745 else
22746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22747 fi
22748 ;;
22749 pw32*)
22750 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022751 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 +000022752 ;;
22753 esac
22754 ;;
22755
22756 *)
22757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22758 ;;
22759 esac
22760 dynamic_linker='Win32 ld.exe'
22761 # FIXME: first we should search . and the directory the executable is in
22762 shlibpath_var=PATH
22763 ;;
22764
22765darwin* | rhapsody*)
22766 dynamic_linker="$host_os dyld"
22767 version_type=darwin
22768 need_lib_prefix=no
22769 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022771 soname_spec='${libname}${release}${major}$shared_ext'
22772 shlibpath_overrides_runpath=yes
22773 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022774 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022776 if test "$GCC" = yes; then
22777 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"`
22778 else
22779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022780 fi
22781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22782 ;;
22783
22784dgux*)
22785 version_type=linux
22786 need_lib_prefix=no
22787 need_version=no
22788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22789 soname_spec='${libname}${release}${shared_ext}$major'
22790 shlibpath_var=LD_LIBRARY_PATH
22791 ;;
22792
22793freebsd1*)
22794 dynamic_linker=no
22795 ;;
22796
Reid Spencer2706f8c2004-09-19 23:53:36 +000022797kfreebsd*-gnu)
22798 version_type=linux
22799 need_lib_prefix=no
22800 need_version=no
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=no
22805 hardcode_into_libs=yes
22806 dynamic_linker='GNU ld.so'
22807 ;;
22808
Reid Spencera773bd52006-08-04 18:18:08 +000022809freebsd* | dragonfly*)
22810 # DragonFly does not have aout. When/if they implement a new
22811 # versioning mechanism, adjust this.
22812 if test -x /usr/bin/objformat; then
22813 objformat=`/usr/bin/objformat`
22814 else
22815 case $host_os in
22816 freebsd[123]*) objformat=aout ;;
22817 *) objformat=elf ;;
22818 esac
22819 fi
John Criswell47fdd832003-07-14 16:52:07 +000022820 version_type=freebsd-$objformat
22821 case $version_type in
22822 freebsd-elf*)
22823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22824 need_version=no
22825 need_lib_prefix=no
22826 ;;
22827 freebsd-*)
22828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22829 need_version=yes
22830 ;;
22831 esac
22832 shlibpath_var=LD_LIBRARY_PATH
22833 case $host_os in
22834 freebsd2*)
22835 shlibpath_overrides_runpath=yes
22836 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022837 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022838 shlibpath_overrides_runpath=yes
22839 hardcode_into_libs=yes
22840 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022843 shlibpath_overrides_runpath=no
22844 hardcode_into_libs=yes
22845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022846 freebsd*) # from 4.6 on
22847 shlibpath_overrides_runpath=yes
22848 hardcode_into_libs=yes
22849 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022850 esac
22851 ;;
22852
22853gnu*)
22854 version_type=linux
22855 need_lib_prefix=no
22856 need_version=no
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 hardcode_into_libs=yes
22861 ;;
22862
22863hpux9* | hpux10* | hpux11*)
22864 # Give a soname corresponding to the major version so that dld.sl refuses to
22865 # link against other versions.
22866 version_type=sunos
22867 need_lib_prefix=no
22868 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022869 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022870 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022871 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022872 hardcode_into_libs=yes
22873 dynamic_linker="$host_os dld.so"
22874 shlibpath_var=LD_LIBRARY_PATH
22875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 if test "X$HPUX_IA64_MODE" = X32; then
22879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22880 else
22881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22882 fi
22883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22884 ;;
22885 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022886 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022887 hardcode_into_libs=yes
22888 dynamic_linker="$host_os dld.sl"
22889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22892 soname_spec='${libname}${release}${shared_ext}$major'
22893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22895 ;;
22896 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022897 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022898 dynamic_linker="$host_os dld.sl"
22899 shlibpath_var=SHLIB_PATH
22900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22902 soname_spec='${libname}${release}${shared_ext}$major'
22903 ;;
22904 esac
22905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22906 postinstall_cmds='chmod 555 $lib'
22907 ;;
22908
Reid Spencera773bd52006-08-04 18:18:08 +000022909interix3*)
22910 version_type=linux
22911 need_lib_prefix=no
22912 need_version=no
22913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22914 soname_spec='${libname}${release}${shared_ext}$major'
22915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22916 shlibpath_var=LD_LIBRARY_PATH
22917 shlibpath_overrides_runpath=no
22918 hardcode_into_libs=yes
22919 ;;
22920
John Criswell47fdd832003-07-14 16:52:07 +000022921irix5* | irix6* | nonstopux*)
22922 case $host_os in
22923 nonstopux*) version_type=nonstopux ;;
22924 *)
22925 if test "$lt_cv_prog_gnu_ld" = yes; then
22926 version_type=linux
22927 else
22928 version_type=irix
22929 fi ;;
22930 esac
22931 need_lib_prefix=no
22932 need_version=no
22933 soname_spec='${libname}${release}${shared_ext}$major'
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22935 case $host_os in
22936 irix5* | nonstopux*)
22937 libsuff= shlibsuff=
22938 ;;
22939 *)
22940 case $LD in # libtool.m4 will add one of these switches to LD
22941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22942 libsuff= shlibsuff= libmagic=32-bit;;
22943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22944 libsuff=32 shlibsuff=N32 libmagic=N32;;
22945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22947 *) libsuff= shlibsuff= libmagic=never-match;;
22948 esac
22949 ;;
22950 esac
22951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22952 shlibpath_overrides_runpath=no
22953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22955 hardcode_into_libs=yes
22956 ;;
22957
22958# No shared lib support for Linux oldld, aout, or coff.
22959linux*oldld* | linux*aout* | linux*coff*)
22960 dynamic_linker=no
22961 ;;
22962
22963# This must be Linux ELF.
22964linux*)
22965 version_type=linux
22966 need_lib_prefix=no
22967 need_version=no
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 soname_spec='${libname}${release}${shared_ext}$major'
22970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22971 shlibpath_var=LD_LIBRARY_PATH
22972 shlibpath_overrides_runpath=no
22973 # This implies no fast_install, which is unacceptable.
22974 # Some rework will be needed to allow for fast_install
22975 # before this can be enabled.
22976 hardcode_into_libs=yes
22977
Reid Spencer2706f8c2004-09-19 23:53:36 +000022978 # Append ld.so.conf contents to the search path
22979 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022980 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 +000022981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22982 fi
22983
John Criswell47fdd832003-07-14 16:52:07 +000022984 # We used to test for /lib/ld.so.1 and disable shared libraries on
22985 # powerpc, because MkLinux only supported shared libraries with the
22986 # GNU dynamic linker. Since this was broken with cross compilers,
22987 # most powerpc-linux boxes support dynamic linking these days and
22988 # people can always --disable-shared, the test was removed, and we
22989 # assume the GNU/Linux dynamic linker is in use.
22990 dynamic_linker='GNU/Linux ld.so'
22991 ;;
22992
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993knetbsd*-gnu)
22994 version_type=linux
22995 need_lib_prefix=no
22996 need_version=no
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22998 soname_spec='${libname}${release}${shared_ext}$major'
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=no
23001 hardcode_into_libs=yes
23002 dynamic_linker='GNU ld.so'
23003 ;;
23004
John Criswell47fdd832003-07-14 16:52:07 +000023005netbsd*)
23006 version_type=sunos
23007 need_lib_prefix=no
23008 need_version=no
23009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23012 dynamic_linker='NetBSD (a.out) ld.so'
23013 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023015 soname_spec='${libname}${release}${shared_ext}$major'
23016 dynamic_linker='NetBSD ld.elf_so'
23017 fi
23018 shlibpath_var=LD_LIBRARY_PATH
23019 shlibpath_overrides_runpath=yes
23020 hardcode_into_libs=yes
23021 ;;
23022
23023newsos6)
23024 version_type=linux
23025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 shlibpath_overrides_runpath=yes
23028 ;;
23029
Reid Spencer2706f8c2004-09-19 23:53:36 +000023030nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023031 version_type=linux
23032 need_lib_prefix=no
23033 need_version=no
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 shlibpath_overrides_runpath=yes
23038 ;;
23039
23040openbsd*)
23041 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023042 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023043 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23045 case $host_os in
23046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23047 *) need_version=no ;;
23048 esac
John Criswell47fdd832003-07-14 16:52:07 +000023049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23051 shlibpath_var=LD_LIBRARY_PATH
23052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23053 case $host_os in
23054 openbsd2.[89] | openbsd2.[89].*)
23055 shlibpath_overrides_runpath=no
23056 ;;
23057 *)
23058 shlibpath_overrides_runpath=yes
23059 ;;
23060 esac
23061 else
23062 shlibpath_overrides_runpath=yes
23063 fi
23064 ;;
23065
23066os2*)
23067 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023068 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023069 need_lib_prefix=no
23070 library_names_spec='$libname${shared_ext} $libname.a'
23071 dynamic_linker='OS/2 ld.exe'
23072 shlibpath_var=LIBPATH
23073 ;;
23074
23075osf3* | osf4* | osf5*)
23076 version_type=osf
23077 need_lib_prefix=no
23078 need_version=no
23079 soname_spec='${libname}${release}${shared_ext}$major'
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081 shlibpath_var=LD_LIBRARY_PATH
23082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23084 ;;
23085
John Criswell47fdd832003-07-14 16:52:07 +000023086solaris*)
23087 version_type=linux
23088 need_lib_prefix=no
23089 need_version=no
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091 soname_spec='${libname}${release}${shared_ext}$major'
23092 shlibpath_var=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath=yes
23094 hardcode_into_libs=yes
23095 # ldd complains unless libraries are executable
23096 postinstall_cmds='chmod +x $lib'
23097 ;;
23098
23099sunos4*)
23100 version_type=sunos
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=yes
23105 if test "$with_gnu_ld" = yes; then
23106 need_lib_prefix=no
23107 fi
23108 need_version=yes
23109 ;;
23110
Reid Spencera773bd52006-08-04 18:18:08 +000023111sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023112 version_type=linux
23113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23114 soname_spec='${libname}${release}${shared_ext}$major'
23115 shlibpath_var=LD_LIBRARY_PATH
23116 case $host_vendor in
23117 sni)
23118 shlibpath_overrides_runpath=no
23119 need_lib_prefix=no
23120 export_dynamic_flag_spec='${wl}-Blargedynsym'
23121 runpath_var=LD_RUN_PATH
23122 ;;
23123 siemens)
23124 need_lib_prefix=no
23125 ;;
23126 motorola)
23127 need_lib_prefix=no
23128 need_version=no
23129 shlibpath_overrides_runpath=no
23130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23131 ;;
23132 esac
23133 ;;
23134
23135sysv4*MP*)
23136 if test -d /usr/nec ;then
23137 version_type=linux
23138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23139 soname_spec='$libname${shared_ext}.$major'
23140 shlibpath_var=LD_LIBRARY_PATH
23141 fi
23142 ;;
23143
Reid Spencera773bd52006-08-04 18:18:08 +000023144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23145 version_type=freebsd-elf
23146 need_lib_prefix=no
23147 need_version=no
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 hardcode_into_libs=yes
23152 if test "$with_gnu_ld" = yes; then
23153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23154 shlibpath_overrides_runpath=no
23155 else
23156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23157 shlibpath_overrides_runpath=yes
23158 case $host_os in
23159 sco3.2v5*)
23160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23161 ;;
23162 esac
23163 fi
23164 sys_lib_dlsearch_path_spec='/usr/lib'
23165 ;;
23166
John Criswell47fdd832003-07-14 16:52:07 +000023167uts4*)
23168 version_type=linux
23169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23170 soname_spec='${libname}${release}${shared_ext}$major'
23171 shlibpath_var=LD_LIBRARY_PATH
23172 ;;
23173
23174*)
23175 dynamic_linker=no
23176 ;;
23177esac
Reid Spencera773bd52006-08-04 18:18:08 +000023178{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23179echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023180test "$dynamic_linker" = no && can_build_shared=no
23181
Reid Spencera773bd52006-08-04 18:18:08 +000023182variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23183if test "$GCC" = yes; then
23184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23185fi
23186
23187{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23188echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023189hardcode_action_F77=
23190if test -n "$hardcode_libdir_flag_spec_F77" || \
23191 test -n "$runpath_var_F77" || \
23192 test "X$hardcode_automatic_F77" = "Xyes" ; then
23193
23194 # We can hardcode non-existant directories.
23195 if test "$hardcode_direct_F77" != no &&
23196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23197 # have to relink, otherwise we might link with an installed library
23198 # when we should be linking with a yet-to-be-installed one
23199 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23200 test "$hardcode_minus_L_F77" != no; then
23201 # Linking always hardcodes the temporary library directory.
23202 hardcode_action_F77=relink
23203 else
23204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23205 hardcode_action_F77=immediate
23206 fi
23207else
23208 # We cannot hardcode anything, or else we can only hardcode existing
23209 # directories.
23210 hardcode_action_F77=unsupported
23211fi
Reid Spencera773bd52006-08-04 18:18:08 +000023212{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23213echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023214
23215if test "$hardcode_action_F77" = relink; then
23216 # Fast installation is not supported
23217 enable_fast_install=no
23218elif test "$shlibpath_overrides_runpath" = yes ||
23219 test "$enable_shared" = no; then
23220 # Fast installation is not necessary
23221 enable_fast_install=needless
23222fi
23223
John Criswell47fdd832003-07-14 16:52:07 +000023224
23225# The else clause should only fire when bootstrapping the
23226# libtool distribution, otherwise you forgot to ship ltmain.sh
23227# with your package, and you will get complaints that there are
23228# no rules to generate ltmain.sh.
23229if test -f "$ltmain"; then
23230 # See if we are running on zsh, and set the options which allow our commands through
23231 # without removal of \ escapes.
23232 if test -n "${ZSH_VERSION+set}" ; then
23233 setopt NO_GLOB_SUBST
23234 fi
23235 # Now quote all the things that may contain metacharacters while being
23236 # careful not to overquote the AC_SUBSTed values. We take copies of the
23237 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023238 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 +000023239 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23242 deplibs_check_method reload_flag reload_cmds need_locks \
23243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23244 lt_cv_sys_global_symbol_to_c_name_address \
23245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23246 old_postinstall_cmds old_postuninstall_cmds \
23247 compiler_F77 \
23248 CC_F77 \
23249 LD_F77 \
23250 lt_prog_compiler_wl_F77 \
23251 lt_prog_compiler_pic_F77 \
23252 lt_prog_compiler_static_F77 \
23253 lt_prog_compiler_no_builtin_flag_F77 \
23254 export_dynamic_flag_spec_F77 \
23255 thread_safe_flag_spec_F77 \
23256 whole_archive_flag_spec_F77 \
23257 enable_shared_with_static_runtimes_F77 \
23258 old_archive_cmds_F77 \
23259 old_archive_from_new_cmds_F77 \
23260 predep_objects_F77 \
23261 postdep_objects_F77 \
23262 predeps_F77 \
23263 postdeps_F77 \
23264 compiler_lib_search_path_F77 \
23265 archive_cmds_F77 \
23266 archive_expsym_cmds_F77 \
23267 postinstall_cmds_F77 \
23268 postuninstall_cmds_F77 \
23269 old_archive_from_expsyms_cmds_F77 \
23270 allow_undefined_flag_F77 \
23271 no_undefined_flag_F77 \
23272 export_symbols_cmds_F77 \
23273 hardcode_libdir_flag_spec_F77 \
23274 hardcode_libdir_flag_spec_ld_F77 \
23275 hardcode_libdir_separator_F77 \
23276 hardcode_automatic_F77 \
23277 module_cmds_F77 \
23278 module_expsym_cmds_F77 \
23279 lt_cv_prog_compiler_c_o_F77 \
23280 exclude_expsyms_F77 \
23281 include_expsyms_F77; do
23282
23283 case $var in
23284 old_archive_cmds_F77 | \
23285 old_archive_from_new_cmds_F77 | \
23286 archive_cmds_F77 | \
23287 archive_expsym_cmds_F77 | \
23288 module_cmds_F77 | \
23289 module_expsym_cmds_F77 | \
23290 old_archive_from_expsyms_cmds_F77 | \
23291 export_symbols_cmds_F77 | \
23292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23293 postinstall_cmds | postuninstall_cmds | \
23294 old_postinstall_cmds | old_postuninstall_cmds | \
23295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23296 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023297 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 +000023298 ;;
23299 *)
23300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23301 ;;
23302 esac
23303 done
23304
23305 case $lt_echo in
23306 *'\$0 --fallback-echo"')
23307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23308 ;;
23309 esac
23310
23311cfgfile="$ofile"
23312
23313 cat <<__EOF__ >> "$cfgfile"
23314# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23315
23316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23317
23318# Shell to use when invoking shell scripts.
23319SHELL=$lt_SHELL
23320
23321# Whether or not to build shared libraries.
23322build_libtool_libs=$enable_shared
23323
23324# Whether or not to build static libraries.
23325build_old_libs=$enable_static
23326
23327# Whether or not to add -lc for building shared libraries.
23328build_libtool_need_lc=$archive_cmds_need_lc_F77
23329
23330# Whether or not to disallow shared libs when runtime libs are static
23331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23332
23333# Whether or not to optimize for fast installation.
23334fast_install=$enable_fast_install
23335
23336# The host system.
23337host_alias=$host_alias
23338host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023339host_os=$host_os
23340
23341# The build system.
23342build_alias=$build_alias
23343build=$build
23344build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023345
23346# An echo program that does not interpret backslashes.
23347echo=$lt_echo
23348
23349# The archiver.
23350AR=$lt_AR
23351AR_FLAGS=$lt_AR_FLAGS
23352
23353# A C compiler.
23354LTCC=$lt_LTCC
23355
Reid Spencera773bd52006-08-04 18:18:08 +000023356# LTCC compiler flags.
23357LTCFLAGS=$lt_LTCFLAGS
23358
John Criswell47fdd832003-07-14 16:52:07 +000023359# A language-specific compiler.
23360CC=$lt_compiler_F77
23361
23362# Is the compiler the GNU C compiler?
23363with_gcc=$GCC_F77
23364
23365# An ERE matcher.
23366EGREP=$lt_EGREP
23367
23368# The linker used to build libraries.
23369LD=$lt_LD_F77
23370
23371# Whether we need hard or soft links.
23372LN_S=$lt_LN_S
23373
23374# A BSD-compatible nm program.
23375NM=$lt_NM
23376
23377# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023378STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023379
23380# Used to examine libraries when file_magic_cmd begins "file"
23381MAGIC_CMD=$MAGIC_CMD
23382
23383# Used on cygwin: DLL creation program.
23384DLLTOOL="$DLLTOOL"
23385
23386# Used on cygwin: object dumper.
23387OBJDUMP="$OBJDUMP"
23388
23389# Used on cygwin: assembler.
23390AS="$AS"
23391
23392# The name of the directory that contains temporary libtool files.
23393objdir=$objdir
23394
23395# How to create reloadable object files.
23396reload_flag=$lt_reload_flag
23397reload_cmds=$lt_reload_cmds
23398
23399# How to pass a linker flag through the compiler.
23400wl=$lt_lt_prog_compiler_wl_F77
23401
23402# Object file suffix (normally "o").
23403objext="$ac_objext"
23404
23405# Old archive suffix (normally "a").
23406libext="$libext"
23407
23408# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023409shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023410
23411# Executable file suffix (normally "").
23412exeext="$exeext"
23413
23414# Additional compiler flags for building library objects.
23415pic_flag=$lt_lt_prog_compiler_pic_F77
23416pic_mode=$pic_mode
23417
23418# What is the maximum length of a command?
23419max_cmd_len=$lt_cv_sys_max_cmd_len
23420
23421# Does compiler simultaneously support -c and -o options?
23422compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23423
Reid Spencera773bd52006-08-04 18:18:08 +000023424# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023425need_locks=$lt_need_locks
23426
23427# Do we need the lib prefix for modules?
23428need_lib_prefix=$need_lib_prefix
23429
23430# Do we need a version for libraries?
23431need_version=$need_version
23432
23433# Whether dlopen is supported.
23434dlopen_support=$enable_dlopen
23435
23436# Whether dlopen of programs is supported.
23437dlopen_self=$enable_dlopen_self
23438
23439# Whether dlopen of statically linked programs is supported.
23440dlopen_self_static=$enable_dlopen_self_static
23441
23442# Compiler flag to prevent dynamic linking.
23443link_static_flag=$lt_lt_prog_compiler_static_F77
23444
23445# Compiler flag to turn off builtin functions.
23446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23447
23448# Compiler flag to allow reflexive dlopens.
23449export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23450
23451# Compiler flag to generate shared objects directly from archives.
23452whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23453
23454# Compiler flag to generate thread-safe objects.
23455thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23456
23457# Library versioning type.
23458version_type=$version_type
23459
23460# Format of library name prefix.
23461libname_spec=$lt_libname_spec
23462
23463# List of archive names. First name is the real one, the rest are links.
23464# The last name is the one that the linker finds with -lNAME.
23465library_names_spec=$lt_library_names_spec
23466
23467# The coded name of the library, if different from the real name.
23468soname_spec=$lt_soname_spec
23469
23470# Commands used to build and install an old-style archive.
23471RANLIB=$lt_RANLIB
23472old_archive_cmds=$lt_old_archive_cmds_F77
23473old_postinstall_cmds=$lt_old_postinstall_cmds
23474old_postuninstall_cmds=$lt_old_postuninstall_cmds
23475
23476# Create an old-style archive from a shared archive.
23477old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23478
23479# Create a temporary old-style archive to link instead of a shared archive.
23480old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23481
23482# Commands used to build and install a shared archive.
23483archive_cmds=$lt_archive_cmds_F77
23484archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23485postinstall_cmds=$lt_postinstall_cmds
23486postuninstall_cmds=$lt_postuninstall_cmds
23487
23488# Commands used to build a loadable module (assumed same as above if empty)
23489module_cmds=$lt_module_cmds_F77
23490module_expsym_cmds=$lt_module_expsym_cmds_F77
23491
23492# Commands to strip libraries.
23493old_striplib=$lt_old_striplib
23494striplib=$lt_striplib
23495
23496# Dependencies to place before the objects being linked to create a
23497# shared library.
23498predep_objects=$lt_predep_objects_F77
23499
23500# Dependencies to place after the objects being linked to create a
23501# shared library.
23502postdep_objects=$lt_postdep_objects_F77
23503
23504# Dependencies to place before the objects being linked to create a
23505# shared library.
23506predeps=$lt_predeps_F77
23507
23508# Dependencies to place after the objects being linked to create a
23509# shared library.
23510postdeps=$lt_postdeps_F77
23511
23512# The library search path used internally by the compiler when linking
23513# a shared library.
23514compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23515
23516# Method to check whether dependent libraries are shared objects.
23517deplibs_check_method=$lt_deplibs_check_method
23518
23519# Command to use when deplibs_check_method == file_magic.
23520file_magic_cmd=$lt_file_magic_cmd
23521
23522# Flag that allows shared libraries with undefined symbols to be built.
23523allow_undefined_flag=$lt_allow_undefined_flag_F77
23524
23525# Flag that forces no undefined symbols.
23526no_undefined_flag=$lt_no_undefined_flag_F77
23527
23528# Commands used to finish a libtool library installation in a directory.
23529finish_cmds=$lt_finish_cmds
23530
23531# Same as above, but a single script fragment to be evaled but not shown.
23532finish_eval=$lt_finish_eval
23533
23534# Take the output of nm and produce a listing of raw symbols and C names.
23535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23536
23537# Transform the output of nm in a proper C declaration
23538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23539
23540# Transform the output of nm in a C name address pair
23541global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23542
23543# This is the shared library runtime path variable.
23544runpath_var=$runpath_var
23545
23546# This is the shared library path variable.
23547shlibpath_var=$shlibpath_var
23548
23549# Is shlibpath searched before the hard-coded library search path?
23550shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23551
23552# How to hardcode a shared library path into an executable.
23553hardcode_action=$hardcode_action_F77
23554
23555# Whether we should hardcode library paths into libraries.
23556hardcode_into_libs=$hardcode_into_libs
23557
23558# Flag to hardcode \$libdir into a binary during linking.
23559# This must work even if \$libdir does not exist.
23560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23561
23562# If ld is used when linking, flag to hardcode \$libdir into
23563# a binary during linking. This must work even if \$libdir does
23564# not exist.
23565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23566
23567# Whether we need a single -rpath flag with a separated argument.
23568hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23569
23570# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23571# resulting binary.
23572hardcode_direct=$hardcode_direct_F77
23573
23574# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23575# resulting binary.
23576hardcode_minus_L=$hardcode_minus_L_F77
23577
23578# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23579# the resulting binary.
23580hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23581
23582# Set to yes if building a shared library automatically hardcodes DIR into the library
23583# and all subsequent libraries and executables linked against it.
23584hardcode_automatic=$hardcode_automatic_F77
23585
23586# Variables whose values should be saved in libtool wrapper scripts and
23587# restored at relink time.
23588variables_saved_for_relink="$variables_saved_for_relink"
23589
23590# Whether libtool must link a program against all its dependency libraries.
23591link_all_deplibs=$link_all_deplibs_F77
23592
23593# Compile-time system search path for libraries
23594sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23595
23596# Run-time system search path for libraries
23597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23598
23599# Fix the shell variable \$srcfile for the compiler.
23600fix_srcfile_path="$fix_srcfile_path_F77"
23601
23602# Set to yes if exported symbols are required.
23603always_export_symbols=$always_export_symbols_F77
23604
23605# The commands to list exported symbols.
23606export_symbols_cmds=$lt_export_symbols_cmds_F77
23607
23608# The commands to extract the exported symbol list from a shared archive.
23609extract_expsyms_cmds=$lt_extract_expsyms_cmds
23610
23611# Symbols that should not be listed in the preloaded symbols.
23612exclude_expsyms=$lt_exclude_expsyms_F77
23613
23614# Symbols that must always be exported.
23615include_expsyms=$lt_include_expsyms_F77
23616
23617# ### END LIBTOOL TAG CONFIG: $tagname
23618
23619__EOF__
23620
23621
23622else
23623 # If there is no Makefile yet, we rely on a make rule to execute
23624 # `config.status --recheck' to rerun these tests and create the
23625 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23627 if test -f "$ltmain_in"; then
23628 test -f Makefile && make "$ltmain"
23629 fi
John Criswell47fdd832003-07-14 16:52:07 +000023630fi
23631
23632
23633ac_ext=c
23634ac_cpp='$CPP $CPPFLAGS'
23635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23637ac_compiler_gnu=$ac_cv_c_compiler_gnu
23638
23639CC="$lt_save_CC"
23640
23641 else
23642 tagname=""
23643 fi
23644 ;;
23645
23646 GCJ)
23647 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023648 ac_ext=c
23649ac_cpp='$CPP $CPPFLAGS'
23650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023653
23654
23655# Source file extension for Java test sources.
23656ac_ext=java
23657
23658# Object file extension for compiled Java test sources.
23659objext=o
23660objext_GCJ=$objext
23661
23662# Code to be used in simple compile tests
23663lt_simple_compile_test_code="class foo {}\n"
23664
23665# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023666lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023667
23668# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23669
23670# If no C compiler was specified, use CC.
23671LTCC=${LTCC-"$CC"}
23672
Reid Spencera773bd52006-08-04 18:18:08 +000023673# If no C compiler flags were specified, use CFLAGS.
23674LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23675
John Criswell47fdd832003-07-14 16:52:07 +000023676# Allow CC to be a program name with arguments.
23677compiler=$CC
23678
23679
Reid Spencera773bd52006-08-04 18:18:08 +000023680# save warnings/boilerplate of simple test code
23681ac_outfile=conftest.$ac_objext
23682printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23683eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23684_lt_compiler_boilerplate=`cat conftest.err`
23685$rm conftest*
23686
23687ac_outfile=conftest.$ac_objext
23688printf "$lt_simple_link_test_code" >conftest.$ac_ext
23689eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23690_lt_linker_boilerplate=`cat conftest.err`
23691$rm conftest*
23692
23693
John Criswell47fdd832003-07-14 16:52:07 +000023694# Allow CC to be a program name with arguments.
23695lt_save_CC="$CC"
23696CC=${GCJ-"gcj"}
23697compiler=$CC
23698compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023699for cc_temp in $compiler""; do
23700 case $cc_temp in
23701 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23702 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23703 \-*) ;;
23704 *) break;;
23705 esac
23706done
23707cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23708
John Criswell47fdd832003-07-14 16:52:07 +000023709
23710# GCJ did not exist at the time GCC didn't implicitly link libc in.
23711archive_cmds_need_lc_GCJ=no
23712
Reid Spencera773bd52006-08-04 18:18:08 +000023713old_archive_cmds_GCJ=$old_archive_cmds
23714
John Criswell47fdd832003-07-14 16:52:07 +000023715
23716lt_prog_compiler_no_builtin_flag_GCJ=
23717
23718if test "$GCC" = yes; then
23719 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23720
Reid Spencer2706f8c2004-09-19 23:53:36 +000023721
Reid Spencera773bd52006-08-04 18:18:08 +000023722{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23723echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023724if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726else
23727 lt_cv_prog_compiler_rtti_exceptions=no
23728 ac_outfile=conftest.$ac_objext
23729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23730 lt_compiler_flag="-fno-rtti -fno-exceptions"
23731 # Insert the option either (1) after the last *FLAGS variable, or
23732 # (2) before a word containing "conftest.", or (3) at the end.
23733 # Note that $ac_compile itself does not contain backslashes and begins
23734 # with a dollar sign (not a hyphen), so the echo should work correctly.
23735 # The option is referenced via a variable to avoid confusing sed.
23736 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23739 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000023740 (eval echo "\"\$as_me:23740: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023741 (eval "$lt_compile" 2>conftest.err)
23742 ac_status=$?
23743 cat conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000023744 echo "$as_me:23744: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023745 if (exit $ac_status) && test -s "$ac_outfile"; then
23746 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023747 # So say no if there are warnings other than the usual output.
23748 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23750 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023751 lt_cv_prog_compiler_rtti_exceptions=yes
23752 fi
23753 fi
23754 $rm conftest*
23755
23756fi
Reid Spencera773bd52006-08-04 18:18:08 +000023757{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23758echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023759
23760if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23761 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23762else
23763 :
23764fi
23765
23766fi
23767
23768lt_prog_compiler_wl_GCJ=
23769lt_prog_compiler_pic_GCJ=
23770lt_prog_compiler_static_GCJ=
23771
Reid Spencera773bd52006-08-04 18:18:08 +000023772{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23773echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023774
23775 if test "$GCC" = yes; then
23776 lt_prog_compiler_wl_GCJ='-Wl,'
23777 lt_prog_compiler_static_GCJ='-static'
23778
23779 case $host_os in
23780 aix*)
23781 # All AIX code is PIC.
23782 if test "$host_cpu" = ia64; then
23783 # AIX 5 now supports IA64 processor
23784 lt_prog_compiler_static_GCJ='-Bstatic'
23785 fi
23786 ;;
23787
23788 amigaos*)
23789 # FIXME: we need at least 68020 code to build shared libraries, but
23790 # adding the `-m68020' flag to GCC prevents building anything better,
23791 # like `-m68040'.
23792 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23793 ;;
23794
23795 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23796 # PIC is the default for these OSes.
23797 ;;
23798
23799 mingw* | pw32* | os2*)
23800 # This hack is so that the source file can tell whether it is being
23801 # built for inclusion in a dll (and should export symbols for example).
23802 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23803 ;;
23804
23805 darwin* | rhapsody*)
23806 # PIC is the default on this platform
23807 # Common symbols not allowed in MH_DYLIB files
23808 lt_prog_compiler_pic_GCJ='-fno-common'
23809 ;;
23810
Reid Spencera773bd52006-08-04 18:18:08 +000023811 interix3*)
23812 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23813 # Instead, we relocate shared libraries at runtime.
23814 ;;
23815
John Criswell47fdd832003-07-14 16:52:07 +000023816 msdosdjgpp*)
23817 # Just because we use GCC doesn't mean we suddenly get shared libraries
23818 # on systems that don't support them.
23819 lt_prog_compiler_can_build_shared_GCJ=no
23820 enable_shared=no
23821 ;;
23822
23823 sysv4*MP*)
23824 if test -d /usr/nec; then
23825 lt_prog_compiler_pic_GCJ=-Kconform_pic
23826 fi
23827 ;;
23828
23829 hpux*)
23830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23831 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023832 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023833 hppa*64*|ia64*)
23834 # +Z the default
23835 ;;
23836 *)
23837 lt_prog_compiler_pic_GCJ='-fPIC'
23838 ;;
23839 esac
23840 ;;
23841
23842 *)
23843 lt_prog_compiler_pic_GCJ='-fPIC'
23844 ;;
23845 esac
23846 else
23847 # PORTME Check for flag to pass linker flags through the system compiler.
23848 case $host_os in
23849 aix*)
23850 lt_prog_compiler_wl_GCJ='-Wl,'
23851 if test "$host_cpu" = ia64; then
23852 # AIX 5 now supports IA64 processor
23853 lt_prog_compiler_static_GCJ='-Bstatic'
23854 else
23855 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23856 fi
23857 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023858 darwin*)
23859 # PIC is the default on this platform
23860 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023861 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023862 xlc*)
23863 lt_prog_compiler_pic_GCJ='-qnocommon'
23864 lt_prog_compiler_wl_GCJ='-Wl,'
23865 ;;
23866 esac
23867 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023868
23869 mingw* | pw32* | os2*)
23870 # This hack is so that the source file can tell whether it is being
23871 # built for inclusion in a dll (and should export symbols for example).
23872 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23873 ;;
23874
23875 hpux9* | hpux10* | hpux11*)
23876 lt_prog_compiler_wl_GCJ='-Wl,'
23877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23878 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023879 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023880 hppa*64*|ia64*)
23881 # +Z the default
23882 ;;
23883 *)
23884 lt_prog_compiler_pic_GCJ='+Z'
23885 ;;
23886 esac
23887 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23888 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23889 ;;
23890
23891 irix5* | irix6* | nonstopux*)
23892 lt_prog_compiler_wl_GCJ='-Wl,'
23893 # PIC (with -KPIC) is the default.
23894 lt_prog_compiler_static_GCJ='-non_shared'
23895 ;;
23896
23897 newsos6)
23898 lt_prog_compiler_pic_GCJ='-KPIC'
23899 lt_prog_compiler_static_GCJ='-Bstatic'
23900 ;;
23901
23902 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023903 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023904 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023905 lt_prog_compiler_wl_GCJ='-Wl,'
23906 lt_prog_compiler_pic_GCJ='-KPIC'
23907 lt_prog_compiler_static_GCJ='-static'
23908 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023909 pgcc* | pgf77* | pgf90* | pgf95*)
23910 # Portland Group compilers (*not* the Pentium gcc compiler,
23911 # which looks to be a dead project)
23912 lt_prog_compiler_wl_GCJ='-Wl,'
23913 lt_prog_compiler_pic_GCJ='-fpic'
23914 lt_prog_compiler_static_GCJ='-Bstatic'
23915 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023916 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023917 lt_prog_compiler_wl_GCJ='-Wl,'
23918 # All Alpha code is PIC.
23919 lt_prog_compiler_static_GCJ='-non_shared'
23920 ;;
23921 esac
23922 ;;
23923
23924 osf3* | osf4* | osf5*)
23925 lt_prog_compiler_wl_GCJ='-Wl,'
23926 # All OSF/1 code is PIC.
23927 lt_prog_compiler_static_GCJ='-non_shared'
23928 ;;
23929
John Criswell47fdd832003-07-14 16:52:07 +000023930 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023931 lt_prog_compiler_pic_GCJ='-KPIC'
23932 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023933 case $cc_basename in
23934 f77* | f90* | f95*)
23935 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23936 *)
23937 lt_prog_compiler_wl_GCJ='-Wl,';;
23938 esac
John Criswell47fdd832003-07-14 16:52:07 +000023939 ;;
23940
23941 sunos4*)
23942 lt_prog_compiler_wl_GCJ='-Qoption ld '
23943 lt_prog_compiler_pic_GCJ='-PIC'
23944 lt_prog_compiler_static_GCJ='-Bstatic'
23945 ;;
23946
Reid Spencera773bd52006-08-04 18:18:08 +000023947 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023948 lt_prog_compiler_wl_GCJ='-Wl,'
23949 lt_prog_compiler_pic_GCJ='-KPIC'
23950 lt_prog_compiler_static_GCJ='-Bstatic'
23951 ;;
23952
23953 sysv4*MP*)
23954 if test -d /usr/nec ;then
23955 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23956 lt_prog_compiler_static_GCJ='-Bstatic'
23957 fi
23958 ;;
23959
Reid Spencera773bd52006-08-04 18:18:08 +000023960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23961 lt_prog_compiler_wl_GCJ='-Wl,'
23962 lt_prog_compiler_pic_GCJ='-KPIC'
23963 lt_prog_compiler_static_GCJ='-Bstatic'
23964 ;;
23965
23966 unicos*)
23967 lt_prog_compiler_wl_GCJ='-Wl,'
23968 lt_prog_compiler_can_build_shared_GCJ=no
23969 ;;
23970
John Criswell47fdd832003-07-14 16:52:07 +000023971 uts4*)
23972 lt_prog_compiler_pic_GCJ='-pic'
23973 lt_prog_compiler_static_GCJ='-Bstatic'
23974 ;;
23975
23976 *)
23977 lt_prog_compiler_can_build_shared_GCJ=no
23978 ;;
23979 esac
23980 fi
23981
Reid Spencera773bd52006-08-04 18:18:08 +000023982{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23983echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023984
23985#
23986# Check to make sure the PIC flag actually works.
23987#
23988if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023989
Reid Spencera773bd52006-08-04 18:18:08 +000023990{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23991echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023992if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23994else
23995 lt_prog_compiler_pic_works_GCJ=no
23996 ac_outfile=conftest.$ac_objext
23997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23998 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23999 # Insert the option either (1) after the last *FLAGS variable, or
24000 # (2) before a word containing "conftest.", or (3) at the end.
24001 # Note that $ac_compile itself does not contain backslashes and begins
24002 # with a dollar sign (not a hyphen), so the echo should work correctly.
24003 # The option is referenced via a variable to avoid confusing sed.
24004 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24007 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000024008 (eval echo "\"\$as_me:24008: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024009 (eval "$lt_compile" 2>conftest.err)
24010 ac_status=$?
24011 cat conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000024012 echo "$as_me:24012: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024013 if (exit $ac_status) && test -s "$ac_outfile"; then
24014 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024015 # So say no if there are warnings other than the usual output.
24016 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024019 lt_prog_compiler_pic_works_GCJ=yes
24020 fi
24021 fi
24022 $rm conftest*
24023
24024fi
Reid Spencera773bd52006-08-04 18:18:08 +000024025{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24026echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024027
24028if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24029 case $lt_prog_compiler_pic_GCJ in
24030 "" | " "*) ;;
24031 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24032 esac
24033else
24034 lt_prog_compiler_pic_GCJ=
24035 lt_prog_compiler_can_build_shared_GCJ=no
24036fi
24037
24038fi
Reid Spencera773bd52006-08-04 18:18:08 +000024039case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024040 # For platforms which do not support PIC, -DPIC is meaningless:
24041 *djgpp*)
24042 lt_prog_compiler_pic_GCJ=
24043 ;;
24044 *)
24045 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24046 ;;
24047esac
24048
Reid Spencera773bd52006-08-04 18:18:08 +000024049#
24050# Check to make sure the static flag actually works.
24051#
24052wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24053{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24054echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24055if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057else
24058 lt_prog_compiler_static_works_GCJ=no
24059 save_LDFLAGS="$LDFLAGS"
24060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24061 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24063 # The linker can only warn and ignore the option if not recognized
24064 # So say no if there are warnings
24065 if test -s conftest.err; then
24066 # Append any errors to the config.log.
24067 cat conftest.err 1>&5
24068 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24070 if diff conftest.exp conftest.er2 >/dev/null; then
24071 lt_prog_compiler_static_works_GCJ=yes
24072 fi
24073 else
24074 lt_prog_compiler_static_works_GCJ=yes
24075 fi
24076 fi
24077 $rm conftest*
24078 LDFLAGS="$save_LDFLAGS"
24079
24080fi
24081{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24082echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24083
24084if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24085 :
24086else
24087 lt_prog_compiler_static_GCJ=
24088fi
24089
24090
24091{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24092echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024093if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24095else
24096 lt_cv_prog_compiler_c_o_GCJ=no
24097 $rm -r conftest 2>/dev/null
24098 mkdir conftest
24099 cd conftest
24100 mkdir out
24101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24102
John Criswell47fdd832003-07-14 16:52:07 +000024103 lt_compiler_flag="-o out/conftest2.$ac_objext"
24104 # Insert the option either (1) after the last *FLAGS variable, or
24105 # (2) before a word containing "conftest.", or (3) at the end.
24106 # Note that $ac_compile itself does not contain backslashes and begins
24107 # with a dollar sign (not a hyphen), so the echo should work correctly.
24108 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24111 -e 's:$: $lt_compiler_flag:'`
Owen Andersond4b272b2009-05-18 23:58:51 +000024112 (eval echo "\"\$as_me:24112: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024113 (eval "$lt_compile" 2>out/conftest.err)
24114 ac_status=$?
24115 cat out/conftest.err >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000024116 echo "$as_me:24116: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24118 then
24119 # The compiler can only warn and ignore the option if not recognized
24120 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024121 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024124 lt_cv_prog_compiler_c_o_GCJ=yes
24125 fi
24126 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024127 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024128 $rm conftest*
24129 # SGI C++ compiler will create directory out/ii_files/ for
24130 # template instantiation
24131 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24132 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024133 cd ..
24134 rmdir conftest
24135 $rm conftest*
24136
24137fi
Reid Spencera773bd52006-08-04 18:18:08 +000024138{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24139echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024140
24141
24142hard_links="nottested"
24143if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24144 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024145 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24146echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024147 hard_links=yes
24148 $rm conftest*
24149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24150 touch conftest.a
24151 ln conftest.a conftest.b 2>&5 || hard_links=no
24152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024153 { echo "$as_me:$LINENO: result: $hard_links" >&5
24154echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024155 if test "$hard_links" = no; then
24156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24157echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24158 need_locks=warn
24159 fi
24160else
24161 need_locks=no
24162fi
24163
Reid Spencera773bd52006-08-04 18:18:08 +000024164{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24165echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024166
24167 runpath_var=
24168 allow_undefined_flag_GCJ=
24169 enable_shared_with_static_runtimes_GCJ=no
24170 archive_cmds_GCJ=
24171 archive_expsym_cmds_GCJ=
24172 old_archive_From_new_cmds_GCJ=
24173 old_archive_from_expsyms_cmds_GCJ=
24174 export_dynamic_flag_spec_GCJ=
24175 whole_archive_flag_spec_GCJ=
24176 thread_safe_flag_spec_GCJ=
24177 hardcode_libdir_flag_spec_GCJ=
24178 hardcode_libdir_flag_spec_ld_GCJ=
24179 hardcode_libdir_separator_GCJ=
24180 hardcode_direct_GCJ=no
24181 hardcode_minus_L_GCJ=no
24182 hardcode_shlibpath_var_GCJ=unsupported
24183 link_all_deplibs_GCJ=unknown
24184 hardcode_automatic_GCJ=no
24185 module_cmds_GCJ=
24186 module_expsym_cmds_GCJ=
24187 always_export_symbols_GCJ=no
24188 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24189 # include_expsyms should be a list of space-separated symbols to be *always*
24190 # included in the symbol list
24191 include_expsyms_GCJ=
24192 # exclude_expsyms can be an extended regexp of symbols to exclude
24193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24195 # as well as any symbol that contains `d'.
24196 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24198 # platforms (ab)use it in PIC code, but their linkers get confused if
24199 # the symbol is explicitly referenced. Since portable code cannot
24200 # rely on this symbol name, it's probably fine to never include it in
24201 # preloaded symbol tables.
24202 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024203 # Just being paranoid about ensuring that cc_basename is set.
24204 for cc_temp in $compiler""; do
24205 case $cc_temp in
24206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24208 \-*) ;;
24209 *) break;;
24210 esac
24211done
24212cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024213
24214 case $host_os in
24215 cygwin* | mingw* | pw32*)
24216 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24217 # When not using gcc, we currently assume that we are using
24218 # Microsoft Visual C++.
24219 if test "$GCC" != yes; then
24220 with_gnu_ld=no
24221 fi
24222 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024223 interix*)
24224 # we just hope/assume this is gcc and not c89 (= MSVC++)
24225 with_gnu_ld=yes
24226 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024227 openbsd*)
24228 with_gnu_ld=no
24229 ;;
24230 esac
24231
24232 ld_shlibs_GCJ=yes
24233 if test "$with_gnu_ld" = yes; then
24234 # If archive_cmds runs LD, not CC, wlarc should be empty
24235 wlarc='${wl}'
24236
Reid Spencera773bd52006-08-04 18:18:08 +000024237 # Set some defaults for GNU ld with shared library support. These
24238 # are reset later if shared libraries are not supported. Putting them
24239 # here allows them to be overridden if necessary.
24240 runpath_var=LD_RUN_PATH
24241 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24242 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24243 # ancient GNU ld didn't support --whole-archive et. al.
24244 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24245 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24246 else
24247 whole_archive_flag_spec_GCJ=
24248 fi
24249 supports_anon_versioning=no
24250 case `$LD -v 2>/dev/null` in
24251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24254 *\ 2.11.*) ;; # other 2.11 versions
24255 *) supports_anon_versioning=yes ;;
24256 esac
24257
John Criswell47fdd832003-07-14 16:52:07 +000024258 # See if GNU ld supports shared libraries.
24259 case $host_os in
24260 aix3* | aix4* | aix5*)
24261 # On AIX/PPC, the GNU linker is very broken
24262 if test "$host_cpu" != ia64; then
24263 ld_shlibs_GCJ=no
24264 cat <<EOF 1>&2
24265
24266*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24267*** to be unable to reliably create shared libraries on AIX.
24268*** Therefore, libtool is disabling shared libraries support. If you
24269*** really care for shared libraries, you may want to modify your PATH
24270*** so that a non-GNU linker is found, and then restart.
24271
24272EOF
24273 fi
24274 ;;
24275
24276 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024277 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 +000024278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24279 hardcode_minus_L_GCJ=yes
24280
24281 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24282 # that the semantics of dynamic libraries on AmigaOS, at least up
24283 # to version 4, is to share data among multiple programs linked
24284 # with the same dynamic library. Since this doesn't match the
24285 # behavior of shared libraries on other platforms, we can't use
24286 # them.
24287 ld_shlibs_GCJ=no
24288 ;;
24289
24290 beos*)
24291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24292 allow_undefined_flag_GCJ=unsupported
24293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24294 # support --undefined. This deserves some investigation. FIXME
24295 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24296 else
24297 ld_shlibs_GCJ=no
24298 fi
24299 ;;
24300
24301 cygwin* | mingw* | pw32*)
24302 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24303 # as there is no search path for DLLs.
24304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24305 allow_undefined_flag_GCJ=unsupported
24306 always_export_symbols_GCJ=no
24307 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024308 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 +000024309
24310 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024311 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 +000024312 # If the export-symbols file already is a .def file (1st line
24313 # is EXPORTS), use it as is; otherwise, prepend...
24314 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24315 cp $export_symbols $output_objdir/$soname.def;
24316 else
24317 echo EXPORTS > $output_objdir/$soname.def;
24318 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024319 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024320 $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 +000024321 else
Reid Spencera773bd52006-08-04 18:18:08 +000024322 ld_shlibs_GCJ=no
24323 fi
24324 ;;
24325
24326 interix3*)
24327 hardcode_direct_GCJ=no
24328 hardcode_shlibpath_var_GCJ=no
24329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24330 export_dynamic_flag_spec_GCJ='${wl}-E'
24331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24332 # Instead, shared libraries are loaded at an image base (0x10000000 by
24333 # default) and relocated if they conflict, which is a slow very memory
24334 # consuming and fragmenting process. To avoid this, we pick a random,
24335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24337 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'
24338 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'
24339 ;;
24340
24341 linux*)
24342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24343 tmp_addflag=
24344 case $cc_basename,$host_cpu in
24345 pgcc*) # Portland Group C compiler
24346 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'
24347 tmp_addflag=' $pic_flag'
24348 ;;
24349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24350 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'
24351 tmp_addflag=' $pic_flag -Mnomain' ;;
24352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24353 tmp_addflag=' -i_dynamic' ;;
24354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24355 tmp_addflag=' -i_dynamic -nofor_main' ;;
24356 ifc* | ifort*) # Intel Fortran compiler
24357 tmp_addflag=' -nofor_main' ;;
24358 esac
24359 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24360
24361 if test $supports_anon_versioning = yes; then
24362 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24364 $echo "local: *; };" >> $output_objdir/$libname.ver~
24365 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24366 fi
24367 else
24368 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024369 fi
24370 ;;
24371
24372 netbsd*)
24373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24374 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24375 wlarc=
24376 else
24377 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24378 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24379 fi
24380 ;;
24381
Reid Spencera773bd52006-08-04 18:18:08 +000024382 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024383 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24384 ld_shlibs_GCJ=no
24385 cat <<EOF 1>&2
24386
24387*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24388*** create shared libraries on Solaris systems. Therefore, libtool
24389*** is disabling shared libraries support. We urge you to upgrade GNU
24390*** binutils to release 2.9.1 or newer. Another option is to modify
24391*** your PATH or compiler configuration so that the native linker is
24392*** used, and then restart.
24393
24394EOF
24395 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24398 else
24399 ld_shlibs_GCJ=no
24400 fi
24401 ;;
24402
Reid Spencera773bd52006-08-04 18:18:08 +000024403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24404 case `$LD -v 2>&1` in
24405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24406 ld_shlibs_GCJ=no
24407 cat <<_LT_EOF 1>&2
24408
24409*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24410*** reliably create shared libraries on SCO systems. Therefore, libtool
24411*** is disabling shared libraries support. We urge you to upgrade GNU
24412*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24413*** your PATH or compiler configuration so that the native linker is
24414*** used, and then restart.
24415
24416_LT_EOF
24417 ;;
24418 *)
24419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24421 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24422 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24423 else
24424 ld_shlibs_GCJ=no
24425 fi
24426 ;;
24427 esac
24428 ;;
24429
John Criswell47fdd832003-07-14 16:52:07 +000024430 sunos4*)
24431 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24432 wlarc=
24433 hardcode_direct_GCJ=yes
24434 hardcode_shlibpath_var_GCJ=no
24435 ;;
24436
24437 *)
24438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24441 else
24442 ld_shlibs_GCJ=no
24443 fi
24444 ;;
24445 esac
24446
Reid Spencera773bd52006-08-04 18:18:08 +000024447 if test "$ld_shlibs_GCJ" = no; then
24448 runpath_var=
24449 hardcode_libdir_flag_spec_GCJ=
24450 export_dynamic_flag_spec_GCJ=
24451 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024452 fi
24453 else
24454 # PORTME fill in a description of your system's linker (not GNU ld)
24455 case $host_os in
24456 aix3*)
24457 allow_undefined_flag_GCJ=unsupported
24458 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024459 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 +000024460 # Note: this linker hardcodes the directories in LIBPATH if there
24461 # are no directories specified by -L.
24462 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024464 # Neither direct hardcoding nor static linking is supported with a
24465 # broken collect2.
24466 hardcode_direct_GCJ=unsupported
24467 fi
24468 ;;
24469
24470 aix4* | aix5*)
24471 if test "$host_cpu" = ia64; then
24472 # On IA64, the linker does run time linking by default, so we don't
24473 # have to do anything special.
24474 aix_use_runtimelinking=no
24475 exp_sym_flag='-Bexport'
24476 no_entry_flag=""
24477 else
24478 # If we're using GNU nm, then we don't want the "-C" option.
24479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24480 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24481 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'
24482 else
24483 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'
24484 fi
24485 aix_use_runtimelinking=no
24486
24487 # Test if we are trying to use run time linking or normal
24488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24489 # need to do runtime linking.
24490 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24491 for ld_flag in $LDFLAGS; do
24492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24493 aix_use_runtimelinking=yes
24494 break
24495 fi
24496 done
Reid Spencera773bd52006-08-04 18:18:08 +000024497 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024498 esac
24499
24500 exp_sym_flag='-bexport'
24501 no_entry_flag='-bnoentry'
24502 fi
24503
24504 # When large executables or shared objects are built, AIX ld can
24505 # have problems creating the table of contents. If linking a library
24506 # or program results in "error TOC overflow" add -mminimal-toc to
24507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24509
24510 archive_cmds_GCJ=''
24511 hardcode_direct_GCJ=yes
24512 hardcode_libdir_separator_GCJ=':'
24513 link_all_deplibs_GCJ=yes
24514
24515 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024516 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024517 # We only want to do this on AIX 4.2 and lower, the check
24518 # below for broken collect2 doesn't work under 4.3+
24519 collect2name=`${CC} -print-prog-name=collect2`
24520 if test -f "$collect2name" && \
24521 strings "$collect2name" | grep resolve_lib_name >/dev/null
24522 then
24523 # We have reworked collect2
24524 hardcode_direct_GCJ=yes
24525 else
24526 # We have old collect2
24527 hardcode_direct_GCJ=unsupported
24528 # It fails to find uninstalled libraries when the uninstalled
24529 # path is not listed in the libpath. Setting hardcode_minus_L
24530 # to unsupported forces relinking
24531 hardcode_minus_L_GCJ=yes
24532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533 hardcode_libdir_separator_GCJ=
24534 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024535 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024536 esac
24537 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024538 if test "$aix_use_runtimelinking" = yes; then
24539 shared_flag="$shared_flag "'${wl}-G'
24540 fi
John Criswell47fdd832003-07-14 16:52:07 +000024541 else
24542 # not using gcc
24543 if test "$host_cpu" = ia64; then
24544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24545 # chokes on -Wl,-G. The following line is correct:
24546 shared_flag='-G'
24547 else
Reid Spencera773bd52006-08-04 18:18:08 +000024548 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024549 shared_flag='${wl}-G'
24550 else
24551 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024552 fi
John Criswell47fdd832003-07-14 16:52:07 +000024553 fi
24554 fi
24555
24556 # It seems that -bexpall does not export symbols beginning with
24557 # underscore (_), so it is better to generate a list of symbols to export.
24558 always_export_symbols_GCJ=yes
24559 if test "$aix_use_runtimelinking" = yes; then
24560 # Warning - without using the other runtime loading flags (-brtl),
24561 # -berok will link without error, but may produce a broken library.
24562 allow_undefined_flag_GCJ='-berok'
24563 # Determine the default libpath from the value encoded in an empty executable.
24564 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024565/* confdefs.h. */
24566_ACEOF
24567cat confdefs.h >>conftest.$ac_ext
24568cat >>conftest.$ac_ext <<_ACEOF
24569/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024570
John Criswell47fdd832003-07-14 16:52:07 +000024571int
24572main ()
24573{
24574
24575 ;
24576 return 0;
24577}
24578_ACEOF
24579rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024580if { (ac_try="$ac_link"
24581case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24584esac
24585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024587 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024588 grep -v '^ *+' conftest.er1 >conftest.err
24589 rm -f conftest.er1
24590 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024592 (exit $ac_status); } &&
24593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24594 { (case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24597esac
24598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_try") 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest$ac_exeext'
24604 { (case "(($ac_try" in
24605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24606 *) ac_try_echo=$ac_try;;
24607esac
24608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24609 (eval "$ac_try") 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024613
24614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24615}'`
24616# Check for a 64-bit object if we didn't find anything.
24617if 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; }
24618}'`; fi
24619else
24620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024621sed 's/^/| /' conftest.$ac_ext >&5
24622
Reid Spencera773bd52006-08-04 18:18:08 +000024623
John Criswell47fdd832003-07-14 16:52:07 +000024624fi
Reid Spencera773bd52006-08-04 18:18:08 +000024625
Bill Wendlingebcceee2009-04-18 11:20:33 +000024626rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024627 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24629
24630 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024631 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 +000024632 else
24633 if test "$host_cpu" = ia64; then
24634 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24635 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024636 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 +000024637 else
24638 # Determine the default libpath from the value encoded in an empty executable.
24639 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024645
John Criswell47fdd832003-07-14 16:52:07 +000024646int
24647main ()
24648{
24649
24650 ;
24651 return 0;
24652}
24653_ACEOF
24654rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024655if { (ac_try="$ac_link"
24656case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24659esac
24660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024663 grep -v '^ *+' conftest.er1 >conftest.err
24664 rm -f conftest.er1
24665 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24672esac
24673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } &&
24678 { ac_try='test -s conftest$ac_exeext'
24679 { (case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24682esac
24683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684 (eval "$ac_try") 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024688
24689aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24690}'`
24691# Check for a 64-bit object if we didn't find anything.
24692if 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; }
24693}'`; fi
24694else
24695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024696sed 's/^/| /' conftest.$ac_ext >&5
24697
Reid Spencera773bd52006-08-04 18:18:08 +000024698
John Criswell47fdd832003-07-14 16:52:07 +000024699fi
Reid Spencera773bd52006-08-04 18:18:08 +000024700
Bill Wendlingebcceee2009-04-18 11:20:33 +000024701rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024702 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24704
24705 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24706 # Warning - without using the other run time loading flags,
24707 # -berok will link without error, but may produce a broken library.
24708 no_undefined_flag_GCJ=' ${wl}-bernotok'
24709 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024710 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024711 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024712 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024713 # This is similar to how AIX traditionally builds its shared libraries.
24714 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 +000024715 fi
24716 fi
24717 ;;
24718
24719 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024720 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 +000024721 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24722 hardcode_minus_L_GCJ=yes
24723 # see comment about different semantics on the GNU ld section
24724 ld_shlibs_GCJ=no
24725 ;;
24726
Reid Spencer2706f8c2004-09-19 23:53:36 +000024727 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024728 export_dynamic_flag_spec_GCJ=-rdynamic
24729 ;;
24730
24731 cygwin* | mingw* | pw32*)
24732 # When not using gcc, we currently assume that we are using
24733 # Microsoft Visual C++.
24734 # hardcode_libdir_flag_spec is actually meaningless, as there is
24735 # no search path for DLLs.
24736 hardcode_libdir_flag_spec_GCJ=' '
24737 allow_undefined_flag_GCJ=unsupported
24738 # Tell ltmain to make .lib files, not .a files.
24739 libext=lib
24740 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024741 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024742 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024743 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 +000024744 # The linker will automatically build a .lib file if we build a DLL.
24745 old_archive_From_new_cmds_GCJ='true'
24746 # FIXME: Should let the user specify the lib program.
24747 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024748 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024749 enable_shared_with_static_runtimes_GCJ=yes
24750 ;;
24751
24752 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024753 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024754 rhapsody* | darwin1.[012])
24755 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24756 ;;
24757 *) # Darwin 1.3 on
24758 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24759 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24760 else
24761 case ${MACOSX_DEPLOYMENT_TARGET} in
24762 10.[012])
24763 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24764 ;;
24765 10.*)
24766 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24767 ;;
24768 esac
24769 fi
24770 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024771 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024772 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024773 hardcode_direct_GCJ=no
24774 hardcode_automatic_GCJ=yes
24775 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024776 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024777 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024778 if test "$GCC" = yes ; then
24779 output_verbose_link_cmd='echo'
24780 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24781 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024782 # 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 +000024783 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}'
24784 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 +000024785 else
Reid Spencera773bd52006-08-04 18:18:08 +000024786 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024787 xlc*)
24788 output_verbose_link_cmd='echo'
24789 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24790 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024791 # 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 +000024792 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}'
24793 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 +000024794 ;;
24795 *)
24796 ld_shlibs_GCJ=no
24797 ;;
24798 esac
John Criswell47fdd832003-07-14 16:52:07 +000024799 fi
24800 ;;
24801
24802 dgux*)
24803 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24805 hardcode_shlibpath_var_GCJ=no
24806 ;;
24807
24808 freebsd1*)
24809 ld_shlibs_GCJ=no
24810 ;;
24811
24812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24813 # support. Future versions do this automatically, but an explicit c++rt0.o
24814 # does not break anything, and helps significantly (at the cost of a little
24815 # extra space).
24816 freebsd2.2*)
24817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24819 hardcode_direct_GCJ=yes
24820 hardcode_shlibpath_var_GCJ=no
24821 ;;
24822
24823 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24824 freebsd2*)
24825 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24826 hardcode_direct_GCJ=yes
24827 hardcode_minus_L_GCJ=yes
24828 hardcode_shlibpath_var_GCJ=no
24829 ;;
24830
24831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024832 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024833 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24837 ;;
24838
24839 hpux9*)
24840 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024841 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 +000024842 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024843 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 +000024844 fi
24845 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24846 hardcode_libdir_separator_GCJ=:
24847 hardcode_direct_GCJ=yes
24848
24849 # hardcode_minus_L: Not really in the search PATH,
24850 # but as the default location of the library.
24851 hardcode_minus_L_GCJ=yes
24852 export_dynamic_flag_spec_GCJ='${wl}-E'
24853 ;;
24854
Reid Spencera773bd52006-08-04 18:18:08 +000024855 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024856 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024857 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24858 else
24859 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24860 fi
24861 if test "$with_gnu_ld" = no; then
24862 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24863 hardcode_libdir_separator_GCJ=:
24864
24865 hardcode_direct_GCJ=yes
24866 export_dynamic_flag_spec_GCJ='${wl}-E'
24867
24868 # hardcode_minus_L: Not really in the search PATH,
24869 # but as the default location of the library.
24870 hardcode_minus_L_GCJ=yes
24871 fi
24872 ;;
24873
24874 hpux11*)
24875 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24876 case $host_cpu in
24877 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024878 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24879 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024880 ia64*)
24881 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24882 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024883 *)
24884 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24885 ;;
24886 esac
24887 else
Reid Spencera773bd52006-08-04 18:18:08 +000024888 case $host_cpu in
24889 hppa*64*)
24890 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891 ;;
24892 ia64*)
24893 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024894 ;;
24895 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024896 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 +000024897 ;;
24898 esac
24899 fi
24900 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24902 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024903
Reid Spencera773bd52006-08-04 18:18:08 +000024904 case $host_cpu in
24905 hppa*64*|ia64*)
24906 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24907 hardcode_direct_GCJ=no
24908 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024909 ;;
24910 *)
John Criswell47fdd832003-07-14 16:52:07 +000024911 hardcode_direct_GCJ=yes
24912 export_dynamic_flag_spec_GCJ='${wl}-E'
24913
24914 # hardcode_minus_L: Not really in the search PATH,
24915 # but as the default location of the library.
24916 hardcode_minus_L_GCJ=yes
24917 ;;
24918 esac
24919 fi
24920 ;;
24921
24922 irix5* | irix6* | nonstopux*)
24923 if test "$GCC" = yes; then
24924 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'
24925 else
24926 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'
24927 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24928 fi
24929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24930 hardcode_libdir_separator_GCJ=:
24931 link_all_deplibs_GCJ=yes
24932 ;;
24933
24934 netbsd*)
24935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24936 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24937 else
24938 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24939 fi
24940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24941 hardcode_direct_GCJ=yes
24942 hardcode_shlibpath_var_GCJ=no
24943 ;;
24944
24945 newsos6)
24946 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24947 hardcode_direct_GCJ=yes
24948 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24949 hardcode_libdir_separator_GCJ=:
24950 hardcode_shlibpath_var_GCJ=no
24951 ;;
24952
24953 openbsd*)
24954 hardcode_direct_GCJ=yes
24955 hardcode_shlibpath_var_GCJ=no
24956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24957 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024958 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 +000024959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24960 export_dynamic_flag_spec_GCJ='${wl}-E'
24961 else
24962 case $host_os in
24963 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24966 ;;
24967 *)
24968 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24970 ;;
24971 esac
24972 fi
24973 ;;
24974
24975 os2*)
24976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24977 hardcode_minus_L_GCJ=yes
24978 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024979 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 +000024980 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24981 ;;
24982
24983 osf3*)
24984 if test "$GCC" = yes; then
24985 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24986 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'
24987 else
24988 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24989 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'
24990 fi
24991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24992 hardcode_libdir_separator_GCJ=:
24993 ;;
24994
24995 osf4* | osf5*) # as osf3* with the addition of -msym flag
24996 if test "$GCC" = yes; then
24997 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24998 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'
24999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25000 else
25001 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25002 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 +000025003 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 +000025004 $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 +000025005
John Criswell47fdd832003-07-14 16:52:07 +000025006 # Both c and cxx compiler support -rpath directly
25007 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25008 fi
25009 hardcode_libdir_separator_GCJ=:
25010 ;;
25011
John Criswell47fdd832003-07-14 16:52:07 +000025012 solaris*)
25013 no_undefined_flag_GCJ=' -z text'
25014 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025015 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025016 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025017 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25018 $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 +000025019 else
Reid Spencera773bd52006-08-04 18:18:08 +000025020 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025021 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025022 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25023 $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 +000025024 fi
25025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026 hardcode_shlibpath_var_GCJ=no
25027 case $host_os in
25028 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025029 *)
25030 # The compiler driver will combine linker options so we
25031 # cannot just pass the convience library names through
25032 # without $wl, iff we do not link with $LD.
25033 # Luckily, gcc supports the same syntax we need for Sun Studio.
25034 # Supported since Solaris 2.6 (maybe 2.5.1?)
25035 case $wlarc in
25036 '')
25037 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25038 *)
25039 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' ;;
25040 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025041 esac
25042 link_all_deplibs_GCJ=yes
25043 ;;
25044
25045 sunos4*)
25046 if test "x$host_vendor" = xsequent; then
25047 # Use $CC to link under sequent, because it throws in some extra .o
25048 # files that make .init and .fini sections work.
25049 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25050 else
25051 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25052 fi
25053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_direct_GCJ=yes
25055 hardcode_minus_L_GCJ=yes
25056 hardcode_shlibpath_var_GCJ=no
25057 ;;
25058
25059 sysv4)
25060 case $host_vendor in
25061 sni)
25062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25063 hardcode_direct_GCJ=yes # is this really true???
25064 ;;
25065 siemens)
25066 ## LD is ld it makes a PLAMLIB
25067 ## CC just makes a GrossModule.
25068 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25069 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25070 hardcode_direct_GCJ=no
25071 ;;
25072 motorola)
25073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25074 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25075 ;;
25076 esac
25077 runpath_var='LD_RUN_PATH'
25078 hardcode_shlibpath_var_GCJ=no
25079 ;;
25080
25081 sysv4.3*)
25082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25083 hardcode_shlibpath_var_GCJ=no
25084 export_dynamic_flag_spec_GCJ='-Bexport'
25085 ;;
25086
25087 sysv4*MP*)
25088 if test -d /usr/nec; then
25089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25090 hardcode_shlibpath_var_GCJ=no
25091 runpath_var=LD_RUN_PATH
25092 hardcode_runpath_var=yes
25093 ld_shlibs_GCJ=yes
25094 fi
25095 ;;
25096
Reid Spencera773bd52006-08-04 18:18:08 +000025097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25098 no_undefined_flag_GCJ='${wl}-z,text'
25099 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025100 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025101 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025102
John Criswell47fdd832003-07-14 16:52:07 +000025103 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025104 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25105 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 +000025106 else
Reid Spencera773bd52006-08-04 18:18:08 +000025107 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25108 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 +000025109 fi
John Criswell47fdd832003-07-14 16:52:07 +000025110 ;;
25111
Reid Spencera773bd52006-08-04 18:18:08 +000025112 sysv5* | sco3.2v5* | sco5v6*)
25113 # Note: We can NOT use -z defs as we might desire, because we do not
25114 # link with -lc, and that would cause any symbols used from libc to
25115 # always be unresolved, which means just about no library would
25116 # ever link correctly. If we're not using GNU ld we use -z text
25117 # though, which does catch some bad symbols but isn't as heavy-handed
25118 # as -z defs.
25119 no_undefined_flag_GCJ='${wl}-z,text'
25120 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25121 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025122 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025123 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25124 hardcode_libdir_separator_GCJ=':'
25125 link_all_deplibs_GCJ=yes
25126 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025127 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025128
25129 if test "$GCC" = yes; then
25130 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25131 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25132 else
25133 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25134 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25135 fi
John Criswell47fdd832003-07-14 16:52:07 +000025136 ;;
25137
25138 uts4*)
25139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25141 hardcode_shlibpath_var_GCJ=no
25142 ;;
25143
25144 *)
25145 ld_shlibs_GCJ=no
25146 ;;
25147 esac
25148 fi
25149
Reid Spencera773bd52006-08-04 18:18:08 +000025150{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25151echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025152test "$ld_shlibs_GCJ" = no && can_build_shared=no
25153
John Criswell47fdd832003-07-14 16:52:07 +000025154#
25155# Do we need to explicitly link libc?
25156#
25157case "x$archive_cmds_need_lc_GCJ" in
25158x|xyes)
25159 # Assume -lc should be added
25160 archive_cmds_need_lc_GCJ=yes
25161
25162 if test "$enable_shared" = yes && test "$GCC" = yes; then
25163 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025164 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025165 # FIXME: we may have to deal with multi-command sequences.
25166 ;;
25167 '$CC '*)
25168 # Test whether the compiler implicitly links with -lc since on some
25169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25170 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025171 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25172echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025173 $rm conftest*
25174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25175
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177 (eval $ac_compile) 2>&5
25178 ac_status=$?
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } 2>conftest.err; then
25181 soname=conftest
25182 lib=conftest
25183 libobjs=conftest.$ac_objext
25184 deplibs=
25185 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025186 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025187 compiler_flags=-v
25188 linker_flags=-v
25189 verstring=
25190 output_objdir=.
25191 libname=conftest
25192 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25193 allow_undefined_flag_GCJ=
25194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25195 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }
25199 then
25200 archive_cmds_need_lc_GCJ=no
25201 else
25202 archive_cmds_need_lc_GCJ=yes
25203 fi
25204 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25205 else
25206 cat conftest.err 1>&5
25207 fi
25208 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025209 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25210echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025211 ;;
25212 esac
25213 fi
25214 ;;
25215esac
25216
Reid Spencera773bd52006-08-04 18:18:08 +000025217{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25218echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025219library_names_spec=
25220libname_spec='lib$name'
25221soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025222shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025223postinstall_cmds=
25224postuninstall_cmds=
25225finish_cmds=
25226finish_eval=
25227shlibpath_var=
25228shlibpath_overrides_runpath=unknown
25229version_type=none
25230dynamic_linker="$host_os ld.so"
25231sys_lib_dlsearch_path_spec="/lib /usr/lib"
25232if test "$GCC" = yes; then
25233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25235 # if the path contains ";" then we assume it to be the separator
25236 # otherwise default to the standard path separator (i.e. ":") - it is
25237 # assumed that no part of a normal pathname contains ";" but that should
25238 # okay in the real world where ";" in dirpaths is itself problematic.
25239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25240 else
25241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25242 fi
25243else
25244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25245fi
25246need_lib_prefix=unknown
25247hardcode_into_libs=no
25248
25249# when you set need_version to no, make sure it does not cause -set_version
25250# flags to be left without arguments
25251need_version=unknown
25252
25253case $host_os in
25254aix3*)
25255 version_type=linux
25256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25257 shlibpath_var=LIBPATH
25258
25259 # AIX 3 has no versioning support, so we append a major version to the name.
25260 soname_spec='${libname}${release}${shared_ext}$major'
25261 ;;
25262
25263aix4* | aix5*)
25264 version_type=linux
25265 need_lib_prefix=no
25266 need_version=no
25267 hardcode_into_libs=yes
25268 if test "$host_cpu" = ia64; then
25269 # AIX 5 supports IA64
25270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25271 shlibpath_var=LD_LIBRARY_PATH
25272 else
25273 # With GCC up to 2.95.x, collect2 would create an import file
25274 # for dependence libraries. The import file would start with
25275 # the line `#! .'. This would cause the generated library to
25276 # depend on `.', always an invalid library. This was fixed in
25277 # development snapshots of GCC prior to 3.0.
25278 case $host_os in
25279 aix4 | aix4.[01] | aix4.[01].*)
25280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25281 echo ' yes '
25282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25283 :
25284 else
25285 can_build_shared=no
25286 fi
25287 ;;
25288 esac
25289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25290 # soname into executable. Probably we can add versioning support to
25291 # collect2, so additional links can be useful in future.
25292 if test "$aix_use_runtimelinking" = yes; then
25293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25294 # instead of lib<name>.a to let people know that these are not
25295 # typical AIX shared libraries.
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25297 else
25298 # We preserve .a as extension for shared libraries through AIX4.2
25299 # and later when we are not doing run time linking.
25300 library_names_spec='${libname}${release}.a $libname.a'
25301 soname_spec='${libname}${release}${shared_ext}$major'
25302 fi
25303 shlibpath_var=LIBPATH
25304 fi
25305 ;;
25306
25307amigaos*)
25308 library_names_spec='$libname.ixlibrary $libname.a'
25309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025310 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 +000025311 ;;
25312
25313beos*)
25314 library_names_spec='${libname}${shared_ext}'
25315 dynamic_linker="$host_os ld.so"
25316 shlibpath_var=LIBRARY_PATH
25317 ;;
25318
Reid Spencer2706f8c2004-09-19 23:53:36 +000025319bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025320 version_type=linux
25321 need_version=no
25322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25323 soname_spec='${libname}${release}${shared_ext}$major'
25324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25325 shlibpath_var=LD_LIBRARY_PATH
25326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25328 # the default ld.so.conf also contains /usr/contrib/lib and
25329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25330 # libtool to hard-code these into programs
25331 ;;
25332
25333cygwin* | mingw* | pw32*)
25334 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025335 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025336 need_version=no
25337 need_lib_prefix=no
25338
25339 case $GCC,$host_os in
25340 yes,cygwin* | yes,mingw* | yes,pw32*)
25341 library_names_spec='$libname.dll.a'
25342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025343 postinstall_cmds='base_file=`basename \${file}`~
25344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25345 dldir=$destdir/`dirname \$dlpath`~
25346 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025347 $install_prog $dir/$dlname \$dldir/$dlname~
25348 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25350 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025351 $rm \$dlpath'
25352 shlibpath_overrides_runpath=yes
25353
25354 case $host_os in
25355 cygwin*)
25356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25357 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 +000025358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025359 ;;
25360 mingw*)
25361 # MinGW DLLs use traditional 'lib' prefix
25362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25365 # It is most probably a Windows format PATH printed by
25366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25367 # path with ; separators, and with drive letters. We can handle the
25368 # drive letters (cygwin fileutils understands them), so leave them,
25369 # especially as we might pass files found there to a mingw objdump,
25370 # which wouldn't understand a cygwinified path. Ahh.
25371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25372 else
25373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25374 fi
25375 ;;
25376 pw32*)
25377 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025378 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 +000025379 ;;
25380 esac
25381 ;;
25382
25383 *)
25384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25385 ;;
25386 esac
25387 dynamic_linker='Win32 ld.exe'
25388 # FIXME: first we should search . and the directory the executable is in
25389 shlibpath_var=PATH
25390 ;;
25391
25392darwin* | rhapsody*)
25393 dynamic_linker="$host_os dyld"
25394 version_type=darwin
25395 need_lib_prefix=no
25396 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025398 soname_spec='${libname}${release}${major}$shared_ext'
25399 shlibpath_overrides_runpath=yes
25400 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025401 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025403 if test "$GCC" = yes; then
25404 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"`
25405 else
25406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025407 fi
25408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25409 ;;
25410
25411dgux*)
25412 version_type=linux
25413 need_lib_prefix=no
25414 need_version=no
25415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25416 soname_spec='${libname}${release}${shared_ext}$major'
25417 shlibpath_var=LD_LIBRARY_PATH
25418 ;;
25419
25420freebsd1*)
25421 dynamic_linker=no
25422 ;;
25423
Reid Spencer2706f8c2004-09-19 23:53:36 +000025424kfreebsd*-gnu)
25425 version_type=linux
25426 need_lib_prefix=no
25427 need_version=no
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=no
25432 hardcode_into_libs=yes
25433 dynamic_linker='GNU ld.so'
25434 ;;
25435
Reid Spencera773bd52006-08-04 18:18:08 +000025436freebsd* | dragonfly*)
25437 # DragonFly does not have aout. When/if they implement a new
25438 # versioning mechanism, adjust this.
25439 if test -x /usr/bin/objformat; then
25440 objformat=`/usr/bin/objformat`
25441 else
25442 case $host_os in
25443 freebsd[123]*) objformat=aout ;;
25444 *) objformat=elf ;;
25445 esac
25446 fi
John Criswell47fdd832003-07-14 16:52:07 +000025447 version_type=freebsd-$objformat
25448 case $version_type in
25449 freebsd-elf*)
25450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25451 need_version=no
25452 need_lib_prefix=no
25453 ;;
25454 freebsd-*)
25455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25456 need_version=yes
25457 ;;
25458 esac
25459 shlibpath_var=LD_LIBRARY_PATH
25460 case $host_os in
25461 freebsd2*)
25462 shlibpath_overrides_runpath=yes
25463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025464 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025465 shlibpath_overrides_runpath=yes
25466 hardcode_into_libs=yes
25467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025470 shlibpath_overrides_runpath=no
25471 hardcode_into_libs=yes
25472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025473 freebsd*) # from 4.6 on
25474 shlibpath_overrides_runpath=yes
25475 hardcode_into_libs=yes
25476 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025477 esac
25478 ;;
25479
25480gnu*)
25481 version_type=linux
25482 need_lib_prefix=no
25483 need_version=no
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25485 soname_spec='${libname}${release}${shared_ext}$major'
25486 shlibpath_var=LD_LIBRARY_PATH
25487 hardcode_into_libs=yes
25488 ;;
25489
25490hpux9* | hpux10* | hpux11*)
25491 # Give a soname corresponding to the major version so that dld.sl refuses to
25492 # link against other versions.
25493 version_type=sunos
25494 need_lib_prefix=no
25495 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025496 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025497 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025498 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025499 hardcode_into_libs=yes
25500 dynamic_linker="$host_os dld.so"
25501 shlibpath_var=LD_LIBRARY_PATH
25502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 if test "X$HPUX_IA64_MODE" = X32; then
25506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25507 else
25508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25509 fi
25510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25511 ;;
25512 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025513 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025514 hardcode_into_libs=yes
25515 dynamic_linker="$host_os dld.sl"
25516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25519 soname_spec='${libname}${release}${shared_ext}$major'
25520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25522 ;;
25523 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025524 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025525 dynamic_linker="$host_os dld.sl"
25526 shlibpath_var=SHLIB_PATH
25527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25529 soname_spec='${libname}${release}${shared_ext}$major'
25530 ;;
25531 esac
25532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25533 postinstall_cmds='chmod 555 $lib'
25534 ;;
25535
Reid Spencera773bd52006-08-04 18:18:08 +000025536interix3*)
25537 version_type=linux
25538 need_lib_prefix=no
25539 need_version=no
25540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25541 soname_spec='${libname}${release}${shared_ext}$major'
25542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25543 shlibpath_var=LD_LIBRARY_PATH
25544 shlibpath_overrides_runpath=no
25545 hardcode_into_libs=yes
25546 ;;
25547
John Criswell47fdd832003-07-14 16:52:07 +000025548irix5* | irix6* | nonstopux*)
25549 case $host_os in
25550 nonstopux*) version_type=nonstopux ;;
25551 *)
25552 if test "$lt_cv_prog_gnu_ld" = yes; then
25553 version_type=linux
25554 else
25555 version_type=irix
25556 fi ;;
25557 esac
25558 need_lib_prefix=no
25559 need_version=no
25560 soname_spec='${libname}${release}${shared_ext}$major'
25561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25562 case $host_os in
25563 irix5* | nonstopux*)
25564 libsuff= shlibsuff=
25565 ;;
25566 *)
25567 case $LD in # libtool.m4 will add one of these switches to LD
25568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25569 libsuff= shlibsuff= libmagic=32-bit;;
25570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25571 libsuff=32 shlibsuff=N32 libmagic=N32;;
25572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25574 *) libsuff= shlibsuff= libmagic=never-match;;
25575 esac
25576 ;;
25577 esac
25578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25579 shlibpath_overrides_runpath=no
25580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25582 hardcode_into_libs=yes
25583 ;;
25584
25585# No shared lib support for Linux oldld, aout, or coff.
25586linux*oldld* | linux*aout* | linux*coff*)
25587 dynamic_linker=no
25588 ;;
25589
25590# This must be Linux ELF.
25591linux*)
25592 version_type=linux
25593 need_lib_prefix=no
25594 need_version=no
25595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 soname_spec='${libname}${release}${shared_ext}$major'
25597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25598 shlibpath_var=LD_LIBRARY_PATH
25599 shlibpath_overrides_runpath=no
25600 # This implies no fast_install, which is unacceptable.
25601 # Some rework will be needed to allow for fast_install
25602 # before this can be enabled.
25603 hardcode_into_libs=yes
25604
Reid Spencer2706f8c2004-09-19 23:53:36 +000025605 # Append ld.so.conf contents to the search path
25606 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025607 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 +000025608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25609 fi
25610
John Criswell47fdd832003-07-14 16:52:07 +000025611 # We used to test for /lib/ld.so.1 and disable shared libraries on
25612 # powerpc, because MkLinux only supported shared libraries with the
25613 # GNU dynamic linker. Since this was broken with cross compilers,
25614 # most powerpc-linux boxes support dynamic linking these days and
25615 # people can always --disable-shared, the test was removed, and we
25616 # assume the GNU/Linux dynamic linker is in use.
25617 dynamic_linker='GNU/Linux ld.so'
25618 ;;
25619
Reid Spencer2706f8c2004-09-19 23:53:36 +000025620knetbsd*-gnu)
25621 version_type=linux
25622 need_lib_prefix=no
25623 need_version=no
25624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25625 soname_spec='${libname}${release}${shared_ext}$major'
25626 shlibpath_var=LD_LIBRARY_PATH
25627 shlibpath_overrides_runpath=no
25628 hardcode_into_libs=yes
25629 dynamic_linker='GNU ld.so'
25630 ;;
25631
John Criswell47fdd832003-07-14 16:52:07 +000025632netbsd*)
25633 version_type=sunos
25634 need_lib_prefix=no
25635 need_version=no
25636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25639 dynamic_linker='NetBSD (a.out) ld.so'
25640 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025642 soname_spec='${libname}${release}${shared_ext}$major'
25643 dynamic_linker='NetBSD ld.elf_so'
25644 fi
25645 shlibpath_var=LD_LIBRARY_PATH
25646 shlibpath_overrides_runpath=yes
25647 hardcode_into_libs=yes
25648 ;;
25649
25650newsos6)
25651 version_type=linux
25652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 shlibpath_overrides_runpath=yes
25655 ;;
25656
Reid Spencer2706f8c2004-09-19 23:53:36 +000025657nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025658 version_type=linux
25659 need_lib_prefix=no
25660 need_version=no
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 shlibpath_var=LD_LIBRARY_PATH
25664 shlibpath_overrides_runpath=yes
25665 ;;
25666
25667openbsd*)
25668 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025669 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025670 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25672 case $host_os in
25673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25674 *) need_version=no ;;
25675 esac
John Criswell47fdd832003-07-14 16:52:07 +000025676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25678 shlibpath_var=LD_LIBRARY_PATH
25679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25680 case $host_os in
25681 openbsd2.[89] | openbsd2.[89].*)
25682 shlibpath_overrides_runpath=no
25683 ;;
25684 *)
25685 shlibpath_overrides_runpath=yes
25686 ;;
25687 esac
25688 else
25689 shlibpath_overrides_runpath=yes
25690 fi
25691 ;;
25692
25693os2*)
25694 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025695 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025696 need_lib_prefix=no
25697 library_names_spec='$libname${shared_ext} $libname.a'
25698 dynamic_linker='OS/2 ld.exe'
25699 shlibpath_var=LIBPATH
25700 ;;
25701
25702osf3* | osf4* | osf5*)
25703 version_type=osf
25704 need_lib_prefix=no
25705 need_version=no
25706 soname_spec='${libname}${release}${shared_ext}$major'
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25708 shlibpath_var=LD_LIBRARY_PATH
25709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25711 ;;
25712
John Criswell47fdd832003-07-14 16:52:07 +000025713solaris*)
25714 version_type=linux
25715 need_lib_prefix=no
25716 need_version=no
25717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25718 soname_spec='${libname}${release}${shared_ext}$major'
25719 shlibpath_var=LD_LIBRARY_PATH
25720 shlibpath_overrides_runpath=yes
25721 hardcode_into_libs=yes
25722 # ldd complains unless libraries are executable
25723 postinstall_cmds='chmod +x $lib'
25724 ;;
25725
25726sunos4*)
25727 version_type=sunos
25728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25730 shlibpath_var=LD_LIBRARY_PATH
25731 shlibpath_overrides_runpath=yes
25732 if test "$with_gnu_ld" = yes; then
25733 need_lib_prefix=no
25734 fi
25735 need_version=yes
25736 ;;
25737
Reid Spencera773bd52006-08-04 18:18:08 +000025738sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025739 version_type=linux
25740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741 soname_spec='${libname}${release}${shared_ext}$major'
25742 shlibpath_var=LD_LIBRARY_PATH
25743 case $host_vendor in
25744 sni)
25745 shlibpath_overrides_runpath=no
25746 need_lib_prefix=no
25747 export_dynamic_flag_spec='${wl}-Blargedynsym'
25748 runpath_var=LD_RUN_PATH
25749 ;;
25750 siemens)
25751 need_lib_prefix=no
25752 ;;
25753 motorola)
25754 need_lib_prefix=no
25755 need_version=no
25756 shlibpath_overrides_runpath=no
25757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25758 ;;
25759 esac
25760 ;;
25761
25762sysv4*MP*)
25763 if test -d /usr/nec ;then
25764 version_type=linux
25765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25766 soname_spec='$libname${shared_ext}.$major'
25767 shlibpath_var=LD_LIBRARY_PATH
25768 fi
25769 ;;
25770
Reid Spencera773bd52006-08-04 18:18:08 +000025771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25772 version_type=freebsd-elf
25773 need_lib_prefix=no
25774 need_version=no
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 hardcode_into_libs=yes
25779 if test "$with_gnu_ld" = yes; then
25780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25781 shlibpath_overrides_runpath=no
25782 else
25783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25784 shlibpath_overrides_runpath=yes
25785 case $host_os in
25786 sco3.2v5*)
25787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25788 ;;
25789 esac
25790 fi
25791 sys_lib_dlsearch_path_spec='/usr/lib'
25792 ;;
25793
John Criswell47fdd832003-07-14 16:52:07 +000025794uts4*)
25795 version_type=linux
25796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25797 soname_spec='${libname}${release}${shared_ext}$major'
25798 shlibpath_var=LD_LIBRARY_PATH
25799 ;;
25800
25801*)
25802 dynamic_linker=no
25803 ;;
25804esac
Reid Spencera773bd52006-08-04 18:18:08 +000025805{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25806echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025807test "$dynamic_linker" = no && can_build_shared=no
25808
Reid Spencera773bd52006-08-04 18:18:08 +000025809variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25810if test "$GCC" = yes; then
25811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25812fi
25813
25814{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25815echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025816hardcode_action_GCJ=
25817if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25818 test -n "$runpath_var_GCJ" || \
25819 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25820
25821 # We can hardcode non-existant directories.
25822 if test "$hardcode_direct_GCJ" != no &&
25823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25824 # have to relink, otherwise we might link with an installed library
25825 # when we should be linking with a yet-to-be-installed one
25826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25827 test "$hardcode_minus_L_GCJ" != no; then
25828 # Linking always hardcodes the temporary library directory.
25829 hardcode_action_GCJ=relink
25830 else
25831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25832 hardcode_action_GCJ=immediate
25833 fi
25834else
25835 # We cannot hardcode anything, or else we can only hardcode existing
25836 # directories.
25837 hardcode_action_GCJ=unsupported
25838fi
Reid Spencera773bd52006-08-04 18:18:08 +000025839{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25840echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025841
25842if test "$hardcode_action_GCJ" = relink; then
25843 # Fast installation is not supported
25844 enable_fast_install=no
25845elif test "$shlibpath_overrides_runpath" = yes ||
25846 test "$enable_shared" = no; then
25847 # Fast installation is not necessary
25848 enable_fast_install=needless
25849fi
25850
John Criswell47fdd832003-07-14 16:52:07 +000025851
25852# The else clause should only fire when bootstrapping the
25853# libtool distribution, otherwise you forgot to ship ltmain.sh
25854# with your package, and you will get complaints that there are
25855# no rules to generate ltmain.sh.
25856if test -f "$ltmain"; then
25857 # See if we are running on zsh, and set the options which allow our commands through
25858 # without removal of \ escapes.
25859 if test -n "${ZSH_VERSION+set}" ; then
25860 setopt NO_GLOB_SUBST
25861 fi
25862 # Now quote all the things that may contain metacharacters while being
25863 # careful not to overquote the AC_SUBSTed values. We take copies of the
25864 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025865 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 +000025866 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25869 deplibs_check_method reload_flag reload_cmds need_locks \
25870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25871 lt_cv_sys_global_symbol_to_c_name_address \
25872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25873 old_postinstall_cmds old_postuninstall_cmds \
25874 compiler_GCJ \
25875 CC_GCJ \
25876 LD_GCJ \
25877 lt_prog_compiler_wl_GCJ \
25878 lt_prog_compiler_pic_GCJ \
25879 lt_prog_compiler_static_GCJ \
25880 lt_prog_compiler_no_builtin_flag_GCJ \
25881 export_dynamic_flag_spec_GCJ \
25882 thread_safe_flag_spec_GCJ \
25883 whole_archive_flag_spec_GCJ \
25884 enable_shared_with_static_runtimes_GCJ \
25885 old_archive_cmds_GCJ \
25886 old_archive_from_new_cmds_GCJ \
25887 predep_objects_GCJ \
25888 postdep_objects_GCJ \
25889 predeps_GCJ \
25890 postdeps_GCJ \
25891 compiler_lib_search_path_GCJ \
25892 archive_cmds_GCJ \
25893 archive_expsym_cmds_GCJ \
25894 postinstall_cmds_GCJ \
25895 postuninstall_cmds_GCJ \
25896 old_archive_from_expsyms_cmds_GCJ \
25897 allow_undefined_flag_GCJ \
25898 no_undefined_flag_GCJ \
25899 export_symbols_cmds_GCJ \
25900 hardcode_libdir_flag_spec_GCJ \
25901 hardcode_libdir_flag_spec_ld_GCJ \
25902 hardcode_libdir_separator_GCJ \
25903 hardcode_automatic_GCJ \
25904 module_cmds_GCJ \
25905 module_expsym_cmds_GCJ \
25906 lt_cv_prog_compiler_c_o_GCJ \
25907 exclude_expsyms_GCJ \
25908 include_expsyms_GCJ; do
25909
25910 case $var in
25911 old_archive_cmds_GCJ | \
25912 old_archive_from_new_cmds_GCJ | \
25913 archive_cmds_GCJ | \
25914 archive_expsym_cmds_GCJ | \
25915 module_cmds_GCJ | \
25916 module_expsym_cmds_GCJ | \
25917 old_archive_from_expsyms_cmds_GCJ | \
25918 export_symbols_cmds_GCJ | \
25919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25920 postinstall_cmds | postuninstall_cmds | \
25921 old_postinstall_cmds | old_postuninstall_cmds | \
25922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25923 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025924 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 +000025925 ;;
25926 *)
25927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25928 ;;
25929 esac
25930 done
25931
25932 case $lt_echo in
25933 *'\$0 --fallback-echo"')
25934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25935 ;;
25936 esac
25937
25938cfgfile="$ofile"
25939
25940 cat <<__EOF__ >> "$cfgfile"
25941# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25942
25943# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25944
25945# Shell to use when invoking shell scripts.
25946SHELL=$lt_SHELL
25947
25948# Whether or not to build shared libraries.
25949build_libtool_libs=$enable_shared
25950
25951# Whether or not to build static libraries.
25952build_old_libs=$enable_static
25953
25954# Whether or not to add -lc for building shared libraries.
25955build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25956
25957# Whether or not to disallow shared libs when runtime libs are static
25958allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25959
25960# Whether or not to optimize for fast installation.
25961fast_install=$enable_fast_install
25962
25963# The host system.
25964host_alias=$host_alias
25965host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025966host_os=$host_os
25967
25968# The build system.
25969build_alias=$build_alias
25970build=$build
25971build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025972
25973# An echo program that does not interpret backslashes.
25974echo=$lt_echo
25975
25976# The archiver.
25977AR=$lt_AR
25978AR_FLAGS=$lt_AR_FLAGS
25979
25980# A C compiler.
25981LTCC=$lt_LTCC
25982
Reid Spencera773bd52006-08-04 18:18:08 +000025983# LTCC compiler flags.
25984LTCFLAGS=$lt_LTCFLAGS
25985
John Criswell47fdd832003-07-14 16:52:07 +000025986# A language-specific compiler.
25987CC=$lt_compiler_GCJ
25988
25989# Is the compiler the GNU C compiler?
25990with_gcc=$GCC_GCJ
25991
25992# An ERE matcher.
25993EGREP=$lt_EGREP
25994
25995# The linker used to build libraries.
25996LD=$lt_LD_GCJ
25997
25998# Whether we need hard or soft links.
25999LN_S=$lt_LN_S
26000
26001# A BSD-compatible nm program.
26002NM=$lt_NM
26003
26004# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026005STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026006
26007# Used to examine libraries when file_magic_cmd begins "file"
26008MAGIC_CMD=$MAGIC_CMD
26009
26010# Used on cygwin: DLL creation program.
26011DLLTOOL="$DLLTOOL"
26012
26013# Used on cygwin: object dumper.
26014OBJDUMP="$OBJDUMP"
26015
26016# Used on cygwin: assembler.
26017AS="$AS"
26018
26019# The name of the directory that contains temporary libtool files.
26020objdir=$objdir
26021
26022# How to create reloadable object files.
26023reload_flag=$lt_reload_flag
26024reload_cmds=$lt_reload_cmds
26025
26026# How to pass a linker flag through the compiler.
26027wl=$lt_lt_prog_compiler_wl_GCJ
26028
26029# Object file suffix (normally "o").
26030objext="$ac_objext"
26031
26032# Old archive suffix (normally "a").
26033libext="$libext"
26034
26035# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026036shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026037
26038# Executable file suffix (normally "").
26039exeext="$exeext"
26040
26041# Additional compiler flags for building library objects.
26042pic_flag=$lt_lt_prog_compiler_pic_GCJ
26043pic_mode=$pic_mode
26044
26045# What is the maximum length of a command?
26046max_cmd_len=$lt_cv_sys_max_cmd_len
26047
26048# Does compiler simultaneously support -c and -o options?
26049compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26050
Reid Spencera773bd52006-08-04 18:18:08 +000026051# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026052need_locks=$lt_need_locks
26053
26054# Do we need the lib prefix for modules?
26055need_lib_prefix=$need_lib_prefix
26056
26057# Do we need a version for libraries?
26058need_version=$need_version
26059
26060# Whether dlopen is supported.
26061dlopen_support=$enable_dlopen
26062
26063# Whether dlopen of programs is supported.
26064dlopen_self=$enable_dlopen_self
26065
26066# Whether dlopen of statically linked programs is supported.
26067dlopen_self_static=$enable_dlopen_self_static
26068
26069# Compiler flag to prevent dynamic linking.
26070link_static_flag=$lt_lt_prog_compiler_static_GCJ
26071
26072# Compiler flag to turn off builtin functions.
26073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26074
26075# Compiler flag to allow reflexive dlopens.
26076export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26077
26078# Compiler flag to generate shared objects directly from archives.
26079whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26080
26081# Compiler flag to generate thread-safe objects.
26082thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26083
26084# Library versioning type.
26085version_type=$version_type
26086
26087# Format of library name prefix.
26088libname_spec=$lt_libname_spec
26089
26090# List of archive names. First name is the real one, the rest are links.
26091# The last name is the one that the linker finds with -lNAME.
26092library_names_spec=$lt_library_names_spec
26093
26094# The coded name of the library, if different from the real name.
26095soname_spec=$lt_soname_spec
26096
26097# Commands used to build and install an old-style archive.
26098RANLIB=$lt_RANLIB
26099old_archive_cmds=$lt_old_archive_cmds_GCJ
26100old_postinstall_cmds=$lt_old_postinstall_cmds
26101old_postuninstall_cmds=$lt_old_postuninstall_cmds
26102
26103# Create an old-style archive from a shared archive.
26104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26105
26106# Create a temporary old-style archive to link instead of a shared archive.
26107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26108
26109# Commands used to build and install a shared archive.
26110archive_cmds=$lt_archive_cmds_GCJ
26111archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26112postinstall_cmds=$lt_postinstall_cmds
26113postuninstall_cmds=$lt_postuninstall_cmds
26114
26115# Commands used to build a loadable module (assumed same as above if empty)
26116module_cmds=$lt_module_cmds_GCJ
26117module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26118
26119# Commands to strip libraries.
26120old_striplib=$lt_old_striplib
26121striplib=$lt_striplib
26122
26123# Dependencies to place before the objects being linked to create a
26124# shared library.
26125predep_objects=$lt_predep_objects_GCJ
26126
26127# Dependencies to place after the objects being linked to create a
26128# shared library.
26129postdep_objects=$lt_postdep_objects_GCJ
26130
26131# Dependencies to place before the objects being linked to create a
26132# shared library.
26133predeps=$lt_predeps_GCJ
26134
26135# Dependencies to place after the objects being linked to create a
26136# shared library.
26137postdeps=$lt_postdeps_GCJ
26138
26139# The library search path used internally by the compiler when linking
26140# a shared library.
26141compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26142
26143# Method to check whether dependent libraries are shared objects.
26144deplibs_check_method=$lt_deplibs_check_method
26145
26146# Command to use when deplibs_check_method == file_magic.
26147file_magic_cmd=$lt_file_magic_cmd
26148
26149# Flag that allows shared libraries with undefined symbols to be built.
26150allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26151
26152# Flag that forces no undefined symbols.
26153no_undefined_flag=$lt_no_undefined_flag_GCJ
26154
26155# Commands used to finish a libtool library installation in a directory.
26156finish_cmds=$lt_finish_cmds
26157
26158# Same as above, but a single script fragment to be evaled but not shown.
26159finish_eval=$lt_finish_eval
26160
26161# Take the output of nm and produce a listing of raw symbols and C names.
26162global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26163
26164# Transform the output of nm in a proper C declaration
26165global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26166
26167# Transform the output of nm in a C name address pair
26168global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26169
26170# This is the shared library runtime path variable.
26171runpath_var=$runpath_var
26172
26173# This is the shared library path variable.
26174shlibpath_var=$shlibpath_var
26175
26176# Is shlibpath searched before the hard-coded library search path?
26177shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26178
26179# How to hardcode a shared library path into an executable.
26180hardcode_action=$hardcode_action_GCJ
26181
26182# Whether we should hardcode library paths into libraries.
26183hardcode_into_libs=$hardcode_into_libs
26184
26185# Flag to hardcode \$libdir into a binary during linking.
26186# This must work even if \$libdir does not exist.
26187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26188
26189# If ld is used when linking, flag to hardcode \$libdir into
26190# a binary during linking. This must work even if \$libdir does
26191# not exist.
26192hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26193
26194# Whether we need a single -rpath flag with a separated argument.
26195hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26196
26197# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26198# resulting binary.
26199hardcode_direct=$hardcode_direct_GCJ
26200
26201# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26202# resulting binary.
26203hardcode_minus_L=$hardcode_minus_L_GCJ
26204
26205# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26206# the resulting binary.
26207hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26208
26209# Set to yes if building a shared library automatically hardcodes DIR into the library
26210# and all subsequent libraries and executables linked against it.
26211hardcode_automatic=$hardcode_automatic_GCJ
26212
26213# Variables whose values should be saved in libtool wrapper scripts and
26214# restored at relink time.
26215variables_saved_for_relink="$variables_saved_for_relink"
26216
26217# Whether libtool must link a program against all its dependency libraries.
26218link_all_deplibs=$link_all_deplibs_GCJ
26219
26220# Compile-time system search path for libraries
26221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26222
26223# Run-time system search path for libraries
26224sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26225
26226# Fix the shell variable \$srcfile for the compiler.
26227fix_srcfile_path="$fix_srcfile_path_GCJ"
26228
26229# Set to yes if exported symbols are required.
26230always_export_symbols=$always_export_symbols_GCJ
26231
26232# The commands to list exported symbols.
26233export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26234
26235# The commands to extract the exported symbol list from a shared archive.
26236extract_expsyms_cmds=$lt_extract_expsyms_cmds
26237
26238# Symbols that should not be listed in the preloaded symbols.
26239exclude_expsyms=$lt_exclude_expsyms_GCJ
26240
26241# Symbols that must always be exported.
26242include_expsyms=$lt_include_expsyms_GCJ
26243
26244# ### END LIBTOOL TAG CONFIG: $tagname
26245
26246__EOF__
26247
26248
26249else
26250 # If there is no Makefile yet, we rely on a make rule to execute
26251 # `config.status --recheck' to rerun these tests and create the
26252 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026253 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26254 if test -f "$ltmain_in"; then
26255 test -f Makefile && make "$ltmain"
26256 fi
John Criswell47fdd832003-07-14 16:52:07 +000026257fi
26258
26259
26260ac_ext=c
26261ac_cpp='$CPP $CPPFLAGS'
26262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26264ac_compiler_gnu=$ac_cv_c_compiler_gnu
26265
26266CC="$lt_save_CC"
26267
26268 else
26269 tagname=""
26270 fi
26271 ;;
26272
26273 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026274 ac_ext=c
26275ac_cpp='$CPP $CPPFLAGS'
26276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026279
26280
26281# Source file extension for RC test sources.
26282ac_ext=rc
26283
26284# Object file extension for compiled RC test sources.
26285objext=o
26286objext_RC=$objext
26287
26288# Code to be used in simple compile tests
26289lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26290
26291# Code to be used in simple link tests
26292lt_simple_link_test_code="$lt_simple_compile_test_code"
26293
26294# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26295
26296# If no C compiler was specified, use CC.
26297LTCC=${LTCC-"$CC"}
26298
Reid Spencera773bd52006-08-04 18:18:08 +000026299# If no C compiler flags were specified, use CFLAGS.
26300LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26301
John Criswell47fdd832003-07-14 16:52:07 +000026302# Allow CC to be a program name with arguments.
26303compiler=$CC
26304
26305
Reid Spencera773bd52006-08-04 18:18:08 +000026306# save warnings/boilerplate of simple test code
26307ac_outfile=conftest.$ac_objext
26308printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26309eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26310_lt_compiler_boilerplate=`cat conftest.err`
26311$rm conftest*
26312
26313ac_outfile=conftest.$ac_objext
26314printf "$lt_simple_link_test_code" >conftest.$ac_ext
26315eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26316_lt_linker_boilerplate=`cat conftest.err`
26317$rm conftest*
26318
26319
John Criswell47fdd832003-07-14 16:52:07 +000026320# Allow CC to be a program name with arguments.
26321lt_save_CC="$CC"
26322CC=${RC-"windres"}
26323compiler=$CC
26324compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026325for cc_temp in $compiler""; do
26326 case $cc_temp in
26327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26329 \-*) ;;
26330 *) break;;
26331 esac
26332done
26333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26334
John Criswell47fdd832003-07-14 16:52:07 +000026335lt_cv_prog_compiler_c_o_RC=yes
26336
26337# The else clause should only fire when bootstrapping the
26338# libtool distribution, otherwise you forgot to ship ltmain.sh
26339# with your package, and you will get complaints that there are
26340# no rules to generate ltmain.sh.
26341if test -f "$ltmain"; then
26342 # See if we are running on zsh, and set the options which allow our commands through
26343 # without removal of \ escapes.
26344 if test -n "${ZSH_VERSION+set}" ; then
26345 setopt NO_GLOB_SUBST
26346 fi
26347 # Now quote all the things that may contain metacharacters while being
26348 # careful not to overquote the AC_SUBSTed values. We take copies of the
26349 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026350 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 +000026351 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26354 deplibs_check_method reload_flag reload_cmds need_locks \
26355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26356 lt_cv_sys_global_symbol_to_c_name_address \
26357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26358 old_postinstall_cmds old_postuninstall_cmds \
26359 compiler_RC \
26360 CC_RC \
26361 LD_RC \
26362 lt_prog_compiler_wl_RC \
26363 lt_prog_compiler_pic_RC \
26364 lt_prog_compiler_static_RC \
26365 lt_prog_compiler_no_builtin_flag_RC \
26366 export_dynamic_flag_spec_RC \
26367 thread_safe_flag_spec_RC \
26368 whole_archive_flag_spec_RC \
26369 enable_shared_with_static_runtimes_RC \
26370 old_archive_cmds_RC \
26371 old_archive_from_new_cmds_RC \
26372 predep_objects_RC \
26373 postdep_objects_RC \
26374 predeps_RC \
26375 postdeps_RC \
26376 compiler_lib_search_path_RC \
26377 archive_cmds_RC \
26378 archive_expsym_cmds_RC \
26379 postinstall_cmds_RC \
26380 postuninstall_cmds_RC \
26381 old_archive_from_expsyms_cmds_RC \
26382 allow_undefined_flag_RC \
26383 no_undefined_flag_RC \
26384 export_symbols_cmds_RC \
26385 hardcode_libdir_flag_spec_RC \
26386 hardcode_libdir_flag_spec_ld_RC \
26387 hardcode_libdir_separator_RC \
26388 hardcode_automatic_RC \
26389 module_cmds_RC \
26390 module_expsym_cmds_RC \
26391 lt_cv_prog_compiler_c_o_RC \
26392 exclude_expsyms_RC \
26393 include_expsyms_RC; do
26394
26395 case $var in
26396 old_archive_cmds_RC | \
26397 old_archive_from_new_cmds_RC | \
26398 archive_cmds_RC | \
26399 archive_expsym_cmds_RC | \
26400 module_cmds_RC | \
26401 module_expsym_cmds_RC | \
26402 old_archive_from_expsyms_cmds_RC | \
26403 export_symbols_cmds_RC | \
26404 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26405 postinstall_cmds | postuninstall_cmds | \
26406 old_postinstall_cmds | old_postuninstall_cmds | \
26407 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26408 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026409 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 +000026410 ;;
26411 *)
26412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26413 ;;
26414 esac
26415 done
26416
26417 case $lt_echo in
26418 *'\$0 --fallback-echo"')
26419 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26420 ;;
26421 esac
26422
26423cfgfile="$ofile"
26424
26425 cat <<__EOF__ >> "$cfgfile"
26426# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26427
26428# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26429
26430# Shell to use when invoking shell scripts.
26431SHELL=$lt_SHELL
26432
26433# Whether or not to build shared libraries.
26434build_libtool_libs=$enable_shared
26435
26436# Whether or not to build static libraries.
26437build_old_libs=$enable_static
26438
26439# Whether or not to add -lc for building shared libraries.
26440build_libtool_need_lc=$archive_cmds_need_lc_RC
26441
26442# Whether or not to disallow shared libs when runtime libs are static
26443allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26444
26445# Whether or not to optimize for fast installation.
26446fast_install=$enable_fast_install
26447
26448# The host system.
26449host_alias=$host_alias
26450host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026451host_os=$host_os
26452
26453# The build system.
26454build_alias=$build_alias
26455build=$build
26456build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026457
26458# An echo program that does not interpret backslashes.
26459echo=$lt_echo
26460
26461# The archiver.
26462AR=$lt_AR
26463AR_FLAGS=$lt_AR_FLAGS
26464
26465# A C compiler.
26466LTCC=$lt_LTCC
26467
Reid Spencera773bd52006-08-04 18:18:08 +000026468# LTCC compiler flags.
26469LTCFLAGS=$lt_LTCFLAGS
26470
John Criswell47fdd832003-07-14 16:52:07 +000026471# A language-specific compiler.
26472CC=$lt_compiler_RC
26473
26474# Is the compiler the GNU C compiler?
26475with_gcc=$GCC_RC
26476
26477# An ERE matcher.
26478EGREP=$lt_EGREP
26479
26480# The linker used to build libraries.
26481LD=$lt_LD_RC
26482
26483# Whether we need hard or soft links.
26484LN_S=$lt_LN_S
26485
26486# A BSD-compatible nm program.
26487NM=$lt_NM
26488
26489# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026490STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026491
26492# Used to examine libraries when file_magic_cmd begins "file"
26493MAGIC_CMD=$MAGIC_CMD
26494
26495# Used on cygwin: DLL creation program.
26496DLLTOOL="$DLLTOOL"
26497
26498# Used on cygwin: object dumper.
26499OBJDUMP="$OBJDUMP"
26500
26501# Used on cygwin: assembler.
26502AS="$AS"
26503
26504# The name of the directory that contains temporary libtool files.
26505objdir=$objdir
26506
26507# How to create reloadable object files.
26508reload_flag=$lt_reload_flag
26509reload_cmds=$lt_reload_cmds
26510
26511# How to pass a linker flag through the compiler.
26512wl=$lt_lt_prog_compiler_wl_RC
26513
26514# Object file suffix (normally "o").
26515objext="$ac_objext"
26516
26517# Old archive suffix (normally "a").
26518libext="$libext"
26519
26520# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026521shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026522
26523# Executable file suffix (normally "").
26524exeext="$exeext"
26525
26526# Additional compiler flags for building library objects.
26527pic_flag=$lt_lt_prog_compiler_pic_RC
26528pic_mode=$pic_mode
26529
26530# What is the maximum length of a command?
26531max_cmd_len=$lt_cv_sys_max_cmd_len
26532
26533# Does compiler simultaneously support -c and -o options?
26534compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26535
Reid Spencera773bd52006-08-04 18:18:08 +000026536# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026537need_locks=$lt_need_locks
26538
26539# Do we need the lib prefix for modules?
26540need_lib_prefix=$need_lib_prefix
26541
26542# Do we need a version for libraries?
26543need_version=$need_version
26544
26545# Whether dlopen is supported.
26546dlopen_support=$enable_dlopen
26547
26548# Whether dlopen of programs is supported.
26549dlopen_self=$enable_dlopen_self
26550
26551# Whether dlopen of statically linked programs is supported.
26552dlopen_self_static=$enable_dlopen_self_static
26553
26554# Compiler flag to prevent dynamic linking.
26555link_static_flag=$lt_lt_prog_compiler_static_RC
26556
26557# Compiler flag to turn off builtin functions.
26558no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26559
26560# Compiler flag to allow reflexive dlopens.
26561export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26562
26563# Compiler flag to generate shared objects directly from archives.
26564whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26565
26566# Compiler flag to generate thread-safe objects.
26567thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26568
26569# Library versioning type.
26570version_type=$version_type
26571
26572# Format of library name prefix.
26573libname_spec=$lt_libname_spec
26574
26575# List of archive names. First name is the real one, the rest are links.
26576# The last name is the one that the linker finds with -lNAME.
26577library_names_spec=$lt_library_names_spec
26578
26579# The coded name of the library, if different from the real name.
26580soname_spec=$lt_soname_spec
26581
26582# Commands used to build and install an old-style archive.
26583RANLIB=$lt_RANLIB
26584old_archive_cmds=$lt_old_archive_cmds_RC
26585old_postinstall_cmds=$lt_old_postinstall_cmds
26586old_postuninstall_cmds=$lt_old_postuninstall_cmds
26587
26588# Create an old-style archive from a shared archive.
26589old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26590
26591# Create a temporary old-style archive to link instead of a shared archive.
26592old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26593
26594# Commands used to build and install a shared archive.
26595archive_cmds=$lt_archive_cmds_RC
26596archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26597postinstall_cmds=$lt_postinstall_cmds
26598postuninstall_cmds=$lt_postuninstall_cmds
26599
26600# Commands used to build a loadable module (assumed same as above if empty)
26601module_cmds=$lt_module_cmds_RC
26602module_expsym_cmds=$lt_module_expsym_cmds_RC
26603
26604# Commands to strip libraries.
26605old_striplib=$lt_old_striplib
26606striplib=$lt_striplib
26607
26608# Dependencies to place before the objects being linked to create a
26609# shared library.
26610predep_objects=$lt_predep_objects_RC
26611
26612# Dependencies to place after the objects being linked to create a
26613# shared library.
26614postdep_objects=$lt_postdep_objects_RC
26615
26616# Dependencies to place before the objects being linked to create a
26617# shared library.
26618predeps=$lt_predeps_RC
26619
26620# Dependencies to place after the objects being linked to create a
26621# shared library.
26622postdeps=$lt_postdeps_RC
26623
26624# The library search path used internally by the compiler when linking
26625# a shared library.
26626compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26627
26628# Method to check whether dependent libraries are shared objects.
26629deplibs_check_method=$lt_deplibs_check_method
26630
26631# Command to use when deplibs_check_method == file_magic.
26632file_magic_cmd=$lt_file_magic_cmd
26633
26634# Flag that allows shared libraries with undefined symbols to be built.
26635allow_undefined_flag=$lt_allow_undefined_flag_RC
26636
26637# Flag that forces no undefined symbols.
26638no_undefined_flag=$lt_no_undefined_flag_RC
26639
26640# Commands used to finish a libtool library installation in a directory.
26641finish_cmds=$lt_finish_cmds
26642
26643# Same as above, but a single script fragment to be evaled but not shown.
26644finish_eval=$lt_finish_eval
26645
26646# Take the output of nm and produce a listing of raw symbols and C names.
26647global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26648
26649# Transform the output of nm in a proper C declaration
26650global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26651
26652# Transform the output of nm in a C name address pair
26653global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26654
26655# This is the shared library runtime path variable.
26656runpath_var=$runpath_var
26657
26658# This is the shared library path variable.
26659shlibpath_var=$shlibpath_var
26660
26661# Is shlibpath searched before the hard-coded library search path?
26662shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26663
26664# How to hardcode a shared library path into an executable.
26665hardcode_action=$hardcode_action_RC
26666
26667# Whether we should hardcode library paths into libraries.
26668hardcode_into_libs=$hardcode_into_libs
26669
26670# Flag to hardcode \$libdir into a binary during linking.
26671# This must work even if \$libdir does not exist.
26672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26673
26674# If ld is used when linking, flag to hardcode \$libdir into
26675# a binary during linking. This must work even if \$libdir does
26676# not exist.
26677hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26678
26679# Whether we need a single -rpath flag with a separated argument.
26680hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26681
26682# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26683# resulting binary.
26684hardcode_direct=$hardcode_direct_RC
26685
26686# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26687# resulting binary.
26688hardcode_minus_L=$hardcode_minus_L_RC
26689
26690# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26691# the resulting binary.
26692hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26693
26694# Set to yes if building a shared library automatically hardcodes DIR into the library
26695# and all subsequent libraries and executables linked against it.
26696hardcode_automatic=$hardcode_automatic_RC
26697
26698# Variables whose values should be saved in libtool wrapper scripts and
26699# restored at relink time.
26700variables_saved_for_relink="$variables_saved_for_relink"
26701
26702# Whether libtool must link a program against all its dependency libraries.
26703link_all_deplibs=$link_all_deplibs_RC
26704
26705# Compile-time system search path for libraries
26706sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26707
26708# Run-time system search path for libraries
26709sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26710
26711# Fix the shell variable \$srcfile for the compiler.
26712fix_srcfile_path="$fix_srcfile_path_RC"
26713
26714# Set to yes if exported symbols are required.
26715always_export_symbols=$always_export_symbols_RC
26716
26717# The commands to list exported symbols.
26718export_symbols_cmds=$lt_export_symbols_cmds_RC
26719
26720# The commands to extract the exported symbol list from a shared archive.
26721extract_expsyms_cmds=$lt_extract_expsyms_cmds
26722
26723# Symbols that should not be listed in the preloaded symbols.
26724exclude_expsyms=$lt_exclude_expsyms_RC
26725
26726# Symbols that must always be exported.
26727include_expsyms=$lt_include_expsyms_RC
26728
26729# ### END LIBTOOL TAG CONFIG: $tagname
26730
26731__EOF__
26732
26733
26734else
26735 # If there is no Makefile yet, we rely on a make rule to execute
26736 # `config.status --recheck' to rerun these tests and create the
26737 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026738 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26739 if test -f "$ltmain_in"; then
26740 test -f Makefile && make "$ltmain"
26741 fi
John Criswell47fdd832003-07-14 16:52:07 +000026742fi
26743
26744
26745ac_ext=c
26746ac_cpp='$CPP $CPPFLAGS'
26747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26749ac_compiler_gnu=$ac_cv_c_compiler_gnu
26750
26751CC="$lt_save_CC"
26752
26753 ;;
26754
26755 *)
26756 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26757echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26758 { (exit 1); exit 1; }; }
26759 ;;
26760 esac
26761
26762 # Append the new tag name to the list of available tags.
26763 if test -n "$tagname" ; then
26764 available_tags="$available_tags $tagname"
26765 fi
26766 fi
26767 done
26768 IFS="$lt_save_ifs"
26769
26770 # Now substitute the updated list of available tags.
26771 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26772 mv "${ofile}T" "$ofile"
26773 chmod +x "$ofile"
26774 else
26775 rm -f "${ofile}T"
26776 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26777echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26778 { (exit 1); exit 1; }; }
26779 fi
26780fi
John Criswell7a73b802003-06-30 21:59:07 +000026781
26782
26783
26784# This can be used to rebuild libtool when needed
26785LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26786
26787# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026788LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026789
26790# Prevent multiple expansion
26791
26792
26793
John Criswell47fdd832003-07-14 16:52:07 +000026794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026811
Reid Spencer582a23c2004-12-29 07:07:57 +000026812if test "$lt_cv_dlopen_self" = "yes" ; then
26813
26814cat >>confdefs.h <<\_ACEOF
26815#define CAN_DLOPEN_SELF 1
26816_ACEOF
26817
26818fi
26819
Douglas Gregor01746742009-05-11 18:05:52 +000026820
Reid Spencer7931a782004-12-27 06:15:02 +000026821if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026822 LLVMGCC="llvm-gcc${EXEEXT}"
26823 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026824 LLVMGCCCOMMAND="$LLVMGCC"
26825 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026826 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26827
26828 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26829
Reid Spencerc84492c2005-06-02 22:34:49 +000026830 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26831set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026834if test "${ac_cv_path_LLVMGCC+set}" = set; then
26835 echo $ECHO_N "(cached) $ECHO_C" >&6
26836else
26837 case $LLVMGCC in
26838 [\\/]* | ?:[\\/]*)
26839 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26840 ;;
26841 *)
26842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26843for as_dir in $PATH
26844do
26845 IFS=$as_save_IFS
26846 test -z "$as_dir" && as_dir=.
26847 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026848 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 +000026849 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26851 break 2
26852 fi
26853done
26854done
Reid Spencera773bd52006-08-04 18:18:08 +000026855IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026856
Reid Spencer59473af2004-12-25 07:31:29 +000026857 ;;
26858esac
26859fi
26860LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026861if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026862 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26863echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026864else
Reid Spencera773bd52006-08-04 18:18:08 +000026865 { echo "$as_me:$LINENO: result: no" >&5
26866echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026867fi
26868
Reid Spencera773bd52006-08-04 18:18:08 +000026869
Reid Spencerc84492c2005-06-02 22:34:49 +000026870 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26871set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026874if test "${ac_cv_path_LLVMGXX+set}" = set; then
26875 echo $ECHO_N "(cached) $ECHO_C" >&6
26876else
26877 case $LLVMGXX in
26878 [\\/]* | ?:[\\/]*)
26879 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26880 ;;
26881 *)
26882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883for as_dir in $PATH
26884do
26885 IFS=$as_save_IFS
26886 test -z "$as_dir" && as_dir=.
26887 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026888 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 +000026889 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26891 break 2
26892 fi
26893done
26894done
Reid Spencera773bd52006-08-04 18:18:08 +000026895IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026896
Reid Spencer59473af2004-12-25 07:31:29 +000026897 ;;
26898esac
26899fi
26900LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026901if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026902 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26903echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026904else
Reid Spencera773bd52006-08-04 18:18:08 +000026905 { echo "$as_me:$LINENO: result: no" >&5
26906echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026907fi
26908
Reid Spencera773bd52006-08-04 18:18:08 +000026909
Reid Spencer59473af2004-12-25 07:31:29 +000026910else
Devang Patel5d28b882007-12-04 22:54:47 +000026911 if test -z "$LLVMGCC"; then
26912 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026913 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000026914 fi
26915 if test -z "$LLVMGXX"; then
26916 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026917 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000026918 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026919
Reid Spencer59473af2004-12-25 07:31:29 +000026920 LLVMGCC=$LLVMGCC
26921
26922 LLVMGXX=$LLVMGXX
26923
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026924 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26925
26926 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26927
Reid Spencer59473af2004-12-25 07:31:29 +000026928fi
26929
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026930
Reid Spencera773bd52006-08-04 18:18:08 +000026931{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26932echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026933
Reid Spencer86901802004-12-08 23:07:27 +000026934ICC=no
26935IXX=no
26936case $CC in
26937 icc*|icpc*)
26938 ICC=yes
26939 IXX=yes
26940 ;;
26941 *)
26942 ;;
26943esac
26944
Duraid Madina937c60a2006-02-15 07:57:42 +000026945if test "$GCC" != "yes" && test "$ICC" != "yes"
26946then
26947 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26948echo "$as_me: error: gcc|icc required but not found" >&2;}
26949 { (exit 1); exit 1; }; }
26950fi
26951
26952if test "$GXX" != "yes" && test "$IXX" != "yes"
26953then
26954 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26955echo "$as_me: error: g++|icc required but not found" >&2;}
26956 { (exit 1); exit 1; }; }
26957fi
26958
Reid Spencer86901802004-12-08 23:07:27 +000026959if test "$GCC" = "yes"
26960then
Chris Lattner399c7c72008-02-05 19:43:53 +000026961 cat >conftest.$ac_ext <<_ACEOF
26962#if !defined(__GNUC__) || __GNUC__ < 3
26963#error Unsupported GCC version
26964#endif
26965
26966_ACEOF
26967rm -f conftest.$ac_objext
26968if { (ac_try="$ac_compile"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_compile") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000026980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26982 { (case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26985esac
26986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_try") 2>&5
26988 ac_status=$?
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; } &&
26991 { ac_try='test -s conftest.$ac_objext'
26992 { (case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995esac
26996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_try") 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027001 :
27002else
27003 echo "$as_me: failed program was:" >&5
27004sed 's/^/| /' conftest.$ac_ext >&5
27005
27006 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027007echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27008 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027009fi
27010
27011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027012fi
27013
27014if test -z "$llvm_cv_gnu_make_command"
27015then
27016 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27017echo "$as_me: error: GNU Make required but not found" >&2;}
27018 { (exit 1); exit 1; }; }
27019fi
27020
Reid Spencera773bd52006-08-04 18:18:08 +000027021{ echo "$as_me:$LINENO: result: ok" >&5
27022echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027023
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027024
John Criswell7a73b802003-06-30 21:59:07 +000027025
Reid Spencera773bd52006-08-04 18:18:08 +000027026{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27027echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027028if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27030else
27031 ac_check_lib_save_LIBS=$LIBS
27032LIBS="-lelf $LIBS"
27033cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027034/* confdefs.h. */
27035_ACEOF
27036cat confdefs.h >>conftest.$ac_ext
27037cat >>conftest.$ac_ext <<_ACEOF
27038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027039
Reid Spencera773bd52006-08-04 18:18:08 +000027040/* Override any GCC internal prototype to avoid an error.
27041 Use char because int might match the return type of a GCC
27042 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027043#ifdef __cplusplus
27044extern "C"
27045#endif
John Criswell7a73b802003-06-30 21:59:07 +000027046char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027047int
27048main ()
27049{
Reid Spencera773bd52006-08-04 18:18:08 +000027050return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027051 ;
27052 return 0;
27053}
27054_ACEOF
27055rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027056if { (ac_try="$ac_link"
27057case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27060esac
27061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027063 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027068 (exit $ac_status); } &&
27069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27070 { (case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27073esac
27074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_try") 2>&5
27076 ac_status=$?
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; } &&
27079 { ac_try='test -s conftest$ac_exeext'
27080 { (case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27083esac
27084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_try") 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027089 ac_cv_lib_elf_elf_begin=yes
27090else
27091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027092sed 's/^/| /' conftest.$ac_ext >&5
27093
Reid Spencera773bd52006-08-04 18:18:08 +000027094 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027095fi
Reid Spencera773bd52006-08-04 18:18:08 +000027096
Bill Wendlingebcceee2009-04-18 11:20:33 +000027097rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027098 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027099LIBS=$ac_check_lib_save_LIBS
27100fi
Reid Spencera773bd52006-08-04 18:18:08 +000027101{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27102echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027103if test $ac_cv_lib_elf_elf_begin = yes; then
27104 cat >>confdefs.h <<_ACEOF
27105#define HAVE_LIBELF 1
27106_ACEOF
27107
27108 LIBS="-lelf $LIBS"
27109
27110fi
27111
27112
Reid Spencera773bd52006-08-04 18:18:08 +000027113{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27114echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027115if test "${ac_cv_lib_m_sin+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 ac_check_lib_save_LIBS=$LIBS
27119LIBS="-lm $LIBS"
27120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
27126
Reid Spencera773bd52006-08-04 18:18:08 +000027127/* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027130#ifdef __cplusplus
27131extern "C"
27132#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027133char sin ();
27134int
27135main ()
27136{
Reid Spencera773bd52006-08-04 18:18:08 +000027137return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027143if { (ac_try="$ac_link"
27144case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27147esac
27148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027150 ac_status=$?
27151 grep -v '^ *+' conftest.er1 >conftest.err
27152 rm -f conftest.er1
27153 cat conftest.err >&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027155 (exit $ac_status); } &&
27156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27157 { (case "(($ac_try" in
27158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27159 *) ac_try_echo=$ac_try;;
27160esac
27161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27162 (eval "$ac_try") 2>&5
27163 ac_status=$?
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); }; } &&
27166 { ac_try='test -s conftest$ac_exeext'
27167 { (case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27170esac
27171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_try") 2>&5
27173 ac_status=$?
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027176 ac_cv_lib_m_sin=yes
27177else
27178 echo "$as_me: failed program was:" >&5
27179sed 's/^/| /' conftest.$ac_ext >&5
27180
Reid Spencera773bd52006-08-04 18:18:08 +000027181 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027182fi
Reid Spencera773bd52006-08-04 18:18:08 +000027183
Bill Wendlingebcceee2009-04-18 11:20:33 +000027184rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027185 conftest$ac_exeext conftest.$ac_ext
27186LIBS=$ac_check_lib_save_LIBS
27187fi
Reid Spencera773bd52006-08-04 18:18:08 +000027188{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27189echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027190if test $ac_cv_lib_m_sin = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192#define HAVE_LIBM 1
27193_ACEOF
27194
27195 LIBS="-lm $LIBS"
27196
27197fi
27198
Jeff Cohen28783c32007-01-12 18:22:38 +000027199if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027200
Reid Spencera773bd52006-08-04 18:18:08 +000027201{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27202echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027203if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027204 echo $ECHO_N "(cached) $ECHO_C" >&6
27205else
27206 ac_check_lib_save_LIBS=$LIBS
27207LIBS="-limagehlp $LIBS"
27208cat >conftest.$ac_ext <<_ACEOF
27209/* confdefs.h. */
27210_ACEOF
27211cat confdefs.h >>conftest.$ac_ext
27212cat >>conftest.$ac_ext <<_ACEOF
27213/* end confdefs.h. */
27214
Reid Spencer48fdf912006-06-01 19:03:21 +000027215
Reid Spencer484fc8e2006-06-01 16:55:59 +000027216int
27217main ()
27218{
Reid Spencera773bd52006-08-04 18:18:08 +000027219return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027220 ;
27221 return 0;
27222}
27223_ACEOF
27224rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027225if { (ac_try="$ac_link"
27226case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027232 ac_status=$?
27233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027237 (exit $ac_status); } &&
27238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242esac
27243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest$ac_exeext'
27249 { (case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27252esac
27253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_try") 2>&5
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027258 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027259else
27260 echo "$as_me: failed program was:" >&5
27261sed 's/^/| /' conftest.$ac_ext >&5
27262
Reid Spencera773bd52006-08-04 18:18:08 +000027263 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027264fi
Reid Spencera773bd52006-08-04 18:18:08 +000027265
Bill Wendlingebcceee2009-04-18 11:20:33 +000027266rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027267 conftest$ac_exeext conftest.$ac_ext
27268LIBS=$ac_check_lib_save_LIBS
27269fi
Reid Spencera773bd52006-08-04 18:18:08 +000027270{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27271echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027272if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027273 cat >>confdefs.h <<_ACEOF
27274#define HAVE_LIBIMAGEHLP 1
27275_ACEOF
27276
27277 LIBS="-limagehlp $LIBS"
27278
27279fi
27280
27281
Reid Spencera773bd52006-08-04 18:18:08 +000027282{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27283echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027284if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027285 echo $ECHO_N "(cached) $ECHO_C" >&6
27286else
27287 ac_check_lib_save_LIBS=$LIBS
27288LIBS="-lpsapi $LIBS"
27289cat >conftest.$ac_ext <<_ACEOF
27290/* confdefs.h. */
27291_ACEOF
27292cat confdefs.h >>conftest.$ac_ext
27293cat >>conftest.$ac_ext <<_ACEOF
27294/* end confdefs.h. */
27295
Reid Spencer48fdf912006-06-01 19:03:21 +000027296
Reid Spencer484fc8e2006-06-01 16:55:59 +000027297int
27298main ()
27299{
Reid Spencera773bd52006-08-04 18:18:08 +000027300return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027301 ;
27302 return 0;
27303}
27304_ACEOF
27305rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027306if { (ac_try="$ac_link"
27307case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27310esac
27311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027313 ac_status=$?
27314 grep -v '^ *+' conftest.er1 >conftest.err
27315 rm -f conftest.er1
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027318 (exit $ac_status); } &&
27319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320 { (case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27323esac
27324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_try") 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest$ac_exeext'
27330 { (case "(($ac_try" in
27331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27333esac
27334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335 (eval "$ac_try") 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027339 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027340else
27341 echo "$as_me: failed program was:" >&5
27342sed 's/^/| /' conftest.$ac_ext >&5
27343
Reid Spencera773bd52006-08-04 18:18:08 +000027344 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027345fi
Reid Spencera773bd52006-08-04 18:18:08 +000027346
Bill Wendlingebcceee2009-04-18 11:20:33 +000027347rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027348 conftest$ac_exeext conftest.$ac_ext
27349LIBS=$ac_check_lib_save_LIBS
27350fi
Reid Spencera773bd52006-08-04 18:18:08 +000027351{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27352echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027353if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027354 cat >>confdefs.h <<_ACEOF
27355#define HAVE_LIBPSAPI 1
27356_ACEOF
27357
27358 LIBS="-lpsapi $LIBS"
27359
27360fi
27361
27362fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027363
Reid Spencera773bd52006-08-04 18:18:08 +000027364{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27365echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027366if test "${ac_cv_search_dlopen+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27368else
27369 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027370cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027371/* confdefs.h. */
27372_ACEOF
27373cat confdefs.h >>conftest.$ac_ext
27374cat >>conftest.$ac_ext <<_ACEOF
27375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027376
Reid Spencera773bd52006-08-04 18:18:08 +000027377/* Override any GCC internal prototype to avoid an error.
27378 Use char because int might match the return type of a GCC
27379 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027380#ifdef __cplusplus
27381extern "C"
27382#endif
John Criswell7a73b802003-06-30 21:59:07 +000027383char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027384int
27385main ()
27386{
Reid Spencera773bd52006-08-04 18:18:08 +000027387return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027388 ;
27389 return 0;
27390}
27391_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027392for ac_lib in '' dl; do
27393 if test -z "$ac_lib"; then
27394 ac_res="none required"
27395 else
27396 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027398 fi
27399 rm -f conftest.$ac_objext conftest$ac_exeext
27400if { (ac_try="$ac_link"
27401case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27404esac
27405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027407 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027408 grep -v '^ *+' conftest.er1 >conftest.err
27409 rm -f conftest.er1
27410 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027412 (exit $ac_status); } &&
27413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417esac
27418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; } &&
27423 { ac_try='test -s conftest$ac_exeext'
27424 { (case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27427esac
27428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_try") 2>&5
27430 ac_status=$?
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027433 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027434else
27435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027436sed 's/^/| /' conftest.$ac_ext >&5
27437
Reid Spencera773bd52006-08-04 18:18:08 +000027438
John Criswell7a73b802003-06-30 21:59:07 +000027439fi
Reid Spencera773bd52006-08-04 18:18:08 +000027440
Bill Wendlingebcceee2009-04-18 11:20:33 +000027441rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027442 conftest$ac_exeext
27443 if test "${ac_cv_search_dlopen+set}" = set; then
27444 break
John Criswell7a73b802003-06-30 21:59:07 +000027445fi
Reid Spencera773bd52006-08-04 18:18:08 +000027446done
27447if test "${ac_cv_search_dlopen+set}" = set; then
27448 :
27449else
27450 ac_cv_search_dlopen=no
27451fi
27452rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027453LIBS=$ac_func_search_save_LIBS
27454fi
Reid Spencera773bd52006-08-04 18:18:08 +000027455{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27456echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27457ac_res=$ac_cv_search_dlopen
27458if test "$ac_res" != no; then
27459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027460
27461cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027462#define HAVE_DLOPEN 1
27463_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027464
27465else
Brian Gaekec45be042003-10-07 06:01:34 +000027466 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27467echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027468fi
27469
27470
Nick Lewycky267fddb2009-04-13 04:26:27 +000027471{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27472echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27473if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027474 echo $ECHO_N "(cached) $ECHO_C" >&6
27475else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027476 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027477cat >conftest.$ac_ext <<_ACEOF
27478/* confdefs.h. */
27479_ACEOF
27480cat confdefs.h >>conftest.$ac_ext
27481cat >>conftest.$ac_ext <<_ACEOF
27482/* end confdefs.h. */
27483
27484/* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27487#ifdef __cplusplus
27488extern "C"
27489#endif
27490char ffi_call ();
27491int
27492main ()
27493{
27494return ffi_call ();
27495 ;
27496 return 0;
27497}
27498_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027499for ac_lib in '' ffi; do
27500 if test -z "$ac_lib"; then
27501 ac_res="none required"
27502 else
27503 ac_res=-l$ac_lib
27504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27505 fi
27506 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027507if { (ac_try="$ac_link"
27508case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27511esac
27512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513 (eval "$ac_link") 2>conftest.er1
27514 ac_status=$?
27515 grep -v '^ *+' conftest.er1 >conftest.err
27516 rm -f conftest.er1
27517 cat conftest.err >&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027519 (exit $ac_status); } &&
27520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27521 { (case "(($ac_try" in
27522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523 *) ac_try_echo=$ac_try;;
27524esac
27525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526 (eval "$ac_try") 2>&5
27527 ac_status=$?
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; } &&
27530 { ac_try='test -s conftest$ac_exeext'
27531 { (case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27534esac
27535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536 (eval "$ac_try") 2>&5
27537 ac_status=$?
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027540 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027541else
27542 echo "$as_me: failed program was:" >&5
27543sed 's/^/| /' conftest.$ac_ext >&5
27544
Nick Lewycky267fddb2009-04-13 04:26:27 +000027545
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027546fi
27547
Bill Wendlingebcceee2009-04-18 11:20:33 +000027548rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027549 conftest$ac_exeext
27550 if test "${ac_cv_search_ffi_call+set}" = set; then
27551 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027552fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027553done
27554if test "${ac_cv_search_ffi_call+set}" = set; then
27555 :
27556else
27557 ac_cv_search_ffi_call=no
27558fi
27559rm conftest.$ac_ext
27560LIBS=$ac_func_search_save_LIBS
27561fi
27562{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27563echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27564ac_res=$ac_cv_search_ffi_call
27565if test "$ac_res" != no; then
27566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27567
27568cat >>confdefs.h <<\_ACEOF
27569#define HAVE_FFI_CALL 1
27570_ACEOF
27571
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027572else
27573 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27574echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27575fi
27576
27577
Reid Spencera773bd52006-08-04 18:18:08 +000027578{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27579echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027580if test "${ac_cv_search_mallinfo+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27582else
27583 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027584cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027585/* confdefs.h. */
27586_ACEOF
27587cat confdefs.h >>conftest.$ac_ext
27588cat >>conftest.$ac_ext <<_ACEOF
27589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027590
Reid Spencera773bd52006-08-04 18:18:08 +000027591/* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027594#ifdef __cplusplus
27595extern "C"
27596#endif
John Criswell7a73b802003-06-30 21:59:07 +000027597char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027598int
27599main ()
27600{
Reid Spencera773bd52006-08-04 18:18:08 +000027601return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027602 ;
27603 return 0;
27604}
27605_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027606for ac_lib in '' malloc; do
27607 if test -z "$ac_lib"; then
27608 ac_res="none required"
27609 else
27610 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027612 fi
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614if { (ac_try="$ac_link"
27615case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27618esac
27619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027621 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027626 (exit $ac_status); } &&
27627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27628 { (case "(($ac_try" in
27629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27630 *) ac_try_echo=$ac_try;;
27631esac
27632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27633 (eval "$ac_try") 2>&5
27634 ac_status=$?
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; } &&
27637 { ac_try='test -s conftest$ac_exeext'
27638 { (case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27641esac
27642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_try") 2>&5
27644 ac_status=$?
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027647 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027648else
27649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027650sed 's/^/| /' conftest.$ac_ext >&5
27651
Reid Spencera773bd52006-08-04 18:18:08 +000027652
John Criswell7a73b802003-06-30 21:59:07 +000027653fi
Reid Spencera773bd52006-08-04 18:18:08 +000027654
Bill Wendlingebcceee2009-04-18 11:20:33 +000027655rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027656 conftest$ac_exeext
27657 if test "${ac_cv_search_mallinfo+set}" = set; then
27658 break
John Criswell7a73b802003-06-30 21:59:07 +000027659fi
Reid Spencera773bd52006-08-04 18:18:08 +000027660done
27661if test "${ac_cv_search_mallinfo+set}" = set; then
27662 :
27663else
27664 ac_cv_search_mallinfo=no
27665fi
27666rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027667LIBS=$ac_func_search_save_LIBS
27668fi
Reid Spencera773bd52006-08-04 18:18:08 +000027669{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27670echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27671ac_res=$ac_cv_search_mallinfo
27672if test "$ac_res" != no; then
27673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027674
27675cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027676#define HAVE_MALLINFO 1
27677_ACEOF
27678
27679fi
27680
27681
Reid Spencer0a262ba2005-08-24 10:07:20 +000027682if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027683
Reid Spencera773bd52006-08-04 18:18:08 +000027684{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27685echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027686if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688else
27689 ac_check_lib_save_LIBS=$LIBS
27690LIBS="-lpthread $LIBS"
27691cat >conftest.$ac_ext <<_ACEOF
27692/* confdefs.h. */
27693_ACEOF
27694cat confdefs.h >>conftest.$ac_ext
27695cat >>conftest.$ac_ext <<_ACEOF
27696/* end confdefs.h. */
27697
Reid Spencera773bd52006-08-04 18:18:08 +000027698/* Override any GCC internal prototype to avoid an error.
27699 Use char because int might match the return type of a GCC
27700 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027701#ifdef __cplusplus
27702extern "C"
27703#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027704char pthread_mutex_init ();
27705int
27706main ()
27707{
Reid Spencera773bd52006-08-04 18:18:08 +000027708return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027709 ;
27710 return 0;
27711}
27712_ACEOF
27713rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027714if { (ac_try="$ac_link"
27715case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27718esac
27719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027721 ac_status=$?
27722 grep -v '^ *+' conftest.er1 >conftest.err
27723 rm -f conftest.er1
27724 cat conftest.err >&5
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027726 (exit $ac_status); } &&
27727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27728 { (case "(($ac_try" in
27729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730 *) ac_try_echo=$ac_try;;
27731esac
27732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27733 (eval "$ac_try") 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; } &&
27737 { ac_try='test -s conftest$ac_exeext'
27738 { (case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27741esac
27742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_try") 2>&5
27744 ac_status=$?
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027747 ac_cv_lib_pthread_pthread_mutex_init=yes
27748else
27749 echo "$as_me: failed program was:" >&5
27750sed 's/^/| /' conftest.$ac_ext >&5
27751
Reid Spencera773bd52006-08-04 18:18:08 +000027752 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027753fi
Reid Spencera773bd52006-08-04 18:18:08 +000027754
Bill Wendlingebcceee2009-04-18 11:20:33 +000027755rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027756 conftest$ac_exeext conftest.$ac_ext
27757LIBS=$ac_check_lib_save_LIBS
27758fi
Reid Spencera773bd52006-08-04 18:18:08 +000027759{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27760echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027761if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27762 cat >>confdefs.h <<_ACEOF
27763#define HAVE_LIBPTHREAD 1
27764_ACEOF
27765
27766 LIBS="-lpthread $LIBS"
27767
27768fi
27769
Reid Spencera773bd52006-08-04 18:18:08 +000027770 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27771echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027772if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774else
27775 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027776cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027777/* confdefs.h. */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h. */
27782
Reid Spencera773bd52006-08-04 18:18:08 +000027783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027786#ifdef __cplusplus
27787extern "C"
27788#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027789char pthread_mutex_lock ();
27790int
27791main ()
27792{
Reid Spencera773bd52006-08-04 18:18:08 +000027793return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027794 ;
27795 return 0;
27796}
27797_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027798for ac_lib in '' pthread; do
27799 if test -z "$ac_lib"; then
27800 ac_res="none required"
27801 else
27802 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027804 fi
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806if { (ac_try="$ac_link"
27807case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810esac
27811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027814 grep -v '^ *+' conftest.er1 >conftest.err
27815 rm -f conftest.er1
27816 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027818 (exit $ac_status); } &&
27819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820 { (case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27823esac
27824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_try") 2>&5
27826 ac_status=$?
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; } &&
27829 { ac_try='test -s conftest$ac_exeext'
27830 { (case "(($ac_try" in
27831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832 *) ac_try_echo=$ac_try;;
27833esac
27834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835 (eval "$ac_try") 2>&5
27836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027839 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027840else
27841 echo "$as_me: failed program was:" >&5
27842sed 's/^/| /' conftest.$ac_ext >&5
27843
Reid Spencera773bd52006-08-04 18:18:08 +000027844
Brian Gaeke5f268f72003-12-05 19:29:01 +000027845fi
Reid Spencera773bd52006-08-04 18:18:08 +000027846
Bill Wendlingebcceee2009-04-18 11:20:33 +000027847rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027848 conftest$ac_exeext
27849 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27850 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027851fi
Reid Spencera773bd52006-08-04 18:18:08 +000027852done
27853if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27854 :
27855else
27856 ac_cv_search_pthread_mutex_lock=no
27857fi
27858rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027859LIBS=$ac_func_search_save_LIBS
27860fi
Reid Spencera773bd52006-08-04 18:18:08 +000027861{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27862echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27863ac_res=$ac_cv_search_pthread_mutex_lock
27864if test "$ac_res" != no; then
27865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027866
John Criswell40468462004-09-24 21:19:06 +000027867cat >>confdefs.h <<\_ACEOF
27868#define HAVE_PTHREAD_MUTEX_LOCK 1
27869_ACEOF
27870
27871fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027872
Reid Spencer0a262ba2005-08-24 10:07:20 +000027873fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027874
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027875
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027876# Check whether --with-udis86 was given.
27877if test "${with_udis86+set}" = set; then
27878 withval=$with_udis86;
27879 USE_UDIS86=1
27880
27881 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027882 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027883 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27884 esac
27885
27886{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27887echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27888if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27890else
27891 ac_check_lib_save_LIBS=$LIBS
27892LIBS="-ludis86 $LIBS"
27893cat >conftest.$ac_ext <<_ACEOF
27894/* confdefs.h. */
27895_ACEOF
27896cat confdefs.h >>conftest.$ac_ext
27897cat >>conftest.$ac_ext <<_ACEOF
27898/* end confdefs.h. */
27899
27900/* Override any GCC internal prototype to avoid an error.
27901 Use char because int might match the return type of a GCC
27902 builtin and then its argument prototype would still apply. */
27903#ifdef __cplusplus
27904extern "C"
27905#endif
27906char ud_init ();
27907int
27908main ()
27909{
27910return ud_init ();
27911 ;
27912 return 0;
27913}
27914_ACEOF
27915rm -f conftest.$ac_objext conftest$ac_exeext
27916if { (ac_try="$ac_link"
27917case "(($ac_try" in
27918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919 *) ac_try_echo=$ac_try;;
27920esac
27921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922 (eval "$ac_link") 2>conftest.er1
27923 ac_status=$?
27924 grep -v '^ *+' conftest.er1 >conftest.err
27925 rm -f conftest.er1
27926 cat conftest.err >&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027928 (exit $ac_status); } &&
27929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27930 { (case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27933esac
27934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_try") 2>&5
27936 ac_status=$?
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; } &&
27939 { ac_try='test -s conftest$ac_exeext'
27940 { (case "(($ac_try" in
27941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27942 *) ac_try_echo=$ac_try;;
27943esac
27944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27945 (eval "$ac_try") 2>&5
27946 ac_status=$?
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027949 ac_cv_lib_udis86_ud_init=yes
27950else
27951 echo "$as_me: failed program was:" >&5
27952sed 's/^/| /' conftest.$ac_ext >&5
27953
27954 ac_cv_lib_udis86_ud_init=no
27955fi
27956
Bill Wendlingebcceee2009-04-18 11:20:33 +000027957rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027958 conftest$ac_exeext conftest.$ac_ext
27959LIBS=$ac_check_lib_save_LIBS
27960fi
27961{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27962echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27963if test $ac_cv_lib_udis86_ud_init = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965#define HAVE_LIBUDIS86 1
27966_ACEOF
27967
27968 LIBS="-ludis86 $LIBS"
27969
27970else
27971
27972 echo "Error! You need to have libudis86 around."
27973 exit -1
27974
27975fi
27976
27977
27978else
27979 USE_UDIS86=0
27980
27981fi
27982
27983
27984cat >>confdefs.h <<_ACEOF
27985#define USE_UDIS86 $USE_UDIS86
27986_ACEOF
27987
27988
27989
Reid Spencer59473af2004-12-25 07:31:29 +000027990
27991
27992
27993
27994
27995ac_header_dirent=no
27996for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027998{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27999echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028001 echo $ECHO_N "(cached) $ECHO_C" >&6
28002else
28003 cat >conftest.$ac_ext <<_ACEOF
28004/* confdefs.h. */
28005_ACEOF
28006cat confdefs.h >>conftest.$ac_ext
28007cat >>conftest.$ac_ext <<_ACEOF
28008/* end confdefs.h. */
28009#include <sys/types.h>
28010#include <$ac_hdr>
28011
28012int
28013main ()
28014{
28015if ((DIR *) 0)
28016return 0;
28017 ;
28018 return 0;
28019}
28020_ACEOF
28021rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028022if { (ac_try="$ac_compile"
28023case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28026esac
28027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028029 ac_status=$?
28030 grep -v '^ *+' conftest.er1 >conftest.err
28031 rm -f conftest.er1
28032 cat conftest.err >&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028034 (exit $ac_status); } &&
28035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28036 { (case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28039esac
28040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_try") 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; } &&
28045 { ac_try='test -s conftest.$ac_objext'
28046 { (case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28049esac
28050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_try") 2>&5
28052 ac_status=$?
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028055 eval "$as_ac_Header=yes"
28056else
28057 echo "$as_me: failed program was:" >&5
28058sed 's/^/| /' conftest.$ac_ext >&5
28059
Reid Spencera773bd52006-08-04 18:18:08 +000028060 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028061fi
Reid Spencera773bd52006-08-04 18:18:08 +000028062
28063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028064fi
Reid Spencera773bd52006-08-04 18:18:08 +000028065ac_res=`eval echo '${'$as_ac_Header'}'`
28066 { echo "$as_me:$LINENO: result: $ac_res" >&5
28067echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028068if test `eval echo '${'$as_ac_Header'}'` = yes; then
28069 cat >>confdefs.h <<_ACEOF
28070#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28071_ACEOF
28072
28073ac_header_dirent=$ac_hdr; break
28074fi
28075
28076done
28077# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28078if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028079 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28080echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028081if test "${ac_cv_search_opendir+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28083else
28084 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028085cat >conftest.$ac_ext <<_ACEOF
28086/* confdefs.h. */
28087_ACEOF
28088cat confdefs.h >>conftest.$ac_ext
28089cat >>conftest.$ac_ext <<_ACEOF
28090/* end confdefs.h. */
28091
Reid Spencera773bd52006-08-04 18:18:08 +000028092/* Override any GCC internal prototype to avoid an error.
28093 Use char because int might match the return type of a GCC
28094 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028095#ifdef __cplusplus
28096extern "C"
28097#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028098char opendir ();
28099int
28100main ()
28101{
Reid Spencera773bd52006-08-04 18:18:08 +000028102return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028103 ;
28104 return 0;
28105}
28106_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028107for ac_lib in '' dir; do
28108 if test -z "$ac_lib"; then
28109 ac_res="none required"
28110 else
28111 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028113 fi
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115if { (ac_try="$ac_link"
28116case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28119esac
28120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028122 ac_status=$?
28123 grep -v '^ *+' conftest.er1 >conftest.err
28124 rm -f conftest.er1
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028127 (exit $ac_status); } &&
28128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129 { (case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28132esac
28133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_try") 2>&5
28135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; } &&
28138 { ac_try='test -s conftest$ac_exeext'
28139 { (case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28142esac
28143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_try") 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028148 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028149else
28150 echo "$as_me: failed program was:" >&5
28151sed 's/^/| /' conftest.$ac_ext >&5
28152
Reid Spencera773bd52006-08-04 18:18:08 +000028153
Reid Spencer59473af2004-12-25 07:31:29 +000028154fi
Reid Spencera773bd52006-08-04 18:18:08 +000028155
Bill Wendlingebcceee2009-04-18 11:20:33 +000028156rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028157 conftest$ac_exeext
28158 if test "${ac_cv_search_opendir+set}" = set; then
28159 break
Reid Spencer59473af2004-12-25 07:31:29 +000028160fi
Reid Spencera773bd52006-08-04 18:18:08 +000028161done
28162if test "${ac_cv_search_opendir+set}" = set; then
28163 :
28164else
28165 ac_cv_search_opendir=no
28166fi
28167rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028168LIBS=$ac_func_search_save_LIBS
28169fi
Reid Spencera773bd52006-08-04 18:18:08 +000028170{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28171echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28172ac_res=$ac_cv_search_opendir
28173if test "$ac_res" != no; then
28174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028175
28176fi
28177
28178else
Reid Spencera773bd52006-08-04 18:18:08 +000028179 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28180echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028181if test "${ac_cv_search_opendir+set}" = set; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28183else
28184 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028185cat >conftest.$ac_ext <<_ACEOF
28186/* confdefs.h. */
28187_ACEOF
28188cat confdefs.h >>conftest.$ac_ext
28189cat >>conftest.$ac_ext <<_ACEOF
28190/* end confdefs.h. */
28191
Reid Spencera773bd52006-08-04 18:18:08 +000028192/* Override any GCC internal prototype to avoid an error.
28193 Use char because int might match the return type of a GCC
28194 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028195#ifdef __cplusplus
28196extern "C"
28197#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028198char opendir ();
28199int
28200main ()
28201{
Reid Spencera773bd52006-08-04 18:18:08 +000028202return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028203 ;
28204 return 0;
28205}
28206_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028207for ac_lib in '' x; do
28208 if test -z "$ac_lib"; then
28209 ac_res="none required"
28210 else
28211 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028213 fi
28214 rm -f conftest.$ac_objext conftest$ac_exeext
28215if { (ac_try="$ac_link"
28216case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28219esac
28220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028222 ac_status=$?
28223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028227 (exit $ac_status); } &&
28228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28229 { (case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28232esac
28233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234 (eval "$ac_try") 2>&5
28235 ac_status=$?
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; } &&
28238 { ac_try='test -s conftest$ac_exeext'
28239 { (case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28242esac
28243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_try") 2>&5
28245 ac_status=$?
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028248 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028249else
28250 echo "$as_me: failed program was:" >&5
28251sed 's/^/| /' conftest.$ac_ext >&5
28252
Reid Spencera773bd52006-08-04 18:18:08 +000028253
Reid Spencer59473af2004-12-25 07:31:29 +000028254fi
Reid Spencera773bd52006-08-04 18:18:08 +000028255
Bill Wendlingebcceee2009-04-18 11:20:33 +000028256rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028257 conftest$ac_exeext
28258 if test "${ac_cv_search_opendir+set}" = set; then
28259 break
Reid Spencer59473af2004-12-25 07:31:29 +000028260fi
Reid Spencera773bd52006-08-04 18:18:08 +000028261done
28262if test "${ac_cv_search_opendir+set}" = set; then
28263 :
28264else
28265 ac_cv_search_opendir=no
28266fi
28267rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028268LIBS=$ac_func_search_save_LIBS
28269fi
Reid Spencera773bd52006-08-04 18:18:08 +000028270{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28271echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28272ac_res=$ac_cv_search_opendir
28273if test "$ac_res" != no; then
28274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028275
28276fi
28277
28278fi
28279
Reid Spencera773bd52006-08-04 18:18:08 +000028280{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28281echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028282if test "${ac_cv_header_mmap_anon+set}" = set; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28284else
28285 ac_ext=c
28286ac_cpp='$CPP $CPPFLAGS'
28287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289ac_compiler_gnu=$ac_cv_c_compiler_gnu
28290
28291 cat >conftest.$ac_ext <<_ACEOF
28292/* confdefs.h. */
28293_ACEOF
28294cat confdefs.h >>conftest.$ac_ext
28295cat >>conftest.$ac_ext <<_ACEOF
28296/* end confdefs.h. */
28297#include <sys/mman.h>
28298#include <unistd.h>
28299#include <fcntl.h>
28300int
28301main ()
28302{
28303mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28304 ;
28305 return 0;
28306}
28307_ACEOF
28308rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028309if { (ac_try="$ac_compile"
28310case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28313esac
28314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028316 ac_status=$?
28317 grep -v '^ *+' conftest.er1 >conftest.err
28318 rm -f conftest.er1
28319 cat conftest.err >&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028321 (exit $ac_status); } &&
28322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28323 { (case "(($ac_try" in
28324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325 *) ac_try_echo=$ac_try;;
28326esac
28327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328 (eval "$ac_try") 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; } &&
28332 { ac_try='test -s conftest.$ac_objext'
28333 { (case "(($ac_try" in
28334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335 *) ac_try_echo=$ac_try;;
28336esac
28337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338 (eval "$ac_try") 2>&5
28339 ac_status=$?
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028342 ac_cv_header_mmap_anon=yes
28343else
28344 echo "$as_me: failed program was:" >&5
28345sed 's/^/| /' conftest.$ac_ext >&5
28346
Reid Spencera773bd52006-08-04 18:18:08 +000028347 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028348fi
Reid Spencera773bd52006-08-04 18:18:08 +000028349
28350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028351 ac_ext=c
28352ac_cpp='$CPP $CPPFLAGS'
28353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355ac_compiler_gnu=$ac_cv_c_compiler_gnu
28356
28357
28358fi
Reid Spencera773bd52006-08-04 18:18:08 +000028359{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28360echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028361if test "$ac_cv_header_mmap_anon" = yes; then
28362
28363cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028364#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028365_ACEOF
28366
28367fi
28368
Reid Spencera773bd52006-08-04 18:18:08 +000028369{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28370echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028371if test "${ac_cv_header_stat_broken+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373else
28374 cat >conftest.$ac_ext <<_ACEOF
28375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
28380#include <sys/types.h>
28381#include <sys/stat.h>
28382
Reid Spencera773bd52006-08-04 18:18:08 +000028383#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028384# if S_ISBLK (S_IFDIR)
28385You lose.
28386# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028387#endif
28388
Reid Spencera773bd52006-08-04 18:18:08 +000028389#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028390# if S_ISBLK (S_IFCHR)
28391You lose.
28392# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028393#endif
28394
Reid Spencera773bd52006-08-04 18:18:08 +000028395#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028396# if S_ISLNK (S_IFREG)
28397You lose.
28398# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028399#endif
28400
Reid Spencera773bd52006-08-04 18:18:08 +000028401#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028402# if S_ISSOCK (S_IFREG)
28403You lose.
28404# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028405#endif
28406
28407_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28409 $EGREP "You lose" >/dev/null 2>&1; then
28410 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028411else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028412 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028413fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028414rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028415
Reid Spencer59473af2004-12-25 07:31:29 +000028416fi
Reid Spencera773bd52006-08-04 18:18:08 +000028417{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28418echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028419if test $ac_cv_header_stat_broken = yes; then
28420
28421cat >>confdefs.h <<\_ACEOF
28422#define STAT_MACROS_BROKEN 1
28423_ACEOF
28424
28425fi
28426
Reid Spencera773bd52006-08-04 18:18:08 +000028427{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28428echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028429if test "${ac_cv_header_stdc+set}" = set; then
28430 echo $ECHO_N "(cached) $ECHO_C" >&6
28431else
28432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028433/* confdefs.h. */
28434_ACEOF
28435cat confdefs.h >>conftest.$ac_ext
28436cat >>conftest.$ac_ext <<_ACEOF
28437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028438#include <stdlib.h>
28439#include <stdarg.h>
28440#include <string.h>
28441#include <float.h>
28442
John Criswell0c38eaf2003-09-10 15:17:25 +000028443int
28444main ()
28445{
28446
28447 ;
28448 return 0;
28449}
John Criswell7a73b802003-06-30 21:59:07 +000028450_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028451rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028452if { (ac_try="$ac_compile"
28453case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28456esac
28457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028460 grep -v '^ *+' conftest.er1 >conftest.err
28461 rm -f conftest.er1
28462 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028464 (exit $ac_status); } &&
28465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28466 { (case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28469esac
28470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_try") 2>&5
28472 ac_status=$?
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; } &&
28475 { ac_try='test -s conftest.$ac_objext'
28476 { (case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28479esac
28480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_try") 2>&5
28482 ac_status=$?
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028485 ac_cv_header_stdc=yes
28486else
28487 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028488sed 's/^/| /' conftest.$ac_ext >&5
28489
Reid Spencera773bd52006-08-04 18:18:08 +000028490 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028491fi
Reid Spencera773bd52006-08-04 18:18:08 +000028492
28493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028494
28495if test $ac_cv_header_stdc = yes; then
28496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028498/* confdefs.h. */
28499_ACEOF
28500cat confdefs.h >>conftest.$ac_ext
28501cat >>conftest.$ac_ext <<_ACEOF
28502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028503#include <string.h>
28504
28505_ACEOF
28506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028507 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028508 :
28509else
28510 ac_cv_header_stdc=no
28511fi
28512rm -f conftest*
28513
28514fi
28515
28516if test $ac_cv_header_stdc = yes; then
28517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028519/* confdefs.h. */
28520_ACEOF
28521cat confdefs.h >>conftest.$ac_ext
28522cat >>conftest.$ac_ext <<_ACEOF
28523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028524#include <stdlib.h>
28525
28526_ACEOF
28527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028528 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028529 :
28530else
28531 ac_cv_header_stdc=no
28532fi
28533rm -f conftest*
28534
28535fi
28536
28537if test $ac_cv_header_stdc = yes; then
28538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28539 if test "$cross_compiling" = yes; then
28540 :
28541else
28542 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028543/* confdefs.h. */
28544_ACEOF
28545cat confdefs.h >>conftest.$ac_ext
28546cat >>conftest.$ac_ext <<_ACEOF
28547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028548#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028549#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028550#if ((' ' & 0x0FF) == 0x020)
28551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28553#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028554# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028555 (('a' <= (c) && (c) <= 'i') \
28556 || ('j' <= (c) && (c) <= 'r') \
28557 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28559#endif
28560
28561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28562int
28563main ()
28564{
28565 int i;
28566 for (i = 0; i < 256; i++)
28567 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028568 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028569 return 2;
28570 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028571}
28572_ACEOF
28573rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028574if { (ac_try="$ac_link"
28575case "(($ac_try" in
28576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28577 *) ac_try_echo=$ac_try;;
28578esac
28579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28580 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028581 ac_status=$?
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028590 ac_status=$?
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28593 :
28594else
28595 echo "$as_me: program exited with status $ac_status" >&5
28596echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028597sed 's/^/| /' conftest.$ac_ext >&5
28598
John Criswell7a73b802003-06-30 21:59:07 +000028599( exit $ac_status )
28600ac_cv_header_stdc=no
28601fi
Reid Spencera773bd52006-08-04 18:18:08 +000028602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28603fi
28604
28605
John Criswell7a73b802003-06-30 21:59:07 +000028606fi
28607fi
Reid Spencera773bd52006-08-04 18:18:08 +000028608{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28609echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028610if test $ac_cv_header_stdc = yes; then
28611
28612cat >>confdefs.h <<\_ACEOF
28613#define STDC_HEADERS 1
28614_ACEOF
28615
28616fi
28617
Reid Spencera773bd52006-08-04 18:18:08 +000028618{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28619echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028620if test "${ac_cv_header_sys_wait_h+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28622else
28623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028624/* confdefs.h. */
28625_ACEOF
28626cat confdefs.h >>conftest.$ac_ext
28627cat >>conftest.$ac_ext <<_ACEOF
28628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028629#include <sys/types.h>
28630#include <sys/wait.h>
28631#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028632# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028633#endif
28634#ifndef WIFEXITED
28635# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28636#endif
28637
John Criswell7a73b802003-06-30 21:59:07 +000028638int
28639main ()
28640{
28641 int s;
28642 wait (&s);
28643 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28644 ;
28645 return 0;
28646}
28647_ACEOF
28648rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028649if { (ac_try="$ac_compile"
28650case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28653esac
28654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028657 grep -v '^ *+' conftest.er1 >conftest.err
28658 rm -f conftest.er1
28659 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028661 (exit $ac_status); } &&
28662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28663 { (case "(($ac_try" in
28664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28666esac
28667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_try") 2>&5
28669 ac_status=$?
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; } &&
28672 { ac_try='test -s conftest.$ac_objext'
28673 { (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
28679 ac_status=$?
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028682 ac_cv_header_sys_wait_h=yes
28683else
28684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028685sed 's/^/| /' conftest.$ac_ext >&5
28686
Reid Spencera773bd52006-08-04 18:18:08 +000028687 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028688fi
Reid Spencera773bd52006-08-04 18:18:08 +000028689
28690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028691fi
Reid Spencera773bd52006-08-04 18:18:08 +000028692{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28693echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028694if test $ac_cv_header_sys_wait_h = yes; then
28695
28696cat >>confdefs.h <<\_ACEOF
28697#define HAVE_SYS_WAIT_H 1
28698_ACEOF
28699
28700fi
28701
Reid Spencera773bd52006-08-04 18:18:08 +000028702{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28703echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028704if test "${ac_cv_header_time+set}" = set; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28706else
28707 cat >conftest.$ac_ext <<_ACEOF
28708/* confdefs.h. */
28709_ACEOF
28710cat confdefs.h >>conftest.$ac_ext
28711cat >>conftest.$ac_ext <<_ACEOF
28712/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028713#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028714#include <sys/time.h>
28715#include <time.h>
28716
28717int
28718main ()
28719{
28720if ((struct tm *) 0)
28721return 0;
28722 ;
28723 return 0;
28724}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028725_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028726rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028727if { (ac_try="$ac_compile"
28728case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731esac
28732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028734 ac_status=$?
28735 grep -v '^ *+' conftest.er1 >conftest.err
28736 rm -f conftest.er1
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028739 (exit $ac_status); } &&
28740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28741 { (case "(($ac_try" in
28742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743 *) ac_try_echo=$ac_try;;
28744esac
28745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746 (eval "$ac_try") 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
28751 { (case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_try") 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028760 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028761else
28762 echo "$as_me: failed program was:" >&5
28763sed 's/^/| /' conftest.$ac_ext >&5
28764
Reid Spencera773bd52006-08-04 18:18:08 +000028765 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028766fi
Reid Spencera773bd52006-08-04 18:18:08 +000028767
28768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028769fi
Reid Spencera773bd52006-08-04 18:18:08 +000028770{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28771echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028772if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028773
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028774cat >>confdefs.h <<\_ACEOF
28775#define TIME_WITH_SYS_TIME 1
28776_ACEOF
28777
28778fi
28779
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028780
Reid Spencer59473af2004-12-25 07:31:29 +000028781
28782
28783
28784
28785
28786
28787for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28788do
28789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028794 echo $ECHO_N "(cached) $ECHO_C" >&6
28795fi
Reid Spencera773bd52006-08-04 18:18:08 +000028796ac_res=`eval echo '${'$as_ac_Header'}'`
28797 { echo "$as_me:$LINENO: result: $ac_res" >&5
28798echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028799else
28800 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028801{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028803cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028804/* confdefs.h. */
28805_ACEOF
28806cat confdefs.h >>conftest.$ac_ext
28807cat >>conftest.$ac_ext <<_ACEOF
28808/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028809$ac_includes_default
28810#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028811_ACEOF
28812rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028813if { (ac_try="$ac_compile"
28814case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28817esac
28818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028820 ac_status=$?
28821 grep -v '^ *+' conftest.er1 >conftest.err
28822 rm -f conftest.er1
28823 cat conftest.err >&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028825 (exit $ac_status); } &&
28826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28827 { (case "(($ac_try" in
28828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829 *) ac_try_echo=$ac_try;;
28830esac
28831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832 (eval "$ac_try") 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest.$ac_objext'
28837 { (case "(($ac_try" in
28838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839 *) ac_try_echo=$ac_try;;
28840esac
28841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842 (eval "$ac_try") 2>&5
28843 ac_status=$?
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028846 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028847else
28848 echo "$as_me: failed program was:" >&5
28849sed 's/^/| /' conftest.$ac_ext >&5
28850
Reid Spencera773bd52006-08-04 18:18:08 +000028851 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028852fi
Reid Spencera773bd52006-08-04 18:18:08 +000028853
28854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28856echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028857
Reid Spencer59473af2004-12-25 07:31:29 +000028858# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028859{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028861cat >conftest.$ac_ext <<_ACEOF
28862/* confdefs.h. */
28863_ACEOF
28864cat confdefs.h >>conftest.$ac_ext
28865cat >>conftest.$ac_ext <<_ACEOF
28866/* end confdefs.h. */
28867#include <$ac_header>
28868_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028869if { (ac_try="$ac_cpp conftest.$ac_ext"
28870case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28873esac
28874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028876 ac_status=$?
28877 grep -v '^ *+' conftest.er1 >conftest.err
28878 rm -f conftest.er1
28879 cat conftest.err >&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028881 (exit $ac_status); } >/dev/null; then
28882 if test -s conftest.err; then
28883 ac_cpp_err=$ac_c_preproc_warn_flag
28884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28885 else
28886 ac_cpp_err=
28887 fi
28888else
28889 ac_cpp_err=yes
28890fi
28891if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028892 ac_header_preproc=yes
28893else
28894 echo "$as_me: failed program was:" >&5
28895sed 's/^/| /' conftest.$ac_ext >&5
28896
28897 ac_header_preproc=no
28898fi
Reid Spencera773bd52006-08-04 18:18:08 +000028899
Reid Spencer59473af2004-12-25 07:31:29 +000028900rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028901{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28902echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028903
28904# So? What about this header?
28905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28906 yes:no: )
28907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28911 ac_header_preproc=yes
28912 ;;
28913 no:yes:* )
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028926 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028927## ----------------------------------- ##
28928## Report this to llvmbugs@cs.uiuc.edu ##
28929## ----------------------------------- ##
28930_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028931 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028932 ;;
28933esac
Reid Spencera773bd52006-08-04 18:18:08 +000028934{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028937 echo $ECHO_N "(cached) $ECHO_C" >&6
28938else
28939 eval "$as_ac_Header=\$ac_header_preproc"
28940fi
Reid Spencera773bd52006-08-04 18:18:08 +000028941ac_res=`eval echo '${'$as_ac_Header'}'`
28942 { echo "$as_me:$LINENO: result: $ac_res" >&5
28943echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028944
28945fi
Reid Spencer59473af2004-12-25 07:31:29 +000028946if test `eval echo '${'$as_ac_Header'}'` = yes; then
28947 cat >>confdefs.h <<_ACEOF
28948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028949_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028950
28951fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028952
Reid Spencer59473af2004-12-25 07:31:29 +000028953done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028954
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028955
28956
Reid Spencer59473af2004-12-25 07:31:29 +000028957
28958
28959
28960
Douglas Gregor071d73d2009-05-18 17:21:34 +000028961for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000028962do
28963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028968 echo $ECHO_N "(cached) $ECHO_C" >&6
28969fi
Reid Spencera773bd52006-08-04 18:18:08 +000028970ac_res=`eval echo '${'$as_ac_Header'}'`
28971 { echo "$as_me:$LINENO: result: $ac_res" >&5
28972echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028973else
28974 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028975{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028977cat >conftest.$ac_ext <<_ACEOF
28978/* confdefs.h. */
28979_ACEOF
28980cat confdefs.h >>conftest.$ac_ext
28981cat >>conftest.$ac_ext <<_ACEOF
28982/* end confdefs.h. */
28983$ac_includes_default
28984#include <$ac_header>
28985_ACEOF
28986rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028987if { (ac_try="$ac_compile"
28988case "(($ac_try" in
28989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990 *) ac_try_echo=$ac_try;;
28991esac
28992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028994 ac_status=$?
28995 grep -v '^ *+' conftest.er1 >conftest.err
28996 rm -f conftest.er1
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028999 (exit $ac_status); } &&
29000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29001 { (case "(($ac_try" in
29002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003 *) ac_try_echo=$ac_try;;
29004esac
29005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006 (eval "$ac_try") 2>&5
29007 ac_status=$?
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; } &&
29010 { ac_try='test -s conftest.$ac_objext'
29011 { (case "(($ac_try" in
29012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013 *) ac_try_echo=$ac_try;;
29014esac
29015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016 (eval "$ac_try") 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029020 ac_header_compiler=yes
29021else
29022 echo "$as_me: failed program was:" >&5
29023sed 's/^/| /' conftest.$ac_ext >&5
29024
Reid Spencera773bd52006-08-04 18:18:08 +000029025 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029026fi
Reid Spencera773bd52006-08-04 18:18:08 +000029027
29028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29030echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029031
29032# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029033{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029035cat >conftest.$ac_ext <<_ACEOF
29036/* confdefs.h. */
29037_ACEOF
29038cat confdefs.h >>conftest.$ac_ext
29039cat >>conftest.$ac_ext <<_ACEOF
29040/* end confdefs.h. */
29041#include <$ac_header>
29042_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029043if { (ac_try="$ac_cpp conftest.$ac_ext"
29044case "(($ac_try" in
29045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046 *) ac_try_echo=$ac_try;;
29047esac
29048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029050 ac_status=$?
29051 grep -v '^ *+' conftest.er1 >conftest.err
29052 rm -f conftest.er1
29053 cat conftest.err >&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029055 (exit $ac_status); } >/dev/null; then
29056 if test -s conftest.err; then
29057 ac_cpp_err=$ac_c_preproc_warn_flag
29058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29059 else
29060 ac_cpp_err=
29061 fi
29062else
29063 ac_cpp_err=yes
29064fi
29065if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029066 ac_header_preproc=yes
29067else
29068 echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071 ac_header_preproc=no
29072fi
Reid Spencera773bd52006-08-04 18:18:08 +000029073
Reid Spencer59473af2004-12-25 07:31:29 +000029074rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029075{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029077
29078# So? What about this header?
29079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29080 yes:no: )
29081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29085 ac_header_preproc=yes
29086 ;;
29087 no:yes:* )
29088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029100 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029101## ----------------------------------- ##
29102## Report this to llvmbugs@cs.uiuc.edu ##
29103## ----------------------------------- ##
29104_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029105 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029106 ;;
29107esac
Reid Spencera773bd52006-08-04 18:18:08 +000029108{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029111 echo $ECHO_N "(cached) $ECHO_C" >&6
29112else
29113 eval "$as_ac_Header=\$ac_header_preproc"
29114fi
Reid Spencera773bd52006-08-04 18:18:08 +000029115ac_res=`eval echo '${'$as_ac_Header'}'`
29116 { echo "$as_me:$LINENO: result: $ac_res" >&5
29117echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029118
29119fi
29120if test `eval echo '${'$as_ac_Header'}'` = yes; then
29121 cat >>confdefs.h <<_ACEOF
29122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29123_ACEOF
29124
29125fi
29126
29127done
29128
29129
Douglas Gregor071d73d2009-05-18 17:21:34 +000029130
29131for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029132do
29133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29139fi
29140ac_res=`eval echo '${'$as_ac_Header'}'`
29141 { echo "$as_me:$LINENO: result: $ac_res" >&5
29142echo "${ECHO_T}$ac_res" >&6; }
29143else
29144 # Is the header compilable?
29145{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29147cat >conftest.$ac_ext <<_ACEOF
29148/* confdefs.h. */
29149_ACEOF
29150cat confdefs.h >>conftest.$ac_ext
29151cat >>conftest.$ac_ext <<_ACEOF
29152/* end confdefs.h. */
29153$ac_includes_default
29154#include <$ac_header>
29155_ACEOF
29156rm -f conftest.$ac_objext
29157if { (ac_try="$ac_compile"
29158case "(($ac_try" in
29159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160 *) ac_try_echo=$ac_try;;
29161esac
29162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163 (eval "$ac_compile") 2>conftest.er1
29164 ac_status=$?
29165 grep -v '^ *+' conftest.er1 >conftest.err
29166 rm -f conftest.er1
29167 cat conftest.err >&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029169 (exit $ac_status); } &&
29170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29171 { (case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29174esac
29175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_try") 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest.$ac_objext'
29181 { (case "(($ac_try" in
29182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183 *) ac_try_echo=$ac_try;;
29184esac
29185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29186 (eval "$ac_try") 2>&5
29187 ac_status=$?
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029190 ac_header_compiler=yes
29191else
29192 echo "$as_me: failed program was:" >&5
29193sed 's/^/| /' conftest.$ac_ext >&5
29194
29195 ac_header_compiler=no
29196fi
29197
29198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29199{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29200echo "${ECHO_T}$ac_header_compiler" >&6; }
29201
29202# Is the header present?
29203{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29205cat >conftest.$ac_ext <<_ACEOF
29206/* confdefs.h. */
29207_ACEOF
29208cat confdefs.h >>conftest.$ac_ext
29209cat >>conftest.$ac_ext <<_ACEOF
29210/* end confdefs.h. */
29211#include <$ac_header>
29212_ACEOF
29213if { (ac_try="$ac_cpp conftest.$ac_ext"
29214case "(($ac_try" in
29215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216 *) ac_try_echo=$ac_try;;
29217esac
29218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29220 ac_status=$?
29221 grep -v '^ *+' conftest.er1 >conftest.err
29222 rm -f conftest.er1
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029225 (exit $ac_status); } >/dev/null; then
29226 if test -s conftest.err; then
29227 ac_cpp_err=$ac_c_preproc_warn_flag
29228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29229 else
29230 ac_cpp_err=
29231 fi
29232else
29233 ac_cpp_err=yes
29234fi
29235if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029236 ac_header_preproc=yes
29237else
29238 echo "$as_me: failed program was:" >&5
29239sed 's/^/| /' conftest.$ac_ext >&5
29240
29241 ac_header_preproc=no
29242fi
29243
29244rm -f conftest.err conftest.$ac_ext
29245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29246echo "${ECHO_T}$ac_header_preproc" >&6; }
29247
29248# So? What about this header?
29249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29250 yes:no: )
29251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29255 ac_header_preproc=yes
29256 ;;
29257 no:yes:* )
29258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29270 ( cat <<\_ASBOX
29271## ----------------------------------- ##
29272## Report this to llvmbugs@cs.uiuc.edu ##
29273## ----------------------------------- ##
29274_ASBOX
29275 ) | sed "s/^/$as_me: WARNING: /" >&2
29276 ;;
29277esac
29278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29282else
29283 eval "$as_ac_Header=\$ac_header_preproc"
29284fi
29285ac_res=`eval echo '${'$as_ac_Header'}'`
29286 { echo "$as_me:$LINENO: result: $ac_res" >&5
29287echo "${ECHO_T}$ac_res" >&6; }
29288
29289fi
29290if test `eval echo '${'$as_ac_Header'}'` = yes; then
29291 cat >>confdefs.h <<_ACEOF
29292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29293_ACEOF
29294
29295fi
29296
29297done
Reid Spencer59473af2004-12-25 07:31:29 +000029298
29299
29300
29301
Reid Spencerbe3e4192007-08-17 05:45:26 +000029302
29303for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029304do
29305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311fi
Reid Spencera773bd52006-08-04 18:18:08 +000029312ac_res=`eval echo '${'$as_ac_Header'}'`
29313 { echo "$as_me:$LINENO: result: $ac_res" >&5
29314echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029315else
29316 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029317{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029319cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029320/* confdefs.h. */
29321_ACEOF
29322cat confdefs.h >>conftest.$ac_ext
29323cat >>conftest.$ac_ext <<_ACEOF
29324/* end confdefs.h. */
29325$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029326#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029327_ACEOF
29328rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029329if { (ac_try="$ac_compile"
29330case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29333esac
29334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029336 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029337 grep -v '^ *+' conftest.er1 >conftest.err
29338 rm -f conftest.er1
29339 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029341 (exit $ac_status); } &&
29342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29343 { (case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346esac
29347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_try") 2>&5
29349 ac_status=$?
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; } &&
29352 { ac_try='test -s conftest.$ac_objext'
29353 { (case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29356esac
29357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_try") 2>&5
29359 ac_status=$?
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029362 ac_header_compiler=yes
29363else
29364 echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
Reid Spencera773bd52006-08-04 18:18:08 +000029367 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029368fi
Reid Spencera773bd52006-08-04 18:18:08 +000029369
29370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29372echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029373
29374# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029377cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029383#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029384_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029385if { (ac_try="$ac_cpp conftest.$ac_ext"
29386case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29389esac
29390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029392 ac_status=$?
29393 grep -v '^ *+' conftest.er1 >conftest.err
29394 rm -f conftest.er1
29395 cat conftest.err >&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029397 (exit $ac_status); } >/dev/null; then
29398 if test -s conftest.err; then
29399 ac_cpp_err=$ac_c_preproc_warn_flag
29400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29401 else
29402 ac_cpp_err=
29403 fi
29404else
29405 ac_cpp_err=yes
29406fi
29407if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029408 ac_header_preproc=yes
29409else
29410 echo "$as_me: failed program was:" >&5
29411sed 's/^/| /' conftest.$ac_ext >&5
29412
29413 ac_header_preproc=no
29414fi
Reid Spencera773bd52006-08-04 18:18:08 +000029415
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029416rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29418echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029419
29420# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29422 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029427 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029428 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029429 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029442 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029443## ----------------------------------- ##
29444## Report this to llvmbugs@cs.uiuc.edu ##
29445## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029446_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029447 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029448 ;;
29449esac
Reid Spencera773bd52006-08-04 18:18:08 +000029450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029453 echo $ECHO_N "(cached) $ECHO_C" >&6
29454else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029455 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029456fi
Reid Spencera773bd52006-08-04 18:18:08 +000029457ac_res=`eval echo '${'$as_ac_Header'}'`
29458 { echo "$as_me:$LINENO: result: $ac_res" >&5
29459echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029460
29461fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029462if test `eval echo '${'$as_ac_Header'}'` = yes; then
29463 cat >>confdefs.h <<_ACEOF
29464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029465_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029466
29467fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029468
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029469done
29470
John Criswell7ed43ad2004-07-19 16:12:29 +000029471
Reid Spencercdb08a32006-06-05 16:11:07 +000029472
Reid Spencera6d990a2006-09-14 06:17:21 +000029473
Douglas Gregor01746742009-05-11 18:05:52 +000029474
29475for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029476do
29477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029482 echo $ECHO_N "(cached) $ECHO_C" >&6
29483fi
Reid Spencera773bd52006-08-04 18:18:08 +000029484ac_res=`eval echo '${'$as_ac_Header'}'`
29485 { echo "$as_me:$LINENO: result: $ac_res" >&5
29486echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029487else
29488 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029489{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029491cat >conftest.$ac_ext <<_ACEOF
29492/* confdefs.h. */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h. */
29497$ac_includes_default
29498#include <$ac_header>
29499_ACEOF
29500rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029501if { (ac_try="$ac_compile"
29502case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29505esac
29506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029508 ac_status=$?
29509 grep -v '^ *+' conftest.er1 >conftest.err
29510 rm -f conftest.er1
29511 cat conftest.err >&5
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029513 (exit $ac_status); } &&
29514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29515 { (case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29518esac
29519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_try") 2>&5
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; } &&
29524 { ac_try='test -s conftest.$ac_objext'
29525 { (case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29528esac
29529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_try") 2>&5
29531 ac_status=$?
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029534 ac_header_compiler=yes
29535else
29536 echo "$as_me: failed program was:" >&5
29537sed 's/^/| /' conftest.$ac_ext >&5
29538
Reid Spencera773bd52006-08-04 18:18:08 +000029539 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029540fi
Reid Spencera773bd52006-08-04 18:18:08 +000029541
29542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29543{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29544echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029545
29546# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029547{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029549cat >conftest.$ac_ext <<_ACEOF
29550/* confdefs.h. */
29551_ACEOF
29552cat confdefs.h >>conftest.$ac_ext
29553cat >>conftest.$ac_ext <<_ACEOF
29554/* end confdefs.h. */
29555#include <$ac_header>
29556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029557if { (ac_try="$ac_cpp conftest.$ac_ext"
29558case "(($ac_try" in
29559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560 *) ac_try_echo=$ac_try;;
29561esac
29562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029564 ac_status=$?
29565 grep -v '^ *+' conftest.er1 >conftest.err
29566 rm -f conftest.er1
29567 cat conftest.err >&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029569 (exit $ac_status); } >/dev/null; then
29570 if test -s conftest.err; then
29571 ac_cpp_err=$ac_c_preproc_warn_flag
29572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29573 else
29574 ac_cpp_err=
29575 fi
29576else
29577 ac_cpp_err=yes
29578fi
29579if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029580 ac_header_preproc=yes
29581else
29582 echo "$as_me: failed program was:" >&5
29583sed 's/^/| /' conftest.$ac_ext >&5
29584
29585 ac_header_preproc=no
29586fi
Reid Spencera773bd52006-08-04 18:18:08 +000029587
Chris Lattner0b142592005-11-14 06:57:34 +000029588rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029589{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29590echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029591
29592# So? What about this header?
29593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29594 yes:no: )
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29599 ac_header_preproc=yes
29600 ;;
29601 no:yes:* )
29602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029614 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029615## ----------------------------------- ##
29616## Report this to llvmbugs@cs.uiuc.edu ##
29617## ----------------------------------- ##
29618_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029619 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029620 ;;
29621esac
Reid Spencera773bd52006-08-04 18:18:08 +000029622{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626else
29627 eval "$as_ac_Header=\$ac_header_preproc"
29628fi
Reid Spencera773bd52006-08-04 18:18:08 +000029629ac_res=`eval echo '${'$as_ac_Header'}'`
29630 { echo "$as_me:$LINENO: result: $ac_res" >&5
29631echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029632
29633fi
29634if test `eval echo '${'$as_ac_Header'}'` = yes; then
29635 cat >>confdefs.h <<_ACEOF
29636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29637_ACEOF
29638
29639fi
29640
29641done
29642
Reid Spencer0a262ba2005-08-24 10:07:20 +000029643if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029644
29645for ac_header in pthread.h
29646do
29647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029652 echo $ECHO_N "(cached) $ECHO_C" >&6
29653fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029654ac_res=`eval echo '${'$as_ac_Header'}'`
29655 { echo "$as_me:$LINENO: result: $ac_res" >&5
29656echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029657else
29658 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029661cat >conftest.$ac_ext <<_ACEOF
29662/* confdefs.h. */
29663_ACEOF
29664cat confdefs.h >>conftest.$ac_ext
29665cat >>conftest.$ac_ext <<_ACEOF
29666/* end confdefs.h. */
29667$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029668#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029669_ACEOF
29670rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029671if { (ac_try="$ac_compile"
29672case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029678 ac_status=$?
29679 grep -v '^ *+' conftest.er1 >conftest.err
29680 rm -f conftest.er1
29681 cat conftest.err >&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029683 (exit $ac_status); } &&
29684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685 { (case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29688esac
29689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
29695 { (case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29698esac
29699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_try") 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029704 ac_header_compiler=yes
29705else
29706 echo "$as_me: failed program was:" >&5
29707sed 's/^/| /' conftest.$ac_ext >&5
29708
Reid Spencera773bd52006-08-04 18:18:08 +000029709 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029710fi
Reid Spencera773bd52006-08-04 18:18:08 +000029711
29712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29714echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029715
29716# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029719cat >conftest.$ac_ext <<_ACEOF
29720/* confdefs.h. */
29721_ACEOF
29722cat confdefs.h >>conftest.$ac_ext
29723cat >>conftest.$ac_ext <<_ACEOF
29724/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029725#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029726_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029727if { (ac_try="$ac_cpp conftest.$ac_ext"
29728case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731esac
29732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029734 ac_status=$?
29735 grep -v '^ *+' conftest.er1 >conftest.err
29736 rm -f conftest.er1
29737 cat conftest.err >&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029739 (exit $ac_status); } >/dev/null; then
29740 if test -s conftest.err; then
29741 ac_cpp_err=$ac_c_preproc_warn_flag
29742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29743 else
29744 ac_cpp_err=
29745 fi
29746else
29747 ac_cpp_err=yes
29748fi
29749if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029750 ac_header_preproc=yes
29751else
29752 echo "$as_me: failed program was:" >&5
29753sed 's/^/| /' conftest.$ac_ext >&5
29754
29755 ac_header_preproc=no
29756fi
Reid Spencera773bd52006-08-04 18:18:08 +000029757
Reid Spencer0a262ba2005-08-24 10:07:20 +000029758rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29760echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029761
29762# So? What about this header?
29763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29764 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029769 ac_header_preproc=yes
29770 ;;
29771 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029784 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029785## ----------------------------------- ##
29786## Report this to llvmbugs@cs.uiuc.edu ##
29787## ----------------------------------- ##
29788_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029789 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029790 ;;
29791esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029795 echo $ECHO_N "(cached) $ECHO_C" >&6
29796else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029797 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029798fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029799ac_res=`eval echo '${'$as_ac_Header'}'`
29800 { echo "$as_me:$LINENO: result: $ac_res" >&5
29801echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029802
29803fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029804if test `eval echo '${'$as_ac_Header'}'` = yes; then
29805 cat >>confdefs.h <<_ACEOF
29806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29807_ACEOF
29808 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029809
29810else
29811 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029812
29813fi
29814
Reid Spencerbe3e4192007-08-17 05:45:26 +000029815done
Reid Spencer1000b732006-12-01 00:37:14 +000029816
29817else
29818 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029819
29820fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029821
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029822
29823
29824for ac_header in ffi.h ffi/ffi.h
29825do
29826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29831 echo $ECHO_N "(cached) $ECHO_C" >&6
29832fi
29833ac_res=`eval echo '${'$as_ac_Header'}'`
29834 { echo "$as_me:$LINENO: result: $ac_res" >&5
29835echo "${ECHO_T}$ac_res" >&6; }
29836else
29837 # Is the header compilable?
29838{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29840cat >conftest.$ac_ext <<_ACEOF
29841/* confdefs.h. */
29842_ACEOF
29843cat confdefs.h >>conftest.$ac_ext
29844cat >>conftest.$ac_ext <<_ACEOF
29845/* end confdefs.h. */
29846$ac_includes_default
29847#include <$ac_header>
29848_ACEOF
29849rm -f conftest.$ac_objext
29850if { (ac_try="$ac_compile"
29851case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854esac
29855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_compile") 2>conftest.er1
29857 ac_status=$?
29858 grep -v '^ *+' conftest.er1 >conftest.err
29859 rm -f conftest.er1
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029862 (exit $ac_status); } &&
29863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29864 { (case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29867esac
29868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_try") 2>&5
29870 ac_status=$?
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; } &&
29873 { ac_try='test -s conftest.$ac_objext'
29874 { (case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29877esac
29878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_try") 2>&5
29880 ac_status=$?
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029883 ac_header_compiler=yes
29884else
29885 echo "$as_me: failed program was:" >&5
29886sed 's/^/| /' conftest.$ac_ext >&5
29887
29888 ac_header_compiler=no
29889fi
29890
29891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29893echo "${ECHO_T}$ac_header_compiler" >&6; }
29894
29895# Is the header present?
29896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29898cat >conftest.$ac_ext <<_ACEOF
29899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
29904#include <$ac_header>
29905_ACEOF
29906if { (ac_try="$ac_cpp conftest.$ac_ext"
29907case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29910esac
29911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29913 ac_status=$?
29914 grep -v '^ *+' conftest.er1 >conftest.err
29915 rm -f conftest.er1
29916 cat conftest.err >&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029918 (exit $ac_status); } >/dev/null; then
29919 if test -s conftest.err; then
29920 ac_cpp_err=$ac_c_preproc_warn_flag
29921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29922 else
29923 ac_cpp_err=
29924 fi
29925else
29926 ac_cpp_err=yes
29927fi
29928if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029929 ac_header_preproc=yes
29930else
29931 echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934 ac_header_preproc=no
29935fi
29936
29937rm -f conftest.err conftest.$ac_ext
29938{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29939echo "${ECHO_T}$ac_header_preproc" >&6; }
29940
29941# So? What about this header?
29942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29943 yes:no: )
29944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29948 ac_header_preproc=yes
29949 ;;
29950 no:yes:* )
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29963 ( cat <<\_ASBOX
29964## ----------------------------------- ##
29965## Report this to llvmbugs@cs.uiuc.edu ##
29966## ----------------------------------- ##
29967_ASBOX
29968 ) | sed "s/^/$as_me: WARNING: /" >&2
29969 ;;
29970esac
29971{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29974 echo $ECHO_N "(cached) $ECHO_C" >&6
29975else
29976 eval "$as_ac_Header=\$ac_header_preproc"
29977fi
29978ac_res=`eval echo '${'$as_ac_Header'}'`
29979 { echo "$as_me:$LINENO: result: $ac_res" >&5
29980echo "${ECHO_T}$ac_res" >&6; }
29981
29982fi
29983if test `eval echo '${'$as_ac_Header'}'` = yes; then
29984 cat >>confdefs.h <<_ACEOF
29985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29986_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029987
29988fi
29989
29990done
29991
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029992
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029993
Reid Spencer8085cff2005-01-16 02:58:39 +000029994
Reid Spencerb2ed05262006-11-03 18:04:08 +000029995 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29996echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29997if test "${ac_cv_huge_val_sanity+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
29999else
30000
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030001 ac_ext=cpp
30002ac_cpp='$CXXCPP $CPPFLAGS'
30003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030006
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030007 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030008 if test "$cross_compiling" = yes; then
30009 ac_cv_huge_val_sanity=yes
30010else
30011 cat >conftest.$ac_ext <<_ACEOF
30012/* confdefs.h. */
30013_ACEOF
30014cat confdefs.h >>conftest.$ac_ext
30015cat >>conftest.$ac_ext <<_ACEOF
30016/* end confdefs.h. */
30017#include <math.h>
30018int
30019main ()
30020{
30021double x = HUGE_VAL; return x != x;
30022 ;
30023 return 0;
30024}
30025_ACEOF
30026rm -f conftest$ac_exeext
30027if { (ac_try="$ac_link"
30028case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30031esac
30032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_link") 2>&5
30034 ac_status=$?
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
30046 ac_cv_huge_val_sanity=yes
30047else
30048 echo "$as_me: program exited with status $ac_status" >&5
30049echo "$as_me: failed program was:" >&5
30050sed 's/^/| /' conftest.$ac_ext >&5
30051
30052( exit $ac_status )
30053ac_cv_huge_val_sanity=no
30054fi
30055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30056fi
30057
30058
30059 ac_ext=c
30060ac_cpp='$CPP $CPPFLAGS'
30061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30063ac_compiler_gnu=$ac_cv_c_compiler_gnu
30064
30065
30066fi
30067{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30068echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30069 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30070
30071
Reid Spencera773bd52006-08-04 18:18:08 +000030072{ echo "$as_me:$LINENO: checking for pid_t" >&5
30073echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030074if test "${ac_cv_type_pid_t+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30076else
30077 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030078/* confdefs.h. */
30079_ACEOF
30080cat confdefs.h >>conftest.$ac_ext
30081cat >>conftest.$ac_ext <<_ACEOF
30082/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030083$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030084typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030085int
30086main ()
30087{
Reid Spencera773bd52006-08-04 18:18:08 +000030088if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030089 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030090if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030091 return 0;
30092 ;
30093 return 0;
30094}
30095_ACEOF
30096rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030097if { (ac_try="$ac_compile"
30098case "(($ac_try" in
30099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100 *) ac_try_echo=$ac_try;;
30101esac
30102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030104 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030105 grep -v '^ *+' conftest.er1 >conftest.err
30106 rm -f conftest.er1
30107 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030109 (exit $ac_status); } &&
30110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30111 { (case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30114esac
30115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_try") 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest.$ac_objext'
30121 { (case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30124esac
30125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126 (eval "$ac_try") 2>&5
30127 ac_status=$?
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030130 ac_cv_type_pid_t=yes
30131else
30132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030133sed 's/^/| /' conftest.$ac_ext >&5
30134
Reid Spencera773bd52006-08-04 18:18:08 +000030135 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030136fi
Reid Spencera773bd52006-08-04 18:18:08 +000030137
30138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030139fi
Reid Spencera773bd52006-08-04 18:18:08 +000030140{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30141echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030142if test $ac_cv_type_pid_t = yes; then
30143 :
30144else
30145
30146cat >>confdefs.h <<_ACEOF
30147#define pid_t int
30148_ACEOF
30149
30150fi
30151
Reid Spencera773bd52006-08-04 18:18:08 +000030152{ echo "$as_me:$LINENO: checking for size_t" >&5
30153echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030154if test "${ac_cv_type_size_t+set}" = set; then
30155 echo $ECHO_N "(cached) $ECHO_C" >&6
30156else
30157 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030158/* confdefs.h. */
30159_ACEOF
30160cat confdefs.h >>conftest.$ac_ext
30161cat >>conftest.$ac_ext <<_ACEOF
30162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030163$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030164typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030165int
30166main ()
30167{
Reid Spencera773bd52006-08-04 18:18:08 +000030168if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030169 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030170if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030171 return 0;
30172 ;
30173 return 0;
30174}
30175_ACEOF
30176rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030177if { (ac_try="$ac_compile"
30178case "(($ac_try" in
30179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30181esac
30182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030185 grep -v '^ *+' conftest.er1 >conftest.err
30186 rm -f conftest.er1
30187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030189 (exit $ac_status); } &&
30190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; } &&
30200 { ac_try='test -s conftest.$ac_objext'
30201 { (case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30204esac
30205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_try") 2>&5
30207 ac_status=$?
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030210 ac_cv_type_size_t=yes
30211else
30212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030213sed 's/^/| /' conftest.$ac_ext >&5
30214
Reid Spencera773bd52006-08-04 18:18:08 +000030215 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030216fi
Reid Spencera773bd52006-08-04 18:18:08 +000030217
30218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030219fi
Reid Spencera773bd52006-08-04 18:18:08 +000030220{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30221echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030222if test $ac_cv_type_size_t = yes; then
30223 :
30224else
30225
30226cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030227#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030228_ACEOF
30229
30230fi
30231
Reid Spencera773bd52006-08-04 18:18:08 +000030232{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30233echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030234if test "${ac_cv_type_signal+set}" = set; then
30235 echo $ECHO_N "(cached) $ECHO_C" >&6
30236else
30237 cat >conftest.$ac_ext <<_ACEOF
30238/* confdefs.h. */
30239_ACEOF
30240cat confdefs.h >>conftest.$ac_ext
30241cat >>conftest.$ac_ext <<_ACEOF
30242/* end confdefs.h. */
30243#include <sys/types.h>
30244#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030245
30246int
30247main ()
30248{
Reid Spencera773bd52006-08-04 18:18:08 +000030249return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030250 ;
30251 return 0;
30252}
30253_ACEOF
30254rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030255if { (ac_try="$ac_compile"
30256case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30259esac
30260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030262 ac_status=$?
30263 grep -v '^ *+' conftest.er1 >conftest.err
30264 rm -f conftest.er1
30265 cat conftest.err >&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030267 (exit $ac_status); } &&
30268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30272esac
30273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest.$ac_objext'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030288 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030289else
30290 echo "$as_me: failed program was:" >&5
30291sed 's/^/| /' conftest.$ac_ext >&5
30292
Reid Spencera773bd52006-08-04 18:18:08 +000030293 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030294fi
Reid Spencera773bd52006-08-04 18:18:08 +000030295
30296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030297fi
Reid Spencera773bd52006-08-04 18:18:08 +000030298{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30299echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030300
30301cat >>confdefs.h <<_ACEOF
30302#define RETSIGTYPE $ac_cv_type_signal
30303_ACEOF
30304
30305
Reid Spencera773bd52006-08-04 18:18:08 +000030306{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30307echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030308if test "${ac_cv_struct_tm+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310else
30311 cat >conftest.$ac_ext <<_ACEOF
30312/* confdefs.h. */
30313_ACEOF
30314cat confdefs.h >>conftest.$ac_ext
30315cat >>conftest.$ac_ext <<_ACEOF
30316/* end confdefs.h. */
30317#include <sys/types.h>
30318#include <time.h>
30319
30320int
30321main ()
30322{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030323struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030324 ;
30325 return 0;
30326}
30327_ACEOF
30328rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030329if { (ac_try="$ac_compile"
30330case "(($ac_try" in
30331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30333esac
30334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030336 ac_status=$?
30337 grep -v '^ *+' conftest.er1 >conftest.err
30338 rm -f conftest.er1
30339 cat conftest.err >&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030341 (exit $ac_status); } &&
30342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30343 { (case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30346esac
30347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_try") 2>&5
30349 ac_status=$?
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; } &&
30352 { ac_try='test -s conftest.$ac_objext'
30353 { (case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30356esac
30357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_try") 2>&5
30359 ac_status=$?
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030362 ac_cv_struct_tm=time.h
30363else
30364 echo "$as_me: failed program was:" >&5
30365sed 's/^/| /' conftest.$ac_ext >&5
30366
Reid Spencera773bd52006-08-04 18:18:08 +000030367 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030368fi
Reid Spencera773bd52006-08-04 18:18:08 +000030369
30370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030371fi
Reid Spencera773bd52006-08-04 18:18:08 +000030372{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30373echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030374if test $ac_cv_struct_tm = sys/time.h; then
30375
30376cat >>confdefs.h <<\_ACEOF
30377#define TM_IN_SYS_TIME 1
30378_ACEOF
30379
30380fi
30381
Reid Spencera773bd52006-08-04 18:18:08 +000030382{ echo "$as_me:$LINENO: checking for int64_t" >&5
30383echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030384if test "${ac_cv_type_int64_t+set}" = set; then
30385 echo $ECHO_N "(cached) $ECHO_C" >&6
30386else
30387 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030388/* confdefs.h. */
30389_ACEOF
30390cat confdefs.h >>conftest.$ac_ext
30391cat >>conftest.$ac_ext <<_ACEOF
30392/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030393$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030394typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030395int
30396main ()
30397{
Reid Spencera773bd52006-08-04 18:18:08 +000030398if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030399 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030400if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030401 return 0;
30402 ;
30403 return 0;
30404}
30405_ACEOF
30406rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030407if { (ac_try="$ac_compile"
30408case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30411esac
30412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421 { (case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30424esac
30425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_try") 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest.$ac_objext'
30431 { (case "(($ac_try" in
30432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433 *) ac_try_echo=$ac_try;;
30434esac
30435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436 (eval "$ac_try") 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030440 ac_cv_type_int64_t=yes
30441else
30442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030443sed 's/^/| /' conftest.$ac_ext >&5
30444
Reid Spencera773bd52006-08-04 18:18:08 +000030445 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030446fi
Reid Spencera773bd52006-08-04 18:18:08 +000030447
30448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030449fi
Reid Spencera773bd52006-08-04 18:18:08 +000030450{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30451echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030452if test $ac_cv_type_int64_t = yes; then
30453
30454cat >>confdefs.h <<_ACEOF
30455#define HAVE_INT64_T 1
30456_ACEOF
30457
30458
30459else
30460 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30461echo "$as_me: error: Type int64_t required but not found" >&2;}
30462 { (exit 1); exit 1; }; }
30463fi
30464
Reid Spencera773bd52006-08-04 18:18:08 +000030465{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30466echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030467if test "${ac_cv_type_uint64_t+set}" = set; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30469else
30470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030471/* confdefs.h. */
30472_ACEOF
30473cat confdefs.h >>conftest.$ac_ext
30474cat >>conftest.$ac_ext <<_ACEOF
30475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030476$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030477typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030478int
30479main ()
30480{
Reid Spencera773bd52006-08-04 18:18:08 +000030481if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030482 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030483if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030484 return 0;
30485 ;
30486 return 0;
30487}
30488_ACEOF
30489rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030490if { (ac_try="$ac_compile"
30491case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30494esac
30495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030497 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030498 grep -v '^ *+' conftest.er1 >conftest.err
30499 rm -f conftest.er1
30500 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030502 (exit $ac_status); } &&
30503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30504 { (case "(($ac_try" in
30505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506 *) ac_try_echo=$ac_try;;
30507esac
30508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509 (eval "$ac_try") 2>&5
30510 ac_status=$?
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; } &&
30513 { ac_try='test -s conftest.$ac_objext'
30514 { (case "(($ac_try" in
30515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30517esac
30518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_try") 2>&5
30520 ac_status=$?
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030523 ac_cv_type_uint64_t=yes
30524else
30525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030526sed 's/^/| /' conftest.$ac_ext >&5
30527
Reid Spencera773bd52006-08-04 18:18:08 +000030528 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030529fi
Reid Spencera773bd52006-08-04 18:18:08 +000030530
30531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030532fi
Reid Spencera773bd52006-08-04 18:18:08 +000030533{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30534echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030535if test $ac_cv_type_uint64_t = yes; then
30536
30537cat >>confdefs.h <<_ACEOF
30538#define HAVE_UINT64_T 1
30539_ACEOF
30540
30541
30542else
Reid Spencera773bd52006-08-04 18:18:08 +000030543 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30544echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030545if test "${ac_cv_type_u_int64_t+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30547else
30548 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030549/* confdefs.h. */
30550_ACEOF
30551cat confdefs.h >>conftest.$ac_ext
30552cat >>conftest.$ac_ext <<_ACEOF
30553/* end confdefs.h. */
30554$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030555typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030556int
30557main ()
30558{
Reid Spencera773bd52006-08-04 18:18:08 +000030559if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030560 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030561if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030562 return 0;
30563 ;
30564 return 0;
30565}
30566_ACEOF
30567rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030568if { (ac_try="$ac_compile"
30569case "(($ac_try" in
30570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571 *) ac_try_echo=$ac_try;;
30572esac
30573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030576 grep -v '^ *+' conftest.er1 >conftest.err
30577 rm -f conftest.er1
30578 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030580 (exit $ac_status); } &&
30581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30582 { (case "(($ac_try" in
30583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584 *) ac_try_echo=$ac_try;;
30585esac
30586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587 (eval "$ac_try") 2>&5
30588 ac_status=$?
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; } &&
30591 { ac_try='test -s conftest.$ac_objext'
30592 { (case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30595esac
30596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597 (eval "$ac_try") 2>&5
30598 ac_status=$?
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030601 ac_cv_type_u_int64_t=yes
30602else
30603 echo "$as_me: failed program was:" >&5
30604sed 's/^/| /' conftest.$ac_ext >&5
30605
Reid Spencera773bd52006-08-04 18:18:08 +000030606 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030607fi
Reid Spencera773bd52006-08-04 18:18:08 +000030608
30609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030610fi
Reid Spencera773bd52006-08-04 18:18:08 +000030611{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30612echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030613if test $ac_cv_type_u_int64_t = yes; then
30614
30615cat >>confdefs.h <<_ACEOF
30616#define HAVE_U_INT64_T 1
30617_ACEOF
30618
30619
Misha Brukmanceca9042004-09-02 23:02:30 +000030620else
30621 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30622echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30623 { (exit 1); exit 1; }; }
30624fi
30625
John Criswell679ff312004-09-02 18:44:44 +000030626fi
30627
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030628
30629
30630
30631
30632
30633
30634
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030635
30636
Reid Spencerdf3be822006-01-23 08:15:53 +000030637for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030638do
30639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030640{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30642if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030643 echo $ECHO_N "(cached) $ECHO_C" >&6
30644else
30645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030646/* confdefs.h. */
30647_ACEOF
30648cat confdefs.h >>conftest.$ac_ext
30649cat >>conftest.$ac_ext <<_ACEOF
30650/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30653#define $ac_func innocuous_$ac_func
30654
30655/* System header to define __stub macros and hopefully few prototypes,
30656 which can conflict with char $ac_func (); below.
30657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30658 <limits.h> exists even on freestanding compilers. */
30659
30660#ifdef __STDC__
30661# include <limits.h>
30662#else
30663# include <assert.h>
30664#endif
30665
30666#undef $ac_func
30667
Reid Spencera773bd52006-08-04 18:18:08 +000030668/* Override any GCC internal prototype to avoid an error.
30669 Use char because int might match the return type of a GCC
30670 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030671#ifdef __cplusplus
30672extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030673#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030674char $ac_func ();
30675/* The GNU C library defines this for functions which it implements
30676 to always fail with ENOSYS. Some functions are actually named
30677 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030678#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030679choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030680#endif
John Criswell7a73b802003-06-30 21:59:07 +000030681
John Criswell7a73b802003-06-30 21:59:07 +000030682int
30683main ()
30684{
Reid Spencera773bd52006-08-04 18:18:08 +000030685return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030686 ;
30687 return 0;
30688}
30689_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030690rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030691if { (ac_try="$ac_link"
30692case "(($ac_try" in
30693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30694 *) ac_try_echo=$ac_try;;
30695esac
30696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30697 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030699 grep -v '^ *+' conftest.er1 >conftest.err
30700 rm -f conftest.er1
30701 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030703 (exit $ac_status); } &&
30704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30705 { (case "(($ac_try" in
30706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707 *) ac_try_echo=$ac_try;;
30708esac
30709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710 (eval "$ac_try") 2>&5
30711 ac_status=$?
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; } &&
30714 { ac_try='test -s conftest$ac_exeext'
30715 { (case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30718esac
30719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_try") 2>&5
30721 ac_status=$?
30722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030724 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030725else
30726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030727sed 's/^/| /' conftest.$ac_ext >&5
30728
Reid Spencera773bd52006-08-04 18:18:08 +000030729 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030730fi
Reid Spencera773bd52006-08-04 18:18:08 +000030731
Bill Wendlingebcceee2009-04-18 11:20:33 +000030732rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030733 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030734fi
Reid Spencera773bd52006-08-04 18:18:08 +000030735ac_res=`eval echo '${'$as_ac_var'}'`
30736 { echo "$as_me:$LINENO: result: $ac_res" >&5
30737echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030738if test `eval echo '${'$as_ac_var'}'` = yes; then
30739 cat >>confdefs.h <<_ACEOF
30740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030741_ACEOF
30742
30743fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030744done
John Criswell7a73b802003-06-30 21:59:07 +000030745
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030746
30747
30748
Reid Spencer6af3d262004-12-15 04:01:48 +000030749
Reid Spencer96cf5872007-07-13 10:05:30 +000030750for ac_func in powf fmodf strtof round
30751do
30752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30756 echo $ECHO_N "(cached) $ECHO_C" >&6
30757else
30758 cat >conftest.$ac_ext <<_ACEOF
30759/* confdefs.h. */
30760_ACEOF
30761cat confdefs.h >>conftest.$ac_ext
30762cat >>conftest.$ac_ext <<_ACEOF
30763/* end confdefs.h. */
30764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30766#define $ac_func innocuous_$ac_func
30767
30768/* System header to define __stub macros and hopefully few prototypes,
30769 which can conflict with char $ac_func (); below.
30770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771 <limits.h> exists even on freestanding compilers. */
30772
30773#ifdef __STDC__
30774# include <limits.h>
30775#else
30776# include <assert.h>
30777#endif
30778
30779#undef $ac_func
30780
30781/* Override any GCC internal prototype to avoid an error.
30782 Use char because int might match the return type of a GCC
30783 builtin and then its argument prototype would still apply. */
30784#ifdef __cplusplus
30785extern "C"
30786#endif
30787char $ac_func ();
30788/* The GNU C library defines this for functions which it implements
30789 to always fail with ENOSYS. Some functions are actually named
30790 something starting with __ and the normal name is an alias. */
30791#if defined __stub_$ac_func || defined __stub___$ac_func
30792choke me
30793#endif
30794
30795int
30796main ()
30797{
30798return $ac_func ();
30799 ;
30800 return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext conftest$ac_exeext
30804if { (ac_try="$ac_link"
30805case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30808esac
30809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810 (eval "$ac_link") 2>conftest.er1
30811 ac_status=$?
30812 grep -v '^ *+' conftest.er1 >conftest.err
30813 rm -f conftest.er1
30814 cat conftest.err >&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030816 (exit $ac_status); } &&
30817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest$ac_exeext'
30828 { (case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30831esac
30832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833 (eval "$ac_try") 2>&5
30834 ac_status=$?
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030837 eval "$as_ac_var=yes"
30838else
30839 echo "$as_me: failed program was:" >&5
30840sed 's/^/| /' conftest.$ac_ext >&5
30841
30842 eval "$as_ac_var=no"
30843fi
30844
Bill Wendlingebcceee2009-04-18 11:20:33 +000030845rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030846 conftest$ac_exeext conftest.$ac_ext
30847fi
30848ac_res=`eval echo '${'$as_ac_var'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850echo "${ECHO_T}$ac_res" >&6; }
30851if test `eval echo '${'$as_ac_var'}'` = yes; then
30852 cat >>confdefs.h <<_ACEOF
30853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30854_ACEOF
30855
30856fi
30857done
30858
30859
30860
30861
30862
Reid Spencer6af3d262004-12-15 04:01:48 +000030863
Reid Spencerb90645c2007-02-16 19:17:20 +000030864for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30865do
30866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30867{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30871else
30872 cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h. */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h. */
30878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30880#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030881
Reid Spencerb90645c2007-02-16 19:17:20 +000030882/* System header to define __stub macros and hopefully few prototypes,
30883 which can conflict with char $ac_func (); below.
30884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30885 <limits.h> exists even on freestanding compilers. */
30886
30887#ifdef __STDC__
30888# include <limits.h>
30889#else
30890# include <assert.h>
30891#endif
30892
30893#undef $ac_func
30894
30895/* Override any GCC internal prototype to avoid an error.
30896 Use char because int might match the return type of a GCC
30897 builtin and then its argument prototype would still apply. */
30898#ifdef __cplusplus
30899extern "C"
30900#endif
30901char $ac_func ();
30902/* The GNU C library defines this for functions which it implements
30903 to always fail with ENOSYS. Some functions are actually named
30904 something starting with __ and the normal name is an alias. */
30905#if defined __stub_$ac_func || defined __stub___$ac_func
30906choke me
30907#endif
30908
30909int
30910main ()
30911{
30912return $ac_func ();
30913 ;
30914 return 0;
30915}
30916_ACEOF
30917rm -f conftest.$ac_objext conftest$ac_exeext
30918if { (ac_try="$ac_link"
30919case "(($ac_try" in
30920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921 *) ac_try_echo=$ac_try;;
30922esac
30923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924 (eval "$ac_link") 2>conftest.er1
30925 ac_status=$?
30926 grep -v '^ *+' conftest.er1 >conftest.err
30927 rm -f conftest.er1
30928 cat conftest.err >&5
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030930 (exit $ac_status); } &&
30931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30932 { (case "(($ac_try" in
30933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934 *) ac_try_echo=$ac_try;;
30935esac
30936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937 (eval "$ac_try") 2>&5
30938 ac_status=$?
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; } &&
30941 { ac_try='test -s conftest$ac_exeext'
30942 { (case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30945esac
30946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_try") 2>&5
30948 ac_status=$?
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030951 eval "$as_ac_var=yes"
30952else
30953 echo "$as_me: failed program was:" >&5
30954sed 's/^/| /' conftest.$ac_ext >&5
30955
30956 eval "$as_ac_var=no"
30957fi
30958
Bill Wendlingebcceee2009-04-18 11:20:33 +000030959rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030960 conftest$ac_exeext conftest.$ac_ext
30961fi
30962ac_res=`eval echo '${'$as_ac_var'}'`
30963 { echo "$as_me:$LINENO: result: $ac_res" >&5
30964echo "${ECHO_T}$ac_res" >&6; }
30965if test `eval echo '${'$as_ac_var'}'` = yes; then
30966 cat >>confdefs.h <<_ACEOF
30967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30968_ACEOF
30969
30970fi
30971done
30972
30973
30974
30975
30976for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030977do
30978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030982 echo $ECHO_N "(cached) $ECHO_C" >&6
30983else
30984 cat >conftest.$ac_ext <<_ACEOF
30985/* confdefs.h. */
30986_ACEOF
30987cat confdefs.h >>conftest.$ac_ext
30988cat >>conftest.$ac_ext <<_ACEOF
30989/* end confdefs.h. */
30990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30992#define $ac_func innocuous_$ac_func
30993
30994/* System header to define __stub macros and hopefully few prototypes,
30995 which can conflict with char $ac_func (); below.
30996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997 <limits.h> exists even on freestanding compilers. */
30998
30999#ifdef __STDC__
31000# include <limits.h>
31001#else
31002# include <assert.h>
31003#endif
31004
31005#undef $ac_func
31006
Reid Spencera773bd52006-08-04 18:18:08 +000031007/* Override any GCC internal prototype to avoid an error.
31008 Use char because int might match the return type of a GCC
31009 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031010#ifdef __cplusplus
31011extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031012#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031013char $ac_func ();
31014/* The GNU C library defines this for functions which it implements
31015 to always fail with ENOSYS. Some functions are actually named
31016 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031017#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031018choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031019#endif
31020
31021int
31022main ()
31023{
Reid Spencera773bd52006-08-04 18:18:08 +000031024return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031025 ;
31026 return 0;
31027}
31028_ACEOF
31029rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031030if { (ac_try="$ac_link"
31031case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31034esac
31035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031037 ac_status=$?
31038 grep -v '^ *+' conftest.er1 >conftest.err
31039 rm -f conftest.er1
31040 cat conftest.err >&5
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031042 (exit $ac_status); } &&
31043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31044 { (case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31047esac
31048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_try") 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest$ac_exeext'
31054 { (case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31057esac
31058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_try") 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031063 eval "$as_ac_var=yes"
31064else
31065 echo "$as_me: failed program was:" >&5
31066sed 's/^/| /' conftest.$ac_ext >&5
31067
Reid Spencera773bd52006-08-04 18:18:08 +000031068 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031069fi
Reid Spencera773bd52006-08-04 18:18:08 +000031070
Bill Wendlingebcceee2009-04-18 11:20:33 +000031071rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031072 conftest$ac_exeext conftest.$ac_ext
31073fi
Reid Spencera773bd52006-08-04 18:18:08 +000031074ac_res=`eval echo '${'$as_ac_var'}'`
31075 { echo "$as_me:$LINENO: result: $ac_res" >&5
31076echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031077if test `eval echo '${'$as_ac_var'}'` = yes; then
31078 cat >>confdefs.h <<_ACEOF
31079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31080_ACEOF
31081
31082fi
31083done
31084
31085
31086
31087
31088
31089
31090
31091
31092for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031093do
31094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031095{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031098 echo $ECHO_N "(cached) $ECHO_C" >&6
31099else
31100 cat >conftest.$ac_ext <<_ACEOF
31101/* confdefs.h. */
31102_ACEOF
31103cat confdefs.h >>conftest.$ac_ext
31104cat >>conftest.$ac_ext <<_ACEOF
31105/* end confdefs.h. */
31106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31108#define $ac_func innocuous_$ac_func
31109
31110/* System header to define __stub macros and hopefully few prototypes,
31111 which can conflict with char $ac_func (); below.
31112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113 <limits.h> exists even on freestanding compilers. */
31114
31115#ifdef __STDC__
31116# include <limits.h>
31117#else
31118# include <assert.h>
31119#endif
31120
31121#undef $ac_func
31122
Reid Spencera773bd52006-08-04 18:18:08 +000031123/* Override any GCC internal prototype to avoid an error.
31124 Use char because int might match the return type of a GCC
31125 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031126#ifdef __cplusplus
31127extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031128#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031129char $ac_func ();
31130/* The GNU C library defines this for functions which it implements
31131 to always fail with ENOSYS. Some functions are actually named
31132 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031133#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031134choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031135#endif
31136
31137int
31138main ()
31139{
Reid Spencera773bd52006-08-04 18:18:08 +000031140return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031141 ;
31142 return 0;
31143}
31144_ACEOF
31145rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031146if { (ac_try="$ac_link"
31147case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31150esac
31151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031153 ac_status=$?
31154 grep -v '^ *+' conftest.er1 >conftest.err
31155 rm -f conftest.er1
31156 cat conftest.err >&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031158 (exit $ac_status); } &&
31159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160 { (case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31163esac
31164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_try") 2>&5
31166 ac_status=$?
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
31170 { (case "(($ac_try" in
31171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172 *) ac_try_echo=$ac_try;;
31173esac
31174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175 (eval "$ac_try") 2>&5
31176 ac_status=$?
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031179 eval "$as_ac_var=yes"
31180else
31181 echo "$as_me: failed program was:" >&5
31182sed 's/^/| /' conftest.$ac_ext >&5
31183
Reid Spencera773bd52006-08-04 18:18:08 +000031184 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031185fi
Reid Spencera773bd52006-08-04 18:18:08 +000031186
Bill Wendlingebcceee2009-04-18 11:20:33 +000031187rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031188 conftest$ac_exeext conftest.$ac_ext
31189fi
Reid Spencera773bd52006-08-04 18:18:08 +000031190ac_res=`eval echo '${'$as_ac_var'}'`
31191 { echo "$as_me:$LINENO: result: $ac_res" >&5
31192echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031193if test `eval echo '${'$as_ac_var'}'` = yes; then
31194 cat >>confdefs.h <<_ACEOF
31195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31196_ACEOF
31197
31198fi
31199done
31200
31201
Reid Spencerba46ca32004-12-31 05:49:15 +000031202
31203
Chris Lattner0b142592005-11-14 06:57:34 +000031204
Chris Lattner511f11d2005-11-14 07:25:50 +000031205for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031206do
31207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031208{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031211 echo $ECHO_N "(cached) $ECHO_C" >&6
31212else
31213 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031214/* confdefs.h. */
31215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31221#define $ac_func innocuous_$ac_func
31222
31223/* System header to define __stub macros and hopefully few prototypes,
31224 which can conflict with char $ac_func (); below.
31225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31226 <limits.h> exists even on freestanding compilers. */
31227
31228#ifdef __STDC__
31229# include <limits.h>
31230#else
31231# include <assert.h>
31232#endif
31233
31234#undef $ac_func
31235
Reid Spencera773bd52006-08-04 18:18:08 +000031236/* Override any GCC internal prototype to avoid an error.
31237 Use char because int might match the return type of a GCC
31238 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031239#ifdef __cplusplus
31240extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031241#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031242char $ac_func ();
31243/* The GNU C library defines this for functions which it implements
31244 to always fail with ENOSYS. Some functions are actually named
31245 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031246#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031247choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031248#endif
John Criswell7a73b802003-06-30 21:59:07 +000031249
John Criswell7a73b802003-06-30 21:59:07 +000031250int
31251main ()
31252{
Reid Spencera773bd52006-08-04 18:18:08 +000031253return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031254 ;
31255 return 0;
31256}
31257_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031258rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031259if { (ac_try="$ac_link"
31260case "(($ac_try" in
31261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31262 *) ac_try_echo=$ac_try;;
31263esac
31264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031266 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031267 grep -v '^ *+' conftest.er1 >conftest.err
31268 rm -f conftest.er1
31269 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031271 (exit $ac_status); } &&
31272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31273 { (case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31276esac
31277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_try") 2>&5
31279 ac_status=$?
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; } &&
31282 { ac_try='test -s conftest$ac_exeext'
31283 { (case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31286esac
31287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_try") 2>&5
31289 ac_status=$?
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031292 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031293else
31294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031295sed 's/^/| /' conftest.$ac_ext >&5
31296
Reid Spencera773bd52006-08-04 18:18:08 +000031297 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031298fi
Reid Spencera773bd52006-08-04 18:18:08 +000031299
Bill Wendlingebcceee2009-04-18 11:20:33 +000031300rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031301 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031302fi
Reid Spencera773bd52006-08-04 18:18:08 +000031303ac_res=`eval echo '${'$as_ac_var'}'`
31304 { echo "$as_me:$LINENO: result: $ac_res" >&5
31305echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306if test `eval echo '${'$as_ac_var'}'` = yes; then
31307 cat >>confdefs.h <<_ACEOF
31308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031309_ACEOF
31310
31311fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031312done
John Criswell7a73b802003-06-30 21:59:07 +000031313
Reid Spencercdb08a32006-06-05 16:11:07 +000031314
31315
31316
31317
Reid Spencerafa22e22006-12-10 23:29:19 +000031318for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031319do
31320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031324 echo $ECHO_N "(cached) $ECHO_C" >&6
31325else
31326 cat >conftest.$ac_ext <<_ACEOF
31327/* confdefs.h. */
31328_ACEOF
31329cat confdefs.h >>conftest.$ac_ext
31330cat >>conftest.$ac_ext <<_ACEOF
31331/* end confdefs.h. */
31332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31334#define $ac_func innocuous_$ac_func
31335
31336/* System header to define __stub macros and hopefully few prototypes,
31337 which can conflict with char $ac_func (); below.
31338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31339 <limits.h> exists even on freestanding compilers. */
31340
31341#ifdef __STDC__
31342# include <limits.h>
31343#else
31344# include <assert.h>
31345#endif
31346
31347#undef $ac_func
31348
Reid Spencera773bd52006-08-04 18:18:08 +000031349/* Override any GCC internal prototype to avoid an error.
31350 Use char because int might match the return type of a GCC
31351 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031352#ifdef __cplusplus
31353extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031354#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031355char $ac_func ();
31356/* The GNU C library defines this for functions which it implements
31357 to always fail with ENOSYS. Some functions are actually named
31358 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031359#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031360choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031361#endif
31362
31363int
31364main ()
31365{
Reid Spencera773bd52006-08-04 18:18:08 +000031366return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031367 ;
31368 return 0;
31369}
31370_ACEOF
31371rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031372if { (ac_try="$ac_link"
31373case "(($ac_try" in
31374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31376esac
31377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031379 ac_status=$?
31380 grep -v '^ *+' conftest.er1 >conftest.err
31381 rm -f conftest.er1
31382 cat conftest.err >&5
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031384 (exit $ac_status); } &&
31385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31386 { (case "(($ac_try" in
31387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31388 *) ac_try_echo=$ac_try;;
31389esac
31390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31391 (eval "$ac_try") 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; } &&
31395 { ac_try='test -s conftest$ac_exeext'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31399esac
31400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031405 eval "$as_ac_var=yes"
31406else
31407 echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
Reid Spencera773bd52006-08-04 18:18:08 +000031410 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031411fi
Reid Spencera773bd52006-08-04 18:18:08 +000031412
Bill Wendlingebcceee2009-04-18 11:20:33 +000031413rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031414 conftest$ac_exeext conftest.$ac_ext
31415fi
Reid Spencera773bd52006-08-04 18:18:08 +000031416ac_res=`eval echo '${'$as_ac_var'}'`
31417 { echo "$as_me:$LINENO: result: $ac_res" >&5
31418echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031419if test `eval echo '${'$as_ac_var'}'` = yes; then
31420 cat >>confdefs.h <<_ACEOF
31421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31422_ACEOF
31423
31424fi
31425done
31426
Reid Spencera773bd52006-08-04 18:18:08 +000031427{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31428echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031429if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031432 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031433ac_cpp='$CPP $CPPFLAGS'
31434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31436ac_compiler_gnu=$ac_cv_c_compiler_gnu
31437
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031438 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031439 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031440else
31441 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031442
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031443 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031444_ACEOF
31445cat confdefs.h >>conftest.$ac_ext
31446cat >>conftest.$ac_ext <<_ACEOF
31447/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031448
John Criswella0137d32003-10-13 16:22:01 +000031449#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031450#include <stdlib.h>
31451
John Criswella0137d32003-10-13 16:22:01 +000031452int
31453main ()
31454{
31455
Reid Spencer2706f8c2004-09-19 23:53:36 +000031456volatile double A, B;
31457char Buffer[100];
31458A = 1;
31459A /= 10.0;
31460sprintf(Buffer, "%a", A);
31461B = atof(Buffer);
31462if (A != B)
31463 return (1);
31464if (A != 0x1.999999999999ap-4)
31465 return (1);
31466return (0);
John Criswella0137d32003-10-13 16:22:01 +000031467 ;
31468 return 0;
31469}
31470_ACEOF
31471rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031472if { (ac_try="$ac_link"
31473case "(($ac_try" in
31474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475 *) ac_try_echo=$ac_try;;
31476esac
31477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31478 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031479 ac_status=$?
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031482 { (case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31485esac
31486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031491 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031492else
31493 echo "$as_me: program exited with status $ac_status" >&5
31494echo "$as_me: failed program was:" >&5
31495sed 's/^/| /' conftest.$ac_ext >&5
31496
31497( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031498llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031499fi
Reid Spencera773bd52006-08-04 18:18:08 +000031500rm -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 +000031501fi
Reid Spencera773bd52006-08-04 18:18:08 +000031502
31503
Reid Spencer2706f8c2004-09-19 23:53:36 +000031504 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031505ac_cpp='$CPP $CPPFLAGS'
31506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31508ac_compiler_gnu=$ac_cv_c_compiler_gnu
31509
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031510fi
Reid Spencera773bd52006-08-04 18:18:08 +000031511{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31512echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031513 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031514
31515cat >>confdefs.h <<\_ACEOF
31516#define HAVE_PRINTF_A 1
31517_ACEOF
31518
Reid Spencer2706f8c2004-09-19 23:53:36 +000031519 fi
John Criswella0137d32003-10-13 16:22:01 +000031520
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031521# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31522# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031523{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31524echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031525if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527else
John Criswell0021c312004-02-13 21:57:29 +000031528 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031529/* confdefs.h. */
31530_ACEOF
31531cat confdefs.h >>conftest.$ac_ext
31532cat >>conftest.$ac_ext <<_ACEOF
31533/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031534#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031535int
31536main ()
31537{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031538char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031539 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031540 ;
31541 return 0;
31542}
31543_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031544rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031545if { (ac_try="$ac_link"
31546case "(($ac_try" in
31547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548 *) ac_try_echo=$ac_try;;
31549esac
31550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031552 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031553 grep -v '^ *+' conftest.er1 >conftest.err
31554 rm -f conftest.er1
31555 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031557 (exit $ac_status); } &&
31558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31562esac
31563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; } &&
31568 { ac_try='test -s conftest$ac_exeext'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31572esac
31573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
31575 ac_status=$?
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031578 ac_cv_working_alloca_h=yes
31579else
31580 echo "$as_me: failed program was:" >&5
31581sed 's/^/| /' conftest.$ac_ext >&5
31582
Reid Spencera773bd52006-08-04 18:18:08 +000031583 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031584fi
Reid Spencera773bd52006-08-04 18:18:08 +000031585
Bill Wendlingebcceee2009-04-18 11:20:33 +000031586rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031587 conftest$ac_exeext conftest.$ac_ext
31588fi
Reid Spencera773bd52006-08-04 18:18:08 +000031589{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31590echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031591if test $ac_cv_working_alloca_h = yes; then
31592
31593cat >>confdefs.h <<\_ACEOF
31594#define HAVE_ALLOCA_H 1
31595_ACEOF
31596
31597fi
31598
Reid Spencera773bd52006-08-04 18:18:08 +000031599{ echo "$as_me:$LINENO: checking for alloca" >&5
31600echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031601if test "${ac_cv_func_alloca_works+set}" = set; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31603else
31604 cat >conftest.$ac_ext <<_ACEOF
31605/* confdefs.h. */
31606_ACEOF
31607cat confdefs.h >>conftest.$ac_ext
31608cat >>conftest.$ac_ext <<_ACEOF
31609/* end confdefs.h. */
31610#ifdef __GNUC__
31611# define alloca __builtin_alloca
31612#else
31613# ifdef _MSC_VER
31614# include <malloc.h>
31615# define alloca _alloca
31616# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000031617# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031618# include <alloca.h>
31619# else
31620# ifdef _AIX
31621 #pragma alloca
31622# else
31623# ifndef alloca /* predefined by HP cc +Olibcalls */
31624char *alloca ();
31625# endif
31626# endif
31627# endif
31628# endif
31629#endif
31630
31631int
31632main ()
31633{
31634char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031635 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031636 ;
31637 return 0;
31638}
31639_ACEOF
31640rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031641if { (ac_try="$ac_link"
31642case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31645esac
31646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031648 ac_status=$?
31649 grep -v '^ *+' conftest.er1 >conftest.err
31650 rm -f conftest.er1
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031653 (exit $ac_status); } &&
31654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31655 { (case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31658esac
31659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_try") 2>&5
31661 ac_status=$?
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; } &&
31664 { ac_try='test -s conftest$ac_exeext'
31665 { (case "(($ac_try" in
31666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667 *) ac_try_echo=$ac_try;;
31668esac
31669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670 (eval "$ac_try") 2>&5
31671 ac_status=$?
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031674 ac_cv_func_alloca_works=yes
31675else
31676 echo "$as_me: failed program was:" >&5
31677sed 's/^/| /' conftest.$ac_ext >&5
31678
Reid Spencera773bd52006-08-04 18:18:08 +000031679 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031680fi
Reid Spencera773bd52006-08-04 18:18:08 +000031681
Bill Wendlingebcceee2009-04-18 11:20:33 +000031682rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031683 conftest$ac_exeext conftest.$ac_ext
31684fi
Reid Spencera773bd52006-08-04 18:18:08 +000031685{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31686echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031687
31688if test $ac_cv_func_alloca_works = yes; then
31689
31690cat >>confdefs.h <<\_ACEOF
31691#define HAVE_ALLOCA 1
31692_ACEOF
31693
31694else
31695 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31696# that cause trouble. Some versions do not even contain alloca or
31697# contain a buggy version. If you still want to use their alloca,
31698# use ar to extract alloca.o from them instead of compiling alloca.c.
31699
Reid Spencera773bd52006-08-04 18:18:08 +000031700ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031701
31702cat >>confdefs.h <<\_ACEOF
31703#define C_ALLOCA 1
31704_ACEOF
31705
31706
Reid Spencera773bd52006-08-04 18:18:08 +000031707{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31708echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709if test "${ac_cv_os_cray+set}" = set; then
31710 echo $ECHO_N "(cached) $ECHO_C" >&6
31711else
31712 cat >conftest.$ac_ext <<_ACEOF
31713/* confdefs.h. */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031718#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031719webecray
31720#else
31721wenotbecray
31722#endif
31723
31724_ACEOF
31725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31726 $EGREP "webecray" >/dev/null 2>&1; then
31727 ac_cv_os_cray=yes
31728else
31729 ac_cv_os_cray=no
31730fi
31731rm -f conftest*
31732
31733fi
Reid Spencera773bd52006-08-04 18:18:08 +000031734{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31735echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031736if test $ac_cv_os_cray = yes; then
31737 for ac_func in _getb67 GETB67 getb67; do
31738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031742 echo $ECHO_N "(cached) $ECHO_C" >&6
31743else
31744 cat >conftest.$ac_ext <<_ACEOF
31745/* confdefs.h. */
31746_ACEOF
31747cat confdefs.h >>conftest.$ac_ext
31748cat >>conftest.$ac_ext <<_ACEOF
31749/* end confdefs.h. */
31750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31752#define $ac_func innocuous_$ac_func
31753
31754/* System header to define __stub macros and hopefully few prototypes,
31755 which can conflict with char $ac_func (); below.
31756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31757 <limits.h> exists even on freestanding compilers. */
31758
31759#ifdef __STDC__
31760# include <limits.h>
31761#else
31762# include <assert.h>
31763#endif
31764
31765#undef $ac_func
31766
Reid Spencera773bd52006-08-04 18:18:08 +000031767/* Override any GCC internal prototype to avoid an error.
31768 Use char because int might match the return type of a GCC
31769 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031770#ifdef __cplusplus
31771extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031772#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031773char $ac_func ();
31774/* The GNU C library defines this for functions which it implements
31775 to always fail with ENOSYS. Some functions are actually named
31776 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031777#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031778choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031779#endif
31780
31781int
31782main ()
31783{
Reid Spencera773bd52006-08-04 18:18:08 +000031784return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031785 ;
31786 return 0;
31787}
31788_ACEOF
31789rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031790if { (ac_try="$ac_link"
31791case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31794esac
31795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031797 ac_status=$?
31798 grep -v '^ *+' conftest.er1 >conftest.err
31799 rm -f conftest.er1
31800 cat conftest.err >&5
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031802 (exit $ac_status); } &&
31803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31804 { (case "(($ac_try" in
31805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806 *) ac_try_echo=$ac_try;;
31807esac
31808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809 (eval "$ac_try") 2>&5
31810 ac_status=$?
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; } &&
31813 { ac_try='test -s conftest$ac_exeext'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817esac
31818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031823 eval "$as_ac_var=yes"
31824else
31825 echo "$as_me: failed program was:" >&5
31826sed 's/^/| /' conftest.$ac_ext >&5
31827
Reid Spencera773bd52006-08-04 18:18:08 +000031828 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031829fi
Reid Spencera773bd52006-08-04 18:18:08 +000031830
Bill Wendlingebcceee2009-04-18 11:20:33 +000031831rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031832 conftest$ac_exeext conftest.$ac_ext
31833fi
Reid Spencera773bd52006-08-04 18:18:08 +000031834ac_res=`eval echo '${'$as_ac_var'}'`
31835 { echo "$as_me:$LINENO: result: $ac_res" >&5
31836echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031837if test `eval echo '${'$as_ac_var'}'` = yes; then
31838
31839cat >>confdefs.h <<_ACEOF
31840#define CRAY_STACKSEG_END $ac_func
31841_ACEOF
31842
31843 break
31844fi
31845
31846 done
31847fi
31848
Reid Spencera773bd52006-08-04 18:18:08 +000031849{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31850echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031851if test "${ac_cv_c_stack_direction+set}" = set; then
31852 echo $ECHO_N "(cached) $ECHO_C" >&6
31853else
31854 if test "$cross_compiling" = yes; then
31855 ac_cv_c_stack_direction=0
31856else
31857 cat >conftest.$ac_ext <<_ACEOF
31858/* confdefs.h. */
31859_ACEOF
31860cat confdefs.h >>conftest.$ac_ext
31861cat >>conftest.$ac_ext <<_ACEOF
31862/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031863$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031864int
31865find_stack_direction ()
31866{
31867 static char *addr = 0;
31868 auto char dummy;
31869 if (addr == 0)
31870 {
31871 addr = &dummy;
31872 return find_stack_direction ();
31873 }
John Criswell0021c312004-02-13 21:57:29 +000031874 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031875 return (&dummy > addr) ? 1 : -1;
31876}
John Criswell0021c312004-02-13 21:57:29 +000031877
John Criswell0021c312004-02-13 21:57:29 +000031878int
31879main ()
31880{
Reid Spencera773bd52006-08-04 18:18:08 +000031881 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031882}
31883_ACEOF
31884rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031885if { (ac_try="$ac_link"
31886case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31889esac
31890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031895 { (case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898esac
31899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031901 ac_status=$?
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031904 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031905else
31906 echo "$as_me: program exited with status $ac_status" >&5
31907echo "$as_me: failed program was:" >&5
31908sed 's/^/| /' conftest.$ac_ext >&5
31909
31910( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031911ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031912fi
Reid Spencera773bd52006-08-04 18:18:08 +000031913rm -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 +000031914fi
Reid Spencera773bd52006-08-04 18:18:08 +000031915
31916
John Criswell0021c312004-02-13 21:57:29 +000031917fi
Reid Spencera773bd52006-08-04 18:18:08 +000031918{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31919echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031920
31921cat >>confdefs.h <<_ACEOF
31922#define STACK_DIRECTION $ac_cv_c_stack_direction
31923_ACEOF
31924
31925
John Criswell0021c312004-02-13 21:57:29 +000031926fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031927
31928
Reid Spencera773bd52006-08-04 18:18:08 +000031929{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31930echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031931if test "${ac_cv_func_rand48+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31933else
Reid Spencera773bd52006-08-04 18:18:08 +000031934 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031935ac_cpp='$CXXCPP $CPPFLAGS'
31936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31939
31940 cat >conftest.$ac_ext <<_ACEOF
31941/* confdefs.h. */
31942_ACEOF
31943cat confdefs.h >>conftest.$ac_ext
31944cat >>conftest.$ac_ext <<_ACEOF
31945/* end confdefs.h. */
31946#include <stdlib.h>
31947int
31948main ()
31949{
31950srand48(0);lrand48();drand48();
31951 ;
31952 return 0;
31953}
31954_ACEOF
31955rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031956if { (ac_try="$ac_compile"
31957case "(($ac_try" in
31958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959 *) ac_try_echo=$ac_try;;
31960esac
31961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031963 ac_status=$?
31964 grep -v '^ *+' conftest.er1 >conftest.err
31965 rm -f conftest.er1
31966 cat conftest.err >&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031968 (exit $ac_status); } &&
31969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31970 { (case "(($ac_try" in
31971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972 *) ac_try_echo=$ac_try;;
31973esac
31974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975 (eval "$ac_try") 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; } &&
31979 { ac_try='test -s conftest.$ac_objext'
31980 { (case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31983esac
31984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_try") 2>&5
31986 ac_status=$?
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031989 ac_cv_func_rand48=yes
31990else
31991 echo "$as_me: failed program was:" >&5
31992sed 's/^/| /' conftest.$ac_ext >&5
31993
Reid Spencera773bd52006-08-04 18:18:08 +000031994 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031995fi
Reid Spencera773bd52006-08-04 18:18:08 +000031996
31997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031998 ac_ext=c
31999ac_cpp='$CPP $CPPFLAGS'
32000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002ac_compiler_gnu=$ac_cv_c_compiler_gnu
32003
32004fi
Reid Spencera773bd52006-08-04 18:18:08 +000032005{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32006echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032007
32008if test "$ac_cv_func_rand48" = "yes" ; then
32009
32010cat >>confdefs.h <<\_ACEOF
32011#define HAVE_RAND48 1
32012_ACEOF
32013
32014fi
John Criswell0021c312004-02-13 21:57:29 +000032015
32016
Reid Spencera773bd52006-08-04 18:18:08 +000032017{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32018echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032019if test "${ac_cv_cxx_namespaces+set}" = set; then
32020 echo $ECHO_N "(cached) $ECHO_C" >&6
32021else
Reid Spencera773bd52006-08-04 18:18:08 +000032022 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032023ac_cpp='$CXXCPP $CPPFLAGS'
32024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32027
32028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032029/* confdefs.h. */
32030_ACEOF
32031cat confdefs.h >>conftest.$ac_ext
32032cat >>conftest.$ac_ext <<_ACEOF
32033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032034namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032035int
32036main ()
32037{
32038using namespace Outer::Inner; return i;
32039 ;
32040 return 0;
32041}
32042_ACEOF
32043rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032044if { (ac_try="$ac_compile"
32045case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32048esac
32049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032052 grep -v '^ *+' conftest.er1 >conftest.err
32053 rm -f conftest.er1
32054 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032056 (exit $ac_status); } &&
32057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32058 { (case "(($ac_try" in
32059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060 *) ac_try_echo=$ac_try;;
32061esac
32062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063 (eval "$ac_try") 2>&5
32064 ac_status=$?
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest.$ac_objext'
32068 { (case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071esac
32072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_try") 2>&5
32074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032077 ac_cv_cxx_namespaces=yes
32078else
32079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032080sed 's/^/| /' conftest.$ac_ext >&5
32081
Reid Spencera773bd52006-08-04 18:18:08 +000032082 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032083fi
Reid Spencera773bd52006-08-04 18:18:08 +000032084
32085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032086 ac_ext=c
32087ac_cpp='$CPP $CPPFLAGS'
32088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090ac_compiler_gnu=$ac_cv_c_compiler_gnu
32091
32092
32093fi
Reid Spencera773bd52006-08-04 18:18:08 +000032094{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32095echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032096if test "$ac_cv_cxx_namespaces" = yes; then
32097
32098cat >>confdefs.h <<\_ACEOF
32099#define HAVE_NAMESPACES
32100_ACEOF
32101
32102fi
32103
Reid Spencera773bd52006-08-04 18:18:08 +000032104{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32105echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032106if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32107 echo $ECHO_N "(cached) $ECHO_C" >&6
32108else
32109
Reid Spencera773bd52006-08-04 18:18:08 +000032110 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032111ac_cpp='$CXXCPP $CPPFLAGS'
32112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32115
32116 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032117/* confdefs.h. */
32118_ACEOF
32119cat confdefs.h >>conftest.$ac_ext
32120cat >>conftest.$ac_ext <<_ACEOF
32121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032122#include <iterator>
32123#ifdef HAVE_NAMESPACES
32124using namespace std;
32125#endif
John Criswell7a73b802003-06-30 21:59:07 +000032126int
32127main ()
32128{
32129iterator<int,int,int> t; return 0;
32130 ;
32131 return 0;
32132}
32133_ACEOF
32134rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032135if { (ac_try="$ac_compile"
32136case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32139esac
32140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032142 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032143 grep -v '^ *+' conftest.er1 >conftest.err
32144 rm -f conftest.er1
32145 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032147 (exit $ac_status); } &&
32148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32149 { (case "(($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_try") 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest.$ac_objext'
32159 { (case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32162esac
32163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_try") 2>&5
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032168 ac_cv_cxx_have_std_iterator=yes
32169else
32170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032171sed 's/^/| /' conftest.$ac_ext >&5
32172
Reid Spencera773bd52006-08-04 18:18:08 +000032173 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032174fi
Reid Spencera773bd52006-08-04 18:18:08 +000032175
32176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032177 ac_ext=c
32178ac_cpp='$CPP $CPPFLAGS'
32179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32181ac_compiler_gnu=$ac_cv_c_compiler_gnu
32182
32183
32184fi
Reid Spencera773bd52006-08-04 18:18:08 +000032185{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32186echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032187if test "$ac_cv_cxx_have_std_iterator" = yes
32188then
John Criswell40468462004-09-24 21:19:06 +000032189
32190cat >>confdefs.h <<\_ACEOF
32191#define HAVE_STD_ITERATOR 1
32192_ACEOF
32193
32194else
32195
32196cat >>confdefs.h <<\_ACEOF
32197#define HAVE_STD_ITERATOR 0
32198_ACEOF
32199
John Criswell7a73b802003-06-30 21:59:07 +000032200fi
32201
Reid Spencera773bd52006-08-04 18:18:08 +000032202{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32203echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032204if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32205 echo $ECHO_N "(cached) $ECHO_C" >&6
32206else
32207
Reid Spencera773bd52006-08-04 18:18:08 +000032208 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032209ac_cpp='$CXXCPP $CPPFLAGS'
32210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32213
32214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032215/* confdefs.h. */
32216_ACEOF
32217cat confdefs.h >>conftest.$ac_ext
32218cat >>conftest.$ac_ext <<_ACEOF
32219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032220#include <iterator>
32221#ifdef HAVE_NAMESPACES
32222using namespace std;
32223#endif
John Criswell7a73b802003-06-30 21:59:07 +000032224int
32225main ()
32226{
John Criswellc78022e2003-07-29 19:11:58 +000032227bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032228 ;
32229 return 0;
32230}
32231_ACEOF
32232rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032233if { (ac_try="$ac_compile"
32234case "(($ac_try" in
32235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236 *) ac_try_echo=$ac_try;;
32237esac
32238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32239 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032240 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032241 grep -v '^ *+' conftest.er1 >conftest.err
32242 rm -f conftest.er1
32243 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032245 (exit $ac_status); } &&
32246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32247 { (case "(($ac_try" in
32248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249 *) ac_try_echo=$ac_try;;
32250esac
32251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32252 (eval "$ac_try") 2>&5
32253 ac_status=$?
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); }; } &&
32256 { ac_try='test -s conftest.$ac_objext'
32257 { (case "(($ac_try" in
32258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259 *) ac_try_echo=$ac_try;;
32260esac
32261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262 (eval "$ac_try") 2>&5
32263 ac_status=$?
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032266 ac_cv_cxx_have_bi_iterator=yes
32267else
32268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032269sed 's/^/| /' conftest.$ac_ext >&5
32270
Reid Spencera773bd52006-08-04 18:18:08 +000032271 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032272fi
Reid Spencera773bd52006-08-04 18:18:08 +000032273
32274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032275 ac_ext=c
32276ac_cpp='$CPP $CPPFLAGS'
32277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32279ac_compiler_gnu=$ac_cv_c_compiler_gnu
32280
32281
32282fi
Reid Spencera773bd52006-08-04 18:18:08 +000032283{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32284echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032285if test "$ac_cv_cxx_have_bi_iterator" = yes
32286then
John Criswell40468462004-09-24 21:19:06 +000032287
32288cat >>confdefs.h <<\_ACEOF
32289#define HAVE_BI_ITERATOR 1
32290_ACEOF
32291
32292else
32293
32294cat >>confdefs.h <<\_ACEOF
32295#define HAVE_BI_ITERATOR 0
32296_ACEOF
32297
John Criswell7a73b802003-06-30 21:59:07 +000032298fi
32299
Reid Spencera773bd52006-08-04 18:18:08 +000032300{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32301echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032302if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32304else
32305
Reid Spencera773bd52006-08-04 18:18:08 +000032306 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032307ac_cpp='$CXXCPP $CPPFLAGS'
32308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32311
32312 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032313/* confdefs.h. */
32314_ACEOF
32315cat confdefs.h >>conftest.$ac_ext
32316cat >>conftest.$ac_ext <<_ACEOF
32317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032318#include <iterator>
32319#ifdef HAVE_NAMESPACES
32320using namespace std;
32321#endif
John Criswell7a73b802003-06-30 21:59:07 +000032322int
32323main ()
32324{
John Criswellc78022e2003-07-29 19:11:58 +000032325forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032326 ;
32327 return 0;
32328}
32329_ACEOF
32330rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032331if { (ac_try="$ac_compile"
32332case "(($ac_try" in
32333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334 *) ac_try_echo=$ac_try;;
32335esac
32336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032338 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032339 grep -v '^ *+' conftest.er1 >conftest.err
32340 rm -f conftest.er1
32341 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032343 (exit $ac_status); } &&
32344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32345 { (case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_try") 2>&5
32351 ac_status=$?
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); }; } &&
32354 { ac_try='test -s conftest.$ac_objext'
32355 { (case "(($ac_try" in
32356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357 *) ac_try_echo=$ac_try;;
32358esac
32359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360 (eval "$ac_try") 2>&5
32361 ac_status=$?
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032364 ac_cv_cxx_have_fwd_iterator=yes
32365else
32366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032367sed 's/^/| /' conftest.$ac_ext >&5
32368
Reid Spencera773bd52006-08-04 18:18:08 +000032369 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032370fi
Reid Spencera773bd52006-08-04 18:18:08 +000032371
32372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032373 ac_ext=c
32374ac_cpp='$CPP $CPPFLAGS'
32375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377ac_compiler_gnu=$ac_cv_c_compiler_gnu
32378
32379
32380fi
Reid Spencera773bd52006-08-04 18:18:08 +000032381{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32382echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032383if test "$ac_cv_cxx_have_fwd_iterator" = yes
32384then
John Criswell40468462004-09-24 21:19:06 +000032385
32386cat >>confdefs.h <<\_ACEOF
32387#define HAVE_FWD_ITERATOR 1
32388_ACEOF
32389
32390else
32391
32392cat >>confdefs.h <<\_ACEOF
32393#define HAVE_FWD_ITERATOR 0
32394_ACEOF
32395
John Criswell7a73b802003-06-30 21:59:07 +000032396fi
32397
32398
Reid Spencera773bd52006-08-04 18:18:08 +000032399{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32400echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032401if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
Reid Spencera773bd52006-08-04 18:18:08 +000032404 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032405ac_cpp='$CXXCPP $CPPFLAGS'
32406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32409
Reid Spencerabec8f92004-10-27 23:03:44 +000032410 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
32416#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032417int
32418main ()
32419{
32420float f; isnan(f);
32421 ;
32422 return 0;
32423}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032424_ACEOF
32425rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032426if { (ac_try="$ac_compile"
32427case "(($ac_try" in
32428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429 *) ac_try_echo=$ac_try;;
32430esac
32431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032433 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032434 grep -v '^ *+' conftest.er1 >conftest.err
32435 rm -f conftest.er1
32436 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032438 (exit $ac_status); } &&
32439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32443esac
32444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; } &&
32449 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032459 ac_cv_func_isnan_in_math_h=yes
32460else
32461 echo "$as_me: failed program was:" >&5
32462sed 's/^/| /' conftest.$ac_ext >&5
32463
Reid Spencera773bd52006-08-04 18:18:08 +000032464 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032465fi
Reid Spencera773bd52006-08-04 18:18:08 +000032466
32467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032468 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032469ac_cpp='$CPP $CPPFLAGS'
32470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472ac_compiler_gnu=$ac_cv_c_compiler_gnu
32473
32474fi
Reid Spencera773bd52006-08-04 18:18:08 +000032475{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32476echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032477
32478
32479if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032480
32481cat >>confdefs.h <<\_ACEOF
32482#define HAVE_ISNAN_IN_MATH_H 1
32483_ACEOF
32484
Reid Spencerabec8f92004-10-27 23:03:44 +000032485fi
32486
Reid Spencera773bd52006-08-04 18:18:08 +000032487{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32488echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032489if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32491else
Reid Spencera773bd52006-08-04 18:18:08 +000032492 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032493ac_cpp='$CXXCPP $CPPFLAGS'
32494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32497
Reid Spencerabec8f92004-10-27 23:03:44 +000032498 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032499/* confdefs.h. */
32500_ACEOF
32501cat confdefs.h >>conftest.$ac_ext
32502cat >>conftest.$ac_ext <<_ACEOF
32503/* end confdefs.h. */
32504#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032505int
32506main ()
32507{
32508float f; isnan(f);
32509 ;
32510 return 0;
32511}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032512_ACEOF
32513rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032514if { (ac_try="$ac_compile"
32515case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32518esac
32519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032526 (exit $ac_status); } &&
32527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32531esac
32532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32541esac
32542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032547 ac_cv_func_isnan_in_cmath=yes
32548else
32549 echo "$as_me: failed program was:" >&5
32550sed 's/^/| /' conftest.$ac_ext >&5
32551
Reid Spencera773bd52006-08-04 18:18:08 +000032552 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032553fi
Reid Spencera773bd52006-08-04 18:18:08 +000032554
32555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032556 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032557ac_cpp='$CPP $CPPFLAGS'
32558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562fi
Reid Spencera773bd52006-08-04 18:18:08 +000032563{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32564echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032565
32566if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032567
32568cat >>confdefs.h <<\_ACEOF
32569#define HAVE_ISNAN_IN_CMATH 1
32570_ACEOF
32571
Reid Spencerabec8f92004-10-27 23:03:44 +000032572fi
32573
Reid Spencera773bd52006-08-04 18:18:08 +000032574{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32575echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032576if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32578else
Reid Spencera773bd52006-08-04 18:18:08 +000032579 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032580ac_cpp='$CXXCPP $CPPFLAGS'
32581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32584
Reid Spencerabec8f92004-10-27 23:03:44 +000032585 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032586/* confdefs.h. */
32587_ACEOF
32588cat confdefs.h >>conftest.$ac_ext
32589cat >>conftest.$ac_ext <<_ACEOF
32590/* end confdefs.h. */
32591#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032592int
32593main ()
32594{
32595float f; std::isnan(f);
32596 ;
32597 return 0;
32598}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032599_ACEOF
32600rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032601if { (ac_try="$ac_compile"
32602case "(($ac_try" in
32603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604 *) ac_try_echo=$ac_try;;
32605esac
32606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032609 grep -v '^ *+' conftest.er1 >conftest.err
32610 rm -f conftest.er1
32611 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032613 (exit $ac_status); } &&
32614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618esac
32619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; } &&
32624 { ac_try='test -s conftest.$ac_objext'
32625 { (case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32628esac
32629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_try") 2>&5
32631 ac_status=$?
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032634 ac_cv_func_std_isnan_in_cmath=yes
32635else
32636 echo "$as_me: failed program was:" >&5
32637sed 's/^/| /' conftest.$ac_ext >&5
32638
Reid Spencera773bd52006-08-04 18:18:08 +000032639 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032640fi
Reid Spencera773bd52006-08-04 18:18:08 +000032641
32642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032643 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032644ac_cpp='$CPP $CPPFLAGS'
32645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647ac_compiler_gnu=$ac_cv_c_compiler_gnu
32648
32649fi
Reid Spencera773bd52006-08-04 18:18:08 +000032650{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32651echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032652
32653if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032654
32655cat >>confdefs.h <<\_ACEOF
32656#define HAVE_STD_ISNAN_IN_CMATH 1
32657_ACEOF
32658
Reid Spencerabec8f92004-10-27 23:03:44 +000032659fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032660
32661
Reid Spencera773bd52006-08-04 18:18:08 +000032662{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32663echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032664if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32666else
Reid Spencera773bd52006-08-04 18:18:08 +000032667 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032668ac_cpp='$CXXCPP $CPPFLAGS'
32669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32672
Reid Spencerabec8f92004-10-27 23:03:44 +000032673 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032674/* confdefs.h. */
32675_ACEOF
32676cat confdefs.h >>conftest.$ac_ext
32677cat >>conftest.$ac_ext <<_ACEOF
32678/* end confdefs.h. */
32679#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032680int
32681main ()
32682{
32683float f; isinf(f);
32684 ;
32685 return 0;
32686}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032687_ACEOF
32688rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032689if { (ac_try="$ac_compile"
32690case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32693esac
32694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032696 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032701 (exit $ac_status); } &&
32702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32716esac
32717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_try") 2>&5
32719 ac_status=$?
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032722 ac_cv_func_isinf_in_math_h=yes
32723else
32724 echo "$as_me: failed program was:" >&5
32725sed 's/^/| /' conftest.$ac_ext >&5
32726
Reid Spencera773bd52006-08-04 18:18:08 +000032727 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032728fi
Reid Spencera773bd52006-08-04 18:18:08 +000032729
32730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032731 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032732ac_cpp='$CPP $CPPFLAGS'
32733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735ac_compiler_gnu=$ac_cv_c_compiler_gnu
32736
32737fi
Reid Spencera773bd52006-08-04 18:18:08 +000032738{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32739echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032740
32741if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032742
32743cat >>confdefs.h <<\_ACEOF
32744#define HAVE_ISINF_IN_MATH_H 1
32745_ACEOF
32746
Reid Spencerabec8f92004-10-27 23:03:44 +000032747fi
32748
Reid Spencera773bd52006-08-04 18:18:08 +000032749{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32750echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032751if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32752 echo $ECHO_N "(cached) $ECHO_C" >&6
32753else
Reid Spencera773bd52006-08-04 18:18:08 +000032754 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032755ac_cpp='$CXXCPP $CPPFLAGS'
32756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32759
Reid Spencerabec8f92004-10-27 23:03:44 +000032760 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032761/* confdefs.h. */
32762_ACEOF
32763cat confdefs.h >>conftest.$ac_ext
32764cat >>conftest.$ac_ext <<_ACEOF
32765/* end confdefs.h. */
32766#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032767int
32768main ()
32769{
32770float f; isinf(f);
32771 ;
32772 return 0;
32773}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032774_ACEOF
32775rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032776if { (ac_try="$ac_compile"
32777case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32803esac
32804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032809 ac_cv_func_isinf_in_cmath=yes
32810else
32811 echo "$as_me: failed program was:" >&5
32812sed 's/^/| /' conftest.$ac_ext >&5
32813
Reid Spencera773bd52006-08-04 18:18:08 +000032814 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032815fi
Reid Spencera773bd52006-08-04 18:18:08 +000032816
32817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032818 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032819ac_cpp='$CPP $CPPFLAGS'
32820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824fi
Reid Spencera773bd52006-08-04 18:18:08 +000032825{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32826echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032827
32828if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032829
32830cat >>confdefs.h <<\_ACEOF
32831#define HAVE_ISINF_IN_CMATH 1
32832_ACEOF
32833
Reid Spencerabec8f92004-10-27 23:03:44 +000032834fi
32835
Reid Spencera773bd52006-08-04 18:18:08 +000032836{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32837echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032838if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32840else
Reid Spencera773bd52006-08-04 18:18:08 +000032841 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032842ac_cpp='$CXXCPP $CPPFLAGS'
32843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32846
Reid Spencerabec8f92004-10-27 23:03:44 +000032847 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032848/* confdefs.h. */
32849_ACEOF
32850cat confdefs.h >>conftest.$ac_ext
32851cat >>conftest.$ac_ext <<_ACEOF
32852/* end confdefs.h. */
32853#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032854int
32855main ()
32856{
32857float f; std::isinf(f)}
32858 ;
32859 return 0;
32860}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032861_ACEOF
32862rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032863if { (ac_try="$ac_compile"
32864case "(($ac_try" in
32865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866 *) ac_try_echo=$ac_try;;
32867esac
32868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032870 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032871 grep -v '^ *+' conftest.er1 >conftest.err
32872 rm -f conftest.er1
32873 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032875 (exit $ac_status); } &&
32876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32877 { (case "(($ac_try" in
32878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879 *) ac_try_echo=$ac_try;;
32880esac
32881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882 (eval "$ac_try") 2>&5
32883 ac_status=$?
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; } &&
32886 { ac_try='test -s conftest.$ac_objext'
32887 { (case "(($ac_try" in
32888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32889 *) ac_try_echo=$ac_try;;
32890esac
32891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32892 (eval "$ac_try") 2>&5
32893 ac_status=$?
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032896 ac_cv_func_std_isinf_in_cmath=yes
32897else
32898 echo "$as_me: failed program was:" >&5
32899sed 's/^/| /' conftest.$ac_ext >&5
32900
Reid Spencera773bd52006-08-04 18:18:08 +000032901 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032902fi
Reid Spencera773bd52006-08-04 18:18:08 +000032903
32904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032905 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032906ac_cpp='$CPP $CPPFLAGS'
32907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32909ac_compiler_gnu=$ac_cv_c_compiler_gnu
32910
32911fi
Reid Spencera773bd52006-08-04 18:18:08 +000032912{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32913echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032914
32915if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032916
32917cat >>confdefs.h <<\_ACEOF
32918#define HAVE_STD_ISINF_IN_CMATH 1
32919_ACEOF
32920
Reid Spencerabec8f92004-10-27 23:03:44 +000032921fi
32922
Reid Spencera773bd52006-08-04 18:18:08 +000032923{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32924echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032925if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32927else
Reid Spencera773bd52006-08-04 18:18:08 +000032928 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032929ac_cpp='$CXXCPP $CPPFLAGS'
32930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32933
Reid Spencerabec8f92004-10-27 23:03:44 +000032934 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032935/* confdefs.h. */
32936_ACEOF
32937cat confdefs.h >>conftest.$ac_ext
32938cat >>conftest.$ac_ext <<_ACEOF
32939/* end confdefs.h. */
32940#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032941int
32942main ()
32943{
32944float f; finite(f);
32945 ;
32946 return 0;
32947}
Brian Gaeked59a6472004-07-21 03:33:58 +000032948_ACEOF
32949rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032950if { (ac_try="$ac_compile"
32951case "(($ac_try" in
32952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32953 *) ac_try_echo=$ac_try;;
32954esac
32955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32956 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032957 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032958 grep -v '^ *+' conftest.er1 >conftest.err
32959 rm -f conftest.er1
32960 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032962 (exit $ac_status); } &&
32963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32964 { (case "(($ac_try" in
32965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966 *) ac_try_echo=$ac_try;;
32967esac
32968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969 (eval "$ac_try") 2>&5
32970 ac_status=$?
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; } &&
32973 { ac_try='test -s conftest.$ac_objext'
32974 { (case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32977esac
32978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_try") 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032983 ac_cv_func_finite_in_ieeefp_h=yes
32984else
32985 echo "$as_me: failed program was:" >&5
32986sed 's/^/| /' conftest.$ac_ext >&5
32987
Reid Spencera773bd52006-08-04 18:18:08 +000032988 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032989fi
Reid Spencera773bd52006-08-04 18:18:08 +000032990
32991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032992 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032993ac_cpp='$CPP $CPPFLAGS'
32994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32996ac_compiler_gnu=$ac_cv_c_compiler_gnu
32997
32998fi
Reid Spencera773bd52006-08-04 18:18:08 +000032999{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33000echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033001
Brian Gaeke6802b552004-10-28 05:06:45 +000033002if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033003
33004cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033005#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033006_ACEOF
33007
Reid Spencerabec8f92004-10-27 23:03:44 +000033008fi
33009
33010
33011
Reid Spencer30fe5262007-01-20 07:48:49 +000033012if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033013
33014
33015for ac_header in stdlib.h unistd.h
33016do
33017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033022 echo $ECHO_N "(cached) $ECHO_C" >&6
33023fi
Reid Spencera773bd52006-08-04 18:18:08 +000033024ac_res=`eval echo '${'$as_ac_Header'}'`
33025 { echo "$as_me:$LINENO: result: $ac_res" >&5
33026echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033027else
33028 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033029{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033031cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033032/* confdefs.h. */
33033_ACEOF
33034cat confdefs.h >>conftest.$ac_ext
33035cat >>conftest.$ac_ext <<_ACEOF
33036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033037$ac_includes_default
33038#include <$ac_header>
33039_ACEOF
33040rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033041if { (ac_try="$ac_compile"
33042case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33045esac
33046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033048 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033049 grep -v '^ *+' conftest.er1 >conftest.err
33050 rm -f conftest.er1
33051 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033053 (exit $ac_status); } &&
33054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33055 { (case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33058esac
33059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_try") 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest.$ac_objext'
33065 { (case "(($ac_try" in
33066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067 *) ac_try_echo=$ac_try;;
33068esac
33069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070 (eval "$ac_try") 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033074 ac_header_compiler=yes
33075else
33076 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033077sed 's/^/| /' conftest.$ac_ext >&5
33078
Reid Spencera773bd52006-08-04 18:18:08 +000033079 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033080fi
Reid Spencera773bd52006-08-04 18:18:08 +000033081
33082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33084echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033085
33086# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033087{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033089cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033090/* confdefs.h. */
33091_ACEOF
33092cat confdefs.h >>conftest.$ac_ext
33093cat >>conftest.$ac_ext <<_ACEOF
33094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033095#include <$ac_header>
33096_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033097if { (ac_try="$ac_cpp conftest.$ac_ext"
33098case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101esac
33102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033104 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033105 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033109 (exit $ac_status); } >/dev/null; then
33110 if test -s conftest.err; then
33111 ac_cpp_err=$ac_c_preproc_warn_flag
33112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33113 else
33114 ac_cpp_err=
33115 fi
33116else
33117 ac_cpp_err=yes
33118fi
33119if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033120 ac_header_preproc=yes
33121else
33122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033123sed 's/^/| /' conftest.$ac_ext >&5
33124
John Criswell7a73b802003-06-30 21:59:07 +000033125 ac_header_preproc=no
33126fi
Reid Spencera773bd52006-08-04 18:18:08 +000033127
John Criswell7a73b802003-06-30 21:59:07 +000033128rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033129{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33130echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033131
33132# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33134 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33139 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033140 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033141 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033154 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033155## ----------------------------------- ##
33156## Report this to llvmbugs@cs.uiuc.edu ##
33157## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033158_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033159 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033160 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033161esac
Reid Spencera773bd52006-08-04 18:18:08 +000033162{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033165 echo $ECHO_N "(cached) $ECHO_C" >&6
33166else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033167 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033168fi
Reid Spencera773bd52006-08-04 18:18:08 +000033169ac_res=`eval echo '${'$as_ac_Header'}'`
33170 { echo "$as_me:$LINENO: result: $ac_res" >&5
33171echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033172
33173fi
33174if test `eval echo '${'$as_ac_Header'}'` = yes; then
33175 cat >>confdefs.h <<_ACEOF
33176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33177_ACEOF
33178
33179fi
33180
33181done
33182
33183
33184for ac_func in getpagesize
33185do
33186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033187{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33189if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033190 echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033193/* confdefs.h. */
33194_ACEOF
33195cat confdefs.h >>conftest.$ac_ext
33196cat >>conftest.$ac_ext <<_ACEOF
33197/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33200#define $ac_func innocuous_$ac_func
33201
John Criswell7a73b802003-06-30 21:59:07 +000033202/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033203 which can conflict with char $ac_func (); below.
33204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33205 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033206
John Criswell0c38eaf2003-09-10 15:17:25 +000033207#ifdef __STDC__
33208# include <limits.h>
33209#else
33210# include <assert.h>
33211#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033212
33213#undef $ac_func
33214
Reid Spencera773bd52006-08-04 18:18:08 +000033215/* Override any GCC internal prototype to avoid an error.
33216 Use char because int might match the return type of a GCC
33217 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033218#ifdef __cplusplus
33219extern "C"
33220#endif
John Criswell7a73b802003-06-30 21:59:07 +000033221char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033222/* The GNU C library defines this for functions which it implements
33223 to always fail with ENOSYS. Some functions are actually named
33224 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033225#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033226choke me
John Criswell7a73b802003-06-30 21:59:07 +000033227#endif
33228
John Criswell0c38eaf2003-09-10 15:17:25 +000033229int
33230main ()
33231{
Reid Spencera773bd52006-08-04 18:18:08 +000033232return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033233 ;
33234 return 0;
33235}
33236_ACEOF
33237rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033238if { (ac_try="$ac_link"
33239case "(($ac_try" in
33240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241 *) ac_try_echo=$ac_try;;
33242esac
33243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033246 grep -v '^ *+' conftest.er1 >conftest.err
33247 rm -f conftest.er1
33248 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033250 (exit $ac_status); } &&
33251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33252 { (case "(($ac_try" in
33253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33254 *) ac_try_echo=$ac_try;;
33255esac
33256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33257 (eval "$ac_try") 2>&5
33258 ac_status=$?
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); }; } &&
33261 { ac_try='test -s conftest$ac_exeext'
33262 { (case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33265esac
33266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_try") 2>&5
33268 ac_status=$?
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033271 eval "$as_ac_var=yes"
33272else
33273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033274sed 's/^/| /' conftest.$ac_ext >&5
33275
Reid Spencera773bd52006-08-04 18:18:08 +000033276 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033277fi
Reid Spencera773bd52006-08-04 18:18:08 +000033278
Bill Wendlingebcceee2009-04-18 11:20:33 +000033279rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033280 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033281fi
Reid Spencera773bd52006-08-04 18:18:08 +000033282ac_res=`eval echo '${'$as_ac_var'}'`
33283 { echo "$as_me:$LINENO: result: $ac_res" >&5
33284echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033285if test `eval echo '${'$as_ac_var'}'` = yes; then
33286 cat >>confdefs.h <<_ACEOF
33287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33288_ACEOF
33289
33290fi
33291done
33292
Reid Spencera773bd52006-08-04 18:18:08 +000033293{ echo "$as_me:$LINENO: checking for working mmap" >&5
33294echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033295if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33297else
33298 if test "$cross_compiling" = yes; then
33299 ac_cv_func_mmap_fixed_mapped=no
33300else
33301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033302/* confdefs.h. */
33303_ACEOF
33304cat confdefs.h >>conftest.$ac_ext
33305cat >>conftest.$ac_ext <<_ACEOF
33306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033307$ac_includes_default
33308/* malloc might have been renamed as rpl_malloc. */
33309#undef malloc
33310
33311/* Thanks to Mike Haertel and Jim Avera for this test.
33312 Here is a matrix of mmap possibilities:
33313 mmap private not fixed
33314 mmap private fixed at somewhere currently unmapped
33315 mmap private fixed at somewhere already mapped
33316 mmap shared not fixed
33317 mmap shared fixed at somewhere currently unmapped
33318 mmap shared fixed at somewhere already mapped
33319 For private mappings, we should verify that changes cannot be read()
33320 back from the file, nor mmap's back from the file at a different
33321 address. (There have been systems where private was not correctly
33322 implemented like the infamous i386 svr4.0, and systems where the
33323 VM page cache was not coherent with the file system buffer cache
33324 like early versions of FreeBSD and possibly contemporary NetBSD.)
33325 For shared mappings, we should conversely verify that changes get
33326 propagated back to all the places they're supposed to be.
33327
33328 Grep wants private fixed already mapped.
33329 The main things grep needs to know about mmap are:
33330 * does it exist and is it safe to write into the mmap'd area
33331 * how to use it (BSD variants) */
33332
33333#include <fcntl.h>
33334#include <sys/mman.h>
33335
Bill Wendlingebcceee2009-04-18 11:20:33 +000033336#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033337char *malloc ();
33338#endif
33339
33340/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033341#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033342/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033343# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033344# define HAVE_SYS_PARAM_H 1
33345# endif
33346
33347# ifdef _SC_PAGESIZE
33348# define getpagesize() sysconf(_SC_PAGESIZE)
33349# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033350# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033351# include <sys/param.h>
33352# ifdef EXEC_PAGESIZE
33353# define getpagesize() EXEC_PAGESIZE
33354# else /* no EXEC_PAGESIZE */
33355# ifdef NBPG
33356# define getpagesize() NBPG * CLSIZE
33357# ifndef CLSIZE
33358# define CLSIZE 1
33359# endif /* no CLSIZE */
33360# else /* no NBPG */
33361# ifdef NBPC
33362# define getpagesize() NBPC
33363# else /* no NBPC */
33364# ifdef PAGESIZE
33365# define getpagesize() PAGESIZE
33366# endif /* PAGESIZE */
33367# endif /* no NBPC */
33368# endif /* no NBPG */
33369# endif /* no EXEC_PAGESIZE */
33370# else /* no HAVE_SYS_PARAM_H */
33371# define getpagesize() 8192 /* punt totally */
33372# endif /* no HAVE_SYS_PARAM_H */
33373# endif /* no _SC_PAGESIZE */
33374
33375#endif /* no HAVE_GETPAGESIZE */
33376
33377int
33378main ()
33379{
33380 char *data, *data2, *data3;
33381 int i, pagesize;
33382 int fd;
33383
33384 pagesize = getpagesize ();
33385
33386 /* First, make a file with some known garbage in it. */
33387 data = (char *) malloc (pagesize);
33388 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033389 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033390 for (i = 0; i < pagesize; ++i)
33391 *(data + i) = rand ();
33392 umask (0);
33393 fd = creat ("conftest.mmap", 0600);
33394 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033395 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033396 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033397 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033398 close (fd);
33399
33400 /* Next, try to mmap the file at a fixed address which already has
33401 something else allocated at it. If we can, also make sure that
33402 we see the same garbage. */
33403 fd = open ("conftest.mmap", O_RDWR);
33404 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033405 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033406 data2 = (char *) malloc (2 * pagesize);
33407 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033408 return 1;
33409 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033410 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033411 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033412 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033413 for (i = 0; i < pagesize; ++i)
33414 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033415 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033416
33417 /* Finally, make sure that changes to the mapped area do not
33418 percolate back to the file as seen by read(). (This is a bug on
33419 some variants of i386 svr4.0.) */
33420 for (i = 0; i < pagesize; ++i)
33421 *(data2 + i) = *(data2 + i) + 1;
33422 data3 = (char *) malloc (pagesize);
33423 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033424 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033425 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033426 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033427 for (i = 0; i < pagesize; ++i)
33428 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033429 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033430 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033431 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033432}
33433_ACEOF
33434rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033435if { (ac_try="$ac_link"
33436case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33439esac
33440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033442 ac_status=$?
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033445 { (case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33448esac
33449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; }; then
33454 ac_cv_func_mmap_fixed_mapped=yes
33455else
33456 echo "$as_me: program exited with status $ac_status" >&5
33457echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033458sed 's/^/| /' conftest.$ac_ext >&5
33459
John Criswell7a73b802003-06-30 21:59:07 +000033460( exit $ac_status )
33461ac_cv_func_mmap_fixed_mapped=no
33462fi
Reid Spencera773bd52006-08-04 18:18:08 +000033463rm -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 +000033464fi
Reid Spencera773bd52006-08-04 18:18:08 +000033465
33466
John Criswell7a73b802003-06-30 21:59:07 +000033467fi
Reid Spencera773bd52006-08-04 18:18:08 +000033468{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33469echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033470if test $ac_cv_func_mmap_fixed_mapped = yes; then
33471
33472cat >>confdefs.h <<\_ACEOF
33473#define HAVE_MMAP 1
33474_ACEOF
33475
33476fi
33477rm -f conftest.mmap
33478
Reid Spencer30fe5262007-01-20 07:48:49 +000033479 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033480echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033481if test "${ac_cv_func_mmap_file+set}" = set; then
33482 echo $ECHO_N "(cached) $ECHO_C" >&6
33483else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033484 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +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
33490 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033491 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033492else
33493 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033494
Reid Spencer777ce172004-09-20 04:09:56 +000033495 /* confdefs.h. */
33496_ACEOF
33497cat confdefs.h >>conftest.$ac_ext
33498cat >>conftest.$ac_ext <<_ACEOF
33499/* end confdefs.h. */
33500
John Criswell7a73b802003-06-30 21:59:07 +000033501#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033502#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033503#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033504
33505int
33506main ()
33507{
John Criswell7a73b802003-06-30 21:59:07 +000033508
33509 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033510 fd = creat ("foo",0777);
33511 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33512 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033513 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033514 ;
33515 return 0;
33516}
John Criswell7a73b802003-06-30 21:59:07 +000033517_ACEOF
33518rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033519if { (ac_try="$ac_link"
33520case "(($ac_try" in
33521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522 *) ac_try_echo=$ac_try;;
33523esac
33524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033526 ac_status=$?
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033529 { (case "(($ac_try" in
33530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531 *) ac_try_echo=$ac_try;;
33532esac
33533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033535 ac_status=$?
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); }; }; then
33538 ac_cv_func_mmap_file=yes
33539else
33540 echo "$as_me: program exited with status $ac_status" >&5
33541echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033542sed 's/^/| /' conftest.$ac_ext >&5
33543
John Criswell7a73b802003-06-30 21:59:07 +000033544( exit $ac_status )
33545ac_cv_func_mmap_file=no
33546fi
Reid Spencera773bd52006-08-04 18:18:08 +000033547rm -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 +000033548fi
Reid Spencera773bd52006-08-04 18:18:08 +000033549
33550
John Criswell7a73b802003-06-30 21:59:07 +000033551 ac_ext=c
33552ac_cpp='$CPP $CPPFLAGS'
33553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33555ac_compiler_gnu=$ac_cv_c_compiler_gnu
33556
33557
33558fi
Reid Spencera773bd52006-08-04 18:18:08 +000033559{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33560echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033561if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033562
33563cat >>confdefs.h <<\_ACEOF
33564#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033565_ACEOF
33566
33567 MMAP_FILE=yes
33568
33569fi
33570
Reid Spencer30fe5262007-01-20 07:48:49 +000033571 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033572echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033573if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33575else
Reid Spencer582a23c2004-12-29 07:07:57 +000033576 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033577 ac_cv_need_dev_zero_for_mmap=yes
33578 else
33579 ac_cv_need_dev_zero_for_mmap=no
33580 fi
33581
33582fi
Reid Spencera773bd52006-08-04 18:18:08 +000033583{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33584echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033585if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33586
33587cat >>confdefs.h <<\_ACEOF
33588#define NEED_DEV_ZERO_FOR_MMAP 1
33589_ACEOF
33590
33591fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033592
Reid Spencer30fe5262007-01-20 07:48:49 +000033593 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33594 then
33595 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033596echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033597 fi
33598 if test "$ac_cv_func_mmap_file" = "no"
33599 then
33600 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033601echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033602 fi
John Criswellb13092b2003-07-22 21:00:24 +000033603fi
John Criswell7a73b802003-06-30 21:59:07 +000033604
Owen Andersond4b272b2009-05-18 23:58:51 +000033605if test "$ENABLE_THREADS" -eq 1 ; then
33606 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33607echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33608 cat >conftest.$ac_ext <<_ACEOF
33609/* confdefs.h. */
33610_ACEOF
33611cat confdefs.h >>conftest.$ac_ext
33612cat >>conftest.$ac_ext <<_ACEOF
33613/* end confdefs.h. */
33614int main() {
33615 volatile unsigned long val = 1;
33616 __sync_synchronize();
33617 __sync_val_compare_and_swap(&val, 1, 0);
33618 return 0;
33619 }
33620
33621_ACEOF
33622rm -f conftest.$ac_objext conftest$ac_exeext
33623if { (ac_try="$ac_link"
33624case "(($ac_try" in
33625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626 *) ac_try_echo=$ac_try;;
33627esac
33628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33629 (eval "$ac_link") 2>conftest.er1
33630 ac_status=$?
33631 grep -v '^ *+' conftest.er1 >conftest.err
33632 rm -f conftest.er1
33633 cat conftest.err >&5
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); } &&
33636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33637 { (case "(($ac_try" in
33638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639 *) ac_try_echo=$ac_try;;
33640esac
33641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642 (eval "$ac_try") 2>&5
33643 ac_status=$?
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); }; } &&
33646 { ac_try='test -s conftest$ac_exeext'
33647 { (case "(($ac_try" in
33648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649 *) ac_try_echo=$ac_try;;
33650esac
33651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652 (eval "$ac_try") 2>&5
33653 ac_status=$?
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; }; then
33656 { echo "$as_me:$LINENO: result: yes" >&5
33657echo "${ECHO_T}yes" >&6; }
33658else
33659 echo "$as_me: failed program was:" >&5
33660sed 's/^/| /' conftest.$ac_ext >&5
33661
33662 { echo "$as_me:$LINENO: result: no" >&5
33663echo "${ECHO_T}no" >&6; }
33664 ENABLE_THREADS=0
33665
33666 { echo "$as_me:$LINENO: WARNING: Threading support disabled because atomic builtins are missing" >&5
33667echo "$as_me: WARNING: Threading support disabled because atomic builtins are missing" >&2;}
33668fi
33669
33670rm -f core conftest.err conftest.$ac_objext \
33671 conftest$ac_exeext conftest.$ac_ext
33672fi
33673
33674
33675cat >>confdefs.h <<_ACEOF
33676#define ENABLE_THREADS $ENABLE_THREADS
33677_ACEOF
33678
33679
John Criswell7a73b802003-06-30 21:59:07 +000033680
Reid Spencer9372f152007-07-30 20:13:24 +000033681
33682for ac_func in __dso_handle
33683do
33684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33689else
33690 cat >conftest.$ac_ext <<_ACEOF
33691/* confdefs.h. */
33692_ACEOF
33693cat confdefs.h >>conftest.$ac_ext
33694cat >>conftest.$ac_ext <<_ACEOF
33695/* end confdefs.h. */
33696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33698#define $ac_func innocuous_$ac_func
33699
33700/* System header to define __stub macros and hopefully few prototypes,
33701 which can conflict with char $ac_func (); below.
33702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33703 <limits.h> exists even on freestanding compilers. */
33704
33705#ifdef __STDC__
33706# include <limits.h>
33707#else
33708# include <assert.h>
33709#endif
33710
33711#undef $ac_func
33712
33713/* Override any GCC internal prototype to avoid an error.
33714 Use char because int might match the return type of a GCC
33715 builtin and then its argument prototype would still apply. */
33716#ifdef __cplusplus
33717extern "C"
33718#endif
33719char $ac_func ();
33720/* The GNU C library defines this for functions which it implements
33721 to always fail with ENOSYS. Some functions are actually named
33722 something starting with __ and the normal name is an alias. */
33723#if defined __stub_$ac_func || defined __stub___$ac_func
33724choke me
33725#endif
33726
33727int
33728main ()
33729{
33730return $ac_func ();
33731 ;
33732 return 0;
33733}
33734_ACEOF
33735rm -f conftest.$ac_objext conftest$ac_exeext
33736if { (ac_try="$ac_link"
33737case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33740esac
33741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_link") 2>conftest.er1
33743 ac_status=$?
33744 grep -v '^ *+' conftest.er1 >conftest.err
33745 rm -f conftest.er1
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33753esac
33754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest$ac_exeext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33763esac
33764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033769 eval "$as_ac_var=yes"
33770else
33771 echo "$as_me: failed program was:" >&5
33772sed 's/^/| /' conftest.$ac_ext >&5
33773
33774 eval "$as_ac_var=no"
33775fi
33776
Bill Wendlingebcceee2009-04-18 11:20:33 +000033777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033778 conftest$ac_exeext conftest.$ac_ext
33779fi
33780ac_res=`eval echo '${'$as_ac_var'}'`
33781 { echo "$as_me:$LINENO: result: $ac_res" >&5
33782echo "${ECHO_T}$ac_res" >&6; }
33783if test `eval echo '${'$as_ac_var'}'` = yes; then
33784 cat >>confdefs.h <<_ACEOF
33785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33786_ACEOF
33787
33788fi
33789done
33790
33791
Reid Spencera773bd52006-08-04 18:18:08 +000033792{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33793echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033794if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33795 echo $ECHO_N "(cached) $ECHO_C" >&6
33796else
33797 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033798if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033799 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033800 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33801 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033802 if test $? -eq 0 ; then
33803 llvm_cv_llvmgcc_sanity="yes"
33804 fi
33805 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033806fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033807fi
Reid Spencera773bd52006-08-04 18:18:08 +000033808{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33809echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033810
33811if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033812 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33813echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033814 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033815 LLVMCC1=$llvmcc1path
33816
Reid Spencer502935f2004-12-22 05:56:56 +000033817 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033818 LLVMCC1PLUS=$llvmcc1pluspath
33819
Reid Spencer502935f2004-12-22 05:56:56 +000033820 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33821 LLVMGCCDIR=$llvmgccdir
33822
Reid Spencer282d8c12006-12-21 22:55:41 +000033823 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33824 LLVMGCCLIBEXEC=$llvmgcclibexec
33825
Reid Spencerb5d75b82006-05-09 00:31:01 +000033826 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033827 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33828 LLVMGCC_VERSION=$llvmgccversion
33829
33830 LLVMGCC_MAJVERS=$llvmgccmajvers
33831
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033832 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033833 LLVMGCC_LANGS=$llvmgcclangs
33834
33835 { echo "$as_me:$LINENO: result: ok" >&5
33836echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033837fi
33838
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033839SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033840
33841
Reid Spencere9de0912004-08-20 09:03:57 +000033842# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033843# information into substitutions that will end up in Makefile.config.in
33844# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033845if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033846 prefix="/usr/local"
33847fi
Reid Spencere9de0912004-08-20 09:03:57 +000033848eval LLVM_PREFIX="${prefix}";
33849eval LLVM_BINDIR="${prefix}/bin";
33850eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033851eval LLVM_DATADIR="${prefix}/share/llvm";
33852eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33853eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033854eval LLVM_INCLUDEDIR="${prefix}/include";
33855eval LLVM_INFODIR="${prefix}/info";
33856eval LLVM_MANDIR="${prefix}/man";
33857LLVM_CONFIGTIME=`date`
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033869# Place the various directores into the config.h file as #defines so that we
33870# can know about the installation paths within LLVM.
33871
Reid Spencere9de0912004-08-20 09:03:57 +000033872cat >>confdefs.h <<_ACEOF
33873#define LLVM_PREFIX "$LLVM_PREFIX"
33874_ACEOF
33875
33876
33877cat >>confdefs.h <<_ACEOF
33878#define LLVM_BINDIR "$LLVM_BINDIR"
33879_ACEOF
33880
33881
33882cat >>confdefs.h <<_ACEOF
33883#define LLVM_LIBDIR "$LLVM_LIBDIR"
33884_ACEOF
33885
33886
33887cat >>confdefs.h <<_ACEOF
33888#define LLVM_DATADIR "$LLVM_DATADIR"
33889_ACEOF
33890
33891
33892cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000033893#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033894_ACEOF
33895
33896
33897cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033898#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033899_ACEOF
33900
33901
33902cat >>confdefs.h <<_ACEOF
33903#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33904_ACEOF
33905
33906
33907cat >>confdefs.h <<_ACEOF
33908#define LLVM_INFODIR "$LLVM_INFODIR"
33909_ACEOF
33910
33911
33912cat >>confdefs.h <<_ACEOF
33913#define LLVM_MANDIR "$LLVM_MANDIR"
33914_ACEOF
33915
33916
33917cat >>confdefs.h <<_ACEOF
33918#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33919_ACEOF
33920
33921
Eric Christopher790e11c2007-12-01 00:34:39 +000033922cat >>confdefs.h <<_ACEOF
33923#define LLVM_HOSTTRIPLE "$host"
33924_ACEOF
33925
33926
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033927# Determine which bindings to build.
33928if test "$BINDINGS_TO_BUILD" = auto ; then
33929 BINDINGS_TO_BUILD=""
33930 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33931 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33932 fi
33933fi
33934BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33935
33936
33937# This isn't really configurey, but it avoids having to repeat the list in
33938# other files.
33939ALL_BINDINGS=ocaml
33940
33941
Gordon Henriksenf0915682007-10-02 16:42:22 +000033942# Do any work necessary to ensure that bindings have what they need.
33943binding_prereqs_failed=0
33944for a_binding in $BINDINGS_TO_BUILD ; do
33945 case "$a_binding" in
33946 ocaml)
33947 if test "x$OCAMLC" = x ; then
33948 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33949echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33950 binding_prereqs_failed=1
33951 fi
33952 if test "x$OCAMLDEP" = x ; then
33953 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33954echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33955 binding_prereqs_failed=1
33956 fi
33957 if test "x$OCAMLOPT" = x ; then
33958 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33959echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33960 fi
33961 if test "x$with_ocaml_libdir" != xauto ; then
33962 OCAML_LIBDIR=$with_ocaml_libdir
33963
33964 else
33965 ocaml_stdlib="`"$OCAMLC" -where`"
33966 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33967 then
33968 # ocaml stdlib is beneath our prefix; use stdlib
33969 OCAML_LIBDIR=$ocaml_stdlib
33970
33971 else
33972 # ocaml stdlib is outside our prefix; use libdir/ocaml
33973 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33974
33975 fi
33976 fi
33977 ;;
33978 esac
33979done
33980if test "$binding_prereqs_failed" = 1 ; then
33981 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33982echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33983 { (exit 1); exit 1; }; }
33984fi
33985
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033986{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33987echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33988if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33989 echo $ECHO_N "(cached) $ECHO_C" >&6
33990else
33991 ac_ext=cpp
33992ac_cpp='$CXXCPP $CPPFLAGS'
33993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33996
33997 oldcxxflags="$CXXFLAGS"
33998 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33999 cat >conftest.$ac_ext <<_ACEOF
34000/* confdefs.h. */
34001_ACEOF
34002cat confdefs.h >>conftest.$ac_ext
34003cat >>conftest.$ac_ext <<_ACEOF
34004/* end confdefs.h. */
34005
34006int
34007main ()
34008{
34009
34010 ;
34011 return 0;
34012}
34013_ACEOF
34014rm -f conftest.$ac_objext
34015if { (ac_try="$ac_compile"
34016case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34019esac
34020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_compile") 2>conftest.er1
34022 ac_status=$?
34023 grep -v '^ *+' conftest.er1 >conftest.err
34024 rm -f conftest.er1
34025 cat conftest.err >&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034027 (exit $ac_status); } &&
34028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34029 { (case "(($ac_try" in
34030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34031 *) ac_try_echo=$ac_try;;
34032esac
34033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34034 (eval "$ac_try") 2>&5
34035 ac_status=$?
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; } &&
34038 { ac_try='test -s conftest.$ac_objext'
34039 { (case "(($ac_try" in
34040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041 *) ac_try_echo=$ac_try;;
34042esac
34043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044 (eval "$ac_try") 2>&5
34045 ac_status=$?
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034048 llvm_cv_cxx_visibility_inlines_hidden=yes
34049else
34050 echo "$as_me: failed program was:" >&5
34051sed 's/^/| /' conftest.$ac_ext >&5
34052
34053 llvm_cv_cxx_visibility_inlines_hidden=no
34054fi
34055
34056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34057 CXXFLAGS="$oldcxxflags"
34058 ac_ext=c
34059ac_cpp='$CPP $CPPFLAGS'
34060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34062ac_compiler_gnu=$ac_cv_c_compiler_gnu
34063
34064
34065fi
34066{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34067echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34068if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34069 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34070
34071else
34072 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34073
34074fi
34075
Gordon Henriksenf0915682007-10-02 16:42:22 +000034076
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034077if test "$llvm_cv_link_use_r" = "yes" ; then
34078 RPATH="-Wl,-R"
34079else
34080 RPATH="-Wl,-rpath"
34081fi
34082
34083
34084if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34085 RDYNAMIC="-Wl,-export-dynamic"
34086else
34087 RDYNAMIC=""
34088fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034089
34090
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034091
Reid Spencera773bd52006-08-04 18:18:08 +000034092ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034093
Reid Spencera773bd52006-08-04 18:18:08 +000034094ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034095
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034096ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034097
34098
Reid Spencera773bd52006-08-04 18:18:08 +000034099ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034100
34101
Reid Spencerea949cf2006-08-16 00:45:38 +000034102ac_config_files="$ac_config_files llvm.spec"
34103
34104
Reid Spencera773bd52006-08-04 18:18:08 +000034105ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034106
34107
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034108ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34109
34110
Reid Spencera773bd52006-08-04 18:18:08 +000034111ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034112
34113
Reid Spencera773bd52006-08-04 18:18:08 +000034114ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034115
Reid Spencera773bd52006-08-04 18:18:08 +000034116ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034117
34118
Reid Spencera773bd52006-08-04 18:18:08 +000034119ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034120
34121
Reid Spencera773bd52006-08-04 18:18:08 +000034122ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034123
34124
Reid Spencera773bd52006-08-04 18:18:08 +000034125ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034126
34127
Reid Spencer8b2e1412006-11-17 03:32:33 +000034128ac_config_commands="$ac_config_commands runtime/Makefile"
34129
34130
Reid Spencera773bd52006-08-04 18:18:08 +000034131ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034132
34133
Reid Spencera773bd52006-08-04 18:18:08 +000034134ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034135
34136
Bill Wendlingf24eb392009-01-04 23:12:30 +000034137ac_config_commands="$ac_config_commands unittests/Makefile"
34138
34139
Reid Spencera773bd52006-08-04 18:18:08 +000034140ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034141
34142
Reid Spencera773bd52006-08-04 18:18:08 +000034143ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034144
34145
Reid Spencera773bd52006-08-04 18:18:08 +000034146ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034147
34148
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034149ac_config_commands="$ac_config_commands bindings/Makefile"
34150
34151
34152ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34153
34154
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034155
John Criswell7a73b802003-06-30 21:59:07 +000034156cat >confcache <<\_ACEOF
34157# This file is a shell script that caches the results of configure
34158# tests run on this system so they can be shared between configure
34159# scripts and configure runs, see configure's option --config-cache.
34160# It is not useful on other systems. If it contains results you don't
34161# want to keep, you may remove or edit it.
34162#
34163# config.status only pays attention to the cache file if you give it
34164# the --recheck option to rerun configure.
34165#
John Criswell0c38eaf2003-09-10 15:17:25 +000034166# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034167# loading this file, other *unset* `ac_cv_foo' will be assigned the
34168# following values.
34169
34170_ACEOF
34171
34172# The following way of writing the cache mishandles newlines in values,
34173# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034174# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034175# Ultrix sh set writes to stderr and can't be redirected directly,
34176# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034177(
34178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34179 eval ac_val=\$$ac_var
34180 case $ac_val in #(
34181 *${as_nl}*)
34182 case $ac_var in #(
34183 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34184echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34185 esac
34186 case $ac_var in #(
34187 _ | IFS | as_nl) ;; #(
34188 *) $as_unset $ac_var ;;
34189 esac ;;
34190 esac
34191 done
34192
John Criswell7a73b802003-06-30 21:59:07 +000034193 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34195 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034196 # `set' does not quote correctly, so add quotes (double-quote
34197 # substitution turns \\\\ into \\, and sed turns \\ into \).
34198 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034199 "s/'/'\\\\''/g;
34200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034201 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034202 *)
34203 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034205 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034206 esac |
34207 sort
34208) |
John Criswell7a73b802003-06-30 21:59:07 +000034209 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034210 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034211 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034212 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34214 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34216 :end' >>confcache
34217if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34218 if test -w "$cache_file"; then
34219 test "x$cache_file" != "x/dev/null" &&
34220 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34221echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034222 cat confcache >$cache_file
34223 else
Reid Spencera773bd52006-08-04 18:18:08 +000034224 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34225echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034226 fi
34227fi
34228rm -f confcache
34229
34230test "x$prefix" = xNONE && prefix=$ac_default_prefix
34231# Let make expand exec_prefix.
34232test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34233
John Criswell7a73b802003-06-30 21:59:07 +000034234DEFS=-DHAVE_CONFIG_H
34235
John Criswell0c38eaf2003-09-10 15:17:25 +000034236ac_libobjs=
34237ac_ltlibobjs=
34238for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34239 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34241 ac_i=`echo "$ac_i" | sed "$ac_script"`
34242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34243 # will be set to the directory where LIBOBJS objects are built.
34244 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34245 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034246done
34247LIBOBJS=$ac_libobjs
34248
34249LTLIBOBJS=$ac_ltlibobjs
34250
34251
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034252if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34253 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34254Usually this means the macro was only invoked conditionally." >&5
34255echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34256Usually this means the macro was only invoked conditionally." >&2;}
34257 { (exit 1); exit 1; }; }
34258fi
34259if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34260 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34261Usually this means the macro was only invoked conditionally." >&5
34262echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34263Usually this means the macro was only invoked conditionally." >&2;}
34264 { (exit 1); exit 1; }; }
34265fi
John Criswell7a73b802003-06-30 21:59:07 +000034266
34267: ${CONFIG_STATUS=./config.status}
34268ac_clean_files_save=$ac_clean_files
34269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34270{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34271echo "$as_me: creating $CONFIG_STATUS" >&6;}
34272cat >$CONFIG_STATUS <<_ACEOF
34273#! $SHELL
34274# Generated by $as_me.
34275# Run this file to recreate the current configuration.
34276# Compiler output produced by configure, useful for debugging
34277# configure, is in config.log if it exists.
34278
34279debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034280ac_cs_recheck=false
34281ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034282SHELL=\${CONFIG_SHELL-$SHELL}
34283_ACEOF
34284
34285cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034286## --------------------- ##
34287## M4sh Initialization. ##
34288## --------------------- ##
34289
Bill Wendlingebcceee2009-04-18 11:20:33 +000034290# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034291if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34292 emulate sh
34293 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34295 # is contrary to our usage. Disable this feature.
34296 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034297 setopt NO_GLOB_SUBST
34298else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034299 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034300fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034301BIN_SH=xpg4; export BIN_SH # for Tru64
34302DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034303
John Criswell7a73b802003-06-30 21:59:07 +000034304
Reid Spencera773bd52006-08-04 18:18:08 +000034305# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034306# Avoid depending upon Character Ranges.
34307as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34308as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34309as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34310as_cr_digits='0123456789'
34311as_cr_alnum=$as_cr_Letters$as_cr_digits
34312
34313# The user is always right.
34314if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034315 echo "#! /bin/sh" >conf$$.sh
34316 echo "exit 0" >>conf$$.sh
34317 chmod +x conf$$.sh
34318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034319 PATH_SEPARATOR=';'
34320 else
34321 PATH_SEPARATOR=:
34322 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034323 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034324fi
34325
Reid Spencera773bd52006-08-04 18:18:08 +000034326# Support unset when possible.
34327if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34328 as_unset=unset
34329else
34330 as_unset=false
34331fi
John Criswell7a73b802003-06-30 21:59:07 +000034332
Reid Spencera773bd52006-08-04 18:18:08 +000034333
34334# IFS
34335# We need space, tab and new line, in precisely that order. Quoting is
34336# there to prevent editors from complaining about space-tab.
34337# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34338# splitting by setting IFS to empty value.)
34339as_nl='
34340'
34341IFS=" "" $as_nl"
34342
34343# Find who we are. Look in the path if we contain no directory separator.
34344case $0 in
34345 *[\\/]* ) as_myself=$0 ;;
34346 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034347for as_dir in $PATH
34348do
34349 IFS=$as_save_IFS
34350 test -z "$as_dir" && as_dir=.
34351 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34352done
Reid Spencera773bd52006-08-04 18:18:08 +000034353IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034354
Reid Spencera773bd52006-08-04 18:18:08 +000034355 ;;
34356esac
34357# We did not find ourselves, most probably we were run as `sh COMMAND'
34358# in which case we are not to be found in the path.
34359if test "x$as_myself" = x; then
34360 as_myself=$0
34361fi
34362if test ! -f "$as_myself"; then
34363 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34364 { (exit 1); exit 1; }
34365fi
34366
34367# Work around bugs in pre-3.0 UWIN ksh.
34368for as_var in ENV MAIL MAILPATH
34369do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34370done
34371PS1='$ '
34372PS2='> '
34373PS4='+ '
34374
34375# NLS nuisances.
34376for as_var in \
34377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34379 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034380do
Reid Spencera773bd52006-08-04 18:18:08 +000034381 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34382 eval $as_var=C; export $as_var
34383 else
34384 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34385 fi
34386done
34387
34388# Required to use basename.
34389if expr a : '\(a\)' >/dev/null 2>&1 &&
34390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34391 as_expr=expr
34392else
34393 as_expr=false
34394fi
34395
34396if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34397 as_basename=basename
34398else
34399 as_basename=false
34400fi
34401
34402
34403# Name of the executable.
34404as_me=`$as_basename -- "$0" ||
34405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34406 X"$0" : 'X\(//\)$' \| \
34407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34408echo X/"$0" |
34409 sed '/^.*\/\([^/][^/]*\)\/*$/{
34410 s//\1/
34411 q
34412 }
34413 /^X\/\(\/\/\)$/{
34414 s//\1/
34415 q
34416 }
34417 /^X\/\(\/\).*/{
34418 s//\1/
34419 q
34420 }
34421 s/.*/./; q'`
34422
34423# CDPATH.
34424$as_unset CDPATH
34425
34426
34427
John Criswell7a73b802003-06-30 21:59:07 +000034428 as_lineno_1=$LINENO
34429 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034430 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034432
34433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34434 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034435 # line-number line after each line using $LINENO; the second 'sed'
34436 # does the real work. The second script uses 'N' to pair each
34437 # line-number line with the line containing $LINENO, and appends
34438 # trailing '-' during substitution so that $LINENO is not a special
34439 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034441 # scripts with optimization help from Paolo Bonzini. Blame Lee
34442 # E. McMahon (1931-1989) for sed's syntax. :-)
34443 sed -n '
34444 p
34445 /[$]LINENO/=
34446 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034447 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034448 s/[$]LINENO.*/&-/
34449 t lineno
34450 b
34451 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034452 N
Reid Spencera773bd52006-08-04 18:18:08 +000034453 :loop
34454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034455 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034456 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034457 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034458 chmod +x "$as_me.lineno" ||
34459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034460 { (exit 1); exit 1; }; }
34461
34462 # Don't try to exec as it changes $[0], causing all sort of problems
34463 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034464 # original and so on. Autoconf is especially sensitive to this).
34465 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034466 # Exit status is that of the last command.
34467 exit
34468}
34469
34470
Reid Spencera773bd52006-08-04 18:18:08 +000034471if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34472 as_dirname=dirname
34473else
34474 as_dirname=false
34475fi
34476
34477ECHO_C= ECHO_N= ECHO_T=
34478case `echo -n x` in
34479-n*)
34480 case `echo 'x\c'` in
34481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34482 *) ECHO_C='\c';;
34483 esac;;
34484*)
34485 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034486esac
34487
Reid Spencera773bd52006-08-04 18:18:08 +000034488if expr a : '\(a\)' >/dev/null 2>&1 &&
34489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034490 as_expr=expr
34491else
34492 as_expr=false
34493fi
34494
34495rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034496if test -d conf$$.dir; then
34497 rm -f conf$$.dir/conf$$.file
34498else
34499 rm -f conf$$.dir
34500 mkdir conf$$.dir
34501fi
John Criswell7a73b802003-06-30 21:59:07 +000034502echo >conf$$.file
34503if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034504 as_ln_s='ln -s'
34505 # ... but there are two gotchas:
34506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34508 # In both cases, we have to default to `cp -p'.
34509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034510 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034511elif ln conf$$.file conf$$ 2>/dev/null; then
34512 as_ln_s=ln
34513else
34514 as_ln_s='cp -p'
34515fi
Reid Spencera773bd52006-08-04 18:18:08 +000034516rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34517rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034518
John Criswell0c38eaf2003-09-10 15:17:25 +000034519if mkdir -p . 2>/dev/null; then
34520 as_mkdir_p=:
34521else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034522 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034523 as_mkdir_p=false
34524fi
34525
Bill Wendlingebcceee2009-04-18 11:20:33 +000034526# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34527# systems may use methods other than mode bits to determine executability.
34528cat >conf$$.file <<_ASEOF
34529#! /bin/sh
34530exit 0
34531_ASEOF
34532chmod +x conf$$.file
34533if test -x conf$$.file >/dev/null 2>&1; then
34534 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034535else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034536 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034537fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034538rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034539
34540# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034541as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034542
34543# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034544as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034545
34546
John Criswell7a73b802003-06-30 21:59:07 +000034547exec 6>&1
34548
Reid Spencera773bd52006-08-04 18:18:08 +000034549# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034550# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034551# values after options handling.
34552ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034553This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034554generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034555
34556 CONFIG_FILES = $CONFIG_FILES
34557 CONFIG_HEADERS = $CONFIG_HEADERS
34558 CONFIG_LINKS = $CONFIG_LINKS
34559 CONFIG_COMMANDS = $CONFIG_COMMANDS
34560 $ $0 $@
34561
Reid Spencera773bd52006-08-04 18:18:08 +000034562on `(hostname || uname -n) 2>/dev/null | sed 1q`
34563"
34564
John Criswell7a73b802003-06-30 21:59:07 +000034565_ACEOF
34566
Reid Spencera773bd52006-08-04 18:18:08 +000034567cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034568# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034569config_files="$ac_config_files"
34570config_headers="$ac_config_headers"
34571config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034572
Reid Spencera773bd52006-08-04 18:18:08 +000034573_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034574
34575cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034576ac_cs_usage="\
34577\`$as_me' instantiates files from templates according to the
34578current configuration.
34579
34580Usage: $0 [OPTIONS] [FILE]...
34581
34582 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000034583 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034584 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034585 -d, --debug don't remove temporary files
34586 --recheck update $as_me by reconfiguring in the same conditions
34587 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034588 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034589 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034590 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034591
34592Configuration files:
34593$config_files
34594
34595Configuration headers:
34596$config_headers
34597
John Criswellc764fbc2003-09-06 15:17:13 +000034598Configuration commands:
34599$config_commands
34600
John Criswell7a73b802003-06-30 21:59:07 +000034601Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034602
Reid Spencera773bd52006-08-04 18:18:08 +000034603_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034604cat >>$CONFIG_STATUS <<_ACEOF
34605ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034606llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000034607configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034608 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034609
Reid Spencera773bd52006-08-04 18:18:08 +000034610Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034611This config.status script is free software; the Free Software Foundation
34612gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034613
34614ac_pwd='$ac_pwd'
34615srcdir='$srcdir'
34616INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034617_ACEOF
34618
34619cat >>$CONFIG_STATUS <<\_ACEOF
34620# If no file are specified by the user, then we need to provide default
34621# value. By we need to know if files were specified by the user.
34622ac_need_defaults=:
34623while test $# != 0
34624do
34625 case $1 in
34626 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034629 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034630 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034631 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034632 ac_option=$1
34633 ac_optarg=$2
34634 ac_shift=shift
34635 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034636 esac
34637
John Criswell0c38eaf2003-09-10 15:17:25 +000034638 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034639 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34641 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034642 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34643 echo "$ac_cs_version"; exit ;;
34644 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034645 debug=: ;;
34646 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034647 $ac_shift
34648 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034649 ac_need_defaults=false;;
34650 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034651 $ac_shift
34652 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034653 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034654 --he | --h)
34655 # Conflict between --help and --header
34656 { echo "$as_me: error: ambiguous option: $1
34657Try \`$0 --help' for more information." >&2
34658 { (exit 1); exit 1; }; };;
34659 --help | --hel | -h )
34660 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34663 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034664
34665 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034666 -*) { echo "$as_me: error: unrecognized option: $1
34667Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034668 { (exit 1); exit 1; }; } ;;
34669
Reid Spencera773bd52006-08-04 18:18:08 +000034670 *) ac_config_targets="$ac_config_targets $1"
34671 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034672
34673 esac
34674 shift
34675done
34676
John Criswell0c38eaf2003-09-10 15:17:25 +000034677ac_configure_extra_args=
34678
34679if $ac_cs_silent; then
34680 exec 6>/dev/null
34681 ac_configure_extra_args="$ac_configure_extra_args --silent"
34682fi
34683
34684_ACEOF
34685cat >>$CONFIG_STATUS <<_ACEOF
34686if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034687 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34688 CONFIG_SHELL=$SHELL
34689 export CONFIG_SHELL
34690 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034691fi
34692
John Criswell7a73b802003-06-30 21:59:07 +000034693_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034694cat >>$CONFIG_STATUS <<\_ACEOF
34695exec 5>>config.log
34696{
34697 echo
34698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34699## Running $as_me. ##
34700_ASBOX
34701 echo "$ac_log"
34702} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034703
Reid Spencera773bd52006-08-04 18:18:08 +000034704_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034705cat >>$CONFIG_STATUS <<_ACEOF
34706#
Reid Spencera773bd52006-08-04 18:18:08 +000034707# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034708#
Reid Spencerc0682832005-02-24 19:05:19 +000034709llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034710
34711_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034712
John Criswell7a73b802003-06-30 21:59:07 +000034713cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034714
34715# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034716for ac_config_target in $ac_config_targets
34717do
Reid Spencera773bd52006-08-04 18:18:08 +000034718 case $ac_config_target in
34719 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34720 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034721 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034722 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034723 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034724 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034725 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034726 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34727 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34728 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34729 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34730 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34731 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034732 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034733 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34734 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034735 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034736 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34737 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34738 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034739 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34740 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034741
John Criswell7a73b802003-06-30 21:59:07 +000034742 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34743echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34744 { (exit 1); exit 1; }; };;
34745 esac
34746done
34747
Reid Spencera773bd52006-08-04 18:18:08 +000034748
John Criswell7a73b802003-06-30 21:59:07 +000034749# If the user did not use the arguments to specify the items to instantiate,
34750# then the envvar interface is used. Set only those that are not.
34751# We use the long form for the default assignment because of an extremely
34752# bizarre bug on SunOS 4.1.3.
34753if $ac_need_defaults; then
34754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034757fi
34758
John Criswell0c38eaf2003-09-10 15:17:25 +000034759# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034760# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034761# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034762# Hook for its removal unless debugging.
34763# Note that there is a small window in which the directory will not be cleaned:
34764# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034765$debug ||
34766{
Reid Spencera773bd52006-08-04 18:18:08 +000034767 tmp=
34768 trap 'exit_status=$?
34769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34770' 0
John Criswell7a73b802003-06-30 21:59:07 +000034771 trap '{ (exit 1); exit 1; }' 1 2 13 15
34772}
John Criswell7a73b802003-06-30 21:59:07 +000034773# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034774
John Criswell7a73b802003-06-30 21:59:07 +000034775{
Reid Spencera773bd52006-08-04 18:18:08 +000034776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034777 test -n "$tmp" && test -d "$tmp"
34778} ||
34779{
Reid Spencera773bd52006-08-04 18:18:08 +000034780 tmp=./conf$$-$RANDOM
34781 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034782} ||
34783{
John Criswell0c38eaf2003-09-10 15:17:25 +000034784 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034785 { (exit 1); exit 1; }
34786}
34787
John Criswell7a73b802003-06-30 21:59:07 +000034788#
Reid Spencera773bd52006-08-04 18:18:08 +000034789# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034790#
34791
34792# No need to generate the scripts if there are no CONFIG_FILES.
34793# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034794if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034795
34796_ACEOF
34797
Reid Spencera773bd52006-08-04 18:18:08 +000034798
34799
34800ac_delim='%!_!# '
34801for ac_last_try in false false false false false :; do
34802 cat >conf$$subs.sed <<_ACEOF
34803SHELL!$SHELL$ac_delim
34804PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34805PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34806PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34807PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34808PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34809PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34810exec_prefix!$exec_prefix$ac_delim
34811prefix!$prefix$ac_delim
34812program_transform_name!$program_transform_name$ac_delim
34813bindir!$bindir$ac_delim
34814sbindir!$sbindir$ac_delim
34815libexecdir!$libexecdir$ac_delim
34816datarootdir!$datarootdir$ac_delim
34817datadir!$datadir$ac_delim
34818sysconfdir!$sysconfdir$ac_delim
34819sharedstatedir!$sharedstatedir$ac_delim
34820localstatedir!$localstatedir$ac_delim
34821includedir!$includedir$ac_delim
34822oldincludedir!$oldincludedir$ac_delim
34823docdir!$docdir$ac_delim
34824infodir!$infodir$ac_delim
34825htmldir!$htmldir$ac_delim
34826dvidir!$dvidir$ac_delim
34827pdfdir!$pdfdir$ac_delim
34828psdir!$psdir$ac_delim
34829libdir!$libdir$ac_delim
34830localedir!$localedir$ac_delim
34831mandir!$mandir$ac_delim
34832DEFS!$DEFS$ac_delim
34833ECHO_C!$ECHO_C$ac_delim
34834ECHO_N!$ECHO_N$ac_delim
34835ECHO_T!$ECHO_T$ac_delim
34836LIBS!$LIBS$ac_delim
34837build_alias!$build_alias$ac_delim
34838host_alias!$host_alias$ac_delim
34839target_alias!$target_alias$ac_delim
34840LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34841subdirs!$subdirs$ac_delim
34842build!$build$ac_delim
34843build_cpu!$build_cpu$ac_delim
34844build_vendor!$build_vendor$ac_delim
34845build_os!$build_os$ac_delim
34846host!$host$ac_delim
34847host_cpu!$host_cpu$ac_delim
34848host_vendor!$host_vendor$ac_delim
34849host_os!$host_os$ac_delim
34850target!$target$ac_delim
34851target_cpu!$target_cpu$ac_delim
34852target_vendor!$target_vendor$ac_delim
34853target_os!$target_os$ac_delim
34854OS!$OS$ac_delim
34855LINKALL!$LINKALL$ac_delim
34856NOLINKALL!$NOLINKALL$ac_delim
34857LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34858LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000034859ARCH!$ARCH$ac_delim
34860ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034861CC!$CC$ac_delim
34862CFLAGS!$CFLAGS$ac_delim
34863LDFLAGS!$LDFLAGS$ac_delim
34864CPPFLAGS!$CPPFLAGS$ac_delim
34865ac_ct_CC!$ac_ct_CC$ac_delim
34866EXEEXT!$EXEEXT$ac_delim
34867OBJEXT!$OBJEXT$ac_delim
34868CPP!$CPP$ac_delim
34869GREP!$GREP$ac_delim
34870EGREP!$EGREP$ac_delim
34871LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34872BUILD_CC!$BUILD_CC$ac_delim
34873BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000034874BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034875CVSBUILD!$CVSBUILD$ac_delim
34876ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000034877ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034878DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034879ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34880EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034881DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034882JIT!$JIT$ac_delim
34883TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34884ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34885ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034886ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034887TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034888ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034889EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000034890BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034891CXX!$CXX$ac_delim
34892CXXFLAGS!$CXXFLAGS$ac_delim
34893ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000034894NM!$NM$ac_delim
34895ifGNUmake!$ifGNUmake$ac_delim
34896LN_S!$LN_S$ac_delim
34897CMP!$CMP$ac_delim
34898CP!$CP$ac_delim
34899DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034900_ACEOF
34901
34902 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34903 break
34904 elif $ac_last_try; then
34905 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34906echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34907 { (exit 1); exit 1; }; }
34908 else
34909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034910 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034911done
34912
34913ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34914if test -n "$ac_eof"; then
34915 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34916 ac_eof=`expr $ac_eof + 1`
34917fi
34918
34919cat >>$CONFIG_STATUS <<_ACEOF
34920cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34922_ACEOF
34923sed '
34924s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34925s/^/s,@/; s/!/@,|#_!!_#|/
34926:n
34927t n
34928s/'"$ac_delim"'$/,g/; t
34929s/$/\\/; p
34930N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34931' >>$CONFIG_STATUS <conf$$subs.sed
34932rm -f conf$$subs.sed
34933cat >>$CONFIG_STATUS <<_ACEOF
34934CEOF$ac_eof
34935_ACEOF
34936
34937
34938ac_delim='%!_!# '
34939for ac_last_try in false false false false false :; do
34940 cat >conf$$subs.sed <<_ACEOF
David Greene2a5a12c2009-04-17 14:50:39 +000034941FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034942MKDIR!$MKDIR$ac_delim
34943MV!$MV$ac_delim
34944RANLIB!$RANLIB$ac_delim
34945RM!$RM$ac_delim
34946SED!$SED$ac_delim
34947TAR!$TAR$ac_delim
34948BINPWD!$BINPWD$ac_delim
34949GRAPHVIZ!$GRAPHVIZ$ac_delim
34950DOT!$DOT$ac_delim
34951GV!$GV$ac_delim
34952DOTTY!$DOTTY$ac_delim
34953PERL!$PERL$ac_delim
34954HAVE_PERL!$HAVE_PERL$ac_delim
34955INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34956INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34957INSTALL_DATA!$INSTALL_DATA$ac_delim
34958BZIP2!$BZIP2$ac_delim
34959DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034960GROFF!$GROFF$ac_delim
34961GZIP!$GZIP$ac_delim
34962POD2HTML!$POD2HTML$ac_delim
34963POD2MAN!$POD2MAN$ac_delim
34964RUNTEST!$RUNTEST$ac_delim
34965TCLSH!$TCLSH$ac_delim
34966ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000034967OCAMLC!$OCAMLC$ac_delim
34968OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000034969OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000034970OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000034971GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034972INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34973INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34974CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34975CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34976LIBADD_DL!$LIBADD_DL$ac_delim
34977ECHO!$ECHO$ac_delim
34978AR!$AR$ac_delim
34979STRIP!$STRIP$ac_delim
34980CXXCPP!$CXXCPP$ac_delim
34981F77!$F77$ac_delim
34982FFLAGS!$FFLAGS$ac_delim
34983ac_ct_F77!$ac_ct_F77$ac_delim
34984LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034985LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34986LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000034987LLVMGCC!$LLVMGCC$ac_delim
34988LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034989USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034990HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034991HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034992ALLOCA!$ALLOCA$ac_delim
34993MMAP_FILE!$MMAP_FILE$ac_delim
34994LLVMCC1!$LLVMCC1$ac_delim
34995LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34996LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034997LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034998LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34999LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035000LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035001SHLIBEXT!$SHLIBEXT$ac_delim
35002LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35003LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35004LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35005LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35006LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35007LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35008LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35009LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35010LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35011LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035012BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35013ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035014OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035015ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035016RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035017RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035018LIBOBJS!$LIBOBJS$ac_delim
35019LTLIBOBJS!$LTLIBOBJS$ac_delim
35020_ACEOF
35021
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035022 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Reid Spencera773bd52006-08-04 18:18:08 +000035023 break
35024 elif $ac_last_try; then
35025 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35026echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35027 { (exit 1); exit 1; }; }
35028 else
35029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35030 fi
35031done
35032
35033ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35034if test -n "$ac_eof"; then
35035 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35036 ac_eof=`expr $ac_eof + 1`
35037fi
35038
35039cat >>$CONFIG_STATUS <<_ACEOF
35040cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35041/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35042_ACEOF
35043sed '
35044s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35045s/^/s,@/; s/!/@,|#_!!_#|/
35046:n
35047t n
35048s/'"$ac_delim"'$/,g/; t
35049s/$/\\/; p
35050N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35051' >>$CONFIG_STATUS <conf$$subs.sed
35052rm -f conf$$subs.sed
35053cat >>$CONFIG_STATUS <<_ACEOF
35054:end
35055s/|#_!!_#|//g
35056CEOF$ac_eof
35057_ACEOF
35058
35059
35060# VPATH may cause trouble with some makes, so we remove $(srcdir),
35061# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35062# trailing colons and then remove the whole line if VPATH becomes empty
35063# (actually we leave an empty line to preserve line numbers).
35064if test "x$srcdir" = x.; then
35065 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35066s/:*\$(srcdir):*/:/
35067s/:*\${srcdir}:*/:/
35068s/:*@srcdir@:*/:/
35069s/^\([^=]*=[ ]*\):*/\1/
35070s/:*$//
35071s/^[^=]*=[ ]*$//
35072}'
35073fi
35074
35075cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035076fi # test -n "$CONFIG_FILES"
35077
Reid Spencera773bd52006-08-04 18:18:08 +000035078
35079for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35080do
35081 case $ac_tag in
35082 :[FHLC]) ac_mode=$ac_tag; continue;;
35083 esac
35084 case $ac_mode$ac_tag in
35085 :[FHL]*:*);;
35086 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35087echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35088 { (exit 1); exit 1; }; };;
35089 :[FH]-) ac_tag=-:-;;
35090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35091 esac
35092 ac_save_IFS=$IFS
35093 IFS=:
35094 set x $ac_tag
35095 IFS=$ac_save_IFS
35096 shift
35097 ac_file=$1
35098 shift
35099
35100 case $ac_mode in
35101 :L) ac_source=$1;;
35102 :[FH])
35103 ac_file_inputs=
35104 for ac_f
35105 do
35106 case $ac_f in
35107 -) ac_f="$tmp/stdin";;
35108 *) # Look for the file first in the build tree, then in the source tree
35109 # (if the path is not absolute). The absolute path cannot be DOS-style,
35110 # because $ac_f cannot contain `:'.
35111 test -f "$ac_f" ||
35112 case $ac_f in
35113 [\\/$]*) false;;
35114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35115 esac ||
35116 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35117echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35118 { (exit 1); exit 1; }; };;
35119 esac
35120 ac_file_inputs="$ac_file_inputs $ac_f"
35121 done
35122
35123 # Let's still pretend it is `configure' which instantiates (i.e., don't
35124 # use $as_me), people would be surprised to read:
35125 # /* config.h. Generated by config.status. */
35126 configure_input="Generated from "`IFS=:
35127 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35128 if test x"$ac_file" != x-; then
35129 configure_input="$ac_file. $configure_input"
35130 { echo "$as_me:$LINENO: creating $ac_file" >&5
35131echo "$as_me: creating $ac_file" >&6;}
35132 fi
35133
35134 case $ac_tag in
35135 *:-:* | *:-) cat >"$tmp/stdin";;
35136 esac
35137 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035138 esac
35139
Reid Spencera773bd52006-08-04 18:18:08 +000035140 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035141$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035142 X"$ac_file" : 'X\(//\)[^/]' \| \
35143 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035145echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35147 s//\1/
35148 q
35149 }
35150 /^X\(\/\/\)[^/].*/{
35151 s//\1/
35152 q
35153 }
35154 /^X\(\/\/\)$/{
35155 s//\1/
35156 q
35157 }
35158 /^X\(\/\).*/{
35159 s//\1/
35160 q
35161 }
35162 s/.*/./; q'`
35163 { as_dir="$ac_dir"
35164 case $as_dir in #(
35165 -*) as_dir=./$as_dir;;
35166 esac
35167 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035168 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035169 while :; do
35170 case $as_dir in #(
35171 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35172 *) as_qdir=$as_dir;;
35173 esac
35174 as_dirs="'$as_qdir' $as_dirs"
35175 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035177 X"$as_dir" : 'X\(//\)[^/]' \| \
35178 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035180echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35182 s//\1/
35183 q
35184 }
35185 /^X\(\/\/\)[^/].*/{
35186 s//\1/
35187 q
35188 }
35189 /^X\(\/\/\)$/{
35190 s//\1/
35191 q
35192 }
35193 /^X\(\/\).*/{
35194 s//\1/
35195 q
35196 }
35197 s/.*/./; q'`
35198 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035199 done
Reid Spencera773bd52006-08-04 18:18:08 +000035200 test -z "$as_dirs" || eval "mkdir $as_dirs"
35201 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35202echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035203 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035204 ac_builddir=.
35205
Reid Spencera773bd52006-08-04 18:18:08 +000035206case "$ac_dir" in
35207.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35208*)
John Criswell7a73b802003-06-30 21:59:07 +000035209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035210 # A ".." for each directory in $ac_dir_suffix.
35211 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35212 case $ac_top_builddir_sub in
35213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35215 esac ;;
35216esac
35217ac_abs_top_builddir=$ac_pwd
35218ac_abs_builddir=$ac_pwd$ac_dir_suffix
35219# for backward compatibility:
35220ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035221
35222case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035223 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035224 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035225 ac_top_srcdir=$ac_top_builddir_sub
35226 ac_abs_top_srcdir=$ac_pwd ;;
35227 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035228 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035229 ac_top_srcdir=$srcdir
35230 ac_abs_top_srcdir=$srcdir ;;
35231 *) # Relative name.
35232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35233 ac_top_srcdir=$ac_top_build_prefix$srcdir
35234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035235esac
Reid Spencera773bd52006-08-04 18:18:08 +000035236ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035237
John Criswell7a73b802003-06-30 21:59:07 +000035238
Reid Spencera773bd52006-08-04 18:18:08 +000035239 case $ac_mode in
35240 :F)
35241 #
35242 # CONFIG_FILE
35243 #
John Criswell7a73b802003-06-30 21:59:07 +000035244
35245 case $INSTALL in
35246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035247 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035248 esac
John Criswell7a73b802003-06-30 21:59:07 +000035249_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035250
35251cat >>$CONFIG_STATUS <<\_ACEOF
35252# If the template does not know about datarootdir, expand it.
35253# FIXME: This hack should be removed a few years after 2.60.
35254ac_datarootdir_hack=; ac_datarootdir_seen=
35255
35256case `sed -n '/datarootdir/ {
35257 p
35258 q
35259}
35260/@datadir@/p
35261/@docdir@/p
35262/@infodir@/p
35263/@localedir@/p
35264/@mandir@/p
35265' $ac_file_inputs` in
35266*datarootdir*) ac_datarootdir_seen=yes;;
35267*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35268 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35269echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35270_ACEOF
35271cat >>$CONFIG_STATUS <<_ACEOF
35272 ac_datarootdir_hack='
35273 s&@datadir@&$datadir&g
35274 s&@docdir@&$docdir&g
35275 s&@infodir@&$infodir&g
35276 s&@localedir@&$localedir&g
35277 s&@mandir@&$mandir&g
35278 s&\\\${datarootdir}&$datarootdir&g' ;;
35279esac
35280_ACEOF
35281
35282# Neutralize VPATH when `$srcdir' = `.'.
35283# Shell code in configure.ac might set extrasub.
35284# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035285cat >>$CONFIG_STATUS <<_ACEOF
35286 sed "$ac_vpsub
35287$extrasub
35288_ACEOF
35289cat >>$CONFIG_STATUS <<\_ACEOF
35290:t
35291/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035292s&@configure_input@&$configure_input&;t t
35293s&@top_builddir@&$ac_top_builddir_sub&;t t
35294s&@srcdir@&$ac_srcdir&;t t
35295s&@abs_srcdir@&$ac_abs_srcdir&;t t
35296s&@top_srcdir@&$ac_top_srcdir&;t t
35297s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35298s&@builddir@&$ac_builddir&;t t
35299s&@abs_builddir@&$ac_abs_builddir&;t t
35300s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35301s&@INSTALL@&$ac_INSTALL&;t t
35302$ac_datarootdir_hack
35303" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035304
Reid Spencera773bd52006-08-04 18:18:08 +000035305test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35308 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35309which seems to be undefined. Please make sure it is defined." >&5
35310echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35311which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035312
Reid Spencera773bd52006-08-04 18:18:08 +000035313 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035314 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035315 -) cat "$tmp/out"; rm -f "$tmp/out";;
35316 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035317 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035318 ;;
35319 :H)
35320 #
35321 # CONFIG_HEADER
35322 #
John Criswell7a73b802003-06-30 21:59:07 +000035323_ACEOF
35324
Reid Spencera773bd52006-08-04 18:18:08 +000035325# Transform confdefs.h into a sed script `conftest.defines', that
35326# substitutes the proper values into config.h.in to produce config.h.
35327rm -f conftest.defines conftest.tail
35328# First, append a space to every undef/define line, to ease matching.
35329echo 's/$/ /' >conftest.defines
35330# Then, protect against being on the right side of a sed subst, or in
35331# an unquoted here document, in config.status. If some macros were
35332# called several times there might be several #defines for the same
35333# symbol, which is useless. But do not sort them, since the last
35334# AC_DEFINE must be honored.
35335ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35336# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35337# NAME is the cpp macro being defined, VALUE is the value it is being given.
35338# PARAMS is the parameter list in the macro definition--in most cases, it's
35339# just an empty string.
35340ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35341ac_dB='\\)[ (].*,\\1define\\2'
35342ac_dC=' '
35343ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035344
Reid Spencera773bd52006-08-04 18:18:08 +000035345uniq confdefs.h |
35346 sed -n '
35347 t rset
35348 :rset
35349 s/^[ ]*#[ ]*define[ ][ ]*//
35350 t ok
35351 d
35352 :ok
35353 s/[\\&,]/\\&/g
35354 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35355 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35356 ' >>conftest.defines
35357
35358# Remove the space that was appended to ease matching.
35359# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035360# example, in the case of _POSIX_SOURCE, which is predefined and required
35361# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035362# (The regexp can be short, since the line contains either #define or #undef.)
35363echo 's/ $//
35364s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035365
Reid Spencera773bd52006-08-04 18:18:08 +000035366# Break up conftest.defines:
35367ac_max_sed_lines=50
35368
35369# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35370# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35371# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35372# et cetera.
35373ac_in='$ac_file_inputs'
35374ac_out='"$tmp/out1"'
35375ac_nxt='"$tmp/out2"'
35376
35377while :
John Criswell7a73b802003-06-30 21:59:07 +000035378do
Reid Spencera773bd52006-08-04 18:18:08 +000035379 # Write a here document:
35380 cat >>$CONFIG_STATUS <<_ACEOF
35381 # First, check the format of the line:
35382 cat >"\$tmp/defines.sed" <<\\CEOF
35383/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35384/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35385b
35386:def
35387_ACEOF
35388 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035389 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035390 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35391 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35392 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35393 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035394 rm -f conftest.defines
35395 mv conftest.tail conftest.defines
35396done
Reid Spencera773bd52006-08-04 18:18:08 +000035397rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035398
Reid Spencera773bd52006-08-04 18:18:08 +000035399echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035400cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035401 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035402 echo "/* $configure_input */" >"$tmp/config.h"
35403 cat "$ac_result" >>"$tmp/config.h"
35404 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35406echo "$as_me: $ac_file is unchanged" >&6;}
35407 else
John Criswell7a73b802003-06-30 21:59:07 +000035408 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035409 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035410 fi
35411 else
Reid Spencera773bd52006-08-04 18:18:08 +000035412 echo "/* $configure_input */"
35413 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035414 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035415 rm -f "$tmp/out12"
35416 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035417
Reid Spencera773bd52006-08-04 18:18:08 +000035418 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35419echo "$as_me: executing $ac_file commands" >&6;}
35420 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035421 esac
John Criswell7a73b802003-06-30 21:59:07 +000035422
Reid Spencera773bd52006-08-04 18:18:08 +000035423
35424 case $ac_file$ac_mode in
35425 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35426 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35427 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35428 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35429 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35430 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35431 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35432 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035433 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35434 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035435 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35436 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35437 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35438 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035439 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35440 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035441 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35442 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35443 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35444 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35445 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35446 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035447 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35448 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35449 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35450 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035451
35452 esac
35453done # for ac_tag
35454
John Criswell7a73b802003-06-30 21:59:07 +000035455
35456{ (exit 0); exit 0; }
35457_ACEOF
35458chmod +x $CONFIG_STATUS
35459ac_clean_files=$ac_clean_files_save
35460
35461
35462# configure is writing to config.log, and then calls config.status.
35463# config.status does its own redirection, appending to config.log.
35464# Unfortunately, on DOS this fails, as config.log is still kept open
35465# by configure, so config.status won't be able to write to it; its
35466# output is simply discarded. So we exec the FD to /dev/null,
35467# effectively closing config.log, so it can be properly (re)opened and
35468# appended to by config.status. When coming back to configure, we
35469# need to make the FD available again.
35470if test "$no_create" != yes; then
35471 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035472 ac_config_status_args=
35473 test "$silent" = yes &&
35474 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035475 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035477 exec 5>>config.log
35478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35479 # would make configure fail if this is the last instruction.
35480 $ac_cs_success || { (exit 1); exit 1; }
35481fi
35482
John Criswell12399a12003-09-30 15:55:44 +000035483#
35484# CONFIG_SUBDIRS section.
35485#
35486if test "$no_recursion" != yes; then
35487
35488 # Remove --cache-file and --srcdir arguments so they do not pile up.
35489 ac_sub_configure_args=
35490 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035491 eval "set x $ac_configure_args"
35492 shift
35493 for ac_arg
35494 do
John Criswell12399a12003-09-30 15:55:44 +000035495 if test -n "$ac_prev"; then
35496 ac_prev=
35497 continue
35498 fi
35499 case $ac_arg in
35500 -cache-file | --cache-file | --cache-fil | --cache-fi \
35501 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35502 ac_prev=cache_file ;;
35503 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35504 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35505 | --c=*)
35506 ;;
35507 --config-cache | -C)
35508 ;;
35509 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35510 ac_prev=srcdir ;;
35511 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35512 ;;
35513 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35514 ac_prev=prefix ;;
35515 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35516 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035517 *)
35518 case $ac_arg in
35519 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35520 esac
35521 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035522 esac
35523 done
35524
35525 # Always prepend --prefix to ensure using the same prefix
35526 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035527 ac_arg="--prefix=$prefix"
35528 case $ac_arg in
35529 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35530 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035531 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035532
35533 ac_popdir=`pwd`
35534 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35535
35536 # Do not complain, so a configure script can configure whichever
35537 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035538 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035539
Reid Spencera773bd52006-08-04 18:18:08 +000035540 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35541 echo "$as_me:$LINENO: $ac_msg" >&5
35542 echo "$ac_msg" >&6
35543 { as_dir="$ac_dir"
35544 case $as_dir in #(
35545 -*) as_dir=./$as_dir;;
35546 esac
35547 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035548 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035549 while :; do
35550 case $as_dir in #(
35551 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35552 *) as_qdir=$as_dir;;
35553 esac
35554 as_dirs="'$as_qdir' $as_dirs"
35555 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035557 X"$as_dir" : 'X\(//\)[^/]' \| \
35558 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035560echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35562 s//\1/
35563 q
35564 }
35565 /^X\(\/\/\)[^/].*/{
35566 s//\1/
35567 q
35568 }
35569 /^X\(\/\/\)$/{
35570 s//\1/
35571 q
35572 }
35573 /^X\(\/\).*/{
35574 s//\1/
35575 q
35576 }
35577 s/.*/./; q'`
35578 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035579 done
Reid Spencera773bd52006-08-04 18:18:08 +000035580 test -z "$as_dirs" || eval "mkdir $as_dirs"
35581 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35582echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035583 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035584 ac_builddir=.
35585
Reid Spencera773bd52006-08-04 18:18:08 +000035586case "$ac_dir" in
35587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35588*)
John Criswell12399a12003-09-30 15:55:44 +000035589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035590 # A ".." for each directory in $ac_dir_suffix.
35591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35592 case $ac_top_builddir_sub in
35593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35595 esac ;;
35596esac
35597ac_abs_top_builddir=$ac_pwd
35598ac_abs_builddir=$ac_pwd$ac_dir_suffix
35599# for backward compatibility:
35600ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035601
35602case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035603 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035604 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035605 ac_top_srcdir=$ac_top_builddir_sub
35606 ac_abs_top_srcdir=$ac_pwd ;;
35607 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035608 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035609 ac_top_srcdir=$srcdir
35610 ac_abs_top_srcdir=$srcdir ;;
35611 *) # Relative name.
35612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35613 ac_top_srcdir=$ac_top_build_prefix$srcdir
35614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035615esac
Reid Spencera773bd52006-08-04 18:18:08 +000035616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035617
35618
Reid Spencera773bd52006-08-04 18:18:08 +000035619 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035620
35621 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035622 if test -f "$ac_srcdir/configure.gnu"; then
35623 ac_sub_configure=$ac_srcdir/configure.gnu
35624 elif test -f "$ac_srcdir/configure"; then
35625 ac_sub_configure=$ac_srcdir/configure
35626 elif test -f "$ac_srcdir/configure.in"; then
35627 # This should be Cygnus configure.
35628 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035629 else
35630 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35631echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35632 ac_sub_configure=
35633 fi
35634
35635 # The recursion is here.
35636 if test -n "$ac_sub_configure"; then
35637 # Make the cache file name correct relative to the subdirectory.
35638 case $cache_file in
35639 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035640 *) # Relative name.
35641 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035642 esac
35643
Reid Spencera773bd52006-08-04 18:18:08 +000035644 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35645echo "$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 +000035646 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035647 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35648 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035649 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035650echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35651 { (exit 1); exit 1; }; }
35652 fi
35653
Reid Spencera773bd52006-08-04 18:18:08 +000035654 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035655 done
35656fi
35657