blob: 947034ded80e7d9677b1ebd691e990a5c731dd00 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner953042b2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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 Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 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 Lattner953042b2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
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
Anton Korobeynikov0855f102009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Reid Spencera773bd52006-08-04 18:18:08 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Nick Lewycky83fc4472009-09-29 05:48:51 +0000817ARCH
818ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000832BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000836DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000839DEBUG_RUNTIME
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Reid Spencera773bd52006-08-04 18:18:08 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000845ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000846TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000850ENABLE_CBE_PRINTF_A
Daniel Dunbar1fce9482009-11-04 04:32:50 +0000851OPTIMIZE_OPTION
Reid Spencera773bd52006-08-04 18:18:08 +0000852EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000853BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000854ENABLE_LLVMC_DYNAMIC
855ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000856CXX
857CXXFLAGS
858ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000859NM
860ifGNUmake
861LN_S
862CMP
863CP
864DATE
865FIND
866MKDIR
867MV
868RANLIB
869RM
870SED
871TAR
872BINPWD
873GRAPHVIZ
874DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000875FDP
876NEATO
877TWOPI
878CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000879GV
880DOTTY
881PERL
882HAVE_PERL
883INSTALL_PROGRAM
884INSTALL_SCRIPT
885INSTALL_DATA
886BZIP2
887DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000888GROFF
889GZIP
890POD2HTML
891POD2MAN
892RUNTEST
893TCLSH
894ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000895OCAMLC
896OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000897OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000898OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000899GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000900INSTALL_LTDL_TRUE
901INSTALL_LTDL_FALSE
902CONVENIENCE_LTDL_TRUE
903CONVENIENCE_LTDL_FALSE
904LIBADD_DL
905ECHO
906AR
907STRIP
908CXXCPP
909F77
910FFLAGS
911ac_ct_F77
912LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000913LLVMGCCCOMMAND
914LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000915LLVMGCC
916LLVMGXX
Julien Lerouge3a96a4d2009-10-26 20:00:35 +0000917NO_VARIADIC_MACROS
918NO_MISSING_FIELD_INITIALIZERS
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000919USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000920USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000921HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000922HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000923ALLOCA
924MMAP_FILE
925LLVMCC1
926LLVMCC1PLUS
927LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000928LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000929LLVMGCC_VERSION
930LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000931LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000932SHLIBEXT
933LLVM_PREFIX
934LLVM_BINDIR
935LLVM_LIBDIR
936LLVM_DATADIR
937LLVM_DOCSDIR
938LLVM_ETCDIR
939LLVM_INCLUDEDIR
940LLVM_INFODIR
941LLVM_MANDIR
942LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000943BINDINGS_TO_BUILD
944ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000945OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000946ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000947RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000948RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000949LIBOBJS
950LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000951ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000952 ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
958CPPFLAGS
959CPP
960CXX
961CXXFLAGS
962CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000963CXXCPP
964F77
965FFLAGS'
966ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000967projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000968projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000969projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000970projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000971projects/llvm-reopt
972projects/llvm-gcc
973projects/llvm-java
974projects/llvm-tv
975projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000976projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000977projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000978
979# Initialize some variables set by options.
980ac_init_help=
981ac_init_version=false
982# The variables have the same names as the options, with
983# dashes changed to underlines.
984cache_file=/dev/null
985exec_prefix=NONE
986no_create=
987no_recursion=
988prefix=NONE
989program_prefix=NONE
990program_suffix=NONE
991program_transform_name=s,x,x,
992silent=
993site=
994srcdir=
995verbose=
996x_includes=NONE
997x_libraries=NONE
998
999# Installation directory options.
1000# These are left unexpanded so users can "make install exec_prefix=/foo"
1001# and all the variables that are supposed to be based on exec_prefix
1002# by default will actually change.
1003# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +00001004# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +00001005bindir='${exec_prefix}/bin'
1006sbindir='${exec_prefix}/sbin'
1007libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001008datarootdir='${prefix}/share'
1009datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001010sysconfdir='${prefix}/etc'
1011sharedstatedir='${prefix}/com'
1012localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001013includedir='${prefix}/include'
1014oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001015docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016infodir='${datarootdir}/info'
1017htmldir='${docdir}'
1018dvidir='${docdir}'
1019pdfdir='${docdir}'
1020psdir='${docdir}'
1021libdir='${exec_prefix}/lib'
1022localedir='${datarootdir}/locale'
1023mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001026ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001027for ac_option
1028do
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001031 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001032 ac_prev=
1033 continue
1034 fi
1035
Reid Spencera773bd52006-08-04 18:18:08 +00001036 case $ac_option in
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *) ac_optarg=yes ;;
1039 esac
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1042
Reid Spencera773bd52006-08-04 18:18:08 +00001043 case $ac_dashdash$ac_option in
1044 --)
1045 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001046
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1051
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1056
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1063
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1066
Reid Spencera773bd52006-08-04 18:18:08 +00001067 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001068 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001070 datadir=$ac_optarg ;;
1071
Reid Spencera773bd52006-08-04 18:18:08 +00001072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1078
John Criswell7a73b802003-06-30 21:59:07 +00001079 -disable-* | --disable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001086 eval enable_$ac_feature=no ;;
1087
1088 -docdir | --docdir | --docdi | --doc | --do)
1089 ac_prev=docdir ;;
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1092
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094 ac_prev=dvidir ;;
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001097
1098 -enable-* | --enable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001105 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001106
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1115
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1119
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1126
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1131
Reid Spencera773bd52006-08-04 18:18:08 +00001132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1137
John Criswell7a73b802003-06-30 21:59:07 +00001138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1144
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1149
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1154
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1161
Reid Spencera773bd52006-08-04 18:18:08 +00001162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1166
John Criswell7a73b802003-06-30 21:59:07 +00001167 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001168 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001172 localstatedir=$ac_optarg ;;
1173
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1178
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1182
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1186
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1190
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1199
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1204
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1211
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1218
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1235
Reid Spencera773bd52006-08-04 18:18:08 +00001236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1240
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1245
John Criswell7a73b802003-06-30 21:59:07 +00001246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1249
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1255
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1266
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1271
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1276
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1283
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1288
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1291
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1294
1295 -with-* | --with-*)
1296 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001301 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001302 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001303
1304 -without-* | --without-*)
1305 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001310 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001311 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001342 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1360fi
1361
Reid Spencera773bd52006-08-04 18:18:08 +00001362# Be sure to have absolute directory names.
1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001367do
Reid Spencera773bd52006-08-04 18:18:08 +00001368 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001369 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001372 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001375done
1376
1377# There might be people who depend on the old broken behavior: `$host'
1378# used to hold the argument of --host etc.
1379# FIXME: To remove some day.
1380build=$build_alias
1381host=$host_alias
1382target=$target_alias
1383
1384# FIXME: To remove some day.
1385if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393fi
1394
1395ac_tool_prefix=
1396test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398test "$silent" = yes && exec 6>/dev/null
1399
1400
Reid Spencera773bd52006-08-04 18:18:08 +00001401ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402ac_ls_di=`ls -di .` &&
1403ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1409
1410
John Criswell7a73b802003-06-30 21:59:07 +00001411# Find the source files, if location was not specified.
1412if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001416$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001420echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\/\)[^/].*/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\).*/{
1434 s//\1/
1435 q
1436 }
1437 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001438 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001439 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001440 srcdir=..
1441 fi
1442else
1443 ac_srcdir_defaulted=no
1444fi
Reid Spencera773bd52006-08-04 18:18:08 +00001445if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001448 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001449fi
Reid Spencera773bd52006-08-04 18:18:08 +00001450ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001453 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001454 pwd)`
1455# When building in place, set srcdir=.
1456if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1458fi
1459# Remove unnecessary trailing slashes from srcdir.
1460# Double slashes in file names in object file debugging info
1461# mess up M-x gdb in Emacs.
1462case $srcdir in
1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464esac
1465for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470done
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472#
1473# Report the --help message.
1474#
1475if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001479\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484VAR=VALUE. See below for descriptions of some of the useful variables.
1485
1486Defaults for the options are specified in brackets.
1487
1488Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498
John Criswell7a73b802003-06-30 21:59:07 +00001499Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001501 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001503 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001504
1505By default, \`make install' will install all the files in
1506\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508for instance \`--prefix=\$HOME'.
1509
1510For better control, use the options below.
1511
1512Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001532_ACEOF
1533
1534 cat <<\_ACEOF
1535
1536System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1540_ACEOF
1541fi
1542
1543if test -n "$ac_init_help"; then
1544 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001545 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001546 esac
1547 cat <<\_ACEOF
1548
1549Optional Features:
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001552 --enable-optimized Compile with optimizations enabled (default is NO)
1553 --enable-profiling Compile with profiling enabled (default is NO)
1554 --enable-assertions Compile with assertion checks enabled (default is
1555 YES)
David Greenea696d242007-06-28 19:36:08 +00001556 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001557 Compile with expensive debug checks enabled (default
1558 is NO)
1559 --enable-debug-runtime Build runtime libs with debug symbols (default is
1560 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001561 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1562 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001564 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001565 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001566 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001567 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001568 --enable-targets Build specific host targets: all or
1569 target1,target2,... Valid targets are: host, x86,
1570 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1571 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1572 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001573 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1574 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001575 --enable-bindings Build specific language bindings:
1576 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001577 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001578 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1579 Win32)
1580 --enable-llvmc-dynamic-plugins
1581 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001582 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001583 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001584 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001586 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001587 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001588 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001589 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001590 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001591
1592Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001595 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1596 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001597 --with-llvmgcc Specify location of llvm-gcc driver (default
1598 searches PATH)
1599 --with-llvmgxx Specify location of llvm-g++ driver (default
1600 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001601 --with-optimize-option Select the compiler options to use for optimized
1602 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001603 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001604 --with-ocaml-libdir Specify install location for ocaml bindings (default
1605 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001606 --with-c-include-dirs Colon separated list of directories clang will
1607 search for headers
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001608 --with-binutils-include Specify path to binutils/include/ containing
1609 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001610 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001611 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1612 --with-pic try to use only PIC/non-PIC objects [default=use
1613 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001614 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001615 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001616 --with-oprofile=<prefix>
1617 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001618
1619Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001620 CC C compiler command
1621 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001624 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001626 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001629 CXXCPP C++ preprocessor
1630 F77 Fortran 77 compiler command
1631 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001632
1633Use these variables to override the choices made by `configure' or to help
1634it to find libraries and programs with nonstandard names/locations.
1635
1636Report bugs to <llvmbugs@cs.uiuc.edu>.
1637_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001638ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001639fi
1640
1641if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001644 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001645 ac_builddir=.
1646
Reid Spencera773bd52006-08-04 18:18:08 +00001647case "$ac_dir" in
1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649*)
John Criswell7a73b802003-06-30 21:59:07 +00001650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657esac
1658ac_abs_top_builddir=$ac_pwd
1659ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660# for backward compatibility:
1661ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001662
1663case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001664 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001665 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001669 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001676esac
Reid Spencera773bd52006-08-04 18:18:08 +00001677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001678
Reid Spencera773bd52006-08-04 18:18:08 +00001679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001687 else
1688 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001691 done
1692fi
1693
Reid Spencera773bd52006-08-04 18:18:08 +00001694test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001695if $ac_init_version; then
1696 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001697llvm configure 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001698generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001699
Reid Spencera773bd52006-08-04 18:18:08 +00001700Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17012002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001702This configure script is free software; the Free Software Foundation
1703gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001704
Tanya Lattnerc2264592009-08-22 21:01:26 +00001705Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001706_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001707 exit
John Criswell7a73b802003-06-30 21:59:07 +00001708fi
Reid Spencera773bd52006-08-04 18:18:08 +00001709cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001710This file contains any messages produced by compilers while
1711running configure, to aid debugging if configure makes a mistake.
1712
Tanya Lattner953042b2009-08-22 04:37:30 +00001713It was created by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001714generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001715
1716 $ $0 $@
1717
1718_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001719exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001720{
1721cat <<_ASUNAME
1722## --------- ##
1723## Platform. ##
1724## --------- ##
1725
1726hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1727uname -m = `(uname -m) 2>/dev/null || echo unknown`
1728uname -r = `(uname -r) 2>/dev/null || echo unknown`
1729uname -s = `(uname -s) 2>/dev/null || echo unknown`
1730uname -v = `(uname -v) 2>/dev/null || echo unknown`
1731
1732/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1733/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1734
1735/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1736/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1737/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001738/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001739/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1740/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1741/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1742
1743_ASUNAME
1744
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 echo "PATH: $as_dir"
1751done
Reid Spencera773bd52006-08-04 18:18:08 +00001752IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001753
1754} >&5
1755
1756cat >&5 <<_ACEOF
1757
1758
1759## ----------- ##
1760## Core tests. ##
1761## ----------- ##
1762
1763_ACEOF
1764
1765
1766# Keep a trace of the command line.
1767# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001768# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001769# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001770# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001771ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001772ac_configure_args0=
1773ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001774ac_must_keep_next=false
1775for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001776do
John Criswell0c38eaf2003-09-10 15:17:25 +00001777 for ac_arg
1778 do
1779 case $ac_arg in
1780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1782 | -silent | --silent | --silen | --sile | --sil)
1783 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001784 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 esac
1787 case $ac_pass in
1788 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1789 2)
1790 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1791 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001792 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001794 case $ac_arg in
1795 *=* | --config-cache | -C | -disable-* | --disable-* \
1796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1798 | -with-* | --with-* | -without-* | --without-* | --x)
1799 case "$ac_configure_args0 " in
1800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801 esac
1802 ;;
1803 -* ) ac_must_keep_next=true ;;
1804 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001805 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001806 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001807 ;;
1808 esac
1809 done
John Criswell7a73b802003-06-30 21:59:07 +00001810done
John Criswell0c38eaf2003-09-10 15:17:25 +00001811$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1812$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 +00001813
1814# When interrupted or exit'd, cleanup temporary files, and complete
1815# config.log. We remove comments because anyway the quotes in there
1816# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001817# WARNING: Use '\'' to represent an apostrophe within the trap.
1818# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001819trap 'exit_status=$?
1820 # Save into config.log some information that might help in debugging.
1821 {
1822 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001823
John Criswell7a73b802003-06-30 21:59:07 +00001824 cat <<\_ASBOX
1825## ---------------- ##
1826## Cache variables. ##
1827## ---------------- ##
1828_ASBOX
1829 echo
1830 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001831(
1832 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1833 eval ac_val=\$$ac_var
1834 case $ac_val in #(
1835 *${as_nl}*)
1836 case $ac_var in #(
1837 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1838echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1839 esac
1840 case $ac_var in #(
1841 _ | IFS | as_nl) ;; #(
1842 *) $as_unset $ac_var ;;
1843 esac ;;
1844 esac
1845 done
John Criswell7a73b802003-06-30 21:59:07 +00001846 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001847 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001849 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001850 "s/'\''/'\''\\\\'\'''\''/g;
1851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001853 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001855 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001856 esac |
1857 sort
1858)
John Criswell7a73b802003-06-30 21:59:07 +00001859 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001860
1861 cat <<\_ASBOX
1862## ----------------- ##
1863## Output variables. ##
1864## ----------------- ##
1865_ASBOX
1866 echo
1867 for ac_var in $ac_subst_vars
1868 do
Reid Spencera773bd52006-08-04 18:18:08 +00001869 eval ac_val=\$$ac_var
1870 case $ac_val in
1871 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 esac
1873 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001874 done | sort
1875 echo
1876
1877 if test -n "$ac_subst_files"; then
1878 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001879## ------------------- ##
1880## File substitutions. ##
1881## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001882_ASBOX
1883 echo
1884 for ac_var in $ac_subst_files
1885 do
Reid Spencera773bd52006-08-04 18:18:08 +00001886 eval ac_val=\$$ac_var
1887 case $ac_val in
1888 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889 esac
1890 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001891 done | sort
1892 echo
1893 fi
1894
John Criswell7a73b802003-06-30 21:59:07 +00001895 if test -s confdefs.h; then
1896 cat <<\_ASBOX
1897## ----------- ##
1898## confdefs.h. ##
1899## ----------- ##
1900_ASBOX
1901 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001902 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001903 echo
1904 fi
1905 test "$ac_signal" != 0 &&
1906 echo "$as_me: caught signal $ac_signal"
1907 echo "$as_me: exit $exit_status"
1908 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001909 rm -f core *.core core.conftest.* &&
1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001911 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001912' 0
John Criswell7a73b802003-06-30 21:59:07 +00001913for ac_signal in 1 2 13 15; do
1914 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1915done
1916ac_signal=0
1917
1918# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001919rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001920
1921# Predefined preprocessor variables.
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_NAME "$PACKAGE_NAME"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930_ACEOF
1931
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_VERSION "$PACKAGE_VERSION"
1935_ACEOF
1936
1937
1938cat >>confdefs.h <<_ACEOF
1939#define PACKAGE_STRING "$PACKAGE_STRING"
1940_ACEOF
1941
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945_ACEOF
1946
1947
1948# Let the site file select an alternate cache file if it wants to.
1949# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001950if test -n "$CONFIG_SITE"; then
1951 set x "$CONFIG_SITE"
1952elif test "x$prefix" != xNONE; then
1953 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1954else
1955 set x "$ac_default_prefix/share/config.site" \
1956 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001957fi
Reid Spencera773bd52006-08-04 18:18:08 +00001958shift
1959for ac_site_file
1960do
John Criswell7a73b802003-06-30 21:59:07 +00001961 if test -r "$ac_site_file"; then
1962 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1963echo "$as_me: loading site script $ac_site_file" >&6;}
1964 sed 's/^/| /' "$ac_site_file" >&5
1965 . "$ac_site_file"
1966 fi
1967done
1968
1969if test -r "$cache_file"; then
1970 # Some versions of bash will fail to source /dev/null (special
1971 # files actually), so we avoid doing that.
1972 if test -f "$cache_file"; then
1973 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1974echo "$as_me: loading cache $cache_file" >&6;}
1975 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001976 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1977 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001978 esac
1979 fi
1980else
1981 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1982echo "$as_me: creating cache $cache_file" >&6;}
1983 >$cache_file
1984fi
1985
1986# Check that the precious variables saved in the cache have kept the same
1987# value.
1988ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001989for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001990 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001992 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001994 case $ac_old_set,$ac_new_set in
1995 set,)
1996 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
1999 ,set)
2000 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2003 ,);;
2004 *)
2005 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00002006 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002007echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002008 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002009echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002010 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002011echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002012 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00002013 fi;;
2014 esac
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2017 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002018 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002019 *) ac_arg=$ac_var=$ac_new_val ;;
2020 esac
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2023 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2024 esac
2025 fi
2026done
2027if $ac_cache_corrupted; then
2028 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2029echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2030 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2031echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2032 { (exit 1); exit 1; }; }
2033fi
2034
Reid Spencera773bd52006-08-04 18:18:08 +00002035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059ac_ext=c
2060ac_cpp='$CPP $CPPFLAGS'
2061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064
2065
2066
Tanya Lattnerc2264592009-08-22 21:01:26 +00002067LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068
2069
2070
2071
2072
2073
2074
John Criswell7a73b802003-06-30 21:59:07 +00002075ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002076for ac_dir in autoconf "$srcdir"/autoconf; do
2077 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002078 ac_aux_dir=$ac_dir
2079 ac_install_sh="$ac_aux_dir/install-sh -c"
2080 break
Reid Spencera773bd52006-08-04 18:18:08 +00002081 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002082 ac_aux_dir=$ac_dir
2083 ac_install_sh="$ac_aux_dir/install.sh -c"
2084 break
Reid Spencera773bd52006-08-04 18:18:08 +00002085 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002086 ac_aux_dir=$ac_dir
2087 ac_install_sh="$ac_aux_dir/shtool install -c"
2088 break
2089 fi
2090done
2091if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002092 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2093echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002094 { (exit 1); exit 1; }; }
2095fi
Reid Spencera773bd52006-08-04 18:18:08 +00002096
2097# These three variables are undocumented and unsupported,
2098# and are intended to be withdrawn in a future Autoconf release.
2099# They can cause serious problems if a builder's source tree is in a directory
2100# whose full name contains unusual characters.
2101ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2102ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2103ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2104
John Criswell7a73b802003-06-30 21:59:07 +00002105
John Criswell392aaa32003-07-22 19:18:09 +00002106
Reid Spencer2706f8c2004-09-19 23:53:36 +00002107if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002108 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2109 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002110echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2111 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002112 fi
John Criswell93e1c722003-09-15 17:04:06 +00002113fi
2114
John Criswell33a911a2003-11-25 20:36:46 +00002115for i in `ls ${srcdir}/projects`
2116do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117 if test -d ${srcdir}/projects/${i} ; then
2118 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 CVS) ;;
2120 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002121 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002122 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002123 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002124 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002125 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002126 # llvm-test is the old name of the test-suite, kept here for backwards
2127 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002128 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002130 test-suite) subdirs="$subdirs projects/test-suite"
2131 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002132 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002133;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002134 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002135 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002136 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002137 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002138 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002139 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002140 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002141 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002142 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002143 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002144 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002145 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002146 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002147 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2148echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002149 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002150 esac
John Criswell33a911a2003-11-25 20:36:46 +00002151 fi
2152done
John Criswell559a6c12003-09-30 16:31:48 +00002153
John Criswell7a73b802003-06-30 21:59:07 +00002154
2155# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002156$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2157 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2158echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002159 { (exit 1); exit 1; }; }
2160
Reid Spencera773bd52006-08-04 18:18:08 +00002161{ echo "$as_me:$LINENO: checking build system type" >&5
2162echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002163if test "${ac_cv_build+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
Reid Spencera773bd52006-08-04 18:18:08 +00002166 ac_build_alias=$build_alias
2167test "x$ac_build_alias" = x &&
2168 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2169test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002170 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2171echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2172 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002173ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2175echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002176 { (exit 1); exit 1; }; }
2177
2178fi
Reid Spencera773bd52006-08-04 18:18:08 +00002179{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2180echo "${ECHO_T}$ac_cv_build" >&6; }
2181case $ac_cv_build in
2182*-*-*) ;;
2183*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2184echo "$as_me: error: invalid value of canonical build" >&2;}
2185 { (exit 1); exit 1; }; };;
2186esac
John Criswell7a73b802003-06-30 21:59:07 +00002187build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002188ac_save_IFS=$IFS; IFS='-'
2189set x $ac_cv_build
2190shift
2191build_cpu=$1
2192build_vendor=$2
2193shift; shift
2194# Remember, the first character of IFS is used to create $*,
2195# except with old shells:
2196build_os=$*
2197IFS=$ac_save_IFS
2198case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002199
2200
Reid Spencera773bd52006-08-04 18:18:08 +00002201{ echo "$as_me:$LINENO: checking host system type" >&5
2202echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002203if test "${ac_cv_host+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
Reid Spencera773bd52006-08-04 18:18:08 +00002206 if test "x$host_alias" = x; then
2207 ac_cv_host=$ac_cv_build
2208else
2209 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2210 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2211echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002212 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002213fi
John Criswell7a73b802003-06-30 21:59:07 +00002214
2215fi
Reid Spencera773bd52006-08-04 18:18:08 +00002216{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2217echo "${ECHO_T}$ac_cv_host" >&6; }
2218case $ac_cv_host in
2219*-*-*) ;;
2220*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2221echo "$as_me: error: invalid value of canonical host" >&2;}
2222 { (exit 1); exit 1; }; };;
2223esac
John Criswell7a73b802003-06-30 21:59:07 +00002224host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002225ac_save_IFS=$IFS; IFS='-'
2226set x $ac_cv_host
2227shift
2228host_cpu=$1
2229host_vendor=$2
2230shift; shift
2231# Remember, the first character of IFS is used to create $*,
2232# except with old shells:
2233host_os=$*
2234IFS=$ac_save_IFS
2235case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002236
2237
Reid Spencera773bd52006-08-04 18:18:08 +00002238{ echo "$as_me:$LINENO: checking target system type" >&5
2239echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002240if test "${ac_cv_target+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242else
Reid Spencera773bd52006-08-04 18:18:08 +00002243 if test "x$target_alias" = x; then
2244 ac_cv_target=$ac_cv_host
2245else
2246 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2247 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2248echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002250fi
John Criswell7a73b802003-06-30 21:59:07 +00002251
2252fi
Reid Spencera773bd52006-08-04 18:18:08 +00002253{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2254echo "${ECHO_T}$ac_cv_target" >&6; }
2255case $ac_cv_target in
2256*-*-*) ;;
2257*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2258echo "$as_me: error: invalid value of canonical target" >&2;}
2259 { (exit 1); exit 1; }; };;
2260esac
John Criswell7a73b802003-06-30 21:59:07 +00002261target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002262ac_save_IFS=$IFS; IFS='-'
2263set x $ac_cv_target
2264shift
2265target_cpu=$1
2266target_vendor=$2
2267shift; shift
2268# Remember, the first character of IFS is used to create $*,
2269# except with old shells:
2270target_os=$*
2271IFS=$ac_save_IFS
2272case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002273
2274
2275# The aliases save the names the user supplied, while $host etc.
2276# will get canonicalized.
2277test -n "$target_alias" &&
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
2280 program_prefix=${target_alias}-
2281
Reid Spencera773bd52006-08-04 18:18:08 +00002282{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2283echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002287 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="AIX"
2292 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002293 *-*-irix*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="IRIX"
2297 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 *-*-cygwin*)
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="Cygwin"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002305 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="Darwin"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311 llvm_cv_os_type="FreeBSD"
2312 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002313 *-*-openbsd*)
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 Spencer1014ab42006-04-19 23:47:16 +00002316 llvm_cv_os_type="OpenBSD"
2317 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002318 *-*-netbsd*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="NetBSD"
2322 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002323 *-*-dragonfly*)
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="DragonFly"
2327 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002328 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002331 llvm_cv_os_type="HP-UX"
2332 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 llvm_cv_os_type="Interix"
2337 llvm_cv_platform_type="Unix" ;;
2338 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341 llvm_cv_os_type="Linux"
2342 llvm_cv_platform_type="Unix" ;;
2343 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002344 llvm_cv_link_all_option="-Wl,-z,allextract"
2345 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346 llvm_cv_os_type="SunOS"
2347 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002348 *-*-auroraux*)
2349 llvm_cv_link_all_option="-Wl,-z,allextract"
2350 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2351 llvm_cv_os_type="AuroraUX"
2352 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002354 llvm_cv_link_all_option="-Wl,--whole-archive"
2355 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002356 llvm_cv_os_type="Win32"
2357 llvm_cv_platform_type="Win32" ;;
2358 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002359 llvm_cv_link_all_option="-Wl,--whole-archive"
2360 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361 llvm_cv_os_type="MingW"
2362 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002363 *-*-haiku*)
2364 llvm_cv_link_all_option="-Wl,--whole-archive"
2365 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2366 llvm_cv_os_type="Haiku"
2367 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002368 *-unknown-eabi*)
2369 llvm_cv_link_all_option="-Wl,--whole-archive"
2370 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2371 llvm_cv_os_type="Freestanding"
2372 llvm_cv_platform_type="Unix" ;;
2373 *-unknown-elf*)
2374 llvm_cv_link_all_option="-Wl,--whole-archive"
2375 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2376 llvm_cv_os_type="Freestanding"
2377 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002378 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002379 llvm_cv_link_all_option=""
2380 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002381 llvm_cv_os_type="Unknown"
2382 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002383esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384fi
Reid Spencera773bd52006-08-04 18:18:08 +00002385{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2386echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002387
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002388{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2389echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2390if test "${llvm_cv_target_os_type+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393 case $target in
2394 *-*-aix*)
2395 llvm_cv_target_os_type="AIX" ;;
2396 *-*-irix*)
2397 llvm_cv_target_os_type="IRIX" ;;
2398 *-*-cygwin*)
2399 llvm_cv_target_os_type="Cygwin" ;;
2400 *-*-darwin*)
2401 llvm_cv_target_os_type="Darwin" ;;
2402 *-*-freebsd*)
2403 llvm_cv_target_os_type="FreeBSD" ;;
2404 *-*-openbsd*)
2405 llvm_cv_target_os_type="OpenBSD" ;;
2406 *-*-netbsd*)
2407 llvm_cv_target_os_type="NetBSD" ;;
2408 *-*-dragonfly*)
2409 llvm_cv_target_os_type="DragonFly" ;;
2410 *-*-hpux*)
2411 llvm_cv_target_os_type="HP-UX" ;;
2412 *-*-interix*)
2413 llvm_cv_target_os_type="Interix" ;;
2414 *-*-linux*)
2415 llvm_cv_target_os_type="Linux" ;;
2416 *-*-solaris*)
2417 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002418 *-*-auroraux*)
2419 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002420 *-*-win32*)
2421 llvm_cv_target_os_type="Win32" ;;
2422 *-*-mingw*)
2423 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002424 *-*-haiku*)
2425 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002426 *-unknown-eabi*)
2427 llvm_cv_target_os_type="Freestanding" ;;
2428 *)
2429 llvm_cv_target_os_type="Unknown" ;;
2430esac
2431fi
2432{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2433echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2434
Reid Spencer7b3e8512004-12-24 06:29:05 +00002435if test "$llvm_cv_os_type" = "Unknown" ; then
2436 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2437echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002438 { (exit 1); exit 1; }; }
2439fi
2440
Reid Spencer7b3e8512004-12-24 06:29:05 +00002441OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002443HOST_OS=$llvm_cv_os_type
2444
2445TARGET_OS=$llvm_cv_target_os_type
2446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447
Reid Spencera773bd52006-08-04 18:18:08 +00002448LINKALL=$llvm_cv_link_all_option
2449
2450NOLINKALL=$llvm_cv_no_link_all_option
2451
2452
Reid Spencer7b3e8512004-12-24 06:29:05 +00002453case $llvm_cv_platform_type in
2454 Unix)
2455
2456cat >>confdefs.h <<\_ACEOF
2457#define LLVM_ON_UNIX 1
2458_ACEOF
2459
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002460 LLVM_ON_UNIX=1
2461
2462 LLVM_ON_WIN32=0
2463
Reid Spencer7b3e8512004-12-24 06:29:05 +00002464 ;;
2465 Win32)
2466
2467cat >>confdefs.h <<\_ACEOF
2468#define LLVM_ON_WIN32 1
2469_ACEOF
2470
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002471 LLVM_ON_UNIX=0
2472
2473 LLVM_ON_WIN32=1
2474
Reid Spencer7b3e8512004-12-24 06:29:05 +00002475 ;;
2476esac
2477
Reid Spencera773bd52006-08-04 18:18:08 +00002478{ echo "$as_me:$LINENO: checking target architecture" >&5
2479echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480if test "${llvm_cv_target_arch+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002484 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002485 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002486 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2487 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002488 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002489 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002490 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002491 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002492 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002493 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002494 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002495 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002496 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002497esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498fi
Reid Spencera773bd52006-08-04 18:18:08 +00002499{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2500echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002501
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502if test "$llvm_cv_target_arch" = "Unknown" ; then
2503 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2504echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2505fi
John Criswell76595452003-07-01 22:07:39 +00002506
Nick Lewycky83fc4472009-09-29 05:48:51 +00002507# Determine the LLVM native architecture for the target
2508case "$llvm_cv_target_arch" in
2509 x86) LLVM_NATIVE_ARCH="X86" ;;
2510 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2511 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2512esac
2513
2514ARCH=$llvm_cv_target_arch
2515
2516
2517ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518ac_cpp='$CPP $CPPFLAGS'
2519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002522if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2524set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002539 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 +00002540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2543 fi
2544done
2545done
Reid Spencera773bd52006-08-04 18:18:08 +00002546IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547
2548fi
2549fi
2550CC=$ac_cv_prog_CC
2551if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002552 { echo "$as_me:$LINENO: result: $CC" >&5
2553echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554else
Reid Spencera773bd52006-08-04 18:18:08 +00002555 { echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557fi
2558
Reid Spencera773bd52006-08-04 18:18:08 +00002559
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560fi
2561if test -z "$ac_cv_prog_CC"; then
2562 ac_ct_CC=$CC
2563 # Extract the first word of "gcc", so it can be a program name with args.
2564set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002579 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 +00002580 ac_cv_prog_ac_ct_CC="gcc"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584done
2585done
Reid Spencera773bd52006-08-04 18:18:08 +00002586IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587
2588fi
2589fi
2590ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593echo "${ECHO_T}$ac_ct_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 if test "x$ac_ct_CC" = x; then
2600 CC=""
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603yes:)
2604{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2605whose name does not start with the host triplet. If you think this
2606configuration is useful to you, please write to autoconf@gnu.org." >&5
2607echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2608whose name does not start with the host triplet. If you think this
2609configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2610ac_tool_warned=yes ;;
2611esac
2612 CC=$ac_ct_CC
2613 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614else
2615 CC="$ac_cv_prog_CC"
2616fi
2617
2618if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002619 if test -n "$ac_tool_prefix"; then
2620 # 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 +00002621set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624if test "${ac_cv_prog_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002636 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 +00002637 ac_cv_prog_CC="${ac_tool_prefix}cc"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641done
2642done
Reid Spencera773bd52006-08-04 18:18:08 +00002643IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644
2645fi
2646fi
2647CC=$ac_cv_prog_CC
2648if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002649 { echo "$as_me:$LINENO: result: $CC" >&5
2650echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651else
Reid Spencera773bd52006-08-04 18:18:08 +00002652 { echo "$as_me:$LINENO: result: no" >&5
2653echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654fi
2655
Reid Spencera773bd52006-08-04 18:18:08 +00002656
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658fi
2659if test -z "$CC"; then
2660 # Extract the first word of "cc", so it can be a program name with args.
2661set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664if test "${ac_cv_prog_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669else
2670 ac_prog_rejected=no
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002677 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 +00002678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2679 ac_prog_rejected=yes
2680 continue
2681 fi
2682 ac_cv_prog_CC="cc"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686done
2687done
Reid Spencera773bd52006-08-04 18:18:08 +00002688IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689
2690if test $ac_prog_rejected = yes; then
2691 # We found a bogon in the path, so make sure we never use it.
2692 set dummy $ac_cv_prog_CC
2693 shift
2694 if test $# != 0; then
2695 # We chose a different compiler from the bogus one.
2696 # However, it has the same basename, so the bogon will be chosen
2697 # first if we set CC to just the basename; use the full file name.
2698 shift
2699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2700 fi
2701fi
2702fi
2703fi
2704CC=$ac_cv_prog_CC
2705if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002706 { echo "$as_me:$LINENO: result: $CC" >&5
2707echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708else
Reid Spencera773bd52006-08-04 18:18:08 +00002709 { echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002711fi
2712
Reid Spencera773bd52006-08-04 18:18:08 +00002713
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002714fi
2715if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002717 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002718 do
2719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002723if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002735 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 +00002736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740done
2741done
Reid Spencera773bd52006-08-04 18:18:08 +00002742IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002743
2744fi
2745fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002746CC=$ac_cv_prog_CC
2747if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002748 { echo "$as_me:$LINENO: result: $CC" >&5
2749echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002750else
Reid Spencera773bd52006-08-04 18:18:08 +00002751 { echo "$as_me:$LINENO: result: no" >&5
2752echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002753fi
2754
Reid Spencera773bd52006-08-04 18:18:08 +00002755
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002757 done
2758fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002759if test -z "$CC"; then
2760 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002761 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002762do
2763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2764set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002767if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002779 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 +00002780 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2783 fi
2784done
2785done
Reid Spencera773bd52006-08-04 18:18:08 +00002786IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002787
2788fi
2789fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002790ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002792 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2793echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002794else
Reid Spencera773bd52006-08-04 18:18:08 +00002795 { echo "$as_me:$LINENO: result: no" >&5
2796echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002797fi
2798
Reid Spencera773bd52006-08-04 18:18:08 +00002799
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002800 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002801done
John Criswell7a73b802003-06-30 21:59:07 +00002802
Reid Spencera773bd52006-08-04 18:18:08 +00002803 if test "x$ac_ct_CC" = x; then
2804 CC=""
2805 else
2806 case $cross_compiling:$ac_tool_warned in
2807yes:)
2808{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2809whose name does not start with the host triplet. If you think this
2810configuration is useful to you, please write to autoconf@gnu.org." >&5
2811echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2812whose name does not start with the host triplet. If you think this
2813configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816 CC=$ac_ct_CC
2817 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002818fi
2819
John Criswell7a73b802003-06-30 21:59:07 +00002820fi
2821
2822
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002823test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2824See \`config.log' for more details." >&5
2825echo "$as_me: error: no acceptable C compiler found in \$PATH
2826See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2828
John Criswell7a73b802003-06-30 21:59:07 +00002829# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002830echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002831ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002832{ (ac_try="$ac_compiler --version >&5"
2833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002842{ (ac_try="$ac_compiler -v >&5"
2843case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846esac
2847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002852{ (ac_try="$ac_compiler -V >&5"
2853case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862
2863cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002864/* confdefs.h. */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002869
John Criswell7a73b802003-06-30 21:59:07 +00002870int
2871main ()
2872{
2873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002879ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002880# Try to create an executable without -o first, disregard a.out.
2881# It will help us diagnose broken compilers, and finding out an intuition
2882# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002883{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2884echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002885ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002886#
2887# List of possible output files, starting from the most likely.
2888# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2889# only as a last resort. b.out is created by i960 compilers.
2890ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2891#
2892# The IRIX 6 linker writes into existing files which may not be
2893# executable, retaining their permissions. Remove them first so a
2894# subsequent execution test works.
2895ac_rmfiles=
2896for ac_file in $ac_files
2897do
2898 case $ac_file in
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2901 esac
2902done
2903rm -f $ac_rmfiles
2904
2905if { (ac_try="$ac_link_default"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002915 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2916# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2917# in a Makefile. We should not override ac_cv_exeext if it was cached,
2918# so that the user can short-circuit this test for compilers unknown to
2919# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002920for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002921do
2922 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002923 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002925 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002926 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002927 # We found the default executable, but exeext='' is most
2928 # certainly right.
2929 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002930 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002931 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2932 then :; else
2933 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934 fi
2935 # We set ac_cv_exeext here because the later test for it is not
2936 # safe: cross compilers may not add the suffix if given an `-o'
2937 # argument, so we may need to know it at that point already.
2938 # Even if this section looks crufty: it has the advantage of
2939 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002940 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002941 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002942 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002943 esac
2944done
Reid Spencera773bd52006-08-04 18:18:08 +00002945test "$ac_cv_exeext" = no && ac_cv_exeext=
2946
John Criswell7a73b802003-06-30 21:59:07 +00002947else
2948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002949sed 's/^/| /' conftest.$ac_ext >&5
2950
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002951{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002952See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002953echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002954See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002955 { (exit 77); exit 77; }; }
2956fi
2957
2958ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002959{ echo "$as_me:$LINENO: result: $ac_file" >&5
2960echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002961
Reid Spencera773bd52006-08-04 18:18:08 +00002962# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002963# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002964{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002966# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967# If not cross compiling, check that we can run a simple program.
2968if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 cross_compiling=no
2980 else
2981 if test "$cross_compiling" = maybe; then
2982 cross_compiling=yes
2983 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002984 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002985If you meant to cross compile, use \`--host'.
2986See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002987echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002988If you meant to cross compile, use \`--host'.
2989See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002990 { (exit 1); exit 1; }; }
2991 fi
2992 fi
2993fi
Reid Spencera773bd52006-08-04 18:18:08 +00002994{ echo "$as_me:$LINENO: result: yes" >&5
2995echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002996
John Criswell0c38eaf2003-09-10 15:17:25 +00002997rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002998ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002999# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00003000# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00003001{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3002echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3003{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3004echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003005
Reid Spencera773bd52006-08-04 18:18:08 +00003006{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3007echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3008if { (ac_try="$ac_link"
3009case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3020# work properly (i.e., refer to `conftest.exe'), while it won't with
3021# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00003022for ac_file in conftest.exe conftest conftest.*; do
3023 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00003024 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00003027 break;;
John Criswell7a73b802003-06-30 21:59:07 +00003028 * ) break;;
3029 esac
3030done
3031else
John Criswell0c38eaf2003-09-10 15:17:25 +00003032 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3033See \`config.log' for more details." >&5
3034echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3035See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003036 { (exit 1); exit 1; }; }
3037fi
3038
3039rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003040{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3041echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003042
3043rm -f conftest.$ac_ext
3044EXEEXT=$ac_cv_exeext
3045ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003046{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3047echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003048if test "${ac_cv_objext+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003057
John Criswell7a73b802003-06-30 21:59:07 +00003058int
3059main ()
3060{
3061
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00003067if { (ac_try="$ac_compile"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003077 for ac_file in conftest.o conftest.obj conftest.*; do
3078 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00003079 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00003080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00003081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082 break;;
3083 esac
3084done
3085else
3086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3090See \`config.log' for more details." >&5
3091echo "$as_me: error: cannot compute suffix of object files: cannot compile
3092See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003093 { (exit 1); exit 1; }; }
3094fi
3095
3096rm -f conftest.$ac_cv_objext conftest.$ac_ext
3097fi
Reid Spencera773bd52006-08-04 18:18:08 +00003098{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3099echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003100OBJEXT=$ac_cv_objext
3101ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003102{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3103echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003104if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106else
3107 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003108/* confdefs.h. */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003113
John Criswell7a73b802003-06-30 21:59:07 +00003114int
3115main ()
3116{
3117#ifndef __GNUC__
3118 choke me
3119#endif
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003133 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003159 ac_compiler_gnu=yes
3160else
3161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003162sed 's/^/| /' conftest.$ac_ext >&5
3163
Reid Spencera773bd52006-08-04 18:18:08 +00003164 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003165fi
Reid Spencera773bd52006-08-04 18:18:08 +00003166
3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003168ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003169
3170fi
Reid Spencera773bd52006-08-04 18:18:08 +00003171{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3172echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003173GCC=`test $ac_compiler_gnu = yes && echo yes`
3174ac_test_CFLAGS=${CFLAGS+set}
3175ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003176{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3177echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003178if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
Reid Spencera773bd52006-08-04 18:18:08 +00003181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3183 ac_cv_prog_cc_g=no
3184 CFLAGS="-g"
3185 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003191
John Criswell7a73b802003-06-30 21:59:07 +00003192int
3193main ()
3194{
3195
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003201if { (ac_try="$ac_compile"
3202case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003208 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003213 (exit $ac_status); } &&
3214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215 { (case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_try") 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003235else
3236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003237sed 's/^/| /' conftest.$ac_ext >&5
3238
Reid Spencera773bd52006-08-04 18:18:08 +00003239 CFLAGS=""
3240 cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (ac_try="$ac_compile"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
3261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compile") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003268 (exit $ac_status); } &&
3269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3270 { (case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_try") 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_try") 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003289 :
3290else
3291 echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295 CFLAGS="-g"
3296 cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
3302
3303int
3304main ()
3305{
3306
3307 ;
3308 return 0;
3309}
3310_ACEOF
3311rm -f conftest.$ac_objext
3312if { (ac_try="$ac_compile"
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
3317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003324 (exit $ac_status); } &&
3325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326 { (case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_try") 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003345 ac_cv_prog_cc_g=yes
3346else
3347 echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3350
John Criswell7a73b802003-06-30 21:59:07 +00003351fi
Reid Spencera773bd52006-08-04 18:18:08 +00003352
3353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003354fi
Reid Spencera773bd52006-08-04 18:18:08 +00003355
3356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357fi
3358
3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3361fi
3362{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3363echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3368 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003369 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003370 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003371 fi
3372else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373 if test "$GCC" = yes; then
3374 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003375 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003377 fi
3378fi
Reid Spencera773bd52006-08-04 18:18:08 +00003379{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3380echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3381if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383else
Reid Spencera773bd52006-08-04 18:18:08 +00003384 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385ac_save_CC=$CC
3386cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h. */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h. */
3392#include <stdarg.h>
3393#include <stdio.h>
3394#include <sys/types.h>
3395#include <sys/stat.h>
3396/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3397struct buf { int x; };
3398FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399static char *e (p, i)
3400 char **p;
3401 int i;
3402{
3403 return p[i];
3404}
3405static char *f (char * (*g) (char **, int), char **p, ...)
3406{
3407 char *s;
3408 va_list v;
3409 va_start (v,p);
3410 s = g (p, va_arg (v,int));
3411 va_end (v);
3412 return s;
3413}
3414
3415/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3416 function prototypes and stuff, but not '\xHH' hex character constants.
3417 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003418 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3420 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003421 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423
Reid Spencera773bd52006-08-04 18:18:08 +00003424/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425 inside strings and character constants. */
3426#define FOO(x) 'x'
3427int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429int test (int i, double x);
3430struct s1 {int (*f) (int a);};
3431struct s2 {int (*f) (double a);};
3432int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433int argc;
3434char **argv;
3435int
3436main ()
3437{
3438return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 ;
3440 return 0;
3441}
3442_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003443for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445do
3446 CC="$ac_save_CC $ac_arg"
3447 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003448if { (ac_try="$ac_compile"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462 { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465esac
3466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003481 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003482else
3483 echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
Reid Spencera773bd52006-08-04 18:18:08 +00003486
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003487fi
Reid Spencera773bd52006-08-04 18:18:08 +00003488
3489rm -f core conftest.err conftest.$ac_objext
3490 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003491done
Reid Spencera773bd52006-08-04 18:18:08 +00003492rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493CC=$ac_save_CC
3494
3495fi
Reid Spencera773bd52006-08-04 18:18:08 +00003496# AC_CACHE_VAL
3497case "x$ac_cv_prog_cc_c89" in
3498 x)
3499 { echo "$as_me:$LINENO: result: none needed" >&5
3500echo "${ECHO_T}none needed" >&6; } ;;
3501 xno)
3502 { echo "$as_me:$LINENO: result: unsupported" >&5
3503echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003505 CC="$CC $ac_cv_prog_cc_c89"
3506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3507echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508esac
3509
John Criswell0c38eaf2003-09-10 15:17:25 +00003510
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511ac_ext=c
3512ac_cpp='$CPP $CPPFLAGS'
3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516
3517
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003523{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3524echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003525# On Suns, sometimes $CPP names a directory.
3526if test -n "$CPP" && test -d "$CPP"; then
3527 CPP=
3528fi
3529if test -z "$CPP"; then
3530 if test "${ac_cv_prog_CPP+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533 # Double quotes because CPP needs to be expanded
3534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3535 do
3536 ac_preproc_ok=false
3537for ac_c_preproc_warn_flag in '' yes
3538do
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551#ifdef __STDC__
3552# include <limits.h>
3553#else
3554# include <assert.h>
3555#endif
3556 Syntax error
3557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3576 fi
3577else
3578 ac_cpp_err=yes
3579fi
3580if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 :
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 # Broken: fails on valid input.
3587continue
3588fi
Reid Spencera773bd52006-08-04 18:18:08 +00003589
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590rm -f conftest.err conftest.$ac_ext
3591
Reid Spencera773bd52006-08-04 18:18:08 +00003592 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600#include <ac_nonexistent.h>
3601_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003602if { (ac_try="$ac_cpp conftest.$ac_ext"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 else
3619 ac_cpp_err=
3620 fi
3621else
3622 ac_cpp_err=yes
3623fi
3624if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625 # Broken: success on invalid input.
3626continue
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 # Passes both tests.
3632ac_preproc_ok=:
3633break
3634fi
Reid Spencera773bd52006-08-04 18:18:08 +00003635
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636rm -f conftest.err conftest.$ac_ext
3637
3638done
3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640rm -f conftest.err conftest.$ac_ext
3641if $ac_preproc_ok; then
3642 break
3643fi
3644
3645 done
3646 ac_cv_prog_CPP=$CPP
3647
3648fi
3649 CPP=$ac_cv_prog_CPP
3650else
3651 ac_cv_prog_CPP=$CPP
3652fi
Reid Spencera773bd52006-08-04 18:18:08 +00003653{ echo "$as_me:$LINENO: result: $CPP" >&5
3654echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003655ac_preproc_ok=false
3656for ac_c_preproc_warn_flag in '' yes
3657do
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h. */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h. */
3670#ifdef __STDC__
3671# include <limits.h>
3672#else
3673# include <assert.h>
3674#endif
3675 Syntax error
3676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003677if { (ac_try="$ac_cpp conftest.$ac_ext"
3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003689 (exit $ac_status); } >/dev/null; then
3690 if test -s conftest.err; then
3691 ac_cpp_err=$ac_c_preproc_warn_flag
3692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3693 else
3694 ac_cpp_err=
3695 fi
3696else
3697 ac_cpp_err=yes
3698fi
3699if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003700 :
3701else
3702 echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 # Broken: fails on valid input.
3706continue
3707fi
Reid Spencera773bd52006-08-04 18:18:08 +00003708
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003709rm -f conftest.err conftest.$ac_ext
3710
Reid Spencera773bd52006-08-04 18:18:08 +00003711 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003712 # can be detected and how.
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719#include <ac_nonexistent.h>
3720_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003721if { (ac_try="$ac_cpp conftest.$ac_ext"
3722case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725esac
3726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003733 (exit $ac_status); } >/dev/null; then
3734 if test -s conftest.err; then
3735 ac_cpp_err=$ac_c_preproc_warn_flag
3736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 else
3738 ac_cpp_err=
3739 fi
3740else
3741 ac_cpp_err=yes
3742fi
3743if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003744 # Broken: success on invalid input.
3745continue
3746else
3747 echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 # Passes both tests.
3751ac_preproc_ok=:
3752break
3753fi
Reid Spencera773bd52006-08-04 18:18:08 +00003754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003755rm -f conftest.err conftest.$ac_ext
3756
3757done
3758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759rm -f conftest.err conftest.$ac_ext
3760if $ac_preproc_ok; then
3761 :
3762else
3763 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3764See \`config.log' for more details." >&5
3765echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3766See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3768fi
3769
John Criswell7a73b802003-06-30 21:59:07 +00003770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
John Criswell7a73b802003-06-30 21:59:07 +00003776
Reid Spencera773bd52006-08-04 18:18:08 +00003777{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3778echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003779if test "${ac_cv_path_GREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
Reid Spencera773bd52006-08-04 18:18:08 +00003782 # Extract the first word of "grep ggrep" to use in msg output
3783if test -z "$GREP"; then
3784set dummy grep ggrep; ac_prog_name=$2
3785if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
Reid Spencera773bd52006-08-04 18:18:08 +00003788 ac_path_GREP_found=false
3789# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003791for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003792do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003795 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003796 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003797 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003798 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003799 # Check for GNU ac_path_GREP and select it if it is found.
3800 # Check for GNU $ac_path_GREP
3801case `"$ac_path_GREP" --version 2>&1` in
3802*GNU*)
3803 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3804*)
3805 ac_count=0
3806 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3807 while :
3808 do
3809 cat "conftest.in" "conftest.in" >"conftest.tmp"
3810 mv "conftest.tmp" "conftest.in"
3811 cp "conftest.in" "conftest.nl"
3812 echo 'GREP' >> "conftest.nl"
3813 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815 ac_count=`expr $ac_count + 1`
3816 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3817 # Best one so far, save it but keep looking for a better one
3818 ac_cv_path_GREP="$ac_path_GREP"
3819 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003820 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003821 # 10*(2^10) chars as input seems more than enough
3822 test $ac_count -gt 10 && break
3823 done
3824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825esac
3826
3827
3828 $ac_path_GREP_found && break 3
3829 done
3830done
3831
3832done
3833IFS=$as_save_IFS
3834
3835
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003836fi
Reid Spencera773bd52006-08-04 18:18:08 +00003837
3838GREP="$ac_cv_path_GREP"
3839if test -z "$GREP"; then
3840 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3841echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3842 { (exit 1); exit 1; }; }
3843fi
3844
3845else
3846 ac_cv_path_GREP=$GREP
3847fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003848
John Criswell7a73b802003-06-30 21:59:07 +00003849
Reid Spencera773bd52006-08-04 18:18:08 +00003850fi
3851{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3852echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3853 GREP="$ac_cv_path_GREP"
3854
3855
3856{ echo "$as_me:$LINENO: checking for egrep" >&5
3857echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3858if test "${ac_cv_path_EGREP+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3862 then ac_cv_path_EGREP="$GREP -E"
3863 else
3864 # Extract the first word of "egrep" to use in msg output
3865if test -z "$EGREP"; then
3866set dummy egrep; ac_prog_name=$2
3867if test "${ac_cv_path_EGREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 ac_path_EGREP_found=false
3871# Loop through the user's path and test for each of PROGNAME-LIST
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in egrep; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003880 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003881 # Check for GNU ac_path_EGREP and select it if it is found.
3882 # Check for GNU $ac_path_EGREP
3883case `"$ac_path_EGREP" --version 2>&1` in
3884*GNU*)
3885 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3886*)
3887 ac_count=0
3888 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889 while :
3890 do
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 echo 'EGREP' >> "conftest.nl"
3895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897 ac_count=`expr $ac_count + 1`
3898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_EGREP="$ac_path_EGREP"
3901 ac_path_EGREP_max=$ac_count
3902 fi
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3905 done
3906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907esac
3908
3909
3910 $ac_path_EGREP_found && break 3
3911 done
3912done
3913
3914done
3915IFS=$as_save_IFS
3916
3917
3918fi
3919
3920EGREP="$ac_cv_path_EGREP"
3921if test -z "$EGREP"; then
3922 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924 { (exit 1); exit 1; }; }
3925fi
3926
3927else
3928 ac_cv_path_EGREP=$EGREP
3929fi
3930
3931
3932 fi
3933fi
3934{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3935echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3936 EGREP="$ac_cv_path_EGREP"
3937
3938
3939{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3940echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003941if test "${ac_cv_header_stdc+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003950#include <stdlib.h>
3951#include <stdarg.h>
3952#include <string.h>
3953#include <float.h>
3954
John Criswell0c38eaf2003-09-10 15:17:25 +00003955int
3956main ()
3957{
3958
3959 ;
3960 return 0;
3961}
John Criswell7a73b802003-06-30 21:59:07 +00003962_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003963rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003964if { (ac_try="$ac_compile"
3965case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968esac
3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003976 (exit $ac_status); } &&
3977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3978 { (case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981esac
3982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_try") 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991esac
3992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_try") 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003997 ac_cv_header_stdc=yes
3998else
3999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004000sed 's/^/| /' conftest.$ac_ext >&5
4001
Reid Spencera773bd52006-08-04 18:18:08 +00004002 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004003fi
Reid Spencera773bd52006-08-04 18:18:08 +00004004
4005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004006
4007if test $ac_cv_header_stdc = yes; then
4008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004015#include <string.h>
4016
4017_ACEOF
4018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004019 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004020 :
4021else
4022 ac_cv_header_stdc=no
4023fi
4024rm -f conftest*
4025
4026fi
4027
4028if test $ac_cv_header_stdc = yes; then
4029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4030 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004036#include <stdlib.h>
4037
4038_ACEOF
4039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004040 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004041 :
4042else
4043 ac_cv_header_stdc=no
4044fi
4045rm -f conftest*
4046
4047fi
4048
4049if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then
4052 :
4053else
4054 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004055/* confdefs.h. */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004060#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004061#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004062#if ((' ' & 0x0FF) == 0x020)
4063# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4064# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4065#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004066# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004067 (('a' <= (c) && (c) <= 'i') \
4068 || ('j' <= (c) && (c) <= 'r') \
4069 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004070# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4071#endif
4072
4073#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4074int
4075main ()
4076{
4077 int i;
4078 for (i = 0; i < 256; i++)
4079 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004080 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004081 return 2;
4082 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004083}
4084_ACEOF
4085rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004086if { (ac_try="$ac_link"
4087case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 :
4106else
4107 echo "$as_me: program exited with status $ac_status" >&5
4108echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004109sed 's/^/| /' conftest.$ac_ext >&5
4110
John Criswell7a73b802003-06-30 21:59:07 +00004111( exit $ac_status )
4112ac_cv_header_stdc=no
4113fi
Reid Spencera773bd52006-08-04 18:18:08 +00004114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4115fi
4116
4117
John Criswell7a73b802003-06-30 21:59:07 +00004118fi
4119fi
Reid Spencera773bd52006-08-04 18:18:08 +00004120{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4121echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004122if test $ac_cv_header_stdc = yes; then
4123
4124cat >>confdefs.h <<\_ACEOF
4125#define STDC_HEADERS 1
4126_ACEOF
4127
4128fi
4129
Reid Spencera773bd52006-08-04 18:18:08 +00004130# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4141 inttypes.h stdint.h unistd.h
4142do
4143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4144{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
4155$ac_includes_default
4156
4157#include <$ac_header>
4158_ACEOF
4159rm -f conftest.$ac_objext
4160if { (ac_try="$ac_compile"
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004193 eval "$as_ac_Header=yes"
4194else
4195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 eval "$as_ac_Header=no"
4199fi
4200
4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202fi
4203ac_res=`eval echo '${'$as_ac_Header'}'`
4204 { echo "$as_me:$LINENO: result: $ac_res" >&5
4205echo "${ECHO_T}$ac_res" >&6; }
4206if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207 cat >>confdefs.h <<_ACEOF
4208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209_ACEOF
4210
4211fi
4212
4213done
4214
4215
4216{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4217echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4218if test "${ac_cv_c_bigendian+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 # See if sys/param.h defines the BYTE_ORDER macro.
4222cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228#include <sys/types.h>
4229#include <sys/param.h>
4230
4231int
4232main ()
4233{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004234#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004235 bogus endian macros
4236#endif
4237
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (ac_try="$ac_compile"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004276 # It does; now see whether it defined to BIG_ENDIAN or not.
4277cat >conftest.$ac_ext <<_ACEOF
4278/* confdefs.h. */
4279_ACEOF
4280cat confdefs.h >>conftest.$ac_ext
4281cat >>conftest.$ac_ext <<_ACEOF
4282/* end confdefs.h. */
4283#include <sys/types.h>
4284#include <sys/param.h>
4285
4286int
4287main ()
4288{
4289#if BYTE_ORDER != BIG_ENDIAN
4290 not big endian
4291#endif
4292
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297rm -f conftest.$ac_objext
4298if { (ac_try="$ac_compile"
4299case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315esac
4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_try") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004331 ac_cv_c_bigendian=yes
4332else
4333 echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 ac_cv_c_bigendian=no
4337fi
4338
4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340else
4341 echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 # It does not; compile a test program.
4345if test "$cross_compiling" = yes; then
4346 # try to guess the endianness by grepping values into an object file
4347 ac_cv_c_bigendian=unknown
4348 cat >conftest.$ac_ext <<_ACEOF
4349/* confdefs.h. */
4350_ACEOF
4351cat confdefs.h >>conftest.$ac_ext
4352cat >>conftest.$ac_ext <<_ACEOF
4353/* end confdefs.h. */
4354short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4355short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4356void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4357short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4358short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4359void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4360int
4361main ()
4362{
4363 _ascii (); _ebcdic ();
4364 ;
4365 return 0;
4366}
4367_ACEOF
4368rm -f conftest.$ac_objext
4369if { (ac_try="$ac_compile"
4370case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_compile") 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4383 { (case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386esac
4387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_try") 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396esac
4397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_try") 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004402 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4403 ac_cv_c_bigendian=yes
4404fi
4405if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4406 if test "$ac_cv_c_bigendian" = unknown; then
4407 ac_cv_c_bigendian=no
4408 else
4409 # finding both strings is unlikely to happen, but who knows?
4410 ac_cv_c_bigendian=unknown
4411 fi
4412fi
4413else
4414 echo "$as_me: failed program was:" >&5
4415sed 's/^/| /' conftest.$ac_ext >&5
4416
4417
4418fi
4419
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421else
4422 cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4428$ac_includes_default
4429int
4430main ()
4431{
4432
4433 /* Are we little or big endian? From Harbison&Steele. */
4434 union
4435 {
4436 long int l;
4437 char c[sizeof (long int)];
4438 } u;
4439 u.l = 1;
4440 return u.c[sizeof (long int) - 1] == 1;
4441
4442 ;
4443 return 0;
4444}
4445_ACEOF
4446rm -f conftest$ac_exeext
4447if { (ac_try="$ac_link"
4448case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_link") 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4457 { (case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_try") 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_cv_c_bigendian=no
4467else
4468 echo "$as_me: program exited with status $ac_status" >&5
4469echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472( exit $ac_status )
4473ac_cv_c_bigendian=yes
4474fi
4475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4476fi
4477
4478
4479fi
4480
4481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482fi
4483{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4484echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4485case $ac_cv_c_bigendian in
4486 yes)
4487 ENDIAN=big
4488 ;;
4489 no)
4490 ENDIAN=little
4491 ;;
4492 *)
4493 { { echo "$as_me:$LINENO: error: unknown endianness
4494presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4495echo "$as_me: error: unknown endianness
4496presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4497 { (exit 1); exit 1; }; } ;;
4498esac
4499
4500
4501if test "$cross_compiling" = yes; then
4502 LLVM_CROSS_COMPILING=1
4503
4504
4505{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4506echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4507if test "${ac_cv_build_exeext+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4511 ac_cv_build_exeext=.exe
4512else
4513 ac_build_prefix=${build_alias}-
4514
4515 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4516set dummy ${ac_build_prefix}gcc; ac_word=$2
4517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 if test -n "$BUILD_CC"; then
4523 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4524else
4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004531 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 +00004532 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4535 fi
4536done
4537done
4538IFS=$as_save_IFS
4539
4540fi
4541fi
4542BUILD_CC=$ac_cv_prog_BUILD_CC
4543if test -n "$BUILD_CC"; then
4544 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4545echo "${ECHO_T}$BUILD_CC" >&6; }
4546else
4547 { echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6; }
4549fi
4550
4551
4552 if test -z "$BUILD_CC"; then
4553 # Extract the first word of "gcc", so it can be a program name with args.
4554set dummy gcc; ac_word=$2
4555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560 if test -n "$BUILD_CC"; then
4561 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004569 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 +00004570 ac_cv_prog_BUILD_CC="gcc"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574done
4575done
4576IFS=$as_save_IFS
4577
4578fi
4579fi
4580BUILD_CC=$ac_cv_prog_BUILD_CC
4581if test -n "$BUILD_CC"; then
4582 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4583echo "${ECHO_T}$BUILD_CC" >&6; }
4584else
4585 { echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6; }
4587fi
4588
4589
4590 if test -z "$BUILD_CC"; then
4591 # Extract the first word of "cc", so it can be a program name with args.
4592set dummy cc; ac_word=$2
4593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 if test -n "$BUILD_CC"; then
4599 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4600else
4601 ac_prog_rejected=no
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004608 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 +00004609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4610 ac_prog_rejected=yes
4611 continue
4612 fi
4613 ac_cv_prog_BUILD_CC="cc"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617done
4618done
4619IFS=$as_save_IFS
4620
4621if test $ac_prog_rejected = yes; then
4622 # We found a bogon in the path, so make sure we never use it.
4623 set dummy $ac_cv_prog_BUILD_CC
4624 shift
4625 if test $# != 0; then
4626 # We chose a different compiler from the bogus one.
4627 # However, it has the same basename, so the bogon will be chosen
4628 # first if we set BUILD_CC to just the basename; use the full file name.
4629 shift
4630 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4631 fi
4632fi
4633fi
4634fi
4635BUILD_CC=$ac_cv_prog_BUILD_CC
4636if test -n "$BUILD_CC"; then
4637 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4638echo "${ECHO_T}$BUILD_CC" >&6; }
4639else
4640 { echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6; }
4642fi
4643
4644
4645 fi
4646 fi
4647 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4648echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4649 { (exit 1); exit 1; }; }
4650 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4651 rm -f conftest*
4652 echo 'int main () { return 0; }' > conftest.$ac_ext
4653 ac_cv_build_exeext=
4654 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4655 (eval $ac_build_link) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; then
4659 for file in conftest.*; do
4660 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004661 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004662 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4663 esac
4664 done
4665 else
4666 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4667echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4668 { (exit 1); exit 1; }; }
4669 fi
4670 rm -f conftest*
4671 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4672fi
4673fi
4674
4675BUILD_EXEEXT=""
4676test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4677{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4678echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4679ac_build_exeext=$BUILD_EXEEXT
4680
Jim Grosbach673612e2008-10-02 22:56:44 +00004681 ac_build_prefix=${build_alias}-
4682 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4683set dummy ${ac_build_prefix}g++; ac_word=$2
4684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689 if test -n "$BUILD_CXX"; then
4690 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004698 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 +00004699 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703done
4704done
4705IFS=$as_save_IFS
4706
4707fi
4708fi
4709BUILD_CXX=$ac_cv_prog_BUILD_CXX
4710if test -n "$BUILD_CXX"; then
4711 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4712echo "${ECHO_T}$BUILD_CXX" >&6; }
4713else
4714 { echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6; }
4716fi
4717
4718
4719 if test -z "$BUILD_CXX"; then
4720 # Extract the first word of "g++", so it can be a program name with args.
4721set dummy g++; ac_word=$2
4722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727 if test -n "$BUILD_CXX"; then
4728 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004736 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 +00004737 ac_cv_prog_BUILD_CXX="g++"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741done
4742done
4743IFS=$as_save_IFS
4744
4745fi
4746fi
4747BUILD_CXX=$ac_cv_prog_BUILD_CXX
4748if test -n "$BUILD_CXX"; then
4749 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4750echo "${ECHO_T}$BUILD_CXX" >&6; }
4751else
4752 { echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6; }
4754fi
4755
4756
4757 if test -z "$BUILD_CXX"; then
4758 # Extract the first word of "c++", so it can be a program name with args.
4759set dummy c++; ac_word=$2
4760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764else
4765 if test -n "$BUILD_CXX"; then
4766 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4767else
4768 ac_prog_rejected=no
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004775 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 +00004776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4777 ac_prog_rejected=yes
4778 continue
4779 fi
4780 ac_cv_prog_BUILD_CXX="c++"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784done
4785done
4786IFS=$as_save_IFS
4787
4788if test $ac_prog_rejected = yes; then
4789 # We found a bogon in the path, so make sure we never use it.
4790 set dummy $ac_cv_prog_BUILD_CXX
4791 shift
4792 if test $# != 0; then
4793 # We chose a different compiler from the bogus one.
4794 # However, it has the same basename, so the bogon will be chosen
4795 # first if we set BUILD_CXX to just the basename; use the full file name.
4796 shift
4797 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4798 fi
4799fi
4800fi
4801fi
4802BUILD_CXX=$ac_cv_prog_BUILD_CXX
4803if test -n "$BUILD_CXX"; then
4804 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4805echo "${ECHO_T}$BUILD_CXX" >&6; }
4806else
4807 { echo "$as_me:$LINENO: result: no" >&5
4808echo "${ECHO_T}no" >&6; }
4809fi
4810
4811
4812 fi
4813 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004814else
4815 LLVM_CROSS_COMPILING=0
4816
4817fi
4818
Nick Lewycky5b28f862009-04-10 05:18:27 +00004819if 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 +00004820 cvsbuild="yes"
4821 optimize="no"
4822 CVSBUILD=CVSBUILD=1
4823
4824else
4825 cvsbuild="no"
4826 optimize="yes"
4827fi
4828
4829
4830# Check whether --enable-optimized was given.
4831if test "${enable_optimized+set}" = set; then
4832 enableval=$enable_optimized;
4833else
4834 enableval=$optimize
4835fi
4836
4837if test ${enableval} = "no" ; then
4838 ENABLE_OPTIMIZED=
4839
4840else
4841 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4842
4843fi
4844
David Greene2a5a12c2009-04-17 14:50:39 +00004845# Check whether --enable-profiling was given.
4846if test "${enable_profiling+set}" = set; then
4847 enableval=$enable_profiling;
4848else
4849 enableval="no"
4850fi
4851
4852if test ${enableval} = "no" ; then
4853 ENABLE_PROFILING=
4854
4855else
4856 ENABLE_PROFILING=ENABLE_PROFILING=1
4857
4858fi
4859
Reid Spencera773bd52006-08-04 18:18:08 +00004860# Check whether --enable-assertions was given.
4861if test "${enable_assertions+set}" = set; then
4862 enableval=$enable_assertions;
4863else
4864 enableval="yes"
4865fi
4866
4867if test ${enableval} = "yes" ; then
4868 DISABLE_ASSERTIONS=
4869
4870else
4871 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4872
4873fi
4874
David Greenea696d242007-06-28 19:36:08 +00004875# Check whether --enable-expensive-checks was given.
4876if test "${enable_expensive_checks+set}" = set; then
4877 enableval=$enable_expensive_checks;
4878else
4879 enableval="no"
4880fi
4881
4882if test ${enableval} = "yes" ; then
4883 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4884
4885 EXPENSIVE_CHECKS=yes
4886
4887else
4888 ENABLE_EXPENSIVE_CHECKS=
4889
4890 EXPENSIVE_CHECKS=no
4891
4892fi
4893
Reid Spencer8b2e1412006-11-17 03:32:33 +00004894# Check whether --enable-debug-runtime was given.
4895if test "${enable_debug_runtime+set}" = set; then
4896 enableval=$enable_debug_runtime;
4897else
4898 enableval=no
4899fi
4900
4901if test ${enableval} = "no" ; then
4902 DEBUG_RUNTIME=
4903
4904else
4905 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4906
4907fi
4908
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004909# Check whether --enable-debug-symbols was given.
4910if test "${enable_debug_symbols+set}" = set; then
4911 enableval=$enable_debug_symbols;
4912else
4913 enableval=no
4914fi
4915
4916if test ${enableval} = "no" ; then
4917 DEBUG_SYMBOLS=
4918
4919else
4920 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4921
4922fi
4923
Reid Spencera773bd52006-08-04 18:18:08 +00004924# Check whether --enable-jit was given.
4925if test "${enable_jit+set}" = set; then
4926 enableval=$enable_jit;
4927else
4928 enableval=default
4929fi
4930
4931if test ${enableval} = "no"
4932then
4933 JIT=
4934
4935else
4936 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004937 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004938 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004939 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004940 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004941 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004942 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004943 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004944 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004945 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004946 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004947 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004948 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004949 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004950 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004951 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004952 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004953 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004954 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004955 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004956 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004957 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004958 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004959 Blackfin) TARGET_HAS_JIT=0
4960 ;;
4961 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004962 ;;
4963 esac
4964fi
4965
4966# Check whether --enable-doxygen was given.
4967if test "${enable_doxygen+set}" = set; then
4968 enableval=$enable_doxygen;
4969else
4970 enableval=default
4971fi
4972
4973case "$enableval" in
4974 yes) ENABLE_DOXYGEN=1
4975 ;;
4976 no) ENABLE_DOXYGEN=0
4977 ;;
4978 default) ENABLE_DOXYGEN=0
4979 ;;
4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4981echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4983esac
4984
4985# Check whether --enable-threads was given.
4986if test "${enable_threads+set}" = set; then
4987 enableval=$enable_threads;
4988else
Reid Spencer65c5d752006-11-05 17:08:18 +00004989 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004990fi
4991
4992case "$enableval" in
4993 yes) ENABLE_THREADS=1
4994 ;;
4995 no) ENABLE_THREADS=0
4996 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004997 default) ENABLE_THREADS=1
4998 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004999 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5000echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5001 { (exit 1); exit 1; }; } ;;
5002esac
5003
Owen Andersona8603702009-05-19 22:18:56 +00005004cat >>confdefs.h <<_ACEOF
5005#define ENABLE_THREADS $ENABLE_THREADS
5006_ACEOF
5007
5008
Reid Spencer89b0d992006-12-16 22:07:52 +00005009# Check whether --enable-pic was given.
5010if test "${enable_pic+set}" = set; then
5011 enableval=$enable_pic;
5012else
5013 enableval=default
5014fi
5015
5016case "$enableval" in
5017 yes) ENABLE_PIC=1
5018 ;;
5019 no) ENABLE_PIC=0
5020 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005021 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005022 ;;
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5024echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5026esac
5027
5028cat >>confdefs.h <<_ACEOF
5029#define ENABLE_PIC $ENABLE_PIC
5030_ACEOF
5031
5032
Reid Spencera773bd52006-08-04 18:18:08 +00005033TARGETS_TO_BUILD=""
5034# Check whether --enable-targets was given.
5035if test "${enable_targets+set}" = set; then
5036 enableval=$enable_targets;
5037else
5038 enableval=all
5039fi
5040
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005041if test "$enableval" = host-only ; then
5042 enableval=host
5043fi
Reid Spencera773bd52006-08-04 18:18:08 +00005044case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00005045 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005046 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5047 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005048 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5049 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5050 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5051 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5052 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5053 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5054 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5055 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5056 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5057 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5058 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5059 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5060 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5061 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5062 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5063 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005064 host) case "$llvm_cv_target_arch" in
5065 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5066 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5067 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5068 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5069 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5070 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5071 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5072 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5073 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5074 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5075 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5076 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5077 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5078 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5079echo "$as_me: error: Can not set target to build" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5081 esac ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005082 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5083echo "$as_me: error: Unrecognized target $a_target" >&2;}
5084 { (exit 1); exit 1; }; } ;;
5085 esac
5086 done
5087 ;;
5088esac
Reid Spencera773bd52006-08-04 18:18:08 +00005089TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5090
5091
Douglas Gregor0711c302009-06-17 00:43:20 +00005092# Determine whether we are building LLVM support for the native architecture.
5093# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5094for a_target in $TARGETS_TO_BUILD; do
5095 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005096 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005097
5098cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005099#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005100_ACEOF
5101
5102 fi
5103done
5104
Douglas Gregor1555a232009-06-16 20:12:29 +00005105# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005106# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005107LLVM_ENUM_TARGETS=""
5108LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005109LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005110for target_to_build in $TARGETS_TO_BUILD; do
5111 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5112 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5113 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5114 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005115 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5116 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5117 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005118done
5119
5120
5121
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005122
Reid Spencer65c5d752006-11-05 17:08:18 +00005123# Check whether --enable-cbe-printf-a was given.
5124if test "${enable_cbe_printf_a+set}" = set; then
5125 enableval=$enable_cbe_printf_a;
5126else
5127 enableval=default
5128fi
5129
5130case "$enableval" in
5131 yes) ENABLE_CBE_PRINTF_A=1
5132 ;;
5133 no) ENABLE_CBE_PRINTF_A=0
5134 ;;
5135 default) ENABLE_CBE_PRINTF_A=1
5136 ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5138echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140esac
5141
5142cat >>confdefs.h <<_ACEOF
5143#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5144_ACEOF
5145
5146
Reid Spencera773bd52006-08-04 18:18:08 +00005147
5148# Check whether --with-llvmgccdir was given.
5149if test "${with_llvmgccdir+set}" = set; then
5150 withval=$with_llvmgccdir;
5151else
5152 withval=default
5153fi
5154
5155case "$withval" in
5156 default) WITH_LLVMGCCDIR=default ;;
5157 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5158 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5159echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5161esac
5162
5163
Devang Patel5d28b882007-12-04 22:54:47 +00005164# Check whether --with-llvmgcc was given.
5165if test "${with_llvmgcc+set}" = set; then
5166 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5167 WITH_LLVMGCCDIR=""
5168fi
5169
5170
5171
5172# Check whether --with-llvmgxx was given.
5173if test "${with_llvmgxx+set}" = set; then
5174 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5175 WITH_LLVMGCCDIR=""
5176fi
5177
Douglas Gregor01746742009-05-11 18:05:52 +00005178
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005179if test -n "$LLVMGCC"; then
5180 LLVMGCCCOMMAND="$LLVMGCC"
5181fi
5182
5183if test -n "$LLVMGXX"; then
5184 LLVMGXXCOMMAND="$LLVMGXX"
5185fi
Devang Patel5d28b882007-12-04 22:54:47 +00005186
5187if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5188 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5189echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5190 { (exit 1); exit 1; }; };
5191fi
5192
5193if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5194 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5195echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5196 { (exit 1); exit 1; }; };
5197fi
5198
5199
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005200# Check whether --with-optimize-option was given.
5201if test "${with_optimize_option+set}" = set; then
5202 withval=$with_optimize_option;
5203else
5204 withval=default
5205fi
5206
5207{ echo "$as_me:$LINENO: checking optimization flags" >&5
5208echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5209case "$withval" in
5210 default)
5211 case "$llvm_cv_os_type" in
5212 MingW) optimize_option=-O3 ;;
5213 *) optimize_option=-O2 ;;
5214 esac ;;
5215 *) optimize_option="$withval" ;;
5216esac
5217OPTIMIZE_OPTION=$optimize_option
5218
5219{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5220echo "${ECHO_T}$optimize_option" >&6; }
5221
5222
Reid Spencera773bd52006-08-04 18:18:08 +00005223# Check whether --with-extra-options was given.
5224if test "${with_extra_options+set}" = set; then
5225 withval=$with_extra_options;
5226else
5227 withval=default
5228fi
5229
5230case "$withval" in
5231 default) EXTRA_OPTIONS= ;;
5232 *) EXTRA_OPTIONS=$withval ;;
5233esac
5234EXTRA_OPTIONS=$EXTRA_OPTIONS
5235
5236
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005237# Check whether --enable-bindings was given.
5238if test "${enable_bindings+set}" = set; then
5239 enableval=$enable_bindings;
5240else
5241 enableval=default
5242fi
5243
5244BINDINGS_TO_BUILD=""
5245case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005246 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005247 all ) BINDINGS_TO_BUILD="ocaml" ;;
5248 none | no) BINDINGS_TO_BUILD="" ;;
5249 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5250 case "$a_binding" in
5251 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5252 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5253echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5255 esac
5256 done
5257 ;;
5258esac
5259
Reid Spencera773bd52006-08-04 18:18:08 +00005260
Gordon Henriksenf0915682007-10-02 16:42:22 +00005261# Check whether --with-ocaml-libdir was given.
5262if test "${with_ocaml_libdir+set}" = set; then
5263 withval=$with_ocaml_libdir;
5264else
5265 withval=auto
5266fi
5267
5268case "$withval" in
5269 auto) with_ocaml_libdir="$withval" ;;
5270 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5271 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5272echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5274esac
5275
5276
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005277# Check whether --with-c-include-dir was given.
5278if test "${with_c_include_dir+set}" = set; then
5279 withval=$with_c_include_dir;
5280else
5281 withval=""
5282fi
5283
5284
5285cat >>confdefs.h <<_ACEOF
5286#define C_INCLUDE_DIRS "$withval"
5287_ACEOF
5288
5289
5290
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005291# Check whether --with-binutils-include was given.
5292if test "${with_binutils_include+set}" = set; then
5293 withval=$with_binutils_include;
5294else
5295 withval=default
5296fi
5297
5298case "$withval" in
5299 default) WITH_BINUTILS_INCDIR=default ;;
5300 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5301 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5302echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5303 { (exit 1); exit 1; }; } ;;
5304esac
5305if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5306 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5307
5308 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5309 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5310 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5311echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5312 { (exit 1); exit 1; }; };
5313 fi
5314fi
5315
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005316# Check whether --enable-libffi was given.
5317if test "${enable_libffi+set}" = set; then
5318 enableval=$enable_libffi;
5319else
5320 enableval=yes
5321fi
5322
5323case "$enableval" in
5324 yes) llvm_cv_enable_libffi="yes" ;;
5325 no) llvm_cv_enable_libffi="no" ;;
5326 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5327echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5329esac
5330
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005331if test "$llvm_cv_os_type" = "Win32" ; then
5332 llvmc_dynamic="yes"
5333else
5334 llvmc_dynamic="no"
5335fi
5336
5337# Check whether --enable-llvmc-dynamic was given.
5338if test "${enable_llvmc_dynamic+set}" = set; then
5339 enableval=$enable_llvmc_dynamic;
5340else
5341 enableval=$llvmc_dynamic
5342fi
5343
5344if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5345 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5346
5347else
5348 ENABLE_LLVMC_DYNAMIC=
5349
5350fi
5351
5352# Check whether --enable-llvmc-dynamic-plugins was given.
5353if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5354 enableval=$enable_llvmc_dynamic_plugins;
5355else
5356 enableval=yes
5357fi
5358
5359if test ${enableval} = "yes" ; then
5360 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5361
5362else
5363 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5364
5365fi
5366
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005367
Reid Spencera773bd52006-08-04 18:18:08 +00005368ac_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
5373{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5374echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5375# On Suns, sometimes $CPP names a directory.
5376if test -n "$CPP" && test -d "$CPP"; then
5377 CPP=
5378fi
5379if test -z "$CPP"; then
5380 if test "${ac_cv_prog_CPP+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 # Double quotes because CPP needs to be expanded
5384 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5385 do
5386 ac_preproc_ok=false
5387for ac_c_preproc_warn_flag in '' yes
5388do
5389 # Use a header file that comes with gcc, so configuring glibc
5390 # with a fresh cross-compiler works.
5391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5392 # <limits.h> exists even on freestanding compilers.
5393 # On the NeXT, cc -E runs the code through the compiler's parser,
5394 # not just through cpp. "Syntax error" is here to catch this case.
5395 cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401#ifdef __STDC__
5402# include <limits.h>
5403#else
5404# include <assert.h>
5405#endif
5406 Syntax error
5407_ACEOF
5408if { (ac_try="$ac_cpp conftest.$ac_ext"
5409case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412esac
5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5426 fi
5427else
5428 ac_cpp_err=yes
5429fi
5430if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005431 :
5432else
5433 echo "$as_me: failed program was:" >&5
5434sed 's/^/| /' conftest.$ac_ext >&5
5435
5436 # Broken: fails on valid input.
5437continue
5438fi
5439
5440rm -f conftest.err conftest.$ac_ext
5441
5442 # OK, works on sane cases. Now check whether nonexistent headers
5443 # can be detected and how.
5444 cat >conftest.$ac_ext <<_ACEOF
5445/* confdefs.h. */
5446_ACEOF
5447cat confdefs.h >>conftest.$ac_ext
5448cat >>conftest.$ac_ext <<_ACEOF
5449/* end confdefs.h. */
5450#include <ac_nonexistent.h>
5451_ACEOF
5452if { (ac_try="$ac_cpp conftest.$ac_ext"
5453case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456esac
5457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005464 (exit $ac_status); } >/dev/null; then
5465 if test -s conftest.err; then
5466 ac_cpp_err=$ac_c_preproc_warn_flag
5467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5468 else
5469 ac_cpp_err=
5470 fi
5471else
5472 ac_cpp_err=yes
5473fi
5474if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005475 # Broken: success on invalid input.
5476continue
5477else
5478 echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 # Passes both tests.
5482ac_preproc_ok=:
5483break
5484fi
5485
5486rm -f conftest.err conftest.$ac_ext
5487
5488done
5489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490rm -f conftest.err conftest.$ac_ext
5491if $ac_preproc_ok; then
5492 break
5493fi
5494
5495 done
5496 ac_cv_prog_CPP=$CPP
5497
5498fi
5499 CPP=$ac_cv_prog_CPP
5500else
5501 ac_cv_prog_CPP=$CPP
5502fi
5503{ echo "$as_me:$LINENO: result: $CPP" >&5
5504echo "${ECHO_T}$CPP" >&6; }
5505ac_preproc_ok=false
5506for ac_c_preproc_warn_flag in '' yes
5507do
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
5520#ifdef __STDC__
5521# include <limits.h>
5522#else
5523# include <assert.h>
5524#endif
5525 Syntax error
5526_ACEOF
5527if { (ac_try="$ac_cpp conftest.$ac_ext"
5528case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531esac
5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_c_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543 else
5544 ac_cpp_err=
5545 fi
5546else
5547 ac_cpp_err=yes
5548fi
5549if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005550 :
5551else
5552 echo "$as_me: failed program was:" >&5
5553sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 # Broken: fails on valid input.
5556continue
5557fi
5558
5559rm -f conftest.err conftest.$ac_ext
5560
5561 # OK, works on sane cases. Now check whether nonexistent headers
5562 # can be detected and how.
5563 cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h. */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h. */
5569#include <ac_nonexistent.h>
5570_ACEOF
5571if { (ac_try="$ac_cpp conftest.$ac_ext"
5572case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005583 (exit $ac_status); } >/dev/null; then
5584 if test -s conftest.err; then
5585 ac_cpp_err=$ac_c_preproc_warn_flag
5586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5587 else
5588 ac_cpp_err=
5589 fi
5590else
5591 ac_cpp_err=yes
5592fi
5593if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005594 # Broken: success on invalid input.
5595continue
5596else
5597 echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
5600 # Passes both tests.
5601ac_preproc_ok=:
5602break
5603fi
5604
5605rm -f conftest.err conftest.$ac_ext
5606
5607done
5608# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609rm -f conftest.err conftest.$ac_ext
5610if $ac_preproc_ok; then
5611 :
5612else
5613 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5614See \`config.log' for more details." >&5
5615echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5616See \`config.log' for more details." >&2;}
5617 { (exit 1); exit 1; }; }
5618fi
5619
5620ac_ext=c
5621ac_cpp='$CPP $CPPFLAGS'
5622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624ac_compiler_gnu=$ac_cv_c_compiler_gnu
5625
5626ac_ext=c
5627ac_cpp='$CPP $CPPFLAGS'
5628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631if test -n "$ac_tool_prefix"; then
5632 for ac_prog in gcc
5633 do
5634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5638if test "${ac_cv_prog_CC+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 if test -n "$CC"; then
5642 ac_cv_prog_CC="$CC" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005650 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 +00005651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655done
5656done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661CC=$ac_cv_prog_CC
5662if test -n "$CC"; then
5663 { echo "$as_me:$LINENO: result: $CC" >&5
5664echo "${ECHO_T}$CC" >&6; }
5665else
5666 { echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6; }
5668fi
5669
5670
5671 test -n "$CC" && break
5672 done
5673fi
5674if test -z "$CC"; then
5675 ac_ct_CC=$CC
5676 for ac_prog in gcc
5677do
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679set dummy $ac_prog; ac_word=$2
5680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5682if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685 if test -n "$ac_ct_CC"; then
5686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005694 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 +00005695 ac_cv_prog_ac_ct_CC="$ac_prog"
5696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699done
5700done
5701IFS=$as_save_IFS
5702
5703fi
5704fi
5705ac_ct_CC=$ac_cv_prog_ac_ct_CC
5706if test -n "$ac_ct_CC"; then
5707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5708echo "${ECHO_T}$ac_ct_CC" >&6; }
5709else
5710 { echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6; }
5712fi
5713
5714
5715 test -n "$ac_ct_CC" && break
5716done
5717
5718 if test "x$ac_ct_CC" = x; then
5719 CC=""
5720 else
5721 case $cross_compiling:$ac_tool_warned in
5722yes:)
5723{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5724whose name does not start with the host triplet. If you think this
5725configuration is useful to you, please write to autoconf@gnu.org." >&5
5726echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5727whose name does not start with the host triplet. If you think this
5728configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5729ac_tool_warned=yes ;;
5730esac
5731 CC=$ac_ct_CC
5732 fi
5733fi
5734
5735
5736test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5737See \`config.log' for more details." >&5
5738echo "$as_me: error: no acceptable C compiler found in \$PATH
5739See \`config.log' for more details." >&2;}
5740 { (exit 1); exit 1; }; }
5741
5742# Provide some information about the compiler.
5743echo "$as_me:$LINENO: checking for C compiler version" >&5
5744ac_compiler=`set X $ac_compile; echo $2`
5745{ (ac_try="$ac_compiler --version >&5"
5746case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749esac
5750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compiler --version >&5") 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }
5755{ (ac_try="$ac_compiler -v >&5"
5756case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compiler -v >&5") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
5765{ (ac_try="$ac_compiler -V >&5"
5766case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_compiler -V >&5") 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }
5775
5776{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5777echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5778if test "${ac_cv_c_compiler_gnu+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781 cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h. */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h. */
5787
5788int
5789main ()
5790{
5791#ifndef __GNUC__
5792 choke me
5793#endif
5794
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext
5800if { (ac_try="$ac_compile"
5801case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5814 { (case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817esac
5818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_try") 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try='test -s conftest.$ac_objext'
5824 { (case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_try") 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005833 ac_compiler_gnu=yes
5834else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_compiler_gnu=no
5839fi
5840
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842ac_cv_c_compiler_gnu=$ac_compiler_gnu
5843
5844fi
5845{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5846echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5847GCC=`test $ac_compiler_gnu = yes && echo yes`
5848ac_test_CFLAGS=${CFLAGS+set}
5849ac_save_CFLAGS=$CFLAGS
5850{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5851echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5852if test "${ac_cv_prog_cc_g+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855 ac_save_c_werror_flag=$ac_c_werror_flag
5856 ac_c_werror_flag=yes
5857 ac_cv_prog_cc_g=no
5858 CFLAGS="-g"
5859 cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */
5865
5866int
5867main ()
5868{
5869
5870 ;
5871 return 0;
5872}
5873_ACEOF
5874rm -f conftest.$ac_objext
5875if { (ac_try="$ac_compile"
5876case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_try") 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005908 ac_cv_prog_cc_g=yes
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 CFLAGS=""
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920
5921int
5922main ()
5923{
5924
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929rm -f conftest.$ac_objext
5930if { (ac_try="$ac_compile"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5944 { (case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_try") 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_try") 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005963 :
5964else
5965 echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968 ac_c_werror_flag=$ac_save_c_werror_flag
5969 CFLAGS="-g"
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976
5977int
5978main ()
5979{
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext
5986if { (ac_try="$ac_compile"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003esac
6004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006019 ac_cv_prog_cc_g=yes
6020else
6021 echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024
6025fi
6026
6027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028fi
6029
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031fi
6032
6033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_c_werror_flag=$ac_save_c_werror_flag
6035fi
6036{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6037echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6038if test "$ac_test_CFLAGS" = set; then
6039 CFLAGS=$ac_save_CFLAGS
6040elif test $ac_cv_prog_cc_g = yes; then
6041 if test "$GCC" = yes; then
6042 CFLAGS="-g -O2"
6043 else
6044 CFLAGS="-g"
6045 fi
6046else
6047 if test "$GCC" = yes; then
6048 CFLAGS="-O2"
6049 else
6050 CFLAGS=
6051 fi
6052fi
6053{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6054echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6055if test "${ac_cv_prog_cc_c89+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 ac_cv_prog_cc_c89=no
6059ac_save_CC=$CC
6060cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h. */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h. */
6066#include <stdarg.h>
6067#include <stdio.h>
6068#include <sys/types.h>
6069#include <sys/stat.h>
6070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6071struct buf { int x; };
6072FILE * (*rcsopen) (struct buf *, struct stat *, int);
6073static char *e (p, i)
6074 char **p;
6075 int i;
6076{
6077 return p[i];
6078}
6079static char *f (char * (*g) (char **, int), char **p, ...)
6080{
6081 char *s;
6082 va_list v;
6083 va_start (v,p);
6084 s = g (p, va_arg (v,int));
6085 va_end (v);
6086 return s;
6087}
6088
6089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6090 function prototypes and stuff, but not '\xHH' hex character constants.
6091 These don't provoke an error unfortunately, instead are silently treated
6092 as 'x'. The following induces an error, until -std is added to get
6093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6094 array size at least. It's necessary to write '\x00'==0 to get something
6095 that's true only with -std. */
6096int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6097
6098/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6099 inside strings and character constants. */
6100#define FOO(x) 'x'
6101int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6102
6103int test (int i, double x);
6104struct s1 {int (*f) (int a);};
6105struct s2 {int (*f) (double a);};
6106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6107int argc;
6108char **argv;
6109int
6110main ()
6111{
6112return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6113 ;
6114 return 0;
6115}
6116_ACEOF
6117for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6119do
6120 CC="$ac_save_CC $ac_arg"
6121 rm -f conftest.$ac_objext
6122if { (ac_try="$ac_compile"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006134 (exit $ac_status); } &&
6135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6136 { (case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139esac
6140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_try") 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149esac
6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_try") 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006155 ac_cv_prog_cc_c89=$ac_arg
6156else
6157 echo "$as_me: failed program was:" >&5
6158sed 's/^/| /' conftest.$ac_ext >&5
6159
6160
6161fi
6162
6163rm -f core conftest.err conftest.$ac_objext
6164 test "x$ac_cv_prog_cc_c89" != "xno" && break
6165done
6166rm -f conftest.$ac_ext
6167CC=$ac_save_CC
6168
6169fi
6170# AC_CACHE_VAL
6171case "x$ac_cv_prog_cc_c89" in
6172 x)
6173 { echo "$as_me:$LINENO: result: none needed" >&5
6174echo "${ECHO_T}none needed" >&6; } ;;
6175 xno)
6176 { echo "$as_me:$LINENO: result: unsupported" >&5
6177echo "${ECHO_T}unsupported" >&6; } ;;
6178 *)
6179 CC="$CC $ac_cv_prog_cc_c89"
6180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6181echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6182esac
6183
6184
6185ac_ext=c
6186ac_cpp='$CPP $CPPFLAGS'
6187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191ac_ext=cpp
6192ac_cpp='$CXXCPP $CPPFLAGS'
6193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6196if test -z "$CXX"; then
6197 if test -n "$CCC"; then
6198 CXX=$CCC
6199 else
6200 if test -n "$ac_tool_prefix"; then
6201 for ac_prog in g++
6202 do
6203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207if test "${ac_cv_prog_CXX+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 if test -n "$CXX"; then
6211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006219 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 +00006220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230CXX=$ac_cv_prog_CXX
6231if test -n "$CXX"; then
6232 { echo "$as_me:$LINENO: result: $CXX" >&5
6233echo "${ECHO_T}$CXX" >&6; }
6234else
6235 { echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6; }
6237fi
6238
6239
6240 test -n "$CXX" && break
6241 done
6242fi
6243if test -z "$CXX"; then
6244 ac_ct_CXX=$CXX
6245 for ac_prog in g++
6246do
6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
6248set dummy $ac_prog; ac_word=$2
6249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254 if test -n "$ac_ct_CXX"; then
6255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006263 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 +00006264 ac_cv_prog_ac_ct_CXX="$ac_prog"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6275if test -n "$ac_ct_CXX"; then
6276 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6277echo "${ECHO_T}$ac_ct_CXX" >&6; }
6278else
6279 { echo "$as_me:$LINENO: result: no" >&5
6280echo "${ECHO_T}no" >&6; }
6281fi
6282
6283
6284 test -n "$ac_ct_CXX" && break
6285done
6286
6287 if test "x$ac_ct_CXX" = x; then
6288 CXX="g++"
6289 else
6290 case $cross_compiling:$ac_tool_warned in
6291yes:)
6292{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293whose name does not start with the host triplet. If you think this
6294configuration is useful to you, please write to autoconf@gnu.org." >&5
6295echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296whose name does not start with the host triplet. If you think this
6297configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298ac_tool_warned=yes ;;
6299esac
6300 CXX=$ac_ct_CXX
6301 fi
6302fi
6303
6304 fi
6305fi
6306# Provide some information about the compiler.
6307echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6308ac_compiler=`set X $ac_compile; echo $2`
6309{ (ac_try="$ac_compiler --version >&5"
6310case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compiler --version >&5") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }
6319{ (ac_try="$ac_compiler -v >&5"
6320case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_compiler -v >&5") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }
6329{ (ac_try="$ac_compiler -V >&5"
6330case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_compiler -V >&5") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }
6339
6340{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6341echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6342if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344else
6345 cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h. */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355#ifndef __GNUC__
6356 choke me
6357#endif
6358
6359 ;
6360 return 0;
6361}
6362_ACEOF
6363rm -f conftest.$ac_objext
6364if { (ac_try="$ac_compile"
6365case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368esac
6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_compile") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006376 (exit $ac_status); } &&
6377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6378 { (case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381esac
6382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_try") 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391esac
6392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_try") 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006397 ac_compiler_gnu=yes
6398else
6399 echo "$as_me: failed program was:" >&5
6400sed 's/^/| /' conftest.$ac_ext >&5
6401
6402 ac_compiler_gnu=no
6403fi
6404
6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6407
6408fi
6409{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6410echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6411GXX=`test $ac_compiler_gnu = yes && echo yes`
6412ac_test_CXXFLAGS=${CXXFLAGS+set}
6413ac_save_CXXFLAGS=$CXXFLAGS
6414{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6415echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6416if test "${ac_cv_prog_cxx_g+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6420 ac_cxx_werror_flag=yes
6421 ac_cv_prog_cxx_g=no
6422 CXXFLAGS="-g"
6423 cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
6429
6430int
6431main ()
6432{
6433
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext
6439if { (ac_try="$ac_compile"
6440case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443esac
6444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6453 { (case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456esac
6457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_try") 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466esac
6467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006472 ac_cv_prog_cxx_g=yes
6473else
6474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 CXXFLAGS=""
6478 cat >conftest.$ac_ext <<_ACEOF
6479/* confdefs.h. */
6480_ACEOF
6481cat confdefs.h >>conftest.$ac_ext
6482cat >>conftest.$ac_ext <<_ACEOF
6483/* end confdefs.h. */
6484
6485int
6486main ()
6487{
6488
6489 ;
6490 return 0;
6491}
6492_ACEOF
6493rm -f conftest.$ac_objext
6494if { (ac_try="$ac_compile"
6495case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498esac
6499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6508 { (case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511esac
6512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_try") 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521esac
6522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_try") 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006527 :
6528else
6529 echo "$as_me: failed program was:" >&5
6530sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533 CXXFLAGS="-g"
6534 cat >conftest.$ac_ext <<_ACEOF
6535/* confdefs.h. */
6536_ACEOF
6537cat confdefs.h >>conftest.$ac_ext
6538cat >>conftest.$ac_ext <<_ACEOF
6539/* end confdefs.h. */
6540
6541int
6542main ()
6543{
6544
6545 ;
6546 return 0;
6547}
6548_ACEOF
6549rm -f conftest.$ac_objext
6550if { (ac_try="$ac_compile"
6551case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554esac
6555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567esac
6568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_try") 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006583 ac_cv_prog_cxx_g=yes
6584else
6585 echo "$as_me: failed program was:" >&5
6586sed 's/^/| /' conftest.$ac_ext >&5
6587
6588
6589fi
6590
6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592fi
6593
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595fi
6596
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6599fi
6600{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6601echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6602if test "$ac_test_CXXFLAGS" = set; then
6603 CXXFLAGS=$ac_save_CXXFLAGS
6604elif test $ac_cv_prog_cxx_g = yes; then
6605 if test "$GXX" = yes; then
6606 CXXFLAGS="-g -O2"
6607 else
6608 CXXFLAGS="-g"
6609 fi
6610else
6611 if test "$GXX" = yes; then
6612 CXXFLAGS="-O2"
6613 else
6614 CXXFLAGS=
6615 fi
6616fi
6617ac_ext=c
6618ac_cpp='$CPP $CPPFLAGS'
6619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622
Reid Spencera773bd52006-08-04 18:18:08 +00006623
6624{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6625echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6626if test "${lt_cv_path_NM+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 if test -n "$NM"; then
6630 # Let the user override the test.
6631 lt_cv_path_NM="$NM"
6632else
6633 lt_nm_to_check="${ac_tool_prefix}nm"
6634 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6635 lt_nm_to_check="$lt_nm_to_check nm"
6636 fi
6637 for lt_tmp_nm in $lt_nm_to_check; do
6638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6639 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6640 IFS="$lt_save_ifs"
6641 test -z "$ac_dir" && ac_dir=.
6642 tmp_nm="$ac_dir/$lt_tmp_nm"
6643 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6644 # Check to see if the nm accepts a BSD-compat flag.
6645 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6646 # nm: unknown option "B" ignored
6647 # Tru64's nm complains that /dev/null is an invalid object file
6648 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6649 */dev/null* | *'Invalid file or object type'*)
6650 lt_cv_path_NM="$tmp_nm -B"
6651 break
6652 ;;
6653 *)
6654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6655 */dev/null*)
6656 lt_cv_path_NM="$tmp_nm -p"
6657 break
6658 ;;
6659 *)
6660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6661 continue # so that we can try to find one that supports BSD flags
6662 ;;
6663 esac
6664 ;;
6665 esac
6666 fi
6667 done
6668 IFS="$lt_save_ifs"
6669 done
6670 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6671fi
6672fi
6673{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6674echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6675NM="$lt_cv_path_NM"
6676
6677
6678
6679{ echo "$as_me:$LINENO: checking for GNU make" >&5
6680echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6681if test "${llvm_cv_gnu_make_command+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684 llvm_cv_gnu_make_command=''
6685 for a in "$MAKE" make gmake gnumake ; do
6686 if test -z "$a" ; then continue ; fi ;
6687 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6688 then
6689 llvm_cv_gnu_make_command=$a ;
6690 break;
6691 fi
6692 done
6693fi
6694{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6695echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6696 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6697 ifGNUmake='' ;
6698 else
6699 ifGNUmake='#' ;
6700 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6701echo "${ECHO_T}\"Not found\"" >&6; };
6702 fi
6703
6704
6705{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6706echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6707LN_S=$as_ln_s
6708if test "$LN_S" = "ln -s"; then
6709 { echo "$as_me:$LINENO: result: yes" >&5
6710echo "${ECHO_T}yes" >&6; }
6711else
6712 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6713echo "${ECHO_T}no, using $LN_S" >&6; }
6714fi
6715
6716# Extract the first word of "cmp", so it can be a program name with args.
6717set dummy cmp; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_path_CMP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 case $CMP in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6726 ;;
6727 *)
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006734 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 +00006735 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740done
6741IFS=$as_save_IFS
6742
6743 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6744 ;;
6745esac
6746fi
6747CMP=$ac_cv_path_CMP
6748if test -n "$CMP"; then
6749 { echo "$as_me:$LINENO: result: $CMP" >&5
6750echo "${ECHO_T}$CMP" >&6; }
6751else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757# Extract the first word of "cp", so it can be a program name with args.
6758set dummy cp; ac_word=$2
6759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_path_CP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 case $CP in
6765 [\\/]* | ?:[\\/]*)
6766 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6767 ;;
6768 *)
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006775 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 +00006776 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6785 ;;
6786esac
6787fi
6788CP=$ac_cv_path_CP
6789if test -n "$CP"; then
6790 { echo "$as_me:$LINENO: result: $CP" >&5
6791echo "${ECHO_T}$CP" >&6; }
6792else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6; }
6795fi
6796
6797
6798# Extract the first word of "date", so it can be a program name with args.
6799set dummy date; ac_word=$2
6800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802if test "${ac_cv_path_DATE+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 case $DATE in
6806 [\\/]* | ?:[\\/]*)
6807 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6808 ;;
6809 *)
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006816 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 +00006817 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822done
6823IFS=$as_save_IFS
6824
6825 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6826 ;;
6827esac
6828fi
6829DATE=$ac_cv_path_DATE
6830if test -n "$DATE"; then
6831 { echo "$as_me:$LINENO: result: $DATE" >&5
6832echo "${ECHO_T}$DATE" >&6; }
6833else
6834 { echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6; }
6836fi
6837
6838
6839# Extract the first word of "find", so it can be a program name with args.
6840set dummy find; ac_word=$2
6841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843if test "${ac_cv_path_FIND+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 case $FIND in
6847 [\\/]* | ?:[\\/]*)
6848 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6849 ;;
6850 *)
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006857 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 +00006858 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864IFS=$as_save_IFS
6865
6866 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6867 ;;
6868esac
6869fi
6870FIND=$ac_cv_path_FIND
6871if test -n "$FIND"; then
6872 { echo "$as_me:$LINENO: result: $FIND" >&5
6873echo "${ECHO_T}$FIND" >&6; }
6874else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
6877fi
6878
6879
6880# Extract the first word of "grep", so it can be a program name with args.
6881set dummy grep; ac_word=$2
6882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884if test "${ac_cv_path_GREP+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886else
6887 case $GREP in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6890 ;;
6891 *)
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006898 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 +00006899 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903done
6904done
6905IFS=$as_save_IFS
6906
6907 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6908 ;;
6909esac
6910fi
6911GREP=$ac_cv_path_GREP
6912if test -n "$GREP"; then
6913 { echo "$as_me:$LINENO: result: $GREP" >&5
6914echo "${ECHO_T}$GREP" >&6; }
6915else
6916 { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
6918fi
6919
6920
6921# Extract the first word of "mkdir", so it can be a program name with args.
6922set dummy mkdir; ac_word=$2
6923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925if test "${ac_cv_path_MKDIR+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 case $MKDIR in
6929 [\\/]* | ?:[\\/]*)
6930 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6931 ;;
6932 *)
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006939 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 +00006940 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944done
6945done
6946IFS=$as_save_IFS
6947
6948 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6949 ;;
6950esac
6951fi
6952MKDIR=$ac_cv_path_MKDIR
6953if test -n "$MKDIR"; then
6954 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6955echo "${ECHO_T}$MKDIR" >&6; }
6956else
6957 { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
6959fi
6960
6961
6962# Extract the first word of "mv", so it can be a program name with args.
6963set dummy mv; ac_word=$2
6964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_path_MV+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969 case $MV in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6972 ;;
6973 *)
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006980 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 +00006981 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985done
6986done
6987IFS=$as_save_IFS
6988
6989 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6990 ;;
6991esac
6992fi
6993MV=$ac_cv_path_MV
6994if test -n "$MV"; then
6995 { echo "$as_me:$LINENO: result: $MV" >&5
6996echo "${ECHO_T}$MV" >&6; }
6997else
6998 { echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6; }
7000fi
7001
7002
7003if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7005set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008if test "${ac_cv_prog_RANLIB+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011 if test -n "$RANLIB"; then
7012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007020 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 +00007021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026done
7027IFS=$as_save_IFS
7028
7029fi
7030fi
7031RANLIB=$ac_cv_prog_RANLIB
7032if test -n "$RANLIB"; then
7033 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7034echo "${ECHO_T}$RANLIB" >&6; }
7035else
7036 { echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6; }
7038fi
7039
7040
7041fi
7042if test -z "$ac_cv_prog_RANLIB"; then
7043 ac_ct_RANLIB=$RANLIB
7044 # Extract the first word of "ranlib", so it can be a program name with args.
7045set dummy ranlib; ac_word=$2
7046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051 if test -n "$ac_ct_RANLIB"; then
7052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007060 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 +00007061 ac_cv_prog_ac_ct_RANLIB="ranlib"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7072if test -n "$ac_ct_RANLIB"; then
7073 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7074echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7075else
7076 { echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6; }
7078fi
7079
7080 if test "x$ac_ct_RANLIB" = x; then
7081 RANLIB=":"
7082 else
7083 case $cross_compiling:$ac_tool_warned in
7084yes:)
7085{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7086whose name does not start with the host triplet. If you think this
7087configuration is useful to you, please write to autoconf@gnu.org." >&5
7088echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7089whose name does not start with the host triplet. If you think this
7090configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7091ac_tool_warned=yes ;;
7092esac
7093 RANLIB=$ac_ct_RANLIB
7094 fi
7095else
7096 RANLIB="$ac_cv_prog_RANLIB"
7097fi
7098
7099# Extract the first word of "rm", so it can be a program name with args.
7100set dummy rm; ac_word=$2
7101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103if test "${ac_cv_path_RM+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106 case $RM in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7109 ;;
7110 *)
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007117 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 +00007118 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122done
7123done
7124IFS=$as_save_IFS
7125
7126 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7127 ;;
7128esac
7129fi
7130RM=$ac_cv_path_RM
7131if test -n "$RM"; then
7132 { echo "$as_me:$LINENO: result: $RM" >&5
7133echo "${ECHO_T}$RM" >&6; }
7134else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139
7140# Extract the first word of "sed", so it can be a program name with args.
7141set dummy sed; ac_word=$2
7142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144if test "${ac_cv_path_SED+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 case $SED in
7148 [\\/]* | ?:[\\/]*)
7149 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7150 ;;
7151 *)
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007158 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 +00007159 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163done
7164done
7165IFS=$as_save_IFS
7166
7167 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7168 ;;
7169esac
7170fi
7171SED=$ac_cv_path_SED
7172if test -n "$SED"; then
7173 { echo "$as_me:$LINENO: result: $SED" >&5
7174echo "${ECHO_T}$SED" >&6; }
7175else
7176 { echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6; }
7178fi
7179
7180
7181# Extract the first word of "tar", so it can be a program name with args.
7182set dummy tar; ac_word=$2
7183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185if test "${ac_cv_path_TAR+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 case $TAR in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7191 ;;
7192 *)
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007199 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 +00007200 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206IFS=$as_save_IFS
7207
7208 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7209 ;;
7210esac
7211fi
7212TAR=$ac_cv_path_TAR
7213if test -n "$TAR"; then
7214 { echo "$as_me:$LINENO: result: $TAR" >&5
7215echo "${ECHO_T}$TAR" >&6; }
7216else
7217 { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
7219fi
7220
7221
7222# Extract the first word of "pwd", so it can be a program name with args.
7223set dummy pwd; ac_word=$2
7224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226if test "${ac_cv_path_BINPWD+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228else
7229 case $BINPWD in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7232 ;;
7233 *)
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007240 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 +00007241 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246done
7247IFS=$as_save_IFS
7248
7249 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7250 ;;
7251esac
7252fi
7253BINPWD=$ac_cv_path_BINPWD
7254if test -n "$BINPWD"; then
7255 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7256echo "${ECHO_T}$BINPWD" >&6; }
7257else
7258 { echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6; }
7260fi
7261
7262
7263
7264# Extract the first word of "Graphviz", so it can be a program name with args.
7265set dummy Graphviz; ac_word=$2
7266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 case $GRAPHVIZ in
7272 [\\/]* | ?:[\\/]*)
7273 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7274 ;;
7275 *)
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007282 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 +00007283 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287done
7288done
7289IFS=$as_save_IFS
7290
7291 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7292 ;;
7293esac
7294fi
7295GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7296if test -n "$GRAPHVIZ"; then
7297 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7298echo "${ECHO_T}$GRAPHVIZ" >&6; }
7299else
7300 { echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6; }
7302fi
7303
7304
7305if test "$GRAPHVIZ" != "echo Graphviz" ; then
7306
7307cat >>confdefs.h <<\_ACEOF
7308#define HAVE_GRAPHVIZ 1
7309_ACEOF
7310
Jeff Cohen28783c32007-01-12 18:22:38 +00007311 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007312 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7313 fi
7314
7315cat >>confdefs.h <<_ACEOF
7316#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7317_ACEOF
7318
7319fi
7320# Extract the first word of "dot", so it can be a program name with args.
7321set dummy dot; ac_word=$2
7322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324if test "${ac_cv_path_DOT+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 case $DOT in
7328 [\\/]* | ?:[\\/]*)
7329 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7330 ;;
7331 *)
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007338 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 +00007339 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343done
7344done
7345IFS=$as_save_IFS
7346
7347 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7348 ;;
7349esac
7350fi
7351DOT=$ac_cv_path_DOT
7352if test -n "$DOT"; then
7353 { echo "$as_me:$LINENO: result: $DOT" >&5
7354echo "${ECHO_T}$DOT" >&6; }
7355else
7356 { echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6; }
7358fi
7359
7360
7361if test "$DOT" != "echo dot" ; then
7362
7363cat >>confdefs.h <<\_ACEOF
7364#define HAVE_DOT 1
7365_ACEOF
7366
Jeff Cohen28783c32007-01-12 18:22:38 +00007367 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007368 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7369 fi
7370
7371cat >>confdefs.h <<_ACEOF
7372#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7373_ACEOF
7374
7375fi
David Greenef0b9eff2009-07-09 17:16:26 +00007376# Extract the first word of "fdp", so it can be a program name with args.
7377set dummy fdp; ac_word=$2
7378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380if test "${ac_cv_path_FDP+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 case $FDP in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7386 ;;
7387 *)
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399done
7400done
7401IFS=$as_save_IFS
7402
7403 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7404 ;;
7405esac
7406fi
7407FDP=$ac_cv_path_FDP
7408if test -n "$FDP"; then
7409 { echo "$as_me:$LINENO: result: $FDP" >&5
7410echo "${ECHO_T}$FDP" >&6; }
7411else
7412 { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
7414fi
7415
7416
7417if test "$FDP" != "echo fdp" ; then
7418
7419cat >>confdefs.h <<\_ACEOF
7420#define HAVE_FDP 1
7421_ACEOF
7422
7423 if test "$llvm_cv_os_type" = "MingW" ; then
7424 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7425 fi
7426
7427cat >>confdefs.h <<_ACEOF
7428#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7429_ACEOF
7430
7431fi
7432# Extract the first word of "neato", so it can be a program name with args.
7433set dummy neato; ac_word=$2
7434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_NEATO+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439 case $NEATO in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455done
7456done
7457IFS=$as_save_IFS
7458
7459 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7460 ;;
7461esac
7462fi
7463NEATO=$ac_cv_path_NEATO
7464if test -n "$NEATO"; then
7465 { echo "$as_me:$LINENO: result: $NEATO" >&5
7466echo "${ECHO_T}$NEATO" >&6; }
7467else
7468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
7470fi
7471
7472
7473if test "$NEATO" != "echo neato" ; then
7474
7475cat >>confdefs.h <<\_ACEOF
7476#define HAVE_NEATO 1
7477_ACEOF
7478
7479 if test "$llvm_cv_os_type" = "MingW" ; then
7480 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7481 fi
7482
7483cat >>confdefs.h <<_ACEOF
7484#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7485_ACEOF
7486
7487fi
7488# Extract the first word of "twopi", so it can be a program name with args.
7489set dummy twopi; ac_word=$2
7490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_TWOPI+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495 case $TWOPI in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7510 fi
7511done
7512done
7513IFS=$as_save_IFS
7514
7515 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7516 ;;
7517esac
7518fi
7519TWOPI=$ac_cv_path_TWOPI
7520if test -n "$TWOPI"; then
7521 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7522echo "${ECHO_T}$TWOPI" >&6; }
7523else
7524 { echo "$as_me:$LINENO: result: no" >&5
7525echo "${ECHO_T}no" >&6; }
7526fi
7527
7528
7529if test "$TWOPI" != "echo twopi" ; then
7530
7531cat >>confdefs.h <<\_ACEOF
7532#define HAVE_TWOPI 1
7533_ACEOF
7534
7535 if test "$llvm_cv_os_type" = "MingW" ; then
7536 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7537 fi
7538
7539cat >>confdefs.h <<_ACEOF
7540#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7541_ACEOF
7542
7543fi
7544# Extract the first word of "circo", so it can be a program name with args.
7545set dummy circo; 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_CIRCO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $CIRCO in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_CIRCO="$CIRCO" # 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
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_CIRCO="$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
7571 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7572 ;;
7573esac
7574fi
7575CIRCO=$ac_cv_path_CIRCO
7576if test -n "$CIRCO"; then
7577 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7578echo "${ECHO_T}$CIRCO" >&6; }
7579else
7580 { echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6; }
7582fi
7583
7584
7585if test "$CIRCO" != "echo circo" ; then
7586
7587cat >>confdefs.h <<\_ACEOF
7588#define HAVE_CIRCO 1
7589_ACEOF
7590
7591 if test "$llvm_cv_os_type" = "MingW" ; then
7592 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7593 fi
7594
7595cat >>confdefs.h <<_ACEOF
7596#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7597_ACEOF
7598
7599fi
Reid Spencera773bd52006-08-04 18:18:08 +00007600for ac_prog in gv gsview32
7601do
7602 # Extract the first word of "$ac_prog", so it can be a program name with args.
7603set dummy $ac_prog; ac_word=$2
7604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606if test "${ac_cv_path_GV+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 case $GV in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7612 ;;
7613 *)
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007620 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 +00007621 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625done
7626done
7627IFS=$as_save_IFS
7628
7629 ;;
7630esac
7631fi
7632GV=$ac_cv_path_GV
7633if test -n "$GV"; then
7634 { echo "$as_me:$LINENO: result: $GV" >&5
7635echo "${ECHO_T}$GV" >&6; }
7636else
7637 { echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6; }
7639fi
7640
7641
7642 test -n "$GV" && break
7643done
7644test -n "$GV" || GV="echo gv"
7645
7646if test "$GV" != "echo gv" ; then
7647
7648cat >>confdefs.h <<\_ACEOF
7649#define HAVE_GV 1
7650_ACEOF
7651
Jeff Cohen28783c32007-01-12 18:22:38 +00007652 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007653 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7654 fi
7655
7656cat >>confdefs.h <<_ACEOF
7657#define LLVM_PATH_GV "$GV${EXEEXT}"
7658_ACEOF
7659
7660fi
7661# Extract the first word of "dotty", so it can be a program name with args.
7662set dummy dotty; ac_word=$2
7663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665if test "${ac_cv_path_DOTTY+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 case $DOTTY in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7671 ;;
7672 *)
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007679 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 +00007680 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686IFS=$as_save_IFS
7687
7688 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7689 ;;
7690esac
7691fi
7692DOTTY=$ac_cv_path_DOTTY
7693if test -n "$DOTTY"; then
7694 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7695echo "${ECHO_T}$DOTTY" >&6; }
7696else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6; }
7699fi
7700
7701
7702if test "$DOTTY" != "echo dotty" ; then
7703
7704cat >>confdefs.h <<\_ACEOF
7705#define HAVE_DOTTY 1
7706_ACEOF
7707
Jeff Cohen28783c32007-01-12 18:22:38 +00007708 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007709 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7710 fi
7711
7712cat >>confdefs.h <<_ACEOF
7713#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7714_ACEOF
7715
7716fi
7717
7718
7719# Extract the first word of "perl", so it can be a program name with args.
7720set dummy perl; ac_word=$2
7721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723if test "${ac_cv_path_PERL+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7725else
7726 case $PERL in
7727 [\\/]* | ?:[\\/]*)
7728 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7729 ;;
7730 *)
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007737 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 +00007738 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742done
7743done
7744IFS=$as_save_IFS
7745
7746 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7747 ;;
7748esac
7749fi
7750PERL=$ac_cv_path_PERL
7751if test -n "$PERL"; then
7752 { echo "$as_me:$LINENO: result: $PERL" >&5
7753echo "${ECHO_T}$PERL" >&6; }
7754else
7755 { echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6; }
7757fi
7758
7759
7760if test "$PERL" != "none"; then
7761 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7762echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7763 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7764 { echo "$as_me:$LINENO: result: yes" >&5
7765echo "${ECHO_T}yes" >&6; }
7766 else
7767 PERL=none
7768 { echo "$as_me:$LINENO: result: not found" >&5
7769echo "${ECHO_T}not found" >&6; }
7770 fi
7771fi
7772
7773
7774if test x"$PERL" = xnone; then
7775 HAVE_PERL=0
7776
Reid Spencer59807fa2007-05-17 18:11:03 +00007777 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7778echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7779 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007780else
7781 HAVE_PERL=1
7782
7783fi
7784
7785# Find a good install program. We prefer a C program (faster),
7786# so one script is as good as another. But avoid the broken or
7787# incompatible versions:
7788# SysV /etc/install, /usr/sbin/install
7789# SunOS /usr/etc/install
7790# IRIX /sbin/install
7791# AIX /bin/install
7792# AmigaOS /C/install, which installs bootblocks on floppy discs
7793# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7794# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7795# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7796# OS/2's system install, which has a completely different semantic
7797# ./install, which can be erroneously created by make from ./install.sh.
7798{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7799echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7800if test -z "$INSTALL"; then
7801if test "${ac_cv_path_install+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 # Account for people who put trailing slashes in PATH elements.
7810case $as_dir/ in
7811 ./ | .// | /cC/* | \
7812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7813 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7814 /usr/ucb/* ) ;;
7815 *)
7816 # OSF1 and SCO ODT 3.0 have their own names for install.
7817 # Don't use installbsd from OSF since it installs stuff as root
7818 # by default.
7819 for ac_prog in ginstall scoinst install; do
7820 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007821 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 +00007822 if test $ac_prog = install &&
7823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7824 # AIX install. It has an incompatible calling convention.
7825 :
7826 elif test $ac_prog = install &&
7827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7828 # program-specific install script used by HP pwplus--don't use.
7829 :
7830 else
7831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7832 break 3
7833 fi
7834 fi
7835 done
7836 done
7837 ;;
7838esac
7839done
7840IFS=$as_save_IFS
7841
7842
7843fi
7844 if test "${ac_cv_path_install+set}" = set; then
7845 INSTALL=$ac_cv_path_install
7846 else
7847 # As a last resort, use the slow shell script. Don't cache a
7848 # value for INSTALL within a source directory, because that will
7849 # break other packages using the cache if that directory is
7850 # removed, or if the value is a relative name.
7851 INSTALL=$ac_install_sh
7852 fi
7853fi
7854{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7855echo "${ECHO_T}$INSTALL" >&6; }
7856
7857# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7858# It thinks the first close brace ends the variable substitution.
7859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7860
7861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7862
7863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7864
7865
7866# Extract the first word of "bzip2", so it can be a program name with args.
7867set dummy bzip2; ac_word=$2
7868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870if test "${ac_cv_path_BZIP2+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873 case $BZIP2 in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7876 ;;
7877 *)
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007884 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 +00007885 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7888 fi
7889done
7890done
7891IFS=$as_save_IFS
7892
Reid Spencera773bd52006-08-04 18:18:08 +00007893 ;;
7894esac
7895fi
7896BZIP2=$ac_cv_path_BZIP2
7897if test -n "$BZIP2"; then
7898 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7899echo "${ECHO_T}$BZIP2" >&6; }
7900else
7901 { echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6; }
7903fi
7904
7905
7906# Extract the first word of "doxygen", so it can be a program name with args.
7907set dummy doxygen; ac_word=$2
7908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7910if test "${ac_cv_path_DOXYGEN+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 case $DOXYGEN in
7914 [\\/]* | ?:[\\/]*)
7915 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7916 ;;
7917 *)
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919for as_dir in $PATH
7920do
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007924 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 +00007925 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929done
7930done
7931IFS=$as_save_IFS
7932
Reid Spencera773bd52006-08-04 18:18:08 +00007933 ;;
7934esac
7935fi
7936DOXYGEN=$ac_cv_path_DOXYGEN
7937if test -n "$DOXYGEN"; then
7938 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7939echo "${ECHO_T}$DOXYGEN" >&6; }
7940else
7941 { echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6; }
7943fi
7944
7945
Reid Spencera773bd52006-08-04 18:18:08 +00007946# Extract the first word of "groff", so it can be a program name with args.
7947set dummy groff; ac_word=$2
7948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950if test "${ac_cv_path_GROFF+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952else
7953 case $GROFF in
7954 [\\/]* | ?:[\\/]*)
7955 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7956 ;;
7957 *)
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007964 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 +00007965 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970done
7971IFS=$as_save_IFS
7972
Reid Spencera773bd52006-08-04 18:18:08 +00007973 ;;
7974esac
7975fi
7976GROFF=$ac_cv_path_GROFF
7977if test -n "$GROFF"; then
7978 { echo "$as_me:$LINENO: result: $GROFF" >&5
7979echo "${ECHO_T}$GROFF" >&6; }
7980else
7981 { echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6; }
7983fi
7984
7985
7986# Extract the first word of "gzip", so it can be a program name with args.
7987set dummy gzip; ac_word=$2
7988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990if test "${ac_cv_path_GZIP+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 case $GZIP in
7994 [\\/]* | ?:[\\/]*)
7995 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7996 ;;
7997 *)
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008004 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 +00008005 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009done
8010done
8011IFS=$as_save_IFS
8012
Reid Spencera773bd52006-08-04 18:18:08 +00008013 ;;
8014esac
8015fi
8016GZIP=$ac_cv_path_GZIP
8017if test -n "$GZIP"; then
8018 { echo "$as_me:$LINENO: result: $GZIP" >&5
8019echo "${ECHO_T}$GZIP" >&6; }
8020else
8021 { echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6; }
8023fi
8024
8025
8026# Extract the first word of "pod2html", so it can be a program name with args.
8027set dummy pod2html; ac_word=$2
8028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030if test "${ac_cv_path_POD2HTML+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033 case $POD2HTML in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8036 ;;
8037 *)
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008044 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 +00008045 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050done
8051IFS=$as_save_IFS
8052
Reid Spencera773bd52006-08-04 18:18:08 +00008053 ;;
8054esac
8055fi
8056POD2HTML=$ac_cv_path_POD2HTML
8057if test -n "$POD2HTML"; then
8058 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8059echo "${ECHO_T}$POD2HTML" >&6; }
8060else
8061 { echo "$as_me:$LINENO: result: no" >&5
8062echo "${ECHO_T}no" >&6; }
8063fi
8064
8065
8066# Extract the first word of "pod2man", so it can be a program name with args.
8067set dummy pod2man; ac_word=$2
8068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070if test "${ac_cv_path_POD2MAN+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072else
8073 case $POD2MAN in
8074 [\\/]* | ?:[\\/]*)
8075 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8076 ;;
8077 *)
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008084 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 +00008085 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089done
8090done
8091IFS=$as_save_IFS
8092
Reid Spencera773bd52006-08-04 18:18:08 +00008093 ;;
8094esac
8095fi
8096POD2MAN=$ac_cv_path_POD2MAN
8097if test -n "$POD2MAN"; then
8098 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8099echo "${ECHO_T}$POD2MAN" >&6; }
8100else
8101 { echo "$as_me:$LINENO: result: no" >&5
8102echo "${ECHO_T}no" >&6; }
8103fi
8104
8105
8106# Extract the first word of "runtest", so it can be a program name with args.
8107set dummy runtest; ac_word=$2
8108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110if test "${ac_cv_path_RUNTEST+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 case $RUNTEST in
8114 [\\/]* | ?:[\\/]*)
8115 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8116 ;;
8117 *)
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008124 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 +00008125 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129done
8130done
8131IFS=$as_save_IFS
8132
Reid Spencera773bd52006-08-04 18:18:08 +00008133 ;;
8134esac
8135fi
8136RUNTEST=$ac_cv_path_RUNTEST
8137if test -n "$RUNTEST"; then
8138 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8139echo "${ECHO_T}$RUNTEST" >&6; }
8140else
8141 { echo "$as_me:$LINENO: result: no" >&5
8142echo "${ECHO_T}no" >&6; }
8143fi
8144
8145
8146
8147no_itcl=true
8148{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8149echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8150
8151# Check whether --with-tclinclude was given.
8152if test "${with_tclinclude+set}" = set; then
8153 withval=$with_tclinclude; with_tclinclude=${withval}
8154else
8155 with_tclinclude=''
8156fi
8157
8158if test "${ac_cv_path_tclsh+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161
8162if test x"${with_tclinclude}" != x ; then
8163 if test -f ${with_tclinclude}/tclsh ; then
8164 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8165 elif test -f ${with_tclinclude}/src/tclsh ; then
8166 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8167 else
8168 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8169echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8170 { (exit 1); exit 1; }; }
8171 fi
8172fi
8173
8174if test x"${ac_cv_path_tclsh}" = x ; then
8175 { echo "$as_me:$LINENO: result: none" >&5
8176echo "${ECHO_T}none" >&6; }
8177 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
8178do
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180set dummy $ac_prog; ac_word=$2
8181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183if test "${ac_cv_path_TCLSH+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 case $TCLSH in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8189 ;;
8190 *)
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008197 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 +00008198 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202done
8203done
8204IFS=$as_save_IFS
8205
8206 ;;
8207esac
8208fi
8209TCLSH=$ac_cv_path_TCLSH
8210if test -n "$TCLSH"; then
8211 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8212echo "${ECHO_T}$TCLSH" >&6; }
8213else
8214 { echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6; }
8216fi
8217
8218
8219 test -n "$TCLSH" && break
8220done
8221
8222 if test x"${TCLSH}" = x ; then
8223 ac_cv_path_tclsh='';
8224 else
8225 ac_cv_path_tclsh="${TCLSH}";
8226 fi
8227else
8228 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8229echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8230 TCLSH="${ac_cv_path_tclsh}"
8231
8232fi
8233
8234fi
8235
8236# Extract the first word of "zip", so it can be a program name with args.
8237set dummy zip; ac_word=$2
8238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8240if test "${ac_cv_path_ZIP+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242else
8243 case $ZIP in
8244 [\\/]* | ?:[\\/]*)
8245 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8246 ;;
8247 *)
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008254 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 +00008255 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8258 fi
8259done
8260done
8261IFS=$as_save_IFS
8262
Reid Spencera773bd52006-08-04 18:18:08 +00008263 ;;
8264esac
8265fi
8266ZIP=$ac_cv_path_ZIP
8267if test -n "$ZIP"; then
8268 { echo "$as_me:$LINENO: result: $ZIP" >&5
8269echo "${ECHO_T}$ZIP" >&6; }
8270else
8271 { echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6; }
8273fi
8274
8275
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008276for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008277do
8278 # Extract the first word of "$ac_prog", so it can be a program name with args.
8279set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282if test "${ac_cv_path_OCAMLC+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285 case $OCAMLC in
8286 [\\/]* | ?:[\\/]*)
8287 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8288 ;;
8289 *)
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008296 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 +00008297 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301done
8302done
8303IFS=$as_save_IFS
8304
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008305 ;;
8306esac
8307fi
8308OCAMLC=$ac_cv_path_OCAMLC
8309if test -n "$OCAMLC"; then
8310 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8311echo "${ECHO_T}$OCAMLC" >&6; }
8312else
8313 { echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6; }
8315fi
8316
8317
Gordon Henriksene7072162008-03-07 18:20:01 +00008318 test -n "$OCAMLC" && break
8319done
8320
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008321for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008322do
8323 # Extract the first word of "$ac_prog", so it can be a program name with args.
8324set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8327if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329else
8330 case $OCAMLOPT in
8331 [\\/]* | ?:[\\/]*)
8332 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8333 ;;
8334 *)
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008341 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 +00008342 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346done
8347done
8348IFS=$as_save_IFS
8349
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008350 ;;
8351esac
8352fi
8353OCAMLOPT=$ac_cv_path_OCAMLOPT
8354if test -n "$OCAMLOPT"; then
8355 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8356echo "${ECHO_T}$OCAMLOPT" >&6; }
8357else
8358 { echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6; }
8360fi
8361
8362
Gordon Henriksene7072162008-03-07 18:20:01 +00008363 test -n "$OCAMLOPT" && break
8364done
8365
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008366for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008367do
8368 # Extract the first word of "$ac_prog", so it can be a program name with args.
8369set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8372if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375 case $OCAMLDEP in
8376 [\\/]* | ?:[\\/]*)
8377 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8378 ;;
8379 *)
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381for as_dir in $PATH
8382do
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008386 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 +00008387 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8390 fi
8391done
8392done
8393IFS=$as_save_IFS
8394
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008395 ;;
8396esac
8397fi
8398OCAMLDEP=$ac_cv_path_OCAMLDEP
8399if test -n "$OCAMLDEP"; then
8400 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8401echo "${ECHO_T}$OCAMLDEP" >&6; }
8402else
8403 { echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6; }
8405fi
8406
8407
Gordon Henriksene7072162008-03-07 18:20:01 +00008408 test -n "$OCAMLDEP" && break
8409done
8410
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008411for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008412do
8413 # Extract the first word of "$ac_prog", so it can be a program name with args.
8414set dummy $ac_prog; ac_word=$2
8415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8417if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420 case $OCAMLDOC in
8421 [\\/]* | ?:[\\/]*)
8422 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8423 ;;
8424 *)
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008431 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 +00008432 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2
8435 fi
8436done
8437done
8438IFS=$as_save_IFS
8439
8440 ;;
8441esac
8442fi
8443OCAMLDOC=$ac_cv_path_OCAMLDOC
8444if test -n "$OCAMLDOC"; then
8445 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8446echo "${ECHO_T}$OCAMLDOC" >&6; }
8447else
8448 { echo "$as_me:$LINENO: result: no" >&5
8449echo "${ECHO_T}no" >&6; }
8450fi
8451
8452
8453 test -n "$OCAMLDOC" && break
8454done
8455
Torok Edwincc499a42008-10-22 09:56:27 +00008456for ac_prog in gas as
8457do
8458 # Extract the first word of "$ac_prog", so it can be a program name with args.
8459set dummy $ac_prog; ac_word=$2
8460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462if test "${ac_cv_path_GAS+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465 case $GAS in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8468 ;;
8469 *)
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008476 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 +00008477 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8480 fi
8481done
8482done
8483IFS=$as_save_IFS
8484
8485 ;;
8486esac
8487fi
8488GAS=$ac_cv_path_GAS
8489if test -n "$GAS"; then
8490 { echo "$as_me:$LINENO: result: $GAS" >&5
8491echo "${ECHO_T}$GAS" >&6; }
8492else
8493 { echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6; }
8495fi
8496
8497
8498 test -n "$GAS" && break
8499done
8500
Reid Spencera773bd52006-08-04 18:18:08 +00008501
8502{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8503echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8504if test "${llvm_cv_link_use_r+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507 ac_ext=c
8508ac_cpp='$CPP $CPPFLAGS'
8509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8511ac_compiler_gnu=$ac_cv_c_compiler_gnu
8512
8513 oldcflags="$CFLAGS"
8514 CFLAGS="$CFLAGS -Wl,-R."
8515 cat >conftest.$ac_ext <<_ACEOF
8516/* confdefs.h. */
8517_ACEOF
8518cat confdefs.h >>conftest.$ac_ext
8519cat >>conftest.$ac_ext <<_ACEOF
8520/* end confdefs.h. */
8521
8522int
8523main ()
8524{
8525int main() { return 0; }
8526 ;
8527 return 0;
8528}
8529_ACEOF
8530rm -f conftest.$ac_objext conftest$ac_exeext
8531if { (ac_try="$ac_link"
8532case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535esac
8536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (case "(($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_try") 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008564 llvm_cv_link_use_r=yes
8565else
8566 echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 llvm_cv_link_use_r=no
8570fi
8571
Bill Wendlingebcceee2009-04-18 11:20:33 +00008572rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008573 conftest$ac_exeext conftest.$ac_ext
8574 CFLAGS="$oldcflags"
8575 ac_ext=c
8576ac_cpp='$CPP $CPPFLAGS'
8577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581
8582fi
8583{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8584echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8585if test "$llvm_cv_link_use_r" = yes ; then
8586
8587cat >>confdefs.h <<\_ACEOF
8588#define HAVE_LINK_R 1
8589_ACEOF
8590
8591 fi
8592
8593
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008594{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8595echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8596if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599 ac_ext=c
8600ac_cpp='$CPP $CPPFLAGS'
8601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603ac_compiler_gnu=$ac_cv_c_compiler_gnu
8604
8605 oldcflags="$CFLAGS"
8606 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8607 cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h. */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h. */
8613
8614int
8615main ()
8616{
8617int main() { return 0; }
8618 ;
8619 return 0;
8620}
8621_ACEOF
8622rm -f conftest.$ac_objext conftest$ac_exeext
8623if { (ac_try="$ac_link"
8624case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627esac
8628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_link") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
8651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008656 llvm_cv_link_use_export_dynamic=yes
8657else
8658 echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 llvm_cv_link_use_export_dynamic=no
8662fi
8663
Bill Wendlingebcceee2009-04-18 11:20:33 +00008664rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008665 conftest$ac_exeext conftest.$ac_ext
8666 CFLAGS="$oldcflags"
8667 ac_ext=c
8668ac_cpp='$CPP $CPPFLAGS'
8669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671ac_compiler_gnu=$ac_cv_c_compiler_gnu
8672
8673
8674fi
8675{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8676echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8677if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8678
8679cat >>confdefs.h <<\_ACEOF
8680#define HAVE_LINK_EXPORT_DYNAMIC 1
8681_ACEOF
8682
8683 fi
8684
8685
Reid Spencera773bd52006-08-04 18:18:08 +00008686
8687
8688{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8689echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8690if test "${ac_cv_c_const+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692else
8693 cat >conftest.$ac_ext <<_ACEOF
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699
8700int
8701main ()
8702{
8703/* FIXME: Include the comments suggested by Paul. */
8704#ifndef __cplusplus
8705 /* Ultrix mips cc rejects this. */
8706 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008707 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008708 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008709 char const *const *ccp;
8710 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008711 /* NEC SVR4.0.2 mips cc rejects this. */
8712 struct point {int x, y;};
8713 static struct point const zero = {0,0};
8714 /* AIX XL C 1.02.0.0 rejects this.
8715 It does not let you subtract one const X* pointer from another in
8716 an arm of an if-expression whose if-part is not a constant
8717 expression */
8718 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008719 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008720 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008721 ++ccp;
8722 p = (char**) ccp;
8723 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008724 { /* SCO 3.2v4 cc rejects this. */
8725 char *t;
8726 char const *s = 0 ? (char *) 0 : (char const *) 0;
8727
8728 *t++ = 0;
8729 if (s) return 0;
8730 }
8731 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8732 int x[] = {25, 17};
8733 const int *foo = &x[0];
8734 ++foo;
8735 }
8736 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8737 typedef const int *iptr;
8738 iptr p = 0;
8739 ++p;
8740 }
8741 { /* AIX XL C 1.02.0.0 rejects this saying
8742 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8743 struct s { int j; const int *ap[3]; };
8744 struct s *b; b->j = 5;
8745 }
8746 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8747 const int foo = 10;
8748 if (!foo) return 0;
8749 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008750 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008751#endif
8752
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext
8758if { (ac_try="$ac_compile"
8759case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762esac
8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_compile") 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8775esac
8776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_try") 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785esac
8786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_try") 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008791 ac_cv_c_const=yes
8792else
8793 echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_cv_c_const=no
8797fi
8798
8799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800fi
8801{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8802echo "${ECHO_T}$ac_cv_c_const" >&6; }
8803if test $ac_cv_c_const = no; then
8804
8805cat >>confdefs.h <<\_ACEOF
8806#define const
8807_ACEOF
8808
8809fi
8810
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008811
8812
8813
8814
8815
8816ac_header_dirent=no
8817for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8818 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008819{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8820echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823else
8824 cat >conftest.$ac_ext <<_ACEOF
8825/* confdefs.h. */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h. */
8830#include <sys/types.h>
8831#include <$ac_hdr>
8832
8833int
8834main ()
8835{
8836if ((DIR *) 0)
8837return 0;
8838 ;
8839 return 0;
8840}
8841_ACEOF
8842rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008843if { (ac_try="$ac_compile"
8844case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847esac
8848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870esac
8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008876 eval "$as_ac_Header=yes"
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
Reid Spencera773bd52006-08-04 18:18:08 +00008881 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008882fi
Reid Spencera773bd52006-08-04 18:18:08 +00008883
8884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008885fi
Reid Spencera773bd52006-08-04 18:18:08 +00008886ac_res=`eval echo '${'$as_ac_Header'}'`
8887 { echo "$as_me:$LINENO: result: $ac_res" >&5
8888echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008889if test `eval echo '${'$as_ac_Header'}'` = yes; then
8890 cat >>confdefs.h <<_ACEOF
8891#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8892_ACEOF
8893
8894ac_header_dirent=$ac_hdr; break
8895fi
8896
8897done
8898# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8899if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008900 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8901echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008902if test "${ac_cv_search_opendir+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008906cat >conftest.$ac_ext <<_ACEOF
8907/* confdefs.h. */
8908_ACEOF
8909cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h. */
8912
Reid Spencera773bd52006-08-04 18:18:08 +00008913/* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008916#ifdef __cplusplus
8917extern "C"
8918#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008919char opendir ();
8920int
8921main ()
8922{
Reid Spencera773bd52006-08-04 18:18:08 +00008923return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008924 ;
8925 return 0;
8926}
8927_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008928for ac_lib in '' dir; do
8929 if test -z "$ac_lib"; then
8930 ac_res="none required"
8931 else
8932 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008934 fi
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936if { (ac_try="$ac_link"
8937case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940esac
8941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8950 { (case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953esac
8954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_try") 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_try") 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008969 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008970else
8971 echo "$as_me: failed program was:" >&5
8972sed 's/^/| /' conftest.$ac_ext >&5
8973
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008974
8975fi
8976
Bill Wendlingebcceee2009-04-18 11:20:33 +00008977rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008978 conftest$ac_exeext
8979 if test "${ac_cv_search_opendir+set}" = set; then
8980 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008981fi
John Criswell7a73b802003-06-30 21:59:07 +00008982done
Reid Spencera773bd52006-08-04 18:18:08 +00008983if test "${ac_cv_search_opendir+set}" = set; then
8984 :
8985else
8986 ac_cv_search_opendir=no
8987fi
8988rm conftest.$ac_ext
8989LIBS=$ac_func_search_save_LIBS
8990fi
8991{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8992echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8993ac_res=$ac_cv_search_opendir
8994if test "$ac_res" != no; then
8995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008996
Reid Spencera773bd52006-08-04 18:18:08 +00008997fi
8998
8999else
9000 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9001echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9002if test "${ac_cv_search_opendir+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004else
9005 ac_func_search_save_LIBS=$LIBS
9006cat >conftest.$ac_ext <<_ACEOF
9007/* confdefs.h. */
9008_ACEOF
9009cat confdefs.h >>conftest.$ac_ext
9010cat >>conftest.$ac_ext <<_ACEOF
9011/* end confdefs.h. */
9012
9013/* Override any GCC internal prototype to avoid an error.
9014 Use char because int might match the return type of a GCC
9015 builtin and then its argument prototype would still apply. */
9016#ifdef __cplusplus
9017extern "C"
9018#endif
9019char opendir ();
9020int
9021main ()
9022{
9023return opendir ();
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028for ac_lib in '' x; do
9029 if test -z "$ac_lib"; then
9030 ac_res="none required"
9031 else
9032 ac_res=-l$ac_lib
9033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9034 fi
9035 rm -f conftest.$ac_objext conftest$ac_exeext
9036if { (ac_try="$ac_link"
9037case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9040esac
9041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_link") 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009048 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9050 { (case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053esac
9054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055 (eval "$ac_try") 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063esac
9064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009069 ac_cv_search_opendir=$ac_res
9070else
9071 echo "$as_me: failed program was:" >&5
9072sed 's/^/| /' conftest.$ac_ext >&5
9073
9074
9075fi
9076
Bill Wendlingebcceee2009-04-18 11:20:33 +00009077rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00009078 conftest$ac_exeext
9079 if test "${ac_cv_search_opendir+set}" = set; then
9080 break
9081fi
9082done
9083if test "${ac_cv_search_opendir+set}" = set; then
9084 :
9085else
9086 ac_cv_search_opendir=no
9087fi
9088rm conftest.$ac_ext
9089LIBS=$ac_func_search_save_LIBS
9090fi
9091{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9092echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9093ac_res=$ac_cv_search_opendir
9094if test "$ac_res" != no; then
9095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9096
9097fi
9098
9099fi
John Criswell7a73b802003-06-30 21:59:07 +00009100
9101
9102for ac_header in dlfcn.h
9103do
9104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00009105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00009109 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00009110fi
Reid Spencera773bd52006-08-04 18:18:08 +00009111ac_res=`eval echo '${'$as_ac_Header'}'`
9112 { echo "$as_me:$LINENO: result: $ac_res" >&5
9113echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00009114else
Brian Gaeke0a621332004-09-08 20:38:05 +00009115 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00009116{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009118cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009124$ac_includes_default
9125#include <$ac_header>
9126_ACEOF
9127rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00009128if { (ac_try="$ac_compile"
9129case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132esac
9133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009135 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142 { (case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145esac
9146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (case "(($ac_try" in
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9155esac
9156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_try") 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009161 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009162else
9163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009164sed 's/^/| /' conftest.$ac_ext >&5
9165
Reid Spencera773bd52006-08-04 18:18:08 +00009166 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009167fi
Reid Spencera773bd52006-08-04 18:18:08 +00009168
9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009172
9173# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009174{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009176cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009177/* confdefs.h. */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
9182#include <$ac_header>
9183_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009184if { (ac_try="$ac_cpp conftest.$ac_ext"
9185case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188esac
9189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009196 (exit $ac_status); } >/dev/null; then
9197 if test -s conftest.err; then
9198 ac_cpp_err=$ac_c_preproc_warn_flag
9199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9200 else
9201 ac_cpp_err=
9202 fi
9203else
9204 ac_cpp_err=yes
9205fi
9206if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009207 ac_header_preproc=yes
9208else
9209 echo "$as_me: failed program was:" >&5
9210sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 ac_header_preproc=no
9213fi
Reid Spencera773bd52006-08-04 18:18:08 +00009214
Brian Gaeke0a621332004-09-08 20:38:05 +00009215rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009216{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9217echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009218
9219# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9221 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9226 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009227 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009228 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009241 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009242## ----------------------------------- ##
9243## Report this to llvmbugs@cs.uiuc.edu ##
9244## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009245_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009246 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009247 ;;
9248esac
Reid Spencera773bd52006-08-04 18:18:08 +00009249{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009254 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009255fi
Reid Spencera773bd52006-08-04 18:18:08 +00009256ac_res=`eval echo '${'$as_ac_Header'}'`
9257 { echo "$as_me:$LINENO: result: $ac_res" >&5
9258echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009259
9260fi
John Criswell7a73b802003-06-30 21:59:07 +00009261if test `eval echo '${'$as_ac_Header'}'` = yes; then
9262 cat >>confdefs.h <<_ACEOF
9263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264_ACEOF
9265
9266fi
9267
9268done
9269
Reid Spencera773bd52006-08-04 18:18:08 +00009270# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009271if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009272 enableval=$enable_ltdl_install;
9273fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009274
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275
Bill Wendlingebcceee2009-04-18 11:20:33 +00009276
9277
9278if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279 INSTALL_LTDL_TRUE=
9280 INSTALL_LTDL_FALSE='#'
9281else
9282 INSTALL_LTDL_TRUE='#'
9283 INSTALL_LTDL_FALSE=
9284fi
9285
Bill Wendlingebcceee2009-04-18 11:20:33 +00009286
9287
9288if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009289 CONVENIENCE_LTDL_TRUE=
9290 CONVENIENCE_LTDL_FALSE='#'
9291else
9292 CONVENIENCE_LTDL_TRUE='#'
9293 CONVENIENCE_LTDL_FALSE=
9294fi
9295
9296
Reid Spencera773bd52006-08-04 18:18:08 +00009297{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9298echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299library_names_spec=
9300libname_spec='lib$name'
9301soname_spec=
9302shrext_cmds=".so"
9303postinstall_cmds=
9304postuninstall_cmds=
9305finish_cmds=
9306finish_eval=
9307shlibpath_var=
9308shlibpath_overrides_runpath=unknown
9309version_type=none
9310dynamic_linker="$host_os ld.so"
9311sys_lib_dlsearch_path_spec="/lib /usr/lib"
9312if test "$GCC" = yes; then
9313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9314 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9315 # if the path contains ";" then we assume it to be the separator
9316 # otherwise default to the standard path separator (i.e. ":") - it is
9317 # assumed that no part of a normal pathname contains ";" but that should
9318 # okay in the real world where ";" in dirpaths is itself problematic.
9319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9320 else
9321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9322 fi
9323else
9324 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9325fi
9326need_lib_prefix=unknown
9327hardcode_into_libs=no
9328
9329# when you set need_version to no, make sure it does not cause -set_version
9330# flags to be left without arguments
9331need_version=unknown
9332
9333case $host_os in
9334aix3*)
9335 version_type=linux
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9337 shlibpath_var=LIBPATH
9338
9339 # AIX 3 has no versioning support, so we append a major version to the name.
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 ;;
9342
9343aix4* | aix5*)
9344 version_type=linux
9345 need_lib_prefix=no
9346 need_version=no
9347 hardcode_into_libs=yes
9348 if test "$host_cpu" = ia64; then
9349 # AIX 5 supports IA64
9350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 else
9353 # With GCC up to 2.95.x, collect2 would create an import file
9354 # for dependence libraries. The import file would start with
9355 # the line `#! .'. This would cause the generated library to
9356 # depend on `.', always an invalid library. This was fixed in
9357 # development snapshots of GCC prior to 3.0.
9358 case $host_os in
9359 aix4 | aix4.[01] | aix4.[01].*)
9360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9361 echo ' yes '
9362 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9363 :
9364 else
9365 can_build_shared=no
9366 fi
9367 ;;
9368 esac
9369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9370 # soname into executable. Probably we can add versioning support to
9371 # collect2, so additional links can be useful in future.
9372 if test "$aix_use_runtimelinking" = yes; then
9373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9374 # instead of lib<name>.a to let people know that these are not
9375 # typical AIX shared libraries.
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 else
9378 # We preserve .a as extension for shared libraries through AIX4.2
9379 # and later when we are not doing run time linking.
9380 library_names_spec='${libname}${release}.a $libname.a'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 fi
9383 shlibpath_var=LIBPATH
9384 fi
9385 ;;
9386
9387amigaos*)
9388 library_names_spec='$libname.ixlibrary $libname.a'
9389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9390 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'
9391 ;;
9392
9393beos*)
9394 library_names_spec='${libname}${shared_ext}'
9395 dynamic_linker="$host_os ld.so"
9396 shlibpath_var=LIBRARY_PATH
9397 ;;
9398
9399bsdi[45]*)
9400 version_type=linux
9401 need_version=no
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9408 # the default ld.so.conf also contains /usr/contrib/lib and
9409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9410 # libtool to hard-code these into programs
9411 ;;
9412
9413cygwin* | mingw* | pw32*)
9414 version_type=windows
9415 shrext_cmds=".dll"
9416 need_version=no
9417 need_lib_prefix=no
9418
9419 case $GCC,$host_os in
9420 yes,cygwin* | yes,mingw* | yes,pw32*)
9421 library_names_spec='$libname.dll.a'
9422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9423 postinstall_cmds='base_file=`basename \${file}`~
9424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9425 dldir=$destdir/`dirname \$dlpath`~
9426 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009427 $install_prog $dir/$dlname \$dldir/$dlname~
9428 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9430 dlpath=$dir/\$dldll~
9431 $rm \$dlpath'
9432 shlibpath_overrides_runpath=yes
9433
9434 case $host_os in
9435 cygwin*)
9436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9438 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9439 ;;
9440 mingw*)
9441 # MinGW DLLs use traditional 'lib' prefix
9442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9444 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9445 # It is most probably a Windows format PATH printed by
9446 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9447 # path with ; separators, and with drive letters. We can handle the
9448 # drive letters (cygwin fileutils understands them), so leave them,
9449 # especially as we might pass files found there to a mingw objdump,
9450 # which wouldn't understand a cygwinified path. Ahh.
9451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9452 else
9453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9454 fi
9455 ;;
9456 pw32*)
9457 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009458 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 +00009459 ;;
9460 esac
9461 ;;
9462
9463 *)
9464 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9465 ;;
9466 esac
9467 dynamic_linker='Win32 ld.exe'
9468 # FIXME: first we should search . and the directory the executable is in
9469 shlibpath_var=PATH
9470 ;;
9471
9472darwin* | rhapsody*)
9473 dynamic_linker="$host_os dyld"
9474 version_type=darwin
9475 need_lib_prefix=no
9476 need_version=no
9477 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9478 soname_spec='${libname}${release}${major}$shared_ext'
9479 shlibpath_overrides_runpath=yes
9480 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009481 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9483 if test "$GCC" = yes; then
9484 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"`
9485 else
9486 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9487 fi
9488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9489 ;;
9490
9491dgux*)
9492 version_type=linux
9493 need_lib_prefix=no
9494 need_version=no
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 ;;
9499
9500freebsd1*)
9501 dynamic_linker=no
9502 ;;
9503
9504kfreebsd*-gnu)
9505 version_type=linux
9506 need_lib_prefix=no
9507 need_version=no
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 shlibpath_overrides_runpath=no
9512 hardcode_into_libs=yes
9513 dynamic_linker='GNU ld.so'
9514 ;;
9515
Reid Spencera773bd52006-08-04 18:18:08 +00009516freebsd* | dragonfly*)
9517 # DragonFly does not have aout. When/if they implement a new
9518 # versioning mechanism, adjust this.
9519 if test -x /usr/bin/objformat; then
9520 objformat=`/usr/bin/objformat`
9521 else
9522 case $host_os in
9523 freebsd[123]*) objformat=aout ;;
9524 *) objformat=elf ;;
9525 esac
9526 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527 version_type=freebsd-$objformat
9528 case $version_type in
9529 freebsd-elf*)
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9531 need_version=no
9532 need_lib_prefix=no
9533 ;;
9534 freebsd-*)
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9536 need_version=yes
9537 ;;
9538 esac
9539 shlibpath_var=LD_LIBRARY_PATH
9540 case $host_os in
9541 freebsd2*)
9542 shlibpath_overrides_runpath=yes
9543 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009544 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545 shlibpath_overrides_runpath=yes
9546 hardcode_into_libs=yes
9547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550 shlibpath_overrides_runpath=no
9551 hardcode_into_libs=yes
9552 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009553 freebsd*) # from 4.6 on
9554 shlibpath_overrides_runpath=yes
9555 hardcode_into_libs=yes
9556 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009557 esac
9558 ;;
9559
9560gnu*)
9561 version_type=linux
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 shlibpath_var=LD_LIBRARY_PATH
9567 hardcode_into_libs=yes
9568 ;;
9569
9570hpux9* | hpux10* | hpux11*)
9571 # Give a soname corresponding to the major version so that dld.sl refuses to
9572 # link against other versions.
9573 version_type=sunos
9574 need_lib_prefix=no
9575 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009576 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577 ia64*)
9578 shrext_cmds='.so'
9579 hardcode_into_libs=yes
9580 dynamic_linker="$host_os dld.so"
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 if test "X$HPUX_IA64_MODE" = X32; then
9586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9587 else
9588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9589 fi
9590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9591 ;;
9592 hppa*64*)
9593 shrext_cmds='.sl'
9594 hardcode_into_libs=yes
9595 dynamic_linker="$host_os dld.sl"
9596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9602 ;;
9603 *)
9604 shrext_cmds='.sl'
9605 dynamic_linker="$host_os dld.sl"
9606 shlibpath_var=SHLIB_PATH
9607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9610 ;;
9611 esac
9612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9613 postinstall_cmds='chmod 555 $lib'
9614 ;;
9615
Reid Spencera773bd52006-08-04 18:18:08 +00009616interix3*)
9617 version_type=linux
9618 need_lib_prefix=no
9619 need_version=no
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 shlibpath_overrides_runpath=no
9625 hardcode_into_libs=yes
9626 ;;
9627
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628irix5* | irix6* | nonstopux*)
9629 case $host_os in
9630 nonstopux*) version_type=nonstopux ;;
9631 *)
9632 if test "$lt_cv_prog_gnu_ld" = yes; then
9633 version_type=linux
9634 else
9635 version_type=irix
9636 fi ;;
9637 esac
9638 need_lib_prefix=no
9639 need_version=no
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9642 case $host_os in
9643 irix5* | nonstopux*)
9644 libsuff= shlibsuff=
9645 ;;
9646 *)
9647 case $LD in # libtool.m4 will add one of these switches to LD
9648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9649 libsuff= shlibsuff= libmagic=32-bit;;
9650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9651 libsuff=32 shlibsuff=N32 libmagic=N32;;
9652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9654 *) libsuff= shlibsuff= libmagic=never-match;;
9655 esac
9656 ;;
9657 esac
9658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9659 shlibpath_overrides_runpath=no
9660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9662 hardcode_into_libs=yes
9663 ;;
9664
9665# No shared lib support for Linux oldld, aout, or coff.
9666linux*oldld* | linux*aout* | linux*coff*)
9667 dynamic_linker=no
9668 ;;
9669
9670# This must be Linux ELF.
9671linux*)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 shlibpath_overrides_runpath=no
9680 # This implies no fast_install, which is unacceptable.
9681 # Some rework will be needed to allow for fast_install
9682 # before this can be enabled.
9683 hardcode_into_libs=yes
9684
9685 # Append ld.so.conf contents to the search path
9686 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009687 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 +00009688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9689 fi
9690
9691 # We used to test for /lib/ld.so.1 and disable shared libraries on
9692 # powerpc, because MkLinux only supported shared libraries with the
9693 # GNU dynamic linker. Since this was broken with cross compilers,
9694 # most powerpc-linux boxes support dynamic linking these days and
9695 # people can always --disable-shared, the test was removed, and we
9696 # assume the GNU/Linux dynamic linker is in use.
9697 dynamic_linker='GNU/Linux ld.so'
9698 ;;
9699
9700knetbsd*-gnu)
9701 version_type=linux
9702 need_lib_prefix=no
9703 need_version=no
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=no
9708 hardcode_into_libs=yes
9709 dynamic_linker='GNU ld.so'
9710 ;;
9711
9712netbsd*)
9713 version_type=sunos
9714 need_lib_prefix=no
9715 need_version=no
9716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9719 dynamic_linker='NetBSD (a.out) ld.so'
9720 else
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 dynamic_linker='NetBSD ld.elf_so'
9724 fi
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9727 hardcode_into_libs=yes
9728 ;;
9729
9730newsos6)
9731 version_type=linux
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 shlibpath_overrides_runpath=yes
9735 ;;
9736
9737nto-qnx*)
9738 version_type=linux
9739 need_lib_prefix=no
9740 need_version=no
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 shlibpath_var=LD_LIBRARY_PATH
9744 shlibpath_overrides_runpath=yes
9745 ;;
9746
9747openbsd*)
9748 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009749 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9752 case $host_os in
9753 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9754 *) need_version=no ;;
9755 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9760 case $host_os in
9761 openbsd2.[89] | openbsd2.[89].*)
9762 shlibpath_overrides_runpath=no
9763 ;;
9764 *)
9765 shlibpath_overrides_runpath=yes
9766 ;;
9767 esac
9768 else
9769 shlibpath_overrides_runpath=yes
9770 fi
9771 ;;
9772
9773os2*)
9774 libname_spec='$name'
9775 shrext_cmds=".dll"
9776 need_lib_prefix=no
9777 library_names_spec='$libname${shared_ext} $libname.a'
9778 dynamic_linker='OS/2 ld.exe'
9779 shlibpath_var=LIBPATH
9780 ;;
9781
9782osf3* | osf4* | osf5*)
9783 version_type=osf
9784 need_lib_prefix=no
9785 need_version=no
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9790 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9791 ;;
9792
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793solaris*)
9794 version_type=linux
9795 need_lib_prefix=no
9796 need_version=no
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 shlibpath_overrides_runpath=yes
9801 hardcode_into_libs=yes
9802 # ldd complains unless libraries are executable
9803 postinstall_cmds='chmod +x $lib'
9804 ;;
9805
9806sunos4*)
9807 version_type=sunos
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=yes
9812 if test "$with_gnu_ld" = yes; then
9813 need_lib_prefix=no
9814 fi
9815 need_version=yes
9816 ;;
9817
Reid Spencera773bd52006-08-04 18:18:08 +00009818sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819 version_type=linux
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 case $host_vendor in
9824 sni)
9825 shlibpath_overrides_runpath=no
9826 need_lib_prefix=no
9827 export_dynamic_flag_spec='${wl}-Blargedynsym'
9828 runpath_var=LD_RUN_PATH
9829 ;;
9830 siemens)
9831 need_lib_prefix=no
9832 ;;
9833 motorola)
9834 need_lib_prefix=no
9835 need_version=no
9836 shlibpath_overrides_runpath=no
9837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9838 ;;
9839 esac
9840 ;;
9841
9842sysv4*MP*)
9843 if test -d /usr/nec ;then
9844 version_type=linux
9845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9846 soname_spec='$libname${shared_ext}.$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 fi
9849 ;;
9850
Reid Spencera773bd52006-08-04 18:18:08 +00009851sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9852 version_type=freebsd-elf
9853 need_lib_prefix=no
9854 need_version=no
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 hardcode_into_libs=yes
9859 if test "$with_gnu_ld" = yes; then
9860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9861 shlibpath_overrides_runpath=no
9862 else
9863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9864 shlibpath_overrides_runpath=yes
9865 case $host_os in
9866 sco3.2v5*)
9867 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9868 ;;
9869 esac
9870 fi
9871 sys_lib_dlsearch_path_spec='/usr/lib'
9872 ;;
9873
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874uts4*)
9875 version_type=linux
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 ;;
9880
9881*)
9882 dynamic_linker=no
9883 ;;
9884esac
Reid Spencera773bd52006-08-04 18:18:08 +00009885{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9886echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887test "$dynamic_linker" = no && can_build_shared=no
9888
Reid Spencera773bd52006-08-04 18:18:08 +00009889variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9890if test "$GCC" = yes; then
9891 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9892fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893
Reid Spencera773bd52006-08-04 18:18:08 +00009894
9895{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9896echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897if test "${libltdl_cv_shlibext+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899else
9900
9901module=yes
9902eval libltdl_cv_shlibext=$shrext_cmds
9903
9904fi
Reid Spencera773bd52006-08-04 18:18:08 +00009905{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9906echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907if test -n "$libltdl_cv_shlibext"; then
9908
9909cat >>confdefs.h <<_ACEOF
9910#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9911_ACEOF
9912
9913fi
9914
9915
Reid Spencera773bd52006-08-04 18:18:08 +00009916{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9917echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918if test "${libltdl_cv_shlibpath_var+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920else
9921 libltdl_cv_shlibpath_var="$shlibpath_var"
9922fi
Reid Spencera773bd52006-08-04 18:18:08 +00009923{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9924echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925if test -n "$libltdl_cv_shlibpath_var"; then
9926
9927cat >>confdefs.h <<_ACEOF
9928#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9929_ACEOF
9930
9931fi
9932
9933
Reid Spencera773bd52006-08-04 18:18:08 +00009934{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9935echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936if test "${libltdl_cv_sys_search_path+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938else
9939 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9940fi
Reid Spencera773bd52006-08-04 18:18:08 +00009941{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9942echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943if test -n "$libltdl_cv_sys_search_path"; then
9944 sys_search_path=
9945 for dir in $libltdl_cv_sys_search_path; do
9946 if test -z "$sys_search_path"; then
9947 sys_search_path="$dir"
9948 else
9949 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9950 fi
9951 done
9952
9953cat >>confdefs.h <<_ACEOF
9954#define LTDL_SYSSEARCHPATH "$sys_search_path"
9955_ACEOF
9956
9957fi
9958
Reid Spencera773bd52006-08-04 18:18:08 +00009959{ echo "$as_me:$LINENO: checking for objdir" >&5
9960echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961if test "${libltdl_cv_objdir+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964 libltdl_cv_objdir="$objdir"
9965 if test -n "$objdir"; then
9966 :
9967 else
9968 rm -f .libs 2>/dev/null
9969 mkdir .libs 2>/dev/null
9970 if test -d .libs; then
9971 libltdl_cv_objdir=.libs
9972 else
9973 # MS-DOS does not allow filenames that begin with a dot.
9974 libltdl_cv_objdir=_libs
9975 fi
9976 rmdir .libs 2>/dev/null
9977 fi
9978
9979fi
Reid Spencera773bd52006-08-04 18:18:08 +00009980{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9981echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982
9983cat >>confdefs.h <<_ACEOF
9984#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9985_ACEOF
9986
9987
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988
9989
9990
9991
9992# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009993{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9994echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997else
9998
9999# These are sane defaults that work on at least a few old systems.
10000# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10001
10002# Character class describing NM global symbol codes.
10003symcode='[BCDEGRST]'
10004
10005# Regexp to match symbols that can be accessed directly from C.
10006sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10007
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008# Transform an extracted symbol line into a proper C declaration
10009lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10010
10011# Transform an extracted symbol line into symbol name and symbol address
10012lt_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'"
10013
10014# Define system-specific variables.
10015case $host_os in
10016aix*)
10017 symcode='[BCDT]'
10018 ;;
10019cygwin* | mingw* | pw32*)
10020 symcode='[ABCDGISTW]'
10021 ;;
10022hpux*) # Its linker distinguishes data from code symbols
10023 if test "$host_cpu" = ia64; then
10024 symcode='[ABCDEGRST]'
10025 fi
10026 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10027 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'"
10028 ;;
10029linux*)
10030 if test "$host_cpu" = ia64; then
10031 symcode='[ABCDGIRSTW]'
10032 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10033 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'"
10034 fi
10035 ;;
10036irix* | nonstopux*)
10037 symcode='[BCDEGRST]'
10038 ;;
10039osf*)
10040 symcode='[BCDEGQRST]'
10041 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010042solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043 symcode='[BDRT]'
10044 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010045sco3.2v5*)
10046 symcode='[DT]'
10047 ;;
10048sysv4.2uw2*)
10049 symcode='[DT]'
10050 ;;
10051sysv5* | sco5v6* | unixware* | OpenUNIX*)
10052 symcode='[ABDT]'
10053 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054sysv4)
10055 symcode='[DFNSTU]'
10056 ;;
10057esac
10058
10059# Handle CRLF in mingw tool chain
10060opt_cr=
10061case $build_os in
10062mingw*)
10063 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10064 ;;
10065esac
10066
10067# If we're using GNU nm, then use its standard symbol codes.
10068case `$NM -V 2>&1` in
10069*GNU* | *'with BFD'*)
10070 symcode='[ABCDGIRSTW]' ;;
10071esac
10072
10073# Try without a prefix undercore, then with it.
10074for ac_symprfx in "" "_"; do
10075
Reid Spencera773bd52006-08-04 18:18:08 +000010076 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10077 symxfrm="\\1 $ac_symprfx\\2 \\2"
10078
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010080 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 +000010081
10082 # Check to see that the pipe works correctly.
10083 pipe_works=no
10084
10085 rm -f conftest*
10086 cat > conftest.$ac_ext <<EOF
10087#ifdef __cplusplus
10088extern "C" {
10089#endif
10090char nm_test_var;
10091void nm_test_func(){}
10092#ifdef __cplusplus
10093}
10094#endif
10095int main(){nm_test_var='a';nm_test_func();return(0);}
10096EOF
10097
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; then
10103 # Now try to grab the symbols.
10104 nlist=conftest.nm
10105 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10106 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && test -s "$nlist"; then
10110 # Try sorting and uniquifying the output.
10111 if sort "$nlist" | uniq > "$nlist"T; then
10112 mv -f "$nlist"T "$nlist"
10113 else
10114 rm -f "$nlist"T
10115 fi
10116
10117 # Make sure that we snagged all the symbols we need.
10118 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10119 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10120 cat <<EOF > conftest.$ac_ext
10121#ifdef __cplusplus
10122extern "C" {
10123#endif
10124
10125EOF
10126 # Now generate the symbol file.
10127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10128
10129 cat <<EOF >> conftest.$ac_ext
10130#if defined (__STDC__) && __STDC__
10131# define lt_ptr_t void *
10132#else
10133# define lt_ptr_t char *
10134# define const
10135#endif
10136
10137/* The mapping between symbol names and symbols. */
10138const struct {
10139 const char *name;
10140 lt_ptr_t address;
10141}
10142lt_preloaded_symbols[] =
10143{
10144EOF
10145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10146 cat <<\EOF >> conftest.$ac_ext
10147 {0, (lt_ptr_t) 0}
10148};
10149
10150#ifdef __cplusplus
10151}
10152#endif
10153EOF
10154 # Now try linking the two files.
10155 mv conftest.$ac_objext conftstm.$ac_objext
10156 lt_save_LIBS="$LIBS"
10157 lt_save_CFLAGS="$CFLAGS"
10158 LIBS="conftstm.$ac_objext"
10159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161 (eval $ac_link) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10165 pipe_works=yes
10166 fi
10167 LIBS="$lt_save_LIBS"
10168 CFLAGS="$lt_save_CFLAGS"
10169 else
10170 echo "cannot find nm_test_func in $nlist" >&5
10171 fi
10172 else
10173 echo "cannot find nm_test_var in $nlist" >&5
10174 fi
10175 else
10176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10177 fi
10178 else
10179 echo "$progname: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10181 fi
10182 rm -f conftest* conftst*
10183
10184 # Do not use the global_symbol_pipe unless it works.
10185 if test "$pipe_works" = yes; then
10186 break
10187 else
10188 lt_cv_sys_global_symbol_pipe=
10189 fi
10190done
10191
10192fi
10193
10194if test -z "$lt_cv_sys_global_symbol_pipe"; then
10195 lt_cv_sys_global_symbol_to_cdecl=
10196fi
10197if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010198 { echo "$as_me:$LINENO: result: failed" >&5
10199echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200else
Reid Spencera773bd52006-08-04 18:18:08 +000010201 { echo "$as_me:$LINENO: result: ok" >&5
10202echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203fi
10204
10205
Reid Spencera773bd52006-08-04 18:18:08 +000010206{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10207echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10212 libltdl_cv_preloaded_symbols=yes
10213 else
10214 libltdl_cv_preloaded_symbols=no
10215 fi
10216
10217fi
Reid Spencera773bd52006-08-04 18:18:08 +000010218{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10219echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10221
10222cat >>confdefs.h <<\_ACEOF
10223#define HAVE_PRELOADED_SYMBOLS 1
10224_ACEOF
10225
10226fi
10227
10228LIBADD_DL=
10229
10230ac_ext=c
10231ac_cpp='$CPP $CPPFLAGS'
10232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235
10236
Reid Spencera773bd52006-08-04 18:18:08 +000010237{ echo "$as_me:$LINENO: checking for shl_load" >&5
10238echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239if test "${ac_cv_func_shl_load+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242 cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
10248/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10250#define shl_load innocuous_shl_load
10251
10252/* System header to define __stub macros and hopefully few prototypes,
10253 which can conflict with char shl_load (); below.
10254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10255 <limits.h> exists even on freestanding compilers. */
10256
10257#ifdef __STDC__
10258# include <limits.h>
10259#else
10260# include <assert.h>
10261#endif
10262
10263#undef shl_load
10264
Reid Spencera773bd52006-08-04 18:18:08 +000010265/* Override any GCC internal prototype to avoid an error.
10266 Use char because int might match the return type of a GCC
10267 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268#ifdef __cplusplus
10269extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271char shl_load ();
10272/* The GNU C library defines this for functions which it implements
10273 to always fail with ENOSYS. Some functions are actually named
10274 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010275#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277#endif
10278
10279int
10280main ()
10281{
Reid Spencera773bd52006-08-04 18:18:08 +000010282return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283 ;
10284 return 0;
10285}
10286_ACEOF
10287rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010288if { (ac_try="$ac_link"
10289case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292esac
10293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10302 { (case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
10306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_try") 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest$ac_exeext'
10312 { (case "(($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_try") 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321 ac_cv_func_shl_load=yes
10322else
10323 echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
Reid Spencera773bd52006-08-04 18:18:08 +000010326 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327fi
Reid Spencera773bd52006-08-04 18:18:08 +000010328
Bill Wendlingebcceee2009-04-18 11:20:33 +000010329rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330 conftest$ac_exeext conftest.$ac_ext
10331fi
Reid Spencera773bd52006-08-04 18:18:08 +000010332{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10333echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334if test $ac_cv_func_shl_load = yes; then
10335
10336cat >>confdefs.h <<\_ACEOF
10337#define HAVE_SHL_LOAD 1
10338_ACEOF
10339
10340else
Reid Spencera773bd52006-08-04 18:18:08 +000010341 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10342echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346 ac_check_lib_save_LIBS=$LIBS
10347LIBS="-ldld $LIBS"
10348cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h. */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h. */
10354
Reid Spencera773bd52006-08-04 18:18:08 +000010355/* Override any GCC internal prototype to avoid an error.
10356 Use char because int might match the return type of a GCC
10357 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358#ifdef __cplusplus
10359extern "C"
10360#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010361char shl_load ();
10362int
10363main ()
10364{
Reid Spencera773bd52006-08-04 18:18:08 +000010365return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366 ;
10367 return 0;
10368}
10369_ACEOF
10370rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010371if { (ac_try="$ac_link"
10372case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10375esac
10376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10385 { (case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388esac
10389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_try") 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest$ac_exeext'
10395 { (case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398esac
10399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_try") 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 ac_cv_lib_dld_shl_load=yes
10405else
10406 echo "$as_me: failed program was:" >&5
10407sed 's/^/| /' conftest.$ac_ext >&5
10408
Reid Spencera773bd52006-08-04 18:18:08 +000010409 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410fi
Reid Spencera773bd52006-08-04 18:18:08 +000010411
Bill Wendlingebcceee2009-04-18 11:20:33 +000010412rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413 conftest$ac_exeext conftest.$ac_ext
10414LIBS=$ac_check_lib_save_LIBS
10415fi
Reid Spencera773bd52006-08-04 18:18:08 +000010416{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10417echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418if test $ac_cv_lib_dld_shl_load = yes; then
10419
10420cat >>confdefs.h <<\_ACEOF
10421#define HAVE_SHL_LOAD 1
10422_ACEOF
10423
10424 LIBADD_DL="$LIBADD_DL -ldld"
10425else
Reid Spencera773bd52006-08-04 18:18:08 +000010426 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10427echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430else
10431 ac_check_lib_save_LIBS=$LIBS
10432LIBS="-ldl $LIBS"
10433cat >conftest.$ac_ext <<_ACEOF
10434/* confdefs.h. */
10435_ACEOF
10436cat confdefs.h >>conftest.$ac_ext
10437cat >>conftest.$ac_ext <<_ACEOF
10438/* end confdefs.h. */
10439
Reid Spencera773bd52006-08-04 18:18:08 +000010440/* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443#ifdef __cplusplus
10444extern "C"
10445#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446char dlopen ();
10447int
10448main ()
10449{
Reid Spencera773bd52006-08-04 18:18:08 +000010450return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 ;
10452 return 0;
10453}
10454_ACEOF
10455rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010456if { (ac_try="$ac_link"
10457case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460esac
10461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10470 { (case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_try") 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest$ac_exeext'
10480 { (case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483esac
10484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_try") 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010489 ac_cv_lib_dl_dlopen=yes
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
Reid Spencera773bd52006-08-04 18:18:08 +000010494 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495fi
Reid Spencera773bd52006-08-04 18:18:08 +000010496
Bill Wendlingebcceee2009-04-18 11:20:33 +000010497rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498 conftest$ac_exeext conftest.$ac_ext
10499LIBS=$ac_check_lib_save_LIBS
10500fi
Reid Spencera773bd52006-08-04 18:18:08 +000010501{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10502echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503if test $ac_cv_lib_dl_dlopen = yes; then
10504
10505cat >>confdefs.h <<\_ACEOF
10506#define HAVE_LIBDL 1
10507_ACEOF
10508
10509 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10510else
10511 cat >conftest.$ac_ext <<_ACEOF
10512/* confdefs.h. */
10513_ACEOF
10514cat confdefs.h >>conftest.$ac_ext
10515cat >>conftest.$ac_ext <<_ACEOF
10516/* end confdefs.h. */
10517#if HAVE_DLFCN_H
10518# include <dlfcn.h>
10519#endif
10520
10521int
10522main ()
10523{
10524dlopen(0, 0);
10525 ;
10526 return 0;
10527}
10528_ACEOF
10529rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010530if { (ac_try="$ac_link"
10531case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534esac
10535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544 { (case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547esac
10548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_try") 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557esac
10558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_try") 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563
10564cat >>confdefs.h <<\_ACEOF
10565#define HAVE_LIBDL 1
10566_ACEOF
10567 libltdl_cv_func_dlopen="yes"
10568else
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
Reid Spencera773bd52006-08-04 18:18:08 +000010572 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10573echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576else
10577 ac_check_lib_save_LIBS=$LIBS
10578LIBS="-lsvld $LIBS"
10579cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585
Reid Spencera773bd52006-08-04 18:18:08 +000010586/* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589#ifdef __cplusplus
10590extern "C"
10591#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592char dlopen ();
10593int
10594main ()
10595{
Reid Spencera773bd52006-08-04 18:18:08 +000010596return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597 ;
10598 return 0;
10599}
10600_ACEOF
10601rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010602if { (ac_try="$ac_link"
10603case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635 ac_cv_lib_svld_dlopen=yes
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
Reid Spencera773bd52006-08-04 18:18:08 +000010640 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641fi
Reid Spencera773bd52006-08-04 18:18:08 +000010642
Bill Wendlingebcceee2009-04-18 11:20:33 +000010643rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644 conftest$ac_exeext conftest.$ac_ext
10645LIBS=$ac_check_lib_save_LIBS
10646fi
Reid Spencera773bd52006-08-04 18:18:08 +000010647{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10648echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649if test $ac_cv_lib_svld_dlopen = yes; then
10650
10651cat >>confdefs.h <<\_ACEOF
10652#define HAVE_LIBDL 1
10653_ACEOF
10654
10655 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10656else
Reid Spencera773bd52006-08-04 18:18:08 +000010657 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10658echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661else
10662 ac_check_lib_save_LIBS=$LIBS
10663LIBS="-ldld $LIBS"
10664cat >conftest.$ac_ext <<_ACEOF
10665/* confdefs.h. */
10666_ACEOF
10667cat confdefs.h >>conftest.$ac_ext
10668cat >>conftest.$ac_ext <<_ACEOF
10669/* end confdefs.h. */
10670
Reid Spencera773bd52006-08-04 18:18:08 +000010671/* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674#ifdef __cplusplus
10675extern "C"
10676#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677char dld_link ();
10678int
10679main ()
10680{
Reid Spencera773bd52006-08-04 18:18:08 +000010681return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 ;
10683 return 0;
10684}
10685_ACEOF
10686rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010687if { (ac_try="$ac_link"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704esac
10705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720 ac_cv_lib_dld_dld_link=yes
10721else
10722 echo "$as_me: failed program was:" >&5
10723sed 's/^/| /' conftest.$ac_ext >&5
10724
Reid Spencera773bd52006-08-04 18:18:08 +000010725 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726fi
Reid Spencera773bd52006-08-04 18:18:08 +000010727
Bill Wendlingebcceee2009-04-18 11:20:33 +000010728rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729 conftest$ac_exeext conftest.$ac_ext
10730LIBS=$ac_check_lib_save_LIBS
10731fi
Reid Spencera773bd52006-08-04 18:18:08 +000010732{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10733echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734if test $ac_cv_lib_dld_dld_link = yes; then
10735
10736cat >>confdefs.h <<\_ACEOF
10737#define HAVE_DLD 1
10738_ACEOF
10739
10740 LIBADD_DL="$LIBADD_DL -ldld"
10741else
Reid Spencera773bd52006-08-04 18:18:08 +000010742 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10743echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746else
10747 cat >conftest.$ac_ext <<_ACEOF
10748/* confdefs.h. */
10749_ACEOF
10750cat confdefs.h >>conftest.$ac_ext
10751cat >>conftest.$ac_ext <<_ACEOF
10752/* end confdefs.h. */
10753/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10755#define _dyld_func_lookup innocuous__dyld_func_lookup
10756
10757/* System header to define __stub macros and hopefully few prototypes,
10758 which can conflict with char _dyld_func_lookup (); below.
10759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10760 <limits.h> exists even on freestanding compilers. */
10761
10762#ifdef __STDC__
10763# include <limits.h>
10764#else
10765# include <assert.h>
10766#endif
10767
10768#undef _dyld_func_lookup
10769
Reid Spencera773bd52006-08-04 18:18:08 +000010770/* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773#ifdef __cplusplus
10774extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776char _dyld_func_lookup ();
10777/* The GNU C library defines this for functions which it implements
10778 to always fail with ENOSYS. Some functions are actually named
10779 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010780#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010782#endif
10783
10784int
10785main ()
10786{
Reid Spencera773bd52006-08-04 18:18:08 +000010787return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788 ;
10789 return 0;
10790}
10791_ACEOF
10792rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010793if { (ac_try="$ac_link"
10794case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797esac
10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826 ac_cv_func__dyld_func_lookup=yes
10827else
10828 echo "$as_me: failed program was:" >&5
10829sed 's/^/| /' conftest.$ac_ext >&5
10830
Reid Spencera773bd52006-08-04 18:18:08 +000010831 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832fi
Reid Spencera773bd52006-08-04 18:18:08 +000010833
Bill Wendlingebcceee2009-04-18 11:20:33 +000010834rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835 conftest$ac_exeext conftest.$ac_ext
10836fi
Reid Spencera773bd52006-08-04 18:18:08 +000010837{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10838echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839if test $ac_cv_func__dyld_func_lookup = yes; then
10840
10841cat >>confdefs.h <<\_ACEOF
10842#define HAVE_DYLD 1
10843_ACEOF
10844
10845fi
10846
10847
10848fi
10849
10850
10851fi
10852
10853
10854fi
Reid Spencera773bd52006-08-04 18:18:08 +000010855
Bill Wendlingebcceee2009-04-18 11:20:33 +000010856rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857 conftest$ac_exeext conftest.$ac_ext
10858
10859fi
10860
10861
10862fi
10863
10864
10865fi
10866
10867
10868if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10869then
10870 lt_save_LIBS="$LIBS"
10871 LIBS="$LIBS $LIBADD_DL"
10872
10873for ac_func in dlerror
10874do
10875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880else
10881 cat >conftest.$ac_ext <<_ACEOF
10882/* confdefs.h. */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
10886/* end confdefs.h. */
10887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10889#define $ac_func innocuous_$ac_func
10890
10891/* System header to define __stub macros and hopefully few prototypes,
10892 which can conflict with char $ac_func (); below.
10893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10894 <limits.h> exists even on freestanding compilers. */
10895
10896#ifdef __STDC__
10897# include <limits.h>
10898#else
10899# include <assert.h>
10900#endif
10901
10902#undef $ac_func
10903
Reid Spencera773bd52006-08-04 18:18:08 +000010904/* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010907#ifdef __cplusplus
10908extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910char $ac_func ();
10911/* The GNU C library defines this for functions which it implements
10912 to always fail with ENOSYS. Some functions are actually named
10913 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010914#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916#endif
10917
10918int
10919main ()
10920{
Reid Spencera773bd52006-08-04 18:18:08 +000010921return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922 ;
10923 return 0;
10924}
10925_ACEOF
10926rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010927if { (ac_try="$ac_link"
10928case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944esac
10945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest$ac_exeext'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960 eval "$as_ac_var=yes"
10961else
10962 echo "$as_me: failed program was:" >&5
10963sed 's/^/| /' conftest.$ac_ext >&5
10964
Reid Spencera773bd52006-08-04 18:18:08 +000010965 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966fi
Reid Spencera773bd52006-08-04 18:18:08 +000010967
Bill Wendlingebcceee2009-04-18 11:20:33 +000010968rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969 conftest$ac_exeext conftest.$ac_ext
10970fi
Reid Spencera773bd52006-08-04 18:18:08 +000010971ac_res=`eval echo '${'$as_ac_var'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974if test `eval echo '${'$as_ac_var'}'` = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10977_ACEOF
10978
10979fi
10980done
10981
10982 LIBS="$lt_save_LIBS"
10983fi
10984ac_ext=c
10985ac_cpp='$CPP $CPPFLAGS'
10986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10988ac_compiler_gnu=$ac_cv_c_compiler_gnu
10989
10990
10991
Reid Spencera773bd52006-08-04 18:18:08 +000010992{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10993echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996else
10997 ac_cv_sys_symbol_underscore=no
10998 cat > conftest.$ac_ext <<EOF
10999void nm_test_func(){}
11000int main(){nm_test_func;return 0;}
11001EOF
11002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003 (eval $ac_compile) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; then
11007 # Now try to grab the symbols.
11008 ac_nlist=conftest.nm
11009 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11010 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && test -s "$ac_nlist"; then
11014 # See whether the symbols have a leading underscore.
11015 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11016 ac_cv_sys_symbol_underscore=yes
11017 else
11018 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11019 :
11020 else
11021 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11022 fi
11023 fi
11024 else
11025 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11026 fi
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.c >&5
11030 fi
11031 rm -rf conftest*
11032
11033fi
Reid Spencera773bd52006-08-04 18:18:08 +000011034{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11035echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036
11037
11038if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11039 if test x"$libltdl_cv_func_dlopen" = xyes ||
11040 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000011041 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11042echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043if test "${libltdl_cv_need_uscore+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046 libltdl_cv_need_uscore=unknown
11047 save_LIBS="$LIBS"
11048 LIBS="$LIBS $LIBADD_DL"
11049 if test "$cross_compiling" = yes; then :
11050 libltdl_cv_need_uscore=cross
11051else
11052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11053 lt_status=$lt_dlunknown
11054 cat > conftest.$ac_ext <<EOF
Rafael Espindola7f9ec912009-11-12 05:46:09 +000011055#line 11055 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056#include "confdefs.h"
11057
11058#if HAVE_DLFCN_H
11059#include <dlfcn.h>
11060#endif
11061
11062#include <stdio.h>
11063
11064#ifdef RTLD_GLOBAL
11065# define LT_DLGLOBAL RTLD_GLOBAL
11066#else
11067# ifdef DL_GLOBAL
11068# define LT_DLGLOBAL DL_GLOBAL
11069# else
11070# define LT_DLGLOBAL 0
11071# endif
11072#endif
11073
11074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11075 find out it does not work in some platform. */
11076#ifndef LT_DLLAZY_OR_NOW
11077# ifdef RTLD_LAZY
11078# define LT_DLLAZY_OR_NOW RTLD_LAZY
11079# else
11080# ifdef DL_LAZY
11081# define LT_DLLAZY_OR_NOW DL_LAZY
11082# else
11083# ifdef RTLD_NOW
11084# define LT_DLLAZY_OR_NOW RTLD_NOW
11085# else
11086# ifdef DL_NOW
11087# define LT_DLLAZY_OR_NOW DL_NOW
11088# else
11089# define LT_DLLAZY_OR_NOW 0
11090# endif
11091# endif
11092# endif
11093# endif
11094#endif
11095
11096#ifdef __cplusplus
11097extern "C" void exit (int);
11098#endif
11099
11100void fnord() { int i=42;}
11101int main ()
11102{
11103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11104 int status = $lt_dlunknown;
11105
11106 if (self)
11107 {
11108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11110 /* dlclose (self); */
11111 }
Reid Spencera773bd52006-08-04 18:18:08 +000011112 else
11113 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114
11115 exit (status);
11116}
11117EOF
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011123 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124 lt_status=$?
11125 case x$lt_status in
11126 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11127 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011128 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129 esac
11130 else :
11131 # compilation failed
11132
11133 fi
11134fi
11135rm -fr conftest*
11136
11137 LIBS="$save_LIBS"
11138
11139fi
Reid Spencera773bd52006-08-04 18:18:08 +000011140{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11141echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142 fi
11143fi
11144
11145if test x"$libltdl_cv_need_uscore" = xyes; then
11146
11147cat >>confdefs.h <<\_ACEOF
11148#define NEED_USCORE 1
11149_ACEOF
11150
11151fi
11152
11153
Reid Spencera773bd52006-08-04 18:18:08 +000011154{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11155echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159 # PORTME does your system automatically load deplibs for dlopen?
11160 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11161 # For now, we just catch OSes we know something about -- in the
11162 # future, we'll try test this programmatically.
11163 libltdl_cv_sys_dlopen_deplibs=unknown
11164 case "$host_os" in
11165 aix3*|aix4.1.*|aix4.2.*)
11166 # Unknown whether this is true for these versions of AIX, but
11167 # we want this `case' here to explicitly catch those versions.
11168 libltdl_cv_sys_dlopen_deplibs=unknown
11169 ;;
11170 aix[45]*)
11171 libltdl_cv_sys_dlopen_deplibs=yes
11172 ;;
11173 darwin*)
11174 # Assuming the user has installed a libdl from somewhere, this is true
11175 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11176 libltdl_cv_sys_dlopen_deplibs=yes
11177 ;;
11178 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11179 # GNU and its variants, using gnu ld.so (Glibc)
11180 libltdl_cv_sys_dlopen_deplibs=yes
11181 ;;
11182 hpux10*|hpux11*)
11183 libltdl_cv_sys_dlopen_deplibs=yes
11184 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011185 interix*)
11186 libltdl_cv_sys_dlopen_deplibs=yes
11187 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188 irix[12345]*|irix6.[01]*)
11189 # Catch all versions of IRIX before 6.2, and indicate that we don't
11190 # know how it worked for any of those versions.
11191 libltdl_cv_sys_dlopen_deplibs=unknown
11192 ;;
11193 irix*)
11194 # The case above catches anything before 6.2, and it's known that
11195 # at 6.2 and later dlopen does load deplibs.
11196 libltdl_cv_sys_dlopen_deplibs=yes
11197 ;;
11198 netbsd*)
11199 libltdl_cv_sys_dlopen_deplibs=yes
11200 ;;
11201 openbsd*)
11202 libltdl_cv_sys_dlopen_deplibs=yes
11203 ;;
11204 osf[1234]*)
11205 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11206 # it did *not* use an RPATH in a shared library to find objects the
11207 # library depends on, so we explictly say `no'.
11208 libltdl_cv_sys_dlopen_deplibs=no
11209 ;;
11210 osf5.0|osf5.0a|osf5.1)
11211 # dlopen *does* load deplibs and with the right loader patch applied
11212 # it even uses RPATH in a shared library to search for shared objects
11213 # that the library depends on, but there's no easy way to know if that
11214 # patch is installed. Since this is the case, all we can really
11215 # say is unknown -- it depends on the patch being installed. If
11216 # it is, this changes to `yes'. Without it, it would be `no'.
11217 libltdl_cv_sys_dlopen_deplibs=unknown
11218 ;;
11219 osf*)
11220 # the two cases above should catch all versions of osf <= 5.1. Read
11221 # the comments above for what we know about them.
11222 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11223 # is used to find them so we can finally say `yes'.
11224 libltdl_cv_sys_dlopen_deplibs=yes
11225 ;;
11226 solaris*)
11227 libltdl_cv_sys_dlopen_deplibs=yes
11228 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11230 libltdl_cv_sys_dlopen_deplibs=yes
11231 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011232 esac
11233
11234fi
Reid Spencera773bd52006-08-04 18:18:08 +000011235{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11236echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11238
11239cat >>confdefs.h <<\_ACEOF
11240#define LTDL_DLOPEN_DEPLIBS 1
11241_ACEOF
11242
11243fi
11244
11245
11246for ac_header in argz.h
11247do
11248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254fi
Reid Spencera773bd52006-08-04 18:18:08 +000011255ac_res=`eval echo '${'$as_ac_Header'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258else
11259 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011260{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268$ac_includes_default
11269#include <$ac_header>
11270_ACEOF
11271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011272if { (ac_try="$ac_compile"
11273case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289esac
11290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299esac
11300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_try") 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305 ac_header_compiler=yes
11306else
11307 echo "$as_me: failed program was:" >&5
11308sed 's/^/| /' conftest.$ac_ext >&5
11309
Reid Spencera773bd52006-08-04 18:18:08 +000011310 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311fi
Reid Spencera773bd52006-08-04 18:18:08 +000011312
11313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316
11317# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011318{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320cat >conftest.$ac_ext <<_ACEOF
11321/* confdefs.h. */
11322_ACEOF
11323cat confdefs.h >>conftest.$ac_ext
11324cat >>conftest.$ac_ext <<_ACEOF
11325/* end confdefs.h. */
11326#include <$ac_header>
11327_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011328if { (ac_try="$ac_cpp conftest.$ac_ext"
11329case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332esac
11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011340 (exit $ac_status); } >/dev/null; then
11341 if test -s conftest.err; then
11342 ac_cpp_err=$ac_c_preproc_warn_flag
11343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11344 else
11345 ac_cpp_err=
11346 fi
11347else
11348 ac_cpp_err=yes
11349fi
11350if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351 ac_header_preproc=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_header_preproc=no
11357fi
Reid Spencera773bd52006-08-04 18:18:08 +000011358
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011359rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011360{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362
11363# So? What about this header?
11364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365 yes:no: )
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370 ac_header_preproc=yes
11371 ;;
11372 no:yes:* )
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011385 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011386## ----------------------------------- ##
11387## Report this to llvmbugs@cs.uiuc.edu ##
11388## ----------------------------------- ##
11389_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011390 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391 ;;
11392esac
Reid Spencera773bd52006-08-04 18:18:08 +000011393{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397else
11398 eval "$as_ac_Header=\$ac_header_preproc"
11399fi
Reid Spencera773bd52006-08-04 18:18:08 +000011400ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011403
11404fi
11405if test `eval echo '${'$as_ac_Header'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408_ACEOF
11409
11410fi
11411
11412done
11413
11414
Reid Spencera773bd52006-08-04 18:18:08 +000011415{ echo "$as_me:$LINENO: checking for error_t" >&5
11416echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011417if test "${ac_cv_type_error_t+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419else
11420 cat >conftest.$ac_ext <<_ACEOF
11421/* confdefs.h. */
11422_ACEOF
11423cat confdefs.h >>conftest.$ac_ext
11424cat >>conftest.$ac_ext <<_ACEOF
11425/* end confdefs.h. */
11426#if HAVE_ARGZ_H
11427# include <argz.h>
11428#endif
11429
Reid Spencera773bd52006-08-04 18:18:08 +000011430typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011431int
11432main ()
11433{
Reid Spencera773bd52006-08-04 18:18:08 +000011434if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011435 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011436if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011437 return 0;
11438 ;
11439 return 0;
11440}
11441_ACEOF
11442rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011443if { (ac_try="$ac_compile"
11444case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447esac
11448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460esac
11461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest.$ac_objext'
11467 { (case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11470esac
11471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_try") 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476 ac_cv_type_error_t=yes
11477else
11478 echo "$as_me: failed program was:" >&5
11479sed 's/^/| /' conftest.$ac_ext >&5
11480
Reid Spencera773bd52006-08-04 18:18:08 +000011481 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482fi
Reid Spencera773bd52006-08-04 18:18:08 +000011483
11484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485fi
Reid Spencera773bd52006-08-04 18:18:08 +000011486{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11487echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488if test $ac_cv_type_error_t = yes; then
11489
11490cat >>confdefs.h <<_ACEOF
11491#define HAVE_ERROR_T 1
11492_ACEOF
11493
11494
11495else
11496
11497cat >>confdefs.h <<\_ACEOF
11498#define error_t int
11499_ACEOF
11500
11501fi
11502
11503
11504
11505
11506
11507
11508
11509for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11510do
11511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011512{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11514if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516else
11517 cat >conftest.$ac_ext <<_ACEOF
11518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
11523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11525#define $ac_func innocuous_$ac_func
11526
11527/* System header to define __stub macros and hopefully few prototypes,
11528 which can conflict with char $ac_func (); below.
11529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 <limits.h> exists even on freestanding compilers. */
11531
11532#ifdef __STDC__
11533# include <limits.h>
11534#else
11535# include <assert.h>
11536#endif
11537
11538#undef $ac_func
11539
Reid Spencera773bd52006-08-04 18:18:08 +000011540/* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543#ifdef __cplusplus
11544extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546char $ac_func ();
11547/* The GNU C library defines this for functions which it implements
11548 to always fail with ENOSYS. Some functions are actually named
11549 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011550#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552#endif
11553
11554int
11555main ()
11556{
Reid Spencera773bd52006-08-04 18:18:08 +000011557return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558 ;
11559 return 0;
11560}
11561_ACEOF
11562rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011563if { (ac_try="$ac_link"
11564case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567esac
11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11577 { (case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580esac
11581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_try") 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590esac
11591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596 eval "$as_ac_var=yes"
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
Reid Spencera773bd52006-08-04 18:18:08 +000011601 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602fi
Reid Spencera773bd52006-08-04 18:18:08 +000011603
Bill Wendlingebcceee2009-04-18 11:20:33 +000011604rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605 conftest$ac_exeext conftest.$ac_ext
11606fi
Reid Spencera773bd52006-08-04 18:18:08 +000011607ac_res=`eval echo '${'$as_ac_var'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011610if test `eval echo '${'$as_ac_var'}'` = yes; then
11611 cat >>confdefs.h <<_ACEOF
11612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613_ACEOF
11614
11615fi
11616done
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11646 stdio.h unistd.h
11647do
11648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654fi
Reid Spencera773bd52006-08-04 18:18:08 +000011655ac_res=`eval echo '${'$as_ac_Header'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658else
11659 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011660{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */
11668$ac_includes_default
11669#include <$ac_header>
11670_ACEOF
11671rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011672if { (ac_try="$ac_compile"
11673case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676esac
11677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011684 (exit $ac_status); } &&
11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11686 { (case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689esac
11690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_try") 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; } &&
11695 { ac_try='test -s conftest.$ac_objext'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705 ac_header_compiler=yes
11706else
11707 echo "$as_me: failed program was:" >&5
11708sed 's/^/| /' conftest.$ac_ext >&5
11709
Reid Spencera773bd52006-08-04 18:18:08 +000011710 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711fi
Reid Spencera773bd52006-08-04 18:18:08 +000011712
11713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11715echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716
11717# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011718{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720cat >conftest.$ac_ext <<_ACEOF
11721/* confdefs.h. */
11722_ACEOF
11723cat confdefs.h >>conftest.$ac_ext
11724cat >>conftest.$ac_ext <<_ACEOF
11725/* end confdefs.h. */
11726#include <$ac_header>
11727_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011728if { (ac_try="$ac_cpp conftest.$ac_ext"
11729case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011740 (exit $ac_status); } >/dev/null; then
11741 if test -s conftest.err; then
11742 ac_cpp_err=$ac_c_preproc_warn_flag
11743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11744 else
11745 ac_cpp_err=
11746 fi
11747else
11748 ac_cpp_err=yes
11749fi
11750if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751 ac_header_preproc=yes
11752else
11753 echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 ac_header_preproc=no
11757fi
Reid Spencera773bd52006-08-04 18:18:08 +000011758
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011760{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11761echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762
11763# So? What about this header?
11764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11765 yes:no: )
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11770 ac_header_preproc=yes
11771 ;;
11772 no:yes:* )
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11776echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11780echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011785 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786## ----------------------------------- ##
11787## Report this to llvmbugs@cs.uiuc.edu ##
11788## ----------------------------------- ##
11789_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011790 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011791 ;;
11792esac
Reid Spencera773bd52006-08-04 18:18:08 +000011793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 eval "$as_ac_Header=\$ac_header_preproc"
11799fi
Reid Spencera773bd52006-08-04 18:18:08 +000011800ac_res=`eval echo '${'$as_ac_Header'}'`
11801 { echo "$as_me:$LINENO: result: $ac_res" >&5
11802echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803
11804fi
11805if test `eval echo '${'$as_ac_Header'}'` = yes; then
11806 cat >>confdefs.h <<_ACEOF
11807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11808_ACEOF
11809
11810fi
11811
11812done
11813
11814
11815
11816
11817
11818for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11819do
11820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826fi
Reid Spencera773bd52006-08-04 18:18:08 +000011827ac_res=`eval echo '${'$as_ac_Header'}'`
11828 { echo "$as_me:$LINENO: result: $ac_res" >&5
11829echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830else
11831 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011832{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011834cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840$ac_includes_default
11841#include <$ac_header>
11842_ACEOF
11843rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011844if { (ac_try="$ac_compile"
11845case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848esac
11849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861esac
11862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest.$ac_objext'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871esac
11872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011877 ac_header_compiler=yes
11878else
11879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
11881
Reid Spencera773bd52006-08-04 18:18:08 +000011882 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883fi
Reid Spencera773bd52006-08-04 18:18:08 +000011884
11885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888
11889# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011890{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898#include <$ac_header>
11899_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011900if { (ac_try="$ac_cpp conftest.$ac_ext"
11901case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011912 (exit $ac_status); } >/dev/null; then
11913 if test -s conftest.err; then
11914 ac_cpp_err=$ac_c_preproc_warn_flag
11915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11916 else
11917 ac_cpp_err=
11918 fi
11919else
11920 ac_cpp_err=yes
11921fi
11922if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923 ac_header_preproc=yes
11924else
11925 echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 ac_header_preproc=no
11929fi
Reid Spencera773bd52006-08-04 18:18:08 +000011930
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011932{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11933echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934
11935# So? What about this header?
11936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11937 yes:no: )
11938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11942 ac_header_preproc=yes
11943 ;;
11944 no:yes:* )
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11952echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011957 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958## ----------------------------------- ##
11959## Report this to llvmbugs@cs.uiuc.edu ##
11960## ----------------------------------- ##
11961_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011962 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963 ;;
11964esac
Reid Spencera773bd52006-08-04 18:18:08 +000011965{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970 eval "$as_ac_Header=\$ac_header_preproc"
11971fi
Reid Spencera773bd52006-08-04 18:18:08 +000011972ac_res=`eval echo '${'$as_ac_Header'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975
11976fi
11977if test `eval echo '${'$as_ac_Header'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11980_ACEOF
11981
11982fi
11983
11984done
11985
11986
11987
11988for ac_header in string.h strings.h
11989do
11990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996fi
Reid Spencera773bd52006-08-04 18:18:08 +000011997ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000else
12001 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000012002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010$ac_includes_default
12011#include <$ac_header>
12012_ACEOF
12013rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000012014if { (ac_try="$ac_compile"
12015case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031esac
12032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012047 ac_header_compiler=yes
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
Reid Spencera773bd52006-08-04 18:18:08 +000012052 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053fi
Reid Spencera773bd52006-08-04 18:18:08 +000012054
12055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058
12059# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000012060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062cat >conftest.$ac_ext <<_ACEOF
12063/* confdefs.h. */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h. */
12068#include <$ac_header>
12069_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012070if { (ac_try="$ac_cpp conftest.$ac_ext"
12071case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012082 (exit $ac_status); } >/dev/null; then
12083 if test -s conftest.err; then
12084 ac_cpp_err=$ac_c_preproc_warn_flag
12085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12086 else
12087 ac_cpp_err=
12088 fi
12089else
12090 ac_cpp_err=yes
12091fi
12092if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012093 ac_header_preproc=yes
12094else
12095 echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ac_header_preproc=no
12099fi
Reid Spencera773bd52006-08-04 18:18:08 +000012100
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000012102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012104
12105# So? What about this header?
12106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 yes:no: )
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12113 ;;
12114 no:yes:* )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000012127 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128## ----------------------------------- ##
12129## Report this to llvmbugs@cs.uiuc.edu ##
12130## ----------------------------------- ##
12131_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000012132 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133 ;;
12134esac
Reid Spencera773bd52006-08-04 18:18:08 +000012135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 eval "$as_ac_Header=\$ac_header_preproc"
12141fi
Reid Spencera773bd52006-08-04 18:18:08 +000012142ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145
12146fi
12147if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150_ACEOF
12151 break
12152fi
12153
12154done
12155
12156
12157
12158
12159for ac_func in strchr index
12160do
12161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012162{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12164if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166else
12167 cat >conftest.$ac_ext <<_ACEOF
12168/* confdefs.h. */
12169_ACEOF
12170cat confdefs.h >>conftest.$ac_ext
12171cat >>conftest.$ac_ext <<_ACEOF
12172/* end confdefs.h. */
12173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12175#define $ac_func innocuous_$ac_func
12176
12177/* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char $ac_func (); below.
12179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180 <limits.h> exists even on freestanding compilers. */
12181
12182#ifdef __STDC__
12183# include <limits.h>
12184#else
12185# include <assert.h>
12186#endif
12187
12188#undef $ac_func
12189
Reid Spencera773bd52006-08-04 18:18:08 +000012190/* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012193#ifdef __cplusplus
12194extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012195#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012196char $ac_func ();
12197/* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012200#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012201choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012202#endif
12203
12204int
12205main ()
12206{
Reid Spencera773bd52006-08-04 18:18:08 +000012207return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208 ;
12209 return 0;
12210}
12211_ACEOF
12212rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012213if { (ac_try="$ac_link"
12214case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217esac
12218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227 { (case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12230esac
12231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_try") 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest$ac_exeext'
12237 { (case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240esac
12241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_try") 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246 eval "$as_ac_var=yes"
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
Reid Spencera773bd52006-08-04 18:18:08 +000012251 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252fi
Reid Spencera773bd52006-08-04 18:18:08 +000012253
Bill Wendlingebcceee2009-04-18 11:20:33 +000012254rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255 conftest$ac_exeext conftest.$ac_ext
12256fi
Reid Spencera773bd52006-08-04 18:18:08 +000012257ac_res=`eval echo '${'$as_ac_var'}'`
12258 { echo "$as_me:$LINENO: result: $ac_res" >&5
12259echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012260if test `eval echo '${'$as_ac_var'}'` = yes; then
12261 cat >>confdefs.h <<_ACEOF
12262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12263_ACEOF
12264 break
12265fi
12266done
12267
12268
12269
12270for ac_func in strrchr rindex
12271do
12272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012273{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12275if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277else
12278 cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
12284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12286#define $ac_func innocuous_$ac_func
12287
12288/* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below.
12290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291 <limits.h> exists even on freestanding compilers. */
12292
12293#ifdef __STDC__
12294# include <limits.h>
12295#else
12296# include <assert.h>
12297#endif
12298
12299#undef $ac_func
12300
Reid Spencera773bd52006-08-04 18:18:08 +000012301/* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304#ifdef __cplusplus
12305extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012306#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012307char $ac_func ();
12308/* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012311#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012312choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012313#endif
12314
12315int
12316main ()
12317{
Reid Spencera773bd52006-08-04 18:18:08 +000012318return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319 ;
12320 return 0;
12321}
12322_ACEOF
12323rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012324if { (ac_try="$ac_link"
12325case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351esac
12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012357 eval "$as_ac_var=yes"
12358else
12359 echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
Reid Spencera773bd52006-08-04 18:18:08 +000012362 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363fi
Reid Spencera773bd52006-08-04 18:18:08 +000012364
Bill Wendlingebcceee2009-04-18 11:20:33 +000012365rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366 conftest$ac_exeext conftest.$ac_ext
12367fi
Reid Spencera773bd52006-08-04 18:18:08 +000012368ac_res=`eval echo '${'$as_ac_var'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371if test `eval echo '${'$as_ac_var'}'` = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12374_ACEOF
12375 break
12376fi
12377done
12378
12379
12380
12381for ac_func in memcpy bcopy
12382do
12383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389 cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397#define $ac_func innocuous_$ac_func
12398
12399/* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12403
12404#ifdef __STDC__
12405# include <limits.h>
12406#else
12407# include <assert.h>
12408#endif
12409
12410#undef $ac_func
12411
Reid Spencera773bd52006-08-04 18:18:08 +000012412/* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012415#ifdef __cplusplus
12416extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012417#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418char $ac_func ();
12419/* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012422#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012423choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424#endif
12425
12426int
12427main ()
12428{
Reid Spencera773bd52006-08-04 18:18:08 +000012429return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012430 ;
12431 return 0;
12432}
12433_ACEOF
12434rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012435if { (ac_try="$ac_link"
12436case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468 eval "$as_ac_var=yes"
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
Reid Spencera773bd52006-08-04 18:18:08 +000012473 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012474fi
Reid Spencera773bd52006-08-04 18:18:08 +000012475
Bill Wendlingebcceee2009-04-18 11:20:33 +000012476rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477 conftest$ac_exeext conftest.$ac_ext
12478fi
Reid Spencera773bd52006-08-04 18:18:08 +000012479ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012482if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485_ACEOF
12486 break
12487fi
12488done
12489
12490
12491
12492for ac_func in memmove strcmp
12493do
12494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500 cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h. */
12506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508#define $ac_func innocuous_$ac_func
12509
12510/* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12514
12515#ifdef __STDC__
12516# include <limits.h>
12517#else
12518# include <assert.h>
12519#endif
12520
12521#undef $ac_func
12522
Reid Spencera773bd52006-08-04 18:18:08 +000012523/* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012526#ifdef __cplusplus
12527extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012528#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012529char $ac_func ();
12530/* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012533#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012534choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535#endif
12536
12537int
12538main ()
12539{
Reid Spencera773bd52006-08-04 18:18:08 +000012540return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563esac
12564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012579 eval "$as_ac_var=yes"
12580else
12581 echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
Reid Spencera773bd52006-08-04 18:18:08 +000012584 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012585fi
Reid Spencera773bd52006-08-04 18:18:08 +000012586
Bill Wendlingebcceee2009-04-18 11:20:33 +000012587rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588 conftest$ac_exeext conftest.$ac_ext
12589fi
Reid Spencera773bd52006-08-04 18:18:08 +000012590ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012593if test `eval echo '${'$as_ac_var'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596_ACEOF
12597
12598fi
12599done
12600
12601
12602
12603
12604for ac_func in closedir opendir readdir
12605do
12606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611else
12612 cat >conftest.$ac_ext <<_ACEOF
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
12618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12620#define $ac_func innocuous_$ac_func
12621
12622/* System header to define __stub macros and hopefully few prototypes,
12623 which can conflict with char $ac_func (); below.
12624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12625 <limits.h> exists even on freestanding compilers. */
12626
12627#ifdef __STDC__
12628# include <limits.h>
12629#else
12630# include <assert.h>
12631#endif
12632
12633#undef $ac_func
12634
Reid Spencera773bd52006-08-04 18:18:08 +000012635/* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012638#ifdef __cplusplus
12639extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012640#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012641char $ac_func ();
12642/* The GNU C library defines this for functions which it implements
12643 to always fail with ENOSYS. Some functions are actually named
12644 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012645#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647#endif
12648
12649int
12650main ()
12651{
Reid Spencera773bd52006-08-04 18:18:08 +000012652return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012653 ;
12654 return 0;
12655}
12656_ACEOF
12657rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012658if { (ac_try="$ac_link"
12659case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662esac
12663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675esac
12676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_try") 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012691 eval "$as_ac_var=yes"
12692else
12693 echo "$as_me: failed program was:" >&5
12694sed 's/^/| /' conftest.$ac_ext >&5
12695
Reid Spencera773bd52006-08-04 18:18:08 +000012696 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697fi
Reid Spencera773bd52006-08-04 18:18:08 +000012698
Bill Wendlingebcceee2009-04-18 11:20:33 +000012699rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700 conftest$ac_exeext conftest.$ac_ext
12701fi
Reid Spencera773bd52006-08-04 18:18:08 +000012702ac_res=`eval echo '${'$as_ac_var'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012705if test `eval echo '${'$as_ac_var'}'` = yes; then
12706 cat >>confdefs.h <<_ACEOF
12707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12708_ACEOF
12709
12710fi
12711done
12712
12713
Reid Spencera773bd52006-08-04 18:18:08 +000012714# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012715if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012716 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012717 case $enableval in
12718 yes) enable_shared=yes ;;
12719 no) enable_shared=no ;;
12720 *)
12721 enable_shared=no
12722 # Look at the argument we got. We use all the common list separators.
12723 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12724 for pkg in $enableval; do
12725 IFS="$lt_save_ifs"
12726 if test "X$pkg" = "X$p"; then
12727 enable_shared=yes
12728 fi
12729 done
12730 IFS="$lt_save_ifs"
12731 ;;
12732 esac
12733else
12734 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012735fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736
Reid Spencera773bd52006-08-04 18:18:08 +000012737
12738# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012739if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012740 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012741 case $enableval in
12742 yes) enable_static=yes ;;
12743 no) enable_static=no ;;
12744 *)
12745 enable_static=no
12746 # Look at the argument we got. We use all the common list separators.
12747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12748 for pkg in $enableval; do
12749 IFS="$lt_save_ifs"
12750 if test "X$pkg" = "X$p"; then
12751 enable_static=yes
12752 fi
12753 done
12754 IFS="$lt_save_ifs"
12755 ;;
12756 esac
12757else
12758 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012759fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012760
Reid Spencera773bd52006-08-04 18:18:08 +000012761
12762# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012763if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012764 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012765 case $enableval in
12766 yes) enable_fast_install=yes ;;
12767 no) enable_fast_install=no ;;
12768 *)
12769 enable_fast_install=no
12770 # Look at the argument we got. We use all the common list separators.
12771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12772 for pkg in $enableval; do
12773 IFS="$lt_save_ifs"
12774 if test "X$pkg" = "X$p"; then
12775 enable_fast_install=yes
12776 fi
12777 done
12778 IFS="$lt_save_ifs"
12779 ;;
12780 esac
12781else
12782 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012783fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012784
Reid Spencera773bd52006-08-04 18:18:08 +000012785
12786{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12787echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012788if test "${lt_cv_path_SED+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790else
12791 # Loop through the user's path and test for sed and gsed.
12792# Then use that list of sed's as ones to test for truncation.
12793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794for as_dir in $PATH
12795do
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for lt_ac_prog in sed gsed; do
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12801 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12802 fi
12803 done
12804 done
12805done
12806lt_ac_max=0
12807lt_ac_count=0
12808# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12809# along with /bin/sed that truncates output.
12810for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012811 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012812 cat /dev/null > conftest.in
12813 lt_ac_count=0
12814 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12815 # Check for GNU sed and select it if it is found.
12816 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12817 lt_cv_path_SED=$lt_ac_sed
12818 break
12819 fi
12820 while true; do
12821 cat conftest.in conftest.in >conftest.tmp
12822 mv conftest.tmp conftest.in
12823 cp conftest.in conftest.nl
12824 echo >>conftest.nl
12825 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12826 cmp -s conftest.out conftest.nl || break
12827 # 10000 chars as input seems more than enough
12828 test $lt_ac_count -gt 10 && break
12829 lt_ac_count=`expr $lt_ac_count + 1`
12830 if test $lt_ac_count -gt $lt_ac_max; then
12831 lt_ac_max=$lt_ac_count
12832 lt_cv_path_SED=$lt_ac_sed
12833 fi
12834 done
12835done
12836
12837fi
12838
12839SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012840{ echo "$as_me:$LINENO: result: $SED" >&5
12841echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012842
12843
Reid Spencera773bd52006-08-04 18:18:08 +000012844# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012845if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012846 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012847else
12848 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012849fi
12850
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012851ac_prog=ld
12852if test "$GCC" = yes; then
12853 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012854 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12855echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012856 case $host in
12857 *-*-mingw*)
12858 # gcc leaves a trailing carriage return which upsets mingw
12859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12860 *)
12861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12862 esac
12863 case $ac_prog in
12864 # Accept absolute paths.
12865 [\\/]* | ?:[\\/]*)
12866 re_direlt='/[^/][^/]*/\.\./'
12867 # Canonicalize the pathname of ld
12868 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12869 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12870 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12871 done
12872 test -z "$LD" && LD="$ac_prog"
12873 ;;
12874 "")
12875 # If it fails, then pretend we aren't using GCC.
12876 ac_prog=ld
12877 ;;
12878 *)
12879 # If it is relative, then search for the first ld in PATH.
12880 with_gnu_ld=unknown
12881 ;;
12882 esac
12883elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012884 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12885echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012886else
Reid Spencera773bd52006-08-04 18:18:08 +000012887 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12888echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012889fi
12890if test "${lt_cv_path_LD+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892else
12893 if test -z "$LD"; then
12894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12895 for ac_dir in $PATH; do
12896 IFS="$lt_save_ifs"
12897 test -z "$ac_dir" && ac_dir=.
12898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12899 lt_cv_path_LD="$ac_dir/$ac_prog"
12900 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012901 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012902 # Break only if it was the GNU/non-GNU ld that we prefer.
12903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12904 *GNU* | *'with BFD'*)
12905 test "$with_gnu_ld" != no && break
12906 ;;
12907 *)
12908 test "$with_gnu_ld" != yes && break
12909 ;;
12910 esac
12911 fi
12912 done
12913 IFS="$lt_save_ifs"
12914else
12915 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12916fi
12917fi
12918
12919LD="$lt_cv_path_LD"
12920if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012921 { echo "$as_me:$LINENO: result: $LD" >&5
12922echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012923else
Reid Spencera773bd52006-08-04 18:18:08 +000012924 { echo "$as_me:$LINENO: result: no" >&5
12925echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012926fi
12927test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12928echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12929 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012930{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12931echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012932if test "${lt_cv_prog_gnu_ld+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934else
Reid Spencera773bd52006-08-04 18:18:08 +000012935 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012936case `$LD -v 2>&1 </dev/null` in
12937*GNU* | *'with BFD'*)
12938 lt_cv_prog_gnu_ld=yes
12939 ;;
12940*)
12941 lt_cv_prog_gnu_ld=no
12942 ;;
12943esac
12944fi
Reid Spencera773bd52006-08-04 18:18:08 +000012945{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12946echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012947with_gnu_ld=$lt_cv_prog_gnu_ld
12948
12949
Reid Spencera773bd52006-08-04 18:18:08 +000012950{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12951echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012952if test "${lt_cv_ld_reload_flag+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 lt_cv_ld_reload_flag='-r'
12956fi
Reid Spencera773bd52006-08-04 18:18:08 +000012957{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12958echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012959reload_flag=$lt_cv_ld_reload_flag
12960case $reload_flag in
12961"" | " "*) ;;
12962*) reload_flag=" $reload_flag" ;;
12963esac
12964reload_cmds='$LD$reload_flag -o $output$reload_objs'
12965case $host_os in
12966 darwin*)
12967 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012968 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969 else
12970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12971 fi
12972 ;;
12973esac
12974
Reid Spencera773bd52006-08-04 18:18:08 +000012975{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12976echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012977if test "${lt_cv_deplibs_check_method+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979else
12980 lt_cv_file_magic_cmd='$MAGIC_CMD'
12981lt_cv_file_magic_test_file=
12982lt_cv_deplibs_check_method='unknown'
12983# Need to set the preceding variable on all platforms that support
12984# interlibrary dependencies.
12985# 'none' -- dependencies not supported.
12986# `unknown' -- same as none, but documents that we really don't know.
12987# 'pass_all' -- all dependencies passed with no checks.
12988# 'test_compile' -- check by making test program.
12989# 'file_magic [[regex]]' -- check by looking for files in library path
12990# which responds to the $file_magic_cmd with a given extended regex.
12991# If you have `file' or equivalent on your system and you're not sure
12992# whether `pass_all' will *always* work, you probably want this one.
12993
12994case $host_os in
12995aix4* | aix5*)
12996 lt_cv_deplibs_check_method=pass_all
12997 ;;
12998
12999beos*)
13000 lt_cv_deplibs_check_method=pass_all
13001 ;;
13002
13003bsdi[45]*)
13004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13005 lt_cv_file_magic_cmd='/usr/bin/file -L'
13006 lt_cv_file_magic_test_file=/shlib/libc.so
13007 ;;
13008
13009cygwin*)
13010 # func_win32_libid is a shell function defined in ltmain.sh
13011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13012 lt_cv_file_magic_cmd='func_win32_libid'
13013 ;;
13014
13015mingw* | pw32*)
13016 # Base MSYS/MinGW do not provide the 'file' command needed by
13017 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13019 lt_cv_file_magic_cmd='$OBJDUMP -f'
13020 ;;
13021
13022darwin* | rhapsody*)
13023 lt_cv_deplibs_check_method=pass_all
13024 ;;
13025
Reid Spencera773bd52006-08-04 18:18:08 +000013026freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028 case $host_cpu in
13029 i*86 )
13030 # Not sure whether the presence of OpenBSD here was a mistake.
13031 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000013032 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 +000013033 lt_cv_file_magic_cmd=/usr/bin/file
13034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13035 ;;
13036 esac
13037 else
13038 lt_cv_deplibs_check_method=pass_all
13039 fi
13040 ;;
13041
13042gnu*)
13043 lt_cv_deplibs_check_method=pass_all
13044 ;;
13045
13046hpux10.20* | hpux11*)
13047 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000013048 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013049 ia64*)
13050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13052 ;;
13053 hppa*64*)
13054 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]'
13055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13056 ;;
13057 *)
13058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13060 ;;
13061 esac
13062 ;;
13063
Reid Spencera773bd52006-08-04 18:18:08 +000013064interix3*)
13065 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13067 ;;
13068
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013069irix5* | irix6* | nonstopux*)
13070 case $LD in
13071 *-32|*"-32 ") libmagic=32-bit;;
13072 *-n32|*"-n32 ") libmagic=N32;;
13073 *-64|*"-64 ") libmagic=64-bit;;
13074 *) libmagic=never-match;;
13075 esac
13076 lt_cv_deplibs_check_method=pass_all
13077 ;;
13078
13079# This must be Linux ELF.
13080linux*)
13081 lt_cv_deplibs_check_method=pass_all
13082 ;;
13083
13084netbsd*)
13085 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13087 else
13088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13089 fi
13090 ;;
13091
13092newos6*)
13093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13094 lt_cv_file_magic_cmd=/usr/bin/file
13095 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13096 ;;
13097
13098nto-qnx*)
13099 lt_cv_deplibs_check_method=unknown
13100 ;;
13101
13102openbsd*)
13103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13105 else
13106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13107 fi
13108 ;;
13109
13110osf3* | osf4* | osf5*)
13111 lt_cv_deplibs_check_method=pass_all
13112 ;;
13113
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013114solaris*)
13115 lt_cv_deplibs_check_method=pass_all
13116 ;;
13117
Reid Spencera773bd52006-08-04 18:18:08 +000013118sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013119 case $host_vendor in
13120 motorola)
13121 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]'
13122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13123 ;;
13124 ncr)
13125 lt_cv_deplibs_check_method=pass_all
13126 ;;
13127 sequent)
13128 lt_cv_file_magic_cmd='/bin/file'
13129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13130 ;;
13131 sni)
13132 lt_cv_file_magic_cmd='/bin/file'
13133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13134 lt_cv_file_magic_test_file=/lib/libc.so
13135 ;;
13136 siemens)
13137 lt_cv_deplibs_check_method=pass_all
13138 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013139 pc)
13140 lt_cv_deplibs_check_method=pass_all
13141 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013142 esac
13143 ;;
13144
Reid Spencera773bd52006-08-04 18:18:08 +000013145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013146 lt_cv_deplibs_check_method=pass_all
13147 ;;
13148esac
13149
13150fi
Reid Spencera773bd52006-08-04 18:18:08 +000013151{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13152echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013153file_magic_cmd=$lt_cv_file_magic_cmd
13154deplibs_check_method=$lt_cv_deplibs_check_method
13155test -z "$deplibs_check_method" && deplibs_check_method=unknown
13156
13157
13158
13159# If no C compiler was specified, use CC.
13160LTCC=${LTCC-"$CC"}
13161
Reid Spencera773bd52006-08-04 18:18:08 +000013162# If no C compiler flags were specified, use CFLAGS.
13163LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13164
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013165# Allow CC to be a program name with arguments.
13166compiler=$CC
13167
Reid Spencera773bd52006-08-04 18:18:08 +000013168# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013169if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013170 enableval=$enable_libtool_lock;
13171fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013172
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013173test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13174
13175# Some flags need to be propagated to the compiler or linker for good
13176# libtool support.
13177case $host in
13178ia64-*-hpux*)
13179 # Find out which ABI we are using.
13180 echo 'int i;' > conftest.$ac_ext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; then
13186 case `/usr/bin/file conftest.$ac_objext` in
13187 *ELF-32*)
13188 HPUX_IA64_MODE="32"
13189 ;;
13190 *ELF-64*)
13191 HPUX_IA64_MODE="64"
13192 ;;
13193 esac
13194 fi
13195 rm -rf conftest*
13196 ;;
13197*-*-irix6*)
13198 # Find out which ABI we are using.
Rafael Espindola7f9ec912009-11-12 05:46:09 +000013199 echo '#line 13199 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201 (eval $ac_compile) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; then
13205 if test "$lt_cv_prog_gnu_ld" = yes; then
13206 case `/usr/bin/file conftest.$ac_objext` in
13207 *32-bit*)
13208 LD="${LD-ld} -melf32bsmip"
13209 ;;
13210 *N32*)
13211 LD="${LD-ld} -melf32bmipn32"
13212 ;;
13213 *64-bit*)
13214 LD="${LD-ld} -melf64bmip"
13215 ;;
13216 esac
13217 else
13218 case `/usr/bin/file conftest.$ac_objext` in
13219 *32-bit*)
13220 LD="${LD-ld} -32"
13221 ;;
13222 *N32*)
13223 LD="${LD-ld} -n32"
13224 ;;
13225 *64-bit*)
13226 LD="${LD-ld} -64"
13227 ;;
13228 esac
13229 fi
13230 fi
13231 rm -rf conftest*
13232 ;;
13233
13234x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13235 # Find out which ABI we are using.
13236 echo 'int i;' > conftest.$ac_ext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13239 ac_status=$?
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013242 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013243 *32-bit*)
13244 case $host in
13245 x86_64-*linux*)
13246 LD="${LD-ld} -m elf_i386"
13247 ;;
13248 ppc64-*linux*|powerpc64-*linux*)
13249 LD="${LD-ld} -m elf32ppclinux"
13250 ;;
13251 s390x-*linux*)
13252 LD="${LD-ld} -m elf_s390"
13253 ;;
13254 sparc64-*linux*)
13255 LD="${LD-ld} -m elf32_sparc"
13256 ;;
13257 esac
13258 ;;
13259 *64-bit*)
13260 case $host in
13261 x86_64-*linux*)
13262 LD="${LD-ld} -m elf_x86_64"
13263 ;;
13264 ppc*-*linux*|powerpc*-*linux*)
13265 LD="${LD-ld} -m elf64ppc"
13266 ;;
13267 s390*-*linux*)
13268 LD="${LD-ld} -m elf64_s390"
13269 ;;
13270 sparc*-*linux*)
13271 LD="${LD-ld} -m elf64_sparc"
13272 ;;
13273 esac
13274 ;;
13275 esac
13276 fi
13277 rm -rf conftest*
13278 ;;
13279
13280*-*-sco3.2v5*)
13281 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13282 SAVE_CFLAGS="$CFLAGS"
13283 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013284 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13285echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013286if test "${lt_cv_cc_needs_belf+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288else
13289 ac_ext=c
13290ac_cpp='$CPP $CPPFLAGS'
13291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13293ac_compiler_gnu=$ac_cv_c_compiler_gnu
13294
13295 cat >conftest.$ac_ext <<_ACEOF
13296/* confdefs.h. */
13297_ACEOF
13298cat confdefs.h >>conftest.$ac_ext
13299cat >>conftest.$ac_ext <<_ACEOF
13300/* end confdefs.h. */
13301
Reid Spencera773bd52006-08-04 18:18:08 +000013302int
13303main ()
13304{
13305
13306 ;
13307 return 0;
13308}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013309_ACEOF
13310rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013311if { (ac_try="$ac_link"
13312case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315esac
13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013344 lt_cv_cc_needs_belf=yes
13345else
13346 echo "$as_me: failed program was:" >&5
13347sed 's/^/| /' conftest.$ac_ext >&5
13348
Reid Spencera773bd52006-08-04 18:18:08 +000013349 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013350fi
Reid Spencera773bd52006-08-04 18:18:08 +000013351
Bill Wendlingebcceee2009-04-18 11:20:33 +000013352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013353 conftest$ac_exeext conftest.$ac_ext
13354 ac_ext=c
13355ac_cpp='$CPP $CPPFLAGS'
13356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358ac_compiler_gnu=$ac_cv_c_compiler_gnu
13359
13360fi
Reid Spencera773bd52006-08-04 18:18:08 +000013361{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13362echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13365 CFLAGS="$SAVE_CFLAGS"
13366 fi
13367 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013368sparc*-*solaris*)
13369 # Find out which ABI we are using.
13370 echo 'int i;' > conftest.$ac_ext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; then
13376 case `/usr/bin/file conftest.o` in
13377 *64-bit*)
13378 case $lt_cv_prog_gnu_ld in
13379 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13380 *) LD="${LD-ld} -64" ;;
13381 esac
13382 ;;
13383 esac
13384 fi
13385 rm -rf conftest*
13386 ;;
13387
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013388
13389esac
13390
13391need_locks="$enable_libtool_lock"
13392
13393
Reid Spencer2706f8c2004-09-19 23:53:36 +000013394
13395
13396if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13397 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13398 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013399 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013400ac_cpp='$CXXCPP $CPPFLAGS'
13401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013404{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13405echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013406if test -z "$CXXCPP"; then
13407 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013408 echo $ECHO_N "(cached) $ECHO_C" >&6
13409else
John Criswell47fdd832003-07-14 16:52:07 +000013410 # Double quotes because CXXCPP needs to be expanded
13411 for CXXCPP in "$CXX -E" "/lib/cpp"
13412 do
13413 ac_preproc_ok=false
13414for ac_cxx_preproc_warn_flag in '' yes
13415do
13416 # Use a header file that comes with gcc, so configuring glibc
13417 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13419 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013420 # On the NeXT, cc -E runs the code through the compiler's parser,
13421 # not just through cpp. "Syntax error" is here to catch this case.
13422 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013423/* confdefs.h. */
13424_ACEOF
13425cat confdefs.h >>conftest.$ac_ext
13426cat >>conftest.$ac_ext <<_ACEOF
13427/* end confdefs.h. */
13428#ifdef __STDC__
13429# include <limits.h>
13430#else
13431# include <assert.h>
13432#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013433 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013434_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013435if { (ac_try="$ac_cpp conftest.$ac_ext"
13436case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013442 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013443 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013447 (exit $ac_status); } >/dev/null; then
13448 if test -s conftest.err; then
13449 ac_cpp_err=$ac_cxx_preproc_warn_flag
13450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13451 else
13452 ac_cpp_err=
13453 fi
13454else
13455 ac_cpp_err=yes
13456fi
13457if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013458 :
13459else
13460 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013461sed 's/^/| /' conftest.$ac_ext >&5
13462
John Criswell47fdd832003-07-14 16:52:07 +000013463 # Broken: fails on valid input.
13464continue
13465fi
Reid Spencera773bd52006-08-04 18:18:08 +000013466
John Criswell47fdd832003-07-14 16:52:07 +000013467rm -f conftest.err conftest.$ac_ext
13468
Reid Spencera773bd52006-08-04 18:18:08 +000013469 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013470 # can be detected and how.
13471 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013472/* confdefs.h. */
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013477#include <ac_nonexistent.h>
13478_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013479if { (ac_try="$ac_cpp conftest.$ac_ext"
13480case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483esac
13484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013486 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013487 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013491 (exit $ac_status); } >/dev/null; then
13492 if test -s conftest.err; then
13493 ac_cpp_err=$ac_cxx_preproc_warn_flag
13494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13495 else
13496 ac_cpp_err=
13497 fi
13498else
13499 ac_cpp_err=yes
13500fi
13501if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013502 # Broken: success on invalid input.
13503continue
13504else
13505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013506sed 's/^/| /' conftest.$ac_ext >&5
13507
John Criswell47fdd832003-07-14 16:52:07 +000013508 # Passes both tests.
13509ac_preproc_ok=:
13510break
13511fi
Reid Spencera773bd52006-08-04 18:18:08 +000013512
John Criswell47fdd832003-07-14 16:52:07 +000013513rm -f conftest.err conftest.$ac_ext
13514
13515done
13516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13517rm -f conftest.err conftest.$ac_ext
13518if $ac_preproc_ok; then
13519 break
John Criswell7a73b802003-06-30 21:59:07 +000013520fi
13521
John Criswell47fdd832003-07-14 16:52:07 +000013522 done
13523 ac_cv_prog_CXXCPP=$CXXCPP
13524
13525fi
13526 CXXCPP=$ac_cv_prog_CXXCPP
13527else
13528 ac_cv_prog_CXXCPP=$CXXCPP
13529fi
Reid Spencera773bd52006-08-04 18:18:08 +000013530{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13531echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013532ac_preproc_ok=false
13533for ac_cxx_preproc_warn_flag in '' yes
13534do
13535 # Use a header file that comes with gcc, so configuring glibc
13536 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13538 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013539 # On the NeXT, cc -E runs the code through the compiler's parser,
13540 # not just through cpp. "Syntax error" is here to catch this case.
13541 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013542/* confdefs.h. */
13543_ACEOF
13544cat confdefs.h >>conftest.$ac_ext
13545cat >>conftest.$ac_ext <<_ACEOF
13546/* end confdefs.h. */
13547#ifdef __STDC__
13548# include <limits.h>
13549#else
13550# include <assert.h>
13551#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013552 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013554if { (ac_try="$ac_cpp conftest.$ac_ext"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013561 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013562 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013566 (exit $ac_status); } >/dev/null; then
13567 if test -s conftest.err; then
13568 ac_cpp_err=$ac_cxx_preproc_warn_flag
13569 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13570 else
13571 ac_cpp_err=
13572 fi
13573else
13574 ac_cpp_err=yes
13575fi
13576if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013577 :
13578else
13579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013580sed 's/^/| /' conftest.$ac_ext >&5
13581
John Criswell47fdd832003-07-14 16:52:07 +000013582 # Broken: fails on valid input.
13583continue
13584fi
Reid Spencera773bd52006-08-04 18:18:08 +000013585
John Criswell47fdd832003-07-14 16:52:07 +000013586rm -f conftest.err conftest.$ac_ext
13587
Reid Spencera773bd52006-08-04 18:18:08 +000013588 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013589 # can be detected and how.
13590 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013591/* confdefs.h. */
13592_ACEOF
13593cat confdefs.h >>conftest.$ac_ext
13594cat >>conftest.$ac_ext <<_ACEOF
13595/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013596#include <ac_nonexistent.h>
13597_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013598if { (ac_try="$ac_cpp conftest.$ac_ext"
13599case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013605 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013606 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013610 (exit $ac_status); } >/dev/null; then
13611 if test -s conftest.err; then
13612 ac_cpp_err=$ac_cxx_preproc_warn_flag
13613 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13614 else
13615 ac_cpp_err=
13616 fi
13617else
13618 ac_cpp_err=yes
13619fi
13620if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013621 # Broken: success on invalid input.
13622continue
13623else
13624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013625sed 's/^/| /' conftest.$ac_ext >&5
13626
John Criswell47fdd832003-07-14 16:52:07 +000013627 # Passes both tests.
13628ac_preproc_ok=:
13629break
13630fi
Reid Spencera773bd52006-08-04 18:18:08 +000013631
John Criswell47fdd832003-07-14 16:52:07 +000013632rm -f conftest.err conftest.$ac_ext
13633
13634done
13635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13636rm -f conftest.err conftest.$ac_ext
13637if $ac_preproc_ok; then
13638 :
13639else
John Criswell0c38eaf2003-09-10 15:17:25 +000013640 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13641See \`config.log' for more details." >&5
13642echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13643See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013644 { (exit 1); exit 1; }; }
13645fi
13646
Reid Spencera773bd52006-08-04 18:18:08 +000013647ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013648ac_cpp='$CXXCPP $CPPFLAGS'
13649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13652
Reid Spencer2706f8c2004-09-19 23:53:36 +000013653fi
13654
John Criswell47fdd832003-07-14 16:52:07 +000013655
13656ac_ext=f
13657ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13658ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13659ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13660if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013661 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 +000013662 do
13663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013667if test "${ac_cv_prog_F77+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 if test -n "$F77"; then
13671 ac_cv_prog_F77="$F77" # Let the user override the test.
13672else
13673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674for as_dir in $PATH
13675do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013679 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 +000013680 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13683 fi
13684done
13685done
Reid Spencera773bd52006-08-04 18:18:08 +000013686IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013687
13688fi
13689fi
13690F77=$ac_cv_prog_F77
13691if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013692 { echo "$as_me:$LINENO: result: $F77" >&5
13693echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013694else
Reid Spencera773bd52006-08-04 18:18:08 +000013695 { echo "$as_me:$LINENO: result: no" >&5
13696echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013697fi
13698
Reid Spencera773bd52006-08-04 18:18:08 +000013699
John Criswell47fdd832003-07-14 16:52:07 +000013700 test -n "$F77" && break
13701 done
13702fi
13703if test -z "$F77"; then
13704 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013705 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 +000013706do
13707 # Extract the first word of "$ac_prog", so it can be a program name with args.
13708set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013711if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713else
13714 if test -n "$ac_ct_F77"; then
13715 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13716else
13717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718for as_dir in $PATH
13719do
13720 IFS=$as_save_IFS
13721 test -z "$as_dir" && as_dir=.
13722 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013723 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 +000013724 ac_cv_prog_ac_ct_F77="$ac_prog"
13725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 break 2
13727 fi
13728done
13729done
Reid Spencera773bd52006-08-04 18:18:08 +000013730IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013731
13732fi
13733fi
13734ac_ct_F77=$ac_cv_prog_ac_ct_F77
13735if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013736 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13737echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013738else
Reid Spencera773bd52006-08-04 18:18:08 +000013739 { echo "$as_me:$LINENO: result: no" >&5
13740echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013741fi
13742
Reid Spencera773bd52006-08-04 18:18:08 +000013743
John Criswell47fdd832003-07-14 16:52:07 +000013744 test -n "$ac_ct_F77" && break
13745done
13746
Reid Spencera773bd52006-08-04 18:18:08 +000013747 if test "x$ac_ct_F77" = x; then
13748 F77=""
13749 else
13750 case $cross_compiling:$ac_tool_warned in
13751yes:)
13752{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13753whose name does not start with the host triplet. If you think this
13754configuration is useful to you, please write to autoconf@gnu.org." >&5
13755echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13756whose name does not start with the host triplet. If you think this
13757configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13758ac_tool_warned=yes ;;
13759esac
13760 F77=$ac_ct_F77
13761 fi
John Criswell47fdd832003-07-14 16:52:07 +000013762fi
13763
13764
13765# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013766echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013767ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013768{ (ac_try="$ac_compiler --version >&5"
13769case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772esac
13773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013778{ (ac_try="$ac_compiler -v >&5"
13779case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782esac
13783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013788{ (ac_try="$ac_compiler -V >&5"
13789case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792esac
13793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013798rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013799
13800# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013801# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013802ac_save_ext=$ac_ext
13803ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013804{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13805echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013806if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809 cat >conftest.$ac_ext <<_ACEOF
13810 program main
13811#ifndef __GNUC__
13812 choke me
13813#endif
13814
13815 end
13816_ACEOF
13817rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013818if { (ac_try="$ac_compile"
13819case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822esac
13823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013825 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013830 (exit $ac_status); } &&
13831 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13832 { (case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835esac
13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_try") 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest.$ac_objext'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013851 ac_compiler_gnu=yes
13852else
13853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013854sed 's/^/| /' conftest.$ac_ext >&5
13855
Reid Spencera773bd52006-08-04 18:18:08 +000013856 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013857fi
Reid Spencera773bd52006-08-04 18:18:08 +000013858
13859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013860ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13861
13862fi
Reid Spencera773bd52006-08-04 18:18:08 +000013863{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13864echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013865ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013866ac_test_FFLAGS=${FFLAGS+set}
13867ac_save_FFLAGS=$FFLAGS
13868FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013869{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13870echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013871if test "${ac_cv_prog_f77_g+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873else
13874 FFLAGS=-g
13875cat >conftest.$ac_ext <<_ACEOF
13876 program main
13877
13878 end
13879_ACEOF
13880rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013881if { (ac_try="$ac_compile"
13882case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885esac
13886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest.$ac_objext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013914 ac_cv_prog_f77_g=yes
13915else
13916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013917sed 's/^/| /' conftest.$ac_ext >&5
13918
Reid Spencera773bd52006-08-04 18:18:08 +000013919 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013920fi
Reid Spencera773bd52006-08-04 18:18:08 +000013921
13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013923
13924fi
Reid Spencera773bd52006-08-04 18:18:08 +000013925{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13926echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013927if test "$ac_test_FFLAGS" = set; then
13928 FFLAGS=$ac_save_FFLAGS
13929elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013930 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013931 FFLAGS="-g -O2"
13932 else
13933 FFLAGS="-g"
13934 fi
13935else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013936 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013937 FFLAGS="-O2"
13938 else
13939 FFLAGS=
13940 fi
13941fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013942
13943G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013944ac_ext=c
13945ac_cpp='$CPP $CPPFLAGS'
13946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948ac_compiler_gnu=$ac_cv_c_compiler_gnu
13949
13950
13951
13952# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13953
13954# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013955{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13956echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013957if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959else
13960 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013961 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013962
13963 case $build_os in
13964 msdosdjgpp*)
13965 # On DJGPP, this test can blow up pretty badly due to problems in libc
13966 # (any single argument exceeding 2000 bytes causes a buffer overrun
13967 # during glob expansion). Even if it were fixed, the result of this
13968 # check would be larger than it should be.
13969 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13970 ;;
13971
13972 gnu*)
13973 # Under GNU Hurd, this test is not required because there is
13974 # no limit to the length of command line arguments.
13975 # Libtool will interpret -1 as no limit whatsoever
13976 lt_cv_sys_max_cmd_len=-1;
13977 ;;
13978
13979 cygwin* | mingw*)
13980 # On Win9x/ME, this test blows up -- it succeeds, but takes
13981 # about 5 minutes as the teststring grows exponentially.
13982 # Worse, since 9x/ME are not pre-emptively multitasking,
13983 # you end up with a "frozen" computer, even though with patience
13984 # the test eventually succeeds (with a max line length of 256k).
13985 # Instead, let's just punt: use the minimum linelength reported by
13986 # all of the supported platforms: 8192 (on NT/2K/XP).
13987 lt_cv_sys_max_cmd_len=8192;
13988 ;;
13989
Reid Spencer2706f8c2004-09-19 23:53:36 +000013990 amigaos*)
13991 # On AmigaOS with pdksh, this test takes hours, literally.
13992 # So we just punt and use a minimum line length of 8192.
13993 lt_cv_sys_max_cmd_len=8192;
13994 ;;
13995
Reid Spencera773bd52006-08-04 18:18:08 +000013996 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013997 # This has been around since 386BSD, at least. Likely further.
13998 if test -x /sbin/sysctl; then
13999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14000 elif test -x /usr/sbin/sysctl; then
14001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14002 else
Reid Spencera773bd52006-08-04 18:18:08 +000014003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000014004 fi
14005 # And add a safety zone
14006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000014007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014008 ;;
14009
Reid Spencera773bd52006-08-04 18:18:08 +000014010 interix*)
14011 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14012 lt_cv_sys_max_cmd_len=196608
14013 ;;
14014
14015 osf*)
14016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14018 # nice to cause kernel panics so lets avoid the loop below.
14019 # First set a reasonable default.
14020 lt_cv_sys_max_cmd_len=16384
14021 #
14022 if test -x /sbin/sysconfig; then
14023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14024 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14025 esac
14026 fi
14027 ;;
14028 sco3.2v5*)
14029 lt_cv_sys_max_cmd_len=102400
14030 ;;
14031 sysv5* | sco5v6* | sysv4.2uw2*)
14032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14033 if test -n "$kargmax"; then
14034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14035 else
14036 lt_cv_sys_max_cmd_len=32768
14037 fi
14038 ;;
14039 *)
John Criswell47fdd832003-07-14 16:52:07 +000014040 # If test is not a shell built-in, we'll probably end up computing a
14041 # maximum length that is only half of the actual maximum length, but
14042 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14044 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14045 = "XX$teststring") >/dev/null 2>&1 &&
14046 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000014047 lt_cv_sys_max_cmd_len=$new_result &&
14048 test $i != 17 # 1/2 MB should be enough
14049 do
14050 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000014051 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000014052 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000014053 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000014054 # Add a significant safety factor because C++ compilers can tack on massive
14055 # amounts of additional arguments before passing them to the linker.
14056 # It appears as though 1/2 is a usable value.
14057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14058 ;;
14059 esac
14060
14061fi
14062
14063if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000014064 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14065echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014066else
Reid Spencera773bd52006-08-04 18:18:08 +000014067 { echo "$as_me:$LINENO: result: none" >&5
14068echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014069fi
14070
14071
14072
14073
14074# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000014075{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14076echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014077if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079else
14080
14081# These are sane defaults that work on at least a few old systems.
14082# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14083
14084# Character class describing NM global symbol codes.
14085symcode='[BCDEGRST]'
14086
14087# Regexp to match symbols that can be accessed directly from C.
14088sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14089
John Criswell47fdd832003-07-14 16:52:07 +000014090# Transform an extracted symbol line into a proper C declaration
14091lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14092
14093# Transform an extracted symbol line into symbol name and symbol address
14094lt_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'"
14095
14096# Define system-specific variables.
14097case $host_os in
14098aix*)
14099 symcode='[BCDT]'
14100 ;;
14101cygwin* | mingw* | pw32*)
14102 symcode='[ABCDGISTW]'
14103 ;;
14104hpux*) # Its linker distinguishes data from code symbols
14105 if test "$host_cpu" = ia64; then
14106 symcode='[ABCDEGRST]'
14107 fi
14108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14109 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'"
14110 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014111linux*)
14112 if test "$host_cpu" = ia64; then
14113 symcode='[ABCDGIRSTW]'
14114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14115 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'"
14116 fi
14117 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014118irix* | nonstopux*)
14119 symcode='[BCDEGRST]'
14120 ;;
14121osf*)
14122 symcode='[BCDEGQRST]'
14123 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014124solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014125 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000014126 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014127sco3.2v5*)
14128 symcode='[DT]'
14129 ;;
14130sysv4.2uw2*)
14131 symcode='[DT]'
14132 ;;
14133sysv5* | sco5v6* | unixware* | OpenUNIX*)
14134 symcode='[ABDT]'
14135 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014136sysv4)
14137 symcode='[DFNSTU]'
14138 ;;
14139esac
14140
14141# Handle CRLF in mingw tool chain
14142opt_cr=
14143case $build_os in
14144mingw*)
14145 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14146 ;;
14147esac
14148
14149# If we're using GNU nm, then use its standard symbol codes.
14150case `$NM -V 2>&1` in
14151*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014152 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014153esac
14154
14155# Try without a prefix undercore, then with it.
14156for ac_symprfx in "" "_"; do
14157
Reid Spencera773bd52006-08-04 18:18:08 +000014158 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14159 symxfrm="\\1 $ac_symprfx\\2 \\2"
14160
John Criswell47fdd832003-07-14 16:52:07 +000014161 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014162 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 +000014163
14164 # Check to see that the pipe works correctly.
14165 pipe_works=no
14166
14167 rm -f conftest*
14168 cat > conftest.$ac_ext <<EOF
14169#ifdef __cplusplus
14170extern "C" {
14171#endif
14172char nm_test_var;
14173void nm_test_func(){}
14174#ifdef __cplusplus
14175}
14176#endif
14177int main(){nm_test_var='a';nm_test_func();return(0);}
14178EOF
14179
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181 (eval $ac_compile) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; then
14185 # Now try to grab the symbols.
14186 nlist=conftest.nm
14187 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14188 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } && test -s "$nlist"; then
14192 # Try sorting and uniquifying the output.
14193 if sort "$nlist" | uniq > "$nlist"T; then
14194 mv -f "$nlist"T "$nlist"
14195 else
14196 rm -f "$nlist"T
14197 fi
14198
14199 # Make sure that we snagged all the symbols we need.
14200 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14201 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14202 cat <<EOF > conftest.$ac_ext
14203#ifdef __cplusplus
14204extern "C" {
14205#endif
14206
14207EOF
14208 # Now generate the symbol file.
14209 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14210
14211 cat <<EOF >> conftest.$ac_ext
14212#if defined (__STDC__) && __STDC__
14213# define lt_ptr_t void *
14214#else
14215# define lt_ptr_t char *
14216# define const
14217#endif
14218
14219/* The mapping between symbol names and symbols. */
14220const struct {
14221 const char *name;
14222 lt_ptr_t address;
14223}
14224lt_preloaded_symbols[] =
14225{
14226EOF
14227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14228 cat <<\EOF >> conftest.$ac_ext
14229 {0, (lt_ptr_t) 0}
14230};
14231
14232#ifdef __cplusplus
14233}
14234#endif
14235EOF
14236 # Now try linking the two files.
14237 mv conftest.$ac_objext conftstm.$ac_objext
14238 lt_save_LIBS="$LIBS"
14239 lt_save_CFLAGS="$CFLAGS"
14240 LIBS="conftstm.$ac_objext"
14241 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 (eval $ac_link) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14247 pipe_works=yes
14248 fi
14249 LIBS="$lt_save_LIBS"
14250 CFLAGS="$lt_save_CFLAGS"
14251 else
14252 echo "cannot find nm_test_func in $nlist" >&5
14253 fi
14254 else
14255 echo "cannot find nm_test_var in $nlist" >&5
14256 fi
14257 else
14258 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14259 fi
14260 else
14261 echo "$progname: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 fi
14264 rm -f conftest* conftst*
14265
14266 # Do not use the global_symbol_pipe unless it works.
14267 if test "$pipe_works" = yes; then
14268 break
14269 else
14270 lt_cv_sys_global_symbol_pipe=
14271 fi
14272done
14273
14274fi
14275
14276if test -z "$lt_cv_sys_global_symbol_pipe"; then
14277 lt_cv_sys_global_symbol_to_cdecl=
14278fi
14279if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014280 { echo "$as_me:$LINENO: result: failed" >&5
14281echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014282else
Reid Spencera773bd52006-08-04 18:18:08 +000014283 { echo "$as_me:$LINENO: result: ok" >&5
14284echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014285fi
14286
Reid Spencera773bd52006-08-04 18:18:08 +000014287{ echo "$as_me:$LINENO: checking for objdir" >&5
14288echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014289if test "${lt_cv_objdir+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291else
14292 rm -f .libs 2>/dev/null
14293mkdir .libs 2>/dev/null
14294if test -d .libs; then
14295 lt_cv_objdir=.libs
14296else
14297 # MS-DOS does not allow filenames that begin with a dot.
14298 lt_cv_objdir=_libs
14299fi
14300rmdir .libs 2>/dev/null
14301fi
Reid Spencera773bd52006-08-04 18:18:08 +000014302{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14303echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014304objdir=$lt_cv_objdir
14305
14306
14307
14308
14309
14310case $host_os in
14311aix3*)
14312 # AIX sometimes has problems with the GCC collect2 program. For some
14313 # reason, if we set the COLLECT_NAMES environment variable, the problems
14314 # vanish in a puff of smoke.
14315 if test "X${COLLECT_NAMES+set}" != Xset; then
14316 COLLECT_NAMES=
14317 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014318 fi
14319 ;;
14320esac
14321
John Criswell47fdd832003-07-14 16:52:07 +000014322# Sed substitution that helps us do robust quoting. It backslashifies
14323# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014324Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014325sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14326
14327# Same as above, but do not quote variable references.
14328double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14329
14330# Sed substitution to delay expansion of an escaped shell variable in a
14331# double_quote_subst'ed string.
14332delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14333
14334# Sed substitution to avoid accidental globbing in evaled expressions
14335no_glob_subst='s/\*/\\\*/g'
14336
14337# Constants:
14338rm="rm -f"
14339
14340# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014341default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014342can_build_shared=yes
14343
Reid Spencera773bd52006-08-04 18:18:08 +000014344# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014345# which needs '.lib').
14346libext=a
14347ltmain="$ac_aux_dir/ltmain.sh"
14348ofile="$default_ofile"
14349with_gnu_ld="$lt_cv_prog_gnu_ld"
14350
14351if test -n "$ac_tool_prefix"; then
14352 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14353set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014356if test "${ac_cv_prog_AR+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358else
14359 if test -n "$AR"; then
14360 ac_cv_prog_AR="$AR" # Let the user override the test.
14361else
14362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14363for as_dir in $PATH
14364do
14365 IFS=$as_save_IFS
14366 test -z "$as_dir" && as_dir=.
14367 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014368 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 +000014369 ac_cv_prog_AR="${ac_tool_prefix}ar"
14370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14371 break 2
14372 fi
14373done
14374done
Reid Spencera773bd52006-08-04 18:18:08 +000014375IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014376
14377fi
14378fi
14379AR=$ac_cv_prog_AR
14380if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014381 { echo "$as_me:$LINENO: result: $AR" >&5
14382echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014383else
Reid Spencera773bd52006-08-04 18:18:08 +000014384 { echo "$as_me:$LINENO: result: no" >&5
14385echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014386fi
14387
Reid Spencera773bd52006-08-04 18:18:08 +000014388
John Criswell47fdd832003-07-14 16:52:07 +000014389fi
14390if test -z "$ac_cv_prog_AR"; then
14391 ac_ct_AR=$AR
14392 # Extract the first word of "ar", so it can be a program name with args.
14393set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014396if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399 if test -n "$ac_ct_AR"; then
14400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14401else
14402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403for as_dir in $PATH
14404do
14405 IFS=$as_save_IFS
14406 test -z "$as_dir" && as_dir=.
14407 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014408 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 +000014409 ac_cv_prog_ac_ct_AR="ar"
14410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 break 2
14412 fi
14413done
14414done
Reid Spencera773bd52006-08-04 18:18:08 +000014415IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014416
John Criswell47fdd832003-07-14 16:52:07 +000014417fi
14418fi
14419ac_ct_AR=$ac_cv_prog_ac_ct_AR
14420if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014421 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14422echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014423else
Reid Spencera773bd52006-08-04 18:18:08 +000014424 { echo "$as_me:$LINENO: result: no" >&5
14425echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014426fi
14427
Reid Spencera773bd52006-08-04 18:18:08 +000014428 if test "x$ac_ct_AR" = x; then
14429 AR="false"
14430 else
14431 case $cross_compiling:$ac_tool_warned in
14432yes:)
14433{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14434whose name does not start with the host triplet. If you think this
14435configuration is useful to you, please write to autoconf@gnu.org." >&5
14436echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14437whose name does not start with the host triplet. If you think this
14438configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14439ac_tool_warned=yes ;;
14440esac
14441 AR=$ac_ct_AR
14442 fi
John Criswell47fdd832003-07-14 16:52:07 +000014443else
14444 AR="$ac_cv_prog_AR"
14445fi
14446
John Criswell7a73b802003-06-30 21:59:07 +000014447if test -n "$ac_tool_prefix"; then
14448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14449set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014452if test "${ac_cv_prog_RANLIB+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454else
14455 if test -n "$RANLIB"; then
14456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14457else
14458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459for as_dir in $PATH
14460do
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014464 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 +000014465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14468 fi
14469done
14470done
Reid Spencera773bd52006-08-04 18:18:08 +000014471IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014472
14473fi
14474fi
14475RANLIB=$ac_cv_prog_RANLIB
14476if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014477 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14478echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014479else
Reid Spencera773bd52006-08-04 18:18:08 +000014480 { echo "$as_me:$LINENO: result: no" >&5
14481echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014482fi
14483
Reid Spencera773bd52006-08-04 18:18:08 +000014484
John Criswell7a73b802003-06-30 21:59:07 +000014485fi
14486if test -z "$ac_cv_prog_RANLIB"; then
14487 ac_ct_RANLIB=$RANLIB
14488 # Extract the first word of "ranlib", so it can be a program name with args.
14489set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014492if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495 if test -n "$ac_ct_RANLIB"; then
14496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14497else
14498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499for as_dir in $PATH
14500do
14501 IFS=$as_save_IFS
14502 test -z "$as_dir" && as_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014504 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 +000014505 ac_cv_prog_ac_ct_RANLIB="ranlib"
14506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14507 break 2
14508 fi
14509done
14510done
Reid Spencera773bd52006-08-04 18:18:08 +000014511IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014512
John Criswell7a73b802003-06-30 21:59:07 +000014513fi
14514fi
14515ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14516if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014517 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14518echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014519else
Reid Spencera773bd52006-08-04 18:18:08 +000014520 { echo "$as_me:$LINENO: result: no" >&5
14521echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014522fi
14523
Reid Spencera773bd52006-08-04 18:18:08 +000014524 if test "x$ac_ct_RANLIB" = x; then
14525 RANLIB=":"
14526 else
14527 case $cross_compiling:$ac_tool_warned in
14528yes:)
14529{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14530whose name does not start with the host triplet. If you think this
14531configuration is useful to you, please write to autoconf@gnu.org." >&5
14532echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14533whose name does not start with the host triplet. If you think this
14534configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14535ac_tool_warned=yes ;;
14536esac
14537 RANLIB=$ac_ct_RANLIB
14538 fi
John Criswell7a73b802003-06-30 21:59:07 +000014539else
14540 RANLIB="$ac_cv_prog_RANLIB"
14541fi
14542
14543if test -n "$ac_tool_prefix"; then
14544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14545set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014548if test "${ac_cv_prog_STRIP+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550else
14551 if test -n "$STRIP"; then
14552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14553else
14554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555for as_dir in $PATH
14556do
14557 IFS=$as_save_IFS
14558 test -z "$as_dir" && as_dir=.
14559 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014560 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 +000014561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14563 break 2
14564 fi
14565done
14566done
Reid Spencera773bd52006-08-04 18:18:08 +000014567IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014568
14569fi
14570fi
14571STRIP=$ac_cv_prog_STRIP
14572if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014573 { echo "$as_me:$LINENO: result: $STRIP" >&5
14574echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014575else
Reid Spencera773bd52006-08-04 18:18:08 +000014576 { echo "$as_me:$LINENO: result: no" >&5
14577echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014578fi
14579
Reid Spencera773bd52006-08-04 18:18:08 +000014580
John Criswell7a73b802003-06-30 21:59:07 +000014581fi
14582if test -z "$ac_cv_prog_STRIP"; then
14583 ac_ct_STRIP=$STRIP
14584 # Extract the first word of "strip", so it can be a program name with args.
14585set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014588if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590else
14591 if test -n "$ac_ct_STRIP"; then
14592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14593else
14594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595for as_dir in $PATH
14596do
14597 IFS=$as_save_IFS
14598 test -z "$as_dir" && as_dir=.
14599 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014600 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 +000014601 ac_cv_prog_ac_ct_STRIP="strip"
14602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14603 break 2
14604 fi
14605done
14606done
Reid Spencera773bd52006-08-04 18:18:08 +000014607IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014608
John Criswell7a73b802003-06-30 21:59:07 +000014609fi
14610fi
14611ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14612if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014613 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14614echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014615else
Reid Spencera773bd52006-08-04 18:18:08 +000014616 { echo "$as_me:$LINENO: result: no" >&5
14617echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014618fi
14619
Reid Spencera773bd52006-08-04 18:18:08 +000014620 if test "x$ac_ct_STRIP" = x; then
14621 STRIP=":"
14622 else
14623 case $cross_compiling:$ac_tool_warned in
14624yes:)
14625{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14626whose name does not start with the host triplet. If you think this
14627configuration is useful to you, please write to autoconf@gnu.org." >&5
14628echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14629whose name does not start with the host triplet. If you think this
14630configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14631ac_tool_warned=yes ;;
14632esac
14633 STRIP=$ac_ct_STRIP
14634 fi
John Criswell7a73b802003-06-30 21:59:07 +000014635else
14636 STRIP="$ac_cv_prog_STRIP"
14637fi
14638
14639
John Criswell7a73b802003-06-30 21:59:07 +000014640old_CC="$CC"
14641old_CFLAGS="$CFLAGS"
14642
14643# Set sane defaults for various variables
14644test -z "$AR" && AR=ar
14645test -z "$AR_FLAGS" && AR_FLAGS=cru
14646test -z "$AS" && AS=as
14647test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014648test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014649test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014650test -z "$DLLTOOL" && DLLTOOL=dlltool
14651test -z "$LD" && LD=ld
14652test -z "$LN_S" && LN_S="ln -s"
14653test -z "$MAGIC_CMD" && MAGIC_CMD=file
14654test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014655test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014656test -z "$OBJDUMP" && OBJDUMP=objdump
14657test -z "$RANLIB" && RANLIB=:
14658test -z "$STRIP" && STRIP=:
14659test -z "$ac_objext" && ac_objext=o
14660
John Criswell7a73b802003-06-30 21:59:07 +000014661# Determine commands to create old-style static archives.
14662old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14663old_postinstall_cmds='chmod 644 $oldlib'
14664old_postuninstall_cmds=
14665
14666if test -n "$RANLIB"; then
14667 case $host_os in
14668 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014669 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014670 ;;
14671 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014673 ;;
14674 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014675 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014676fi
14677
Reid Spencera773bd52006-08-04 18:18:08 +000014678for cc_temp in $compiler""; do
14679 case $cc_temp in
14680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14682 \-*) ;;
14683 *) break;;
14684 esac
14685done
14686cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14687
Reid Spencer2706f8c2004-09-19 23:53:36 +000014688
John Criswell47fdd832003-07-14 16:52:07 +000014689# Only perform the check for file, if the check method requires it
14690case $deplibs_check_method in
14691file_magic*)
14692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014693 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14694echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014695if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014697else
John Criswell47fdd832003-07-14 16:52:07 +000014698 case $MAGIC_CMD in
14699[\\/*] | ?:[\\/]*)
14700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14701 ;;
14702*)
14703 lt_save_MAGIC_CMD="$MAGIC_CMD"
14704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14706 for ac_dir in $ac_dummy; do
14707 IFS="$lt_save_ifs"
14708 test -z "$ac_dir" && ac_dir=.
14709 if test -f $ac_dir/${ac_tool_prefix}file; then
14710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14711 if test -n "$file_magic_test_file"; then
14712 case $deplibs_check_method in
14713 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14717 $EGREP "$file_magic_regex" > /dev/null; then
14718 :
14719 else
14720 cat <<EOF 1>&2
14721
14722*** Warning: the command libtool uses to detect shared libraries,
14723*** $file_magic_cmd, produces output that libtool cannot recognize.
14724*** The result is that libtool may fail to recognize shared libraries
14725*** as such. This will affect the creation of libtool libraries that
14726*** depend on shared libraries, but programs linked with such libtool
14727*** libraries will work regardless of this problem. Nevertheless, you
14728*** may want to report the problem to your system manager and/or to
14729*** bug-libtool@gnu.org
14730
14731EOF
14732 fi ;;
14733 esac
14734 fi
14735 break
14736 fi
14737 done
14738 IFS="$lt_save_ifs"
14739 MAGIC_CMD="$lt_save_MAGIC_CMD"
14740 ;;
14741esac
John Criswell7a73b802003-06-30 21:59:07 +000014742fi
John Criswell7a73b802003-06-30 21:59:07 +000014743
John Criswell47fdd832003-07-14 16:52:07 +000014744MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14745if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014746 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14747echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014748else
Reid Spencera773bd52006-08-04 18:18:08 +000014749 { echo "$as_me:$LINENO: result: no" >&5
14750echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014751fi
John Criswell7a73b802003-06-30 21:59:07 +000014752
John Criswell47fdd832003-07-14 16:52:07 +000014753if test -z "$lt_cv_path_MAGIC_CMD"; then
14754 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014755 { echo "$as_me:$LINENO: checking for file" >&5
14756echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014757if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 case $MAGIC_CMD in
14761[\\/*] | ?:[\\/]*)
14762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14763 ;;
14764*)
14765 lt_save_MAGIC_CMD="$MAGIC_CMD"
14766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14768 for ac_dir in $ac_dummy; do
14769 IFS="$lt_save_ifs"
14770 test -z "$ac_dir" && ac_dir=.
14771 if test -f $ac_dir/file; then
14772 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14773 if test -n "$file_magic_test_file"; then
14774 case $deplibs_check_method in
14775 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14779 $EGREP "$file_magic_regex" > /dev/null; then
14780 :
14781 else
14782 cat <<EOF 1>&2
14783
14784*** Warning: the command libtool uses to detect shared libraries,
14785*** $file_magic_cmd, produces output that libtool cannot recognize.
14786*** The result is that libtool may fail to recognize shared libraries
14787*** as such. This will affect the creation of libtool libraries that
14788*** depend on shared libraries, but programs linked with such libtool
14789*** libraries will work regardless of this problem. Nevertheless, you
14790*** may want to report the problem to your system manager and/or to
14791*** bug-libtool@gnu.org
14792
14793EOF
14794 fi ;;
14795 esac
14796 fi
14797 break
14798 fi
14799 done
14800 IFS="$lt_save_ifs"
14801 MAGIC_CMD="$lt_save_MAGIC_CMD"
14802 ;;
14803esac
14804fi
14805
14806MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14807if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014808 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14809echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014810else
Reid Spencera773bd52006-08-04 18:18:08 +000014811 { echo "$as_me:$LINENO: result: no" >&5
14812echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014813fi
14814
14815 else
14816 MAGIC_CMD=:
14817 fi
14818fi
14819
14820 fi
14821 ;;
14822esac
14823
Reid Spencer17795972004-11-18 09:47:37 +000014824enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014825enable_win32_dll=no
14826
Reid Spencera773bd52006-08-04 18:18:08 +000014827# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014828if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014829 enableval=$enable_libtool_lock;
14830fi
John Criswell47fdd832003-07-14 16:52:07 +000014831
John Criswell47fdd832003-07-14 16:52:07 +000014832test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14833
John Criswell7a73b802003-06-30 21:59:07 +000014834
Reid Spencera773bd52006-08-04 18:18:08 +000014835# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014836if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014837 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014838else
14839 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014840fi
14841
John Criswell7a73b802003-06-30 21:59:07 +000014842test -z "$pic_mode" && pic_mode=default
14843
John Criswell47fdd832003-07-14 16:52:07 +000014844# Use C for the default configuration in the libtool script
14845tagname=
14846lt_save_CC="$CC"
14847ac_ext=c
14848ac_cpp='$CPP $CPPFLAGS'
14849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14851ac_compiler_gnu=$ac_cv_c_compiler_gnu
14852
14853
14854# Source file extension for C test sources.
14855ac_ext=c
14856
14857# Object file extension for compiled C test sources.
14858objext=o
14859objext=$objext
14860
14861# Code to be used in simple compile tests
14862lt_simple_compile_test_code="int some_variable = 0;\n"
14863
14864# Code to be used in simple link tests
14865lt_simple_link_test_code='int main(){return(0);}\n'
14866
14867
14868# If no C compiler was specified, use CC.
14869LTCC=${LTCC-"$CC"}
14870
Reid Spencera773bd52006-08-04 18:18:08 +000014871# If no C compiler flags were specified, use CFLAGS.
14872LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14873
John Criswell47fdd832003-07-14 16:52:07 +000014874# Allow CC to be a program name with arguments.
14875compiler=$CC
14876
14877
Reid Spencera773bd52006-08-04 18:18:08 +000014878# save warnings/boilerplate of simple test code
14879ac_outfile=conftest.$ac_objext
14880printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14881eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14882_lt_compiler_boilerplate=`cat conftest.err`
14883$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014884
Reid Spencera773bd52006-08-04 18:18:08 +000014885ac_outfile=conftest.$ac_objext
14886printf "$lt_simple_link_test_code" >conftest.$ac_ext
14887eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14888_lt_linker_boilerplate=`cat conftest.err`
14889$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014890
14891
John Criswell47fdd832003-07-14 16:52:07 +000014892
14893lt_prog_compiler_no_builtin_flag=
14894
14895if test "$GCC" = yes; then
14896 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14897
Reid Spencer2706f8c2004-09-19 23:53:36 +000014898
Reid Spencera773bd52006-08-04 18:18:08 +000014899{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14900echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014901if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903else
14904 lt_cv_prog_compiler_rtti_exceptions=no
14905 ac_outfile=conftest.$ac_objext
14906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14907 lt_compiler_flag="-fno-rtti -fno-exceptions"
14908 # Insert the option either (1) after the last *FLAGS variable, or
14909 # (2) before a word containing "conftest.", or (3) at the end.
14910 # Note that $ac_compile itself does not contain backslashes and begins
14911 # with a dollar sign (not a hyphen), so the echo should work correctly.
14912 # The option is referenced via a variable to avoid confusing sed.
14913 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14916 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000014917 (eval echo "\"\$as_me:14917: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014918 (eval "$lt_compile" 2>conftest.err)
14919 ac_status=$?
14920 cat conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000014921 echo "$as_me:14921: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014922 if (exit $ac_status) && test -s "$ac_outfile"; then
14923 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014924 # So say no if there are warnings other than the usual output.
14925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014928 lt_cv_prog_compiler_rtti_exceptions=yes
14929 fi
14930 fi
14931 $rm conftest*
14932
14933fi
Reid Spencera773bd52006-08-04 18:18:08 +000014934{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14935echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014936
14937if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14938 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14939else
14940 :
14941fi
14942
14943fi
14944
14945lt_prog_compiler_wl=
14946lt_prog_compiler_pic=
14947lt_prog_compiler_static=
14948
Reid Spencera773bd52006-08-04 18:18:08 +000014949{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14950echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014951
14952 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014953 lt_prog_compiler_wl='-Wl,'
14954 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014955
14956 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014957 aix*)
14958 # All AIX code is PIC.
14959 if test "$host_cpu" = ia64; then
14960 # AIX 5 now supports IA64 processor
14961 lt_prog_compiler_static='-Bstatic'
14962 fi
John Criswell7a73b802003-06-30 21:59:07 +000014963 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014964
John Criswell7a73b802003-06-30 21:59:07 +000014965 amigaos*)
14966 # FIXME: we need at least 68020 code to build shared libraries, but
14967 # adding the `-m68020' flag to GCC prevents building anything better,
14968 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014970 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014971
14972 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014973 # PIC is the default for these OSes.
14974 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014975
14976 mingw* | pw32* | os2*)
14977 # This hack is so that the source file can tell whether it is being
14978 # built for inclusion in a dll (and should export symbols for example).
14979 lt_prog_compiler_pic='-DDLL_EXPORT'
14980 ;;
14981
John Criswell7a73b802003-06-30 21:59:07 +000014982 darwin* | rhapsody*)
14983 # PIC is the default on this platform
14984 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014985 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014986 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014987
Reid Spencera773bd52006-08-04 18:18:08 +000014988 interix3*)
14989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14990 # Instead, we relocate shared libraries at runtime.
14991 ;;
14992
John Criswell47fdd832003-07-14 16:52:07 +000014993 msdosdjgpp*)
14994 # Just because we use GCC doesn't mean we suddenly get shared libraries
14995 # on systems that don't support them.
14996 lt_prog_compiler_can_build_shared=no
14997 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014998 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014999
John Criswell7a73b802003-06-30 21:59:07 +000015000 sysv4*MP*)
15001 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000015002 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000015003 fi
15004 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015005
15006 hpux*)
15007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15008 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015009 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015010 hppa*64*|ia64*)
15011 # +Z the default
15012 ;;
15013 *)
15014 lt_prog_compiler_pic='-fPIC'
15015 ;;
15016 esac
15017 ;;
15018
John Criswell7a73b802003-06-30 21:59:07 +000015019 *)
John Criswell47fdd832003-07-14 16:52:07 +000015020 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000015021 ;;
15022 esac
15023 else
John Criswell47fdd832003-07-14 16:52:07 +000015024 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000015025 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015026 aix*)
15027 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015028 if test "$host_cpu" = ia64; then
15029 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000015030 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015031 else
John Criswell47fdd832003-07-14 16:52:07 +000015032 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000015033 fi
15034 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015035 darwin*)
15036 # PIC is the default on this platform
15037 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000015038 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015039 xlc*)
15040 lt_prog_compiler_pic='-qnocommon'
15041 lt_prog_compiler_wl='-Wl,'
15042 ;;
15043 esac
15044 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015045
John Criswell47fdd832003-07-14 16:52:07 +000015046 mingw* | pw32* | os2*)
15047 # This hack is so that the source file can tell whether it is being
15048 # built for inclusion in a dll (and should export symbols for example).
15049 lt_prog_compiler_pic='-DDLL_EXPORT'
15050 ;;
15051
John Criswell7a73b802003-06-30 21:59:07 +000015052 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000015053 lt_prog_compiler_wl='-Wl,'
15054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15055 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000015056 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015057 hppa*64*|ia64*)
15058 # +Z the default
15059 ;;
15060 *)
15061 lt_prog_compiler_pic='+Z'
15062 ;;
15063 esac
15064 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15065 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000015066 ;;
15067
John Criswell47fdd832003-07-14 16:52:07 +000015068 irix5* | irix6* | nonstopux*)
15069 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015070 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000015071 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015072 ;;
15073
15074 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000015075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15077 ;;
15078
15079 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000015080 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015081 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015082 lt_prog_compiler_wl='-Wl,'
15083 lt_prog_compiler_pic='-KPIC'
15084 lt_prog_compiler_static='-static'
15085 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015086 pgcc* | pgf77* | pgf90* | pgf95*)
15087 # Portland Group compilers (*not* the Pentium gcc compiler,
15088 # which looks to be a dead project)
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='-fpic'
15091 lt_prog_compiler_static='-Bstatic'
15092 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015093 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015094 lt_prog_compiler_wl='-Wl,'
15095 # All Alpha code is PIC.
15096 lt_prog_compiler_static='-non_shared'
15097 ;;
15098 esac
John Criswell7a73b802003-06-30 21:59:07 +000015099 ;;
15100
15101 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000015102 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000015103 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000015104 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000015105 ;;
15106
John Criswell7a73b802003-06-30 21:59:07 +000015107 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000015110 case $cc_basename in
15111 f77* | f90* | f95*)
15112 lt_prog_compiler_wl='-Qoption ld ';;
15113 *)
15114 lt_prog_compiler_wl='-Wl,';;
15115 esac
John Criswell7a73b802003-06-30 21:59:07 +000015116 ;;
15117
15118 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000015119 lt_prog_compiler_wl='-Qoption ld '
15120 lt_prog_compiler_pic='-PIC'
15121 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015122 ;;
15123
Reid Spencera773bd52006-08-04 18:18:08 +000015124 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000015125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-KPIC'
15127 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015128 ;;
15129
15130 sysv4*MP*)
15131 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000015132 lt_prog_compiler_pic='-Kconform_pic'
15133 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000015134 fi
15135 ;;
15136
Reid Spencera773bd52006-08-04 18:18:08 +000015137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15138 lt_prog_compiler_wl='-Wl,'
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15141 ;;
15142
15143 unicos*)
15144 lt_prog_compiler_wl='-Wl,'
15145 lt_prog_compiler_can_build_shared=no
15146 ;;
15147
John Criswell47fdd832003-07-14 16:52:07 +000015148 uts4*)
15149 lt_prog_compiler_pic='-pic'
15150 lt_prog_compiler_static='-Bstatic'
15151 ;;
15152
John Criswell7a73b802003-06-30 21:59:07 +000015153 *)
John Criswell47fdd832003-07-14 16:52:07 +000015154 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015155 ;;
15156 esac
15157 fi
15158
Reid Spencera773bd52006-08-04 18:18:08 +000015159{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15160echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015161
John Criswell47fdd832003-07-14 16:52:07 +000015162#
15163# Check to make sure the PIC flag actually works.
15164#
15165if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015166
Reid Spencera773bd52006-08-04 18:18:08 +000015167{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15168echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015169if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
John Criswell47fdd832003-07-14 16:52:07 +000015172 lt_prog_compiler_pic_works=no
15173 ac_outfile=conftest.$ac_objext
15174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15175 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15176 # Insert the option either (1) after the last *FLAGS variable, or
15177 # (2) before a word containing "conftest.", or (3) at the end.
15178 # Note that $ac_compile itself does not contain backslashes and begins
15179 # with a dollar sign (not a hyphen), so the echo should work correctly.
15180 # The option is referenced via a variable to avoid confusing sed.
15181 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15184 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000015185 (eval echo "\"\$as_me:15185: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015186 (eval "$lt_compile" 2>conftest.err)
15187 ac_status=$?
15188 cat conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000015189 echo "$as_me:15189: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015190 if (exit $ac_status) && test -s "$ac_outfile"; then
15191 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015192 # So say no if there are warnings other than the usual output.
15193 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015196 lt_prog_compiler_pic_works=yes
15197 fi
15198 fi
15199 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015200
John Criswell47fdd832003-07-14 16:52:07 +000015201fi
Reid Spencera773bd52006-08-04 18:18:08 +000015202{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15203echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015204
John Criswell47fdd832003-07-14 16:52:07 +000015205if test x"$lt_prog_compiler_pic_works" = xyes; then
15206 case $lt_prog_compiler_pic in
15207 "" | " "*) ;;
15208 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15209 esac
John Criswell7a73b802003-06-30 21:59:07 +000015210else
John Criswell47fdd832003-07-14 16:52:07 +000015211 lt_prog_compiler_pic=
15212 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015213fi
15214
John Criswell7a73b802003-06-30 21:59:07 +000015215fi
Reid Spencera773bd52006-08-04 18:18:08 +000015216case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015217 # For platforms which do not support PIC, -DPIC is meaningless:
15218 *djgpp*)
15219 lt_prog_compiler_pic=
15220 ;;
15221 *)
15222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15223 ;;
15224esac
John Criswell7a73b802003-06-30 21:59:07 +000015225
Reid Spencera773bd52006-08-04 18:18:08 +000015226#
15227# Check to make sure the static flag actually works.
15228#
15229wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15230{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15231echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15232if test "${lt_prog_compiler_static_works+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234else
15235 lt_prog_compiler_static_works=no
15236 save_LDFLAGS="$LDFLAGS"
15237 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15238 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15240 # The linker can only warn and ignore the option if not recognized
15241 # So say no if there are warnings
15242 if test -s conftest.err; then
15243 # Append any errors to the config.log.
15244 cat conftest.err 1>&5
15245 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15247 if diff conftest.exp conftest.er2 >/dev/null; then
15248 lt_prog_compiler_static_works=yes
15249 fi
15250 else
15251 lt_prog_compiler_static_works=yes
15252 fi
15253 fi
15254 $rm conftest*
15255 LDFLAGS="$save_LDFLAGS"
15256
15257fi
15258{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15259echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15260
15261if test x"$lt_prog_compiler_static_works" = xyes; then
15262 :
15263else
15264 lt_prog_compiler_static=
15265fi
15266
15267
15268{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15269echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015270if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272else
John Criswell47fdd832003-07-14 16:52:07 +000015273 lt_cv_prog_compiler_c_o=no
15274 $rm -r conftest 2>/dev/null
15275 mkdir conftest
15276 cd conftest
15277 mkdir out
15278 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015279
John Criswell47fdd832003-07-14 16:52:07 +000015280 lt_compiler_flag="-o out/conftest2.$ac_objext"
15281 # Insert the option either (1) after the last *FLAGS variable, or
15282 # (2) before a word containing "conftest.", or (3) at the end.
15283 # Note that $ac_compile itself does not contain backslashes and begins
15284 # with a dollar sign (not a hyphen), so the echo should work correctly.
15285 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15288 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000015289 (eval echo "\"\$as_me:15289: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015290 (eval "$lt_compile" 2>out/conftest.err)
15291 ac_status=$?
15292 cat out/conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000015293 echo "$as_me:15293: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15295 then
15296 # The compiler can only warn and ignore the option if not recognized
15297 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015301 lt_cv_prog_compiler_c_o=yes
15302 fi
15303 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015304 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015305 $rm conftest*
15306 # SGI C++ compiler will create directory out/ii_files/ for
15307 # template instantiation
15308 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15309 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015310 cd ..
15311 rmdir conftest
15312 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015313
15314fi
Reid Spencera773bd52006-08-04 18:18:08 +000015315{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15316echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015317
John Criswell7a73b802003-06-30 21:59:07 +000015318
John Criswell7a73b802003-06-30 21:59:07 +000015319hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015320if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015321 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015322 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15323echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015324 hard_links=yes
15325 $rm conftest*
15326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15327 touch conftest.a
15328 ln conftest.a conftest.b 2>&5 || hard_links=no
15329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015330 { echo "$as_me:$LINENO: result: $hard_links" >&5
15331echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015332 if test "$hard_links" = no; then
15333 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15334echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15335 need_locks=warn
15336 fi
15337else
15338 need_locks=no
15339fi
John Criswell7a73b802003-06-30 21:59:07 +000015340
Reid Spencera773bd52006-08-04 18:18:08 +000015341{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15342echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015343
15344 runpath_var=
15345 allow_undefined_flag=
15346 enable_shared_with_static_runtimes=no
15347 archive_cmds=
15348 archive_expsym_cmds=
15349 old_archive_From_new_cmds=
15350 old_archive_from_expsyms_cmds=
15351 export_dynamic_flag_spec=
15352 whole_archive_flag_spec=
15353 thread_safe_flag_spec=
15354 hardcode_libdir_flag_spec=
15355 hardcode_libdir_flag_spec_ld=
15356 hardcode_libdir_separator=
15357 hardcode_direct=no
15358 hardcode_minus_L=no
15359 hardcode_shlibpath_var=unsupported
15360 link_all_deplibs=unknown
15361 hardcode_automatic=no
15362 module_cmds=
15363 module_expsym_cmds=
15364 always_export_symbols=no
15365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15366 # include_expsyms should be a list of space-separated symbols to be *always*
15367 # included in the symbol list
15368 include_expsyms=
15369 # exclude_expsyms can be an extended regexp of symbols to exclude
15370 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15371 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15372 # as well as any symbol that contains `d'.
15373 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15375 # platforms (ab)use it in PIC code, but their linkers get confused if
15376 # the symbol is explicitly referenced. Since portable code cannot
15377 # rely on this symbol name, it's probably fine to never include it in
15378 # preloaded symbol tables.
15379 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015380 # Just being paranoid about ensuring that cc_basename is set.
15381 for cc_temp in $compiler""; do
15382 case $cc_temp in
15383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15385 \-*) ;;
15386 *) break;;
15387 esac
15388done
15389cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015390
15391 case $host_os in
15392 cygwin* | mingw* | pw32*)
15393 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15394 # When not using gcc, we currently assume that we are using
15395 # Microsoft Visual C++.
15396 if test "$GCC" != yes; then
15397 with_gnu_ld=no
15398 fi
15399 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015400 interix*)
15401 # we just hope/assume this is gcc and not c89 (= MSVC++)
15402 with_gnu_ld=yes
15403 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015404 openbsd*)
15405 with_gnu_ld=no
15406 ;;
15407 esac
15408
15409 ld_shlibs=yes
15410 if test "$with_gnu_ld" = yes; then
15411 # If archive_cmds runs LD, not CC, wlarc should be empty
15412 wlarc='${wl}'
15413
Reid Spencera773bd52006-08-04 18:18:08 +000015414 # Set some defaults for GNU ld with shared library support. These
15415 # are reset later if shared libraries are not supported. Putting them
15416 # here allows them to be overridden if necessary.
15417 runpath_var=LD_RUN_PATH
15418 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15419 export_dynamic_flag_spec='${wl}--export-dynamic'
15420 # ancient GNU ld didn't support --whole-archive et. al.
15421 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15422 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15423 else
15424 whole_archive_flag_spec=
15425 fi
15426 supports_anon_versioning=no
15427 case `$LD -v 2>/dev/null` in
15428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15431 *\ 2.11.*) ;; # other 2.11 versions
15432 *) supports_anon_versioning=yes ;;
15433 esac
15434
John Criswell47fdd832003-07-14 16:52:07 +000015435 # See if GNU ld supports shared libraries.
15436 case $host_os in
15437 aix3* | aix4* | aix5*)
15438 # On AIX/PPC, the GNU linker is very broken
15439 if test "$host_cpu" != ia64; then
15440 ld_shlibs=no
15441 cat <<EOF 1>&2
15442
15443*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15444*** to be unable to reliably create shared libraries on AIX.
15445*** Therefore, libtool is disabling shared libraries support. If you
15446*** really care for shared libraries, you may want to modify your PATH
15447*** so that a non-GNU linker is found, and then restart.
15448
15449EOF
15450 fi
15451 ;;
15452
15453 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015454 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 +000015455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_minus_L=yes
15457
15458 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15459 # that the semantics of dynamic libraries on AmigaOS, at least up
15460 # to version 4, is to share data among multiple programs linked
15461 # with the same dynamic library. Since this doesn't match the
15462 # behavior of shared libraries on other platforms, we can't use
15463 # them.
15464 ld_shlibs=no
15465 ;;
15466
15467 beos*)
15468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469 allow_undefined_flag=unsupported
15470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15471 # support --undefined. This deserves some investigation. FIXME
15472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473 else
15474 ld_shlibs=no
15475 fi
15476 ;;
15477
15478 cygwin* | mingw* | pw32*)
15479 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15480 # as there is no search path for DLLs.
15481 hardcode_libdir_flag_spec='-L$libdir'
15482 allow_undefined_flag=unsupported
15483 always_export_symbols=no
15484 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015485 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 +000015486
15487 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015488 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 +000015489 # If the export-symbols file already is a .def file (1st line
15490 # is EXPORTS), use it as is; otherwise, prepend...
15491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15492 cp $export_symbols $output_objdir/$soname.def;
15493 else
15494 echo EXPORTS > $output_objdir/$soname.def;
15495 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015496 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15498 else
15499 ld_shlibs=no
15500 fi
15501 ;;
15502
15503 interix3*)
15504 hardcode_direct=no
15505 hardcode_shlibpath_var=no
15506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15507 export_dynamic_flag_spec='${wl}-E'
15508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15509 # Instead, shared libraries are loaded at an image base (0x10000000 by
15510 # default) and relocated if they conflict, which is a slow very memory
15511 # consuming and fragmenting process. To avoid this, we pick a random,
15512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15515 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'
15516 ;;
15517
15518 linux*)
15519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15520 tmp_addflag=
15521 case $cc_basename,$host_cpu in
15522 pgcc*) # Portland Group C compiler
15523 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'
15524 tmp_addflag=' $pic_flag'
15525 ;;
15526 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15527 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'
15528 tmp_addflag=' $pic_flag -Mnomain' ;;
15529 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15530 tmp_addflag=' -i_dynamic' ;;
15531 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15532 tmp_addflag=' -i_dynamic -nofor_main' ;;
15533 ifc* | ifort*) # Intel Fortran compiler
15534 tmp_addflag=' -nofor_main' ;;
15535 esac
15536 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15537
15538 if test $supports_anon_versioning = yes; then
15539 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15541 $echo "local: *; };" >> $output_objdir/$libname.ver~
15542 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15543 fi
John Criswell47fdd832003-07-14 16:52:07 +000015544 else
15545 ld_shlibs=no
15546 fi
15547 ;;
15548
15549 netbsd*)
15550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15551 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15552 wlarc=
15553 else
15554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15556 fi
15557 ;;
15558
Reid Spencera773bd52006-08-04 18:18:08 +000015559 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015560 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15561 ld_shlibs=no
15562 cat <<EOF 1>&2
15563
15564*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15565*** create shared libraries on Solaris systems. Therefore, libtool
15566*** is disabling shared libraries support. We urge you to upgrade GNU
15567*** binutils to release 2.9.1 or newer. Another option is to modify
15568*** your PATH or compiler configuration so that the native linker is
15569*** used, and then restart.
15570
15571EOF
15572 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15574 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15575 else
15576 ld_shlibs=no
15577 fi
15578 ;;
15579
Reid Spencera773bd52006-08-04 18:18:08 +000015580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15581 case `$LD -v 2>&1` in
15582 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15583 ld_shlibs=no
15584 cat <<_LT_EOF 1>&2
15585
15586*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15587*** reliably create shared libraries on SCO systems. Therefore, libtool
15588*** is disabling shared libraries support. We urge you to upgrade GNU
15589*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15590*** your PATH or compiler configuration so that the native linker is
15591*** used, and then restart.
15592
15593_LT_EOF
15594 ;;
15595 *)
15596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15597 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15600 else
15601 ld_shlibs=no
15602 fi
15603 ;;
15604 esac
15605 ;;
15606
John Criswell47fdd832003-07-14 16:52:07 +000015607 sunos4*)
15608 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15609 wlarc=
15610 hardcode_direct=yes
15611 hardcode_shlibpath_var=no
15612 ;;
15613
15614 *)
15615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15618 else
15619 ld_shlibs=no
15620 fi
15621 ;;
15622 esac
15623
Reid Spencera773bd52006-08-04 18:18:08 +000015624 if test "$ld_shlibs" = no; then
15625 runpath_var=
15626 hardcode_libdir_flag_spec=
15627 export_dynamic_flag_spec=
15628 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015629 fi
15630 else
15631 # PORTME fill in a description of your system's linker (not GNU ld)
15632 case $host_os in
15633 aix3*)
15634 allow_undefined_flag=unsupported
15635 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015636 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 +000015637 # Note: this linker hardcodes the directories in LIBPATH if there
15638 # are no directories specified by -L.
15639 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015641 # Neither direct hardcoding nor static linking is supported with a
15642 # broken collect2.
15643 hardcode_direct=unsupported
15644 fi
15645 ;;
15646
15647 aix4* | aix5*)
15648 if test "$host_cpu" = ia64; then
15649 # On IA64, the linker does run time linking by default, so we don't
15650 # have to do anything special.
15651 aix_use_runtimelinking=no
15652 exp_sym_flag='-Bexport'
15653 no_entry_flag=""
15654 else
15655 # If we're using GNU nm, then we don't want the "-C" option.
15656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15657 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15658 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'
15659 else
15660 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'
15661 fi
15662 aix_use_runtimelinking=no
15663
15664 # Test if we are trying to use run time linking or normal
15665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15666 # need to do runtime linking.
15667 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15668 for ld_flag in $LDFLAGS; do
15669 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15670 aix_use_runtimelinking=yes
15671 break
15672 fi
15673 done
Reid Spencera773bd52006-08-04 18:18:08 +000015674 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015675 esac
15676
15677 exp_sym_flag='-bexport'
15678 no_entry_flag='-bnoentry'
15679 fi
15680
15681 # When large executables or shared objects are built, AIX ld can
15682 # have problems creating the table of contents. If linking a library
15683 # or program results in "error TOC overflow" add -mminimal-toc to
15684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15686
15687 archive_cmds=''
15688 hardcode_direct=yes
15689 hardcode_libdir_separator=':'
15690 link_all_deplibs=yes
15691
15692 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015693 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015694 # We only want to do this on AIX 4.2 and lower, the check
15695 # below for broken collect2 doesn't work under 4.3+
15696 collect2name=`${CC} -print-prog-name=collect2`
15697 if test -f "$collect2name" && \
15698 strings "$collect2name" | grep resolve_lib_name >/dev/null
15699 then
15700 # We have reworked collect2
15701 hardcode_direct=yes
15702 else
15703 # We have old collect2
15704 hardcode_direct=unsupported
15705 # It fails to find uninstalled libraries when the uninstalled
15706 # path is not listed in the libpath. Setting hardcode_minus_L
15707 # to unsupported forces relinking
15708 hardcode_minus_L=yes
15709 hardcode_libdir_flag_spec='-L$libdir'
15710 hardcode_libdir_separator=
15711 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015712 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015713 esac
15714 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015715 if test "$aix_use_runtimelinking" = yes; then
15716 shared_flag="$shared_flag "'${wl}-G'
15717 fi
John Criswell47fdd832003-07-14 16:52:07 +000015718 else
15719 # not using gcc
15720 if test "$host_cpu" = ia64; then
15721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15722 # chokes on -Wl,-G. The following line is correct:
15723 shared_flag='-G'
15724 else
Reid Spencera773bd52006-08-04 18:18:08 +000015725 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015726 shared_flag='${wl}-G'
15727 else
15728 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015729 fi
John Criswell47fdd832003-07-14 16:52:07 +000015730 fi
15731 fi
15732
15733 # It seems that -bexpall does not export symbols beginning with
15734 # underscore (_), so it is better to generate a list of symbols to export.
15735 always_export_symbols=yes
15736 if test "$aix_use_runtimelinking" = yes; then
15737 # Warning - without using the other runtime loading flags (-brtl),
15738 # -berok will link without error, but may produce a broken library.
15739 allow_undefined_flag='-berok'
15740 # Determine the default libpath from the value encoded in an empty executable.
15741 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015747
John Criswell7a73b802003-06-30 21:59:07 +000015748int
15749main ()
15750{
John Criswell47fdd832003-07-14 16:52:07 +000015751
John Criswell7a73b802003-06-30 21:59:07 +000015752 ;
15753 return 0;
15754}
15755_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015756rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015757if { (ac_try="$ac_link"
15758case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761esac
15762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest$ac_exeext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015790
John Criswell47fdd832003-07-14 16:52:07 +000015791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15792}'`
15793# Check for a 64-bit object if we didn't find anything.
15794if 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; }
15795}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015796else
15797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015798sed 's/^/| /' conftest.$ac_ext >&5
15799
Reid Spencera773bd52006-08-04 18:18:08 +000015800
John Criswell7a73b802003-06-30 21:59:07 +000015801fi
Reid Spencera773bd52006-08-04 18:18:08 +000015802
Bill Wendlingebcceee2009-04-18 11:20:33 +000015803rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015804 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015805if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015806
John Criswell47fdd832003-07-14 16:52:07 +000015807 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015808 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 +000015809 else
15810 if test "$host_cpu" = ia64; then
15811 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15812 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015813 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 +000015814 else
15815 # Determine the default libpath from the value encoded in an empty executable.
15816 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015817/* confdefs.h. */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015822
John Criswell47fdd832003-07-14 16:52:07 +000015823int
15824main ()
15825{
John Criswell7a73b802003-06-30 21:59:07 +000015826
John Criswell47fdd832003-07-14 16:52:07 +000015827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015832if { (ac_try="$ac_link"
15833case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836esac
15837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849esac
15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest$ac_exeext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015865
John Criswell47fdd832003-07-14 16:52:07 +000015866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15867}'`
15868# Check for a 64-bit object if we didn't find anything.
15869if 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; }
15870}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015871else
John Criswell47fdd832003-07-14 16:52:07 +000015872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015873sed 's/^/| /' conftest.$ac_ext >&5
15874
Reid Spencera773bd52006-08-04 18:18:08 +000015875
John Criswell47fdd832003-07-14 16:52:07 +000015876fi
Reid Spencera773bd52006-08-04 18:18:08 +000015877
Bill Wendlingebcceee2009-04-18 11:20:33 +000015878rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015879 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015880if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015881
John Criswell47fdd832003-07-14 16:52:07 +000015882 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15883 # Warning - without using the other run time loading flags,
15884 # -berok will link without error, but may produce a broken library.
15885 no_undefined_flag=' ${wl}-bernotok'
15886 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015887 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015888 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015889 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015890 # This is similar to how AIX traditionally builds its shared libraries.
15891 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 +000015892 fi
15893 fi
John Criswell7a73b802003-06-30 21:59:07 +000015894 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015895
15896 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015897 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 +000015898 hardcode_libdir_flag_spec='-L$libdir'
15899 hardcode_minus_L=yes
15900 # see comment about different semantics on the GNU ld section
15901 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015902 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015903
Reid Spencer2706f8c2004-09-19 23:53:36 +000015904 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015905 export_dynamic_flag_spec=-rdynamic
15906 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015907
John Criswell47fdd832003-07-14 16:52:07 +000015908 cygwin* | mingw* | pw32*)
15909 # When not using gcc, we currently assume that we are using
15910 # Microsoft Visual C++.
15911 # hardcode_libdir_flag_spec is actually meaningless, as there is
15912 # no search path for DLLs.
15913 hardcode_libdir_flag_spec=' '
15914 allow_undefined_flag=unsupported
15915 # Tell ltmain to make .lib files, not .a files.
15916 libext=lib
15917 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015918 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015919 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015920 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015921 # The linker will automatically build a .lib file if we build a DLL.
15922 old_archive_From_new_cmds='true'
15923 # FIXME: Should let the user specify the lib program.
15924 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15925 fix_srcfile_path='`cygpath -w "$srcfile"`'
15926 enable_shared_with_static_runtimes=yes
15927 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015928
John Criswell47fdd832003-07-14 16:52:07 +000015929 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015930 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015931 rhapsody* | darwin1.[012])
15932 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15933 ;;
15934 *) # Darwin 1.3 on
15935 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15936 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15937 else
15938 case ${MACOSX_DEPLOYMENT_TARGET} in
15939 10.[012])
15940 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15941 ;;
15942 10.*)
15943 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15944 ;;
15945 esac
15946 fi
15947 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015948 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015949 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015950 hardcode_direct=no
15951 hardcode_automatic=yes
15952 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015953 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015954 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015955 if test "$GCC" = yes ; then
15956 output_verbose_link_cmd='echo'
15957 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15958 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015959 # 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 +000015960 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}'
15961 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 +000015962 else
Reid Spencera773bd52006-08-04 18:18:08 +000015963 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015964 xlc*)
15965 output_verbose_link_cmd='echo'
15966 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15967 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015968 # 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 +000015969 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}'
15970 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 +000015971 ;;
15972 *)
15973 ld_shlibs=no
15974 ;;
15975 esac
John Criswell7a73b802003-06-30 21:59:07 +000015976 fi
John Criswell47fdd832003-07-14 16:52:07 +000015977 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015978
John Criswell47fdd832003-07-14 16:52:07 +000015979 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015981 hardcode_libdir_flag_spec='-L$libdir'
15982 hardcode_shlibpath_var=no
15983 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015984
John Criswell47fdd832003-07-14 16:52:07 +000015985 freebsd1*)
15986 ld_shlibs=no
15987 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015988
John Criswell47fdd832003-07-14 16:52:07 +000015989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15990 # support. Future versions do this automatically, but an explicit c++rt0.o
15991 # does not break anything, and helps significantly (at the cost of a little
15992 # extra space).
15993 freebsd2.2*)
15994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15995 hardcode_libdir_flag_spec='-R$libdir'
15996 hardcode_direct=yes
15997 hardcode_shlibpath_var=no
15998 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015999
John Criswell47fdd832003-07-14 16:52:07 +000016000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16001 freebsd2*)
16002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003 hardcode_direct=yes
16004 hardcode_minus_L=yes
16005 hardcode_shlibpath_var=no
16006 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016007
John Criswell47fdd832003-07-14 16:52:07 +000016008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000016009 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000016010 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16011 hardcode_libdir_flag_spec='-R$libdir'
16012 hardcode_direct=yes
16013 hardcode_shlibpath_var=no
16014 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016015
John Criswell47fdd832003-07-14 16:52:07 +000016016 hpux9*)
16017 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016018 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 +000016019 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016020 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 +000016021 fi
16022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16023 hardcode_libdir_separator=:
16024 hardcode_direct=yes
16025
16026 # hardcode_minus_L: Not really in the search PATH,
16027 # but as the default location of the library.
16028 hardcode_minus_L=yes
16029 export_dynamic_flag_spec='${wl}-E'
16030 ;;
16031
Reid Spencera773bd52006-08-04 18:18:08 +000016032 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000016033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16035 else
16036 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16037 fi
16038 if test "$with_gnu_ld" = no; then
16039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16040 hardcode_libdir_separator=:
16041
16042 hardcode_direct=yes
16043 export_dynamic_flag_spec='${wl}-E'
16044
16045 # hardcode_minus_L: Not really in the search PATH,
16046 # but as the default location of the library.
16047 hardcode_minus_L=yes
16048 fi
16049 ;;
16050
16051 hpux11*)
16052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16053 case $host_cpu in
16054 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000016055 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016057 ia64*)
16058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016060 *)
16061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16062 ;;
16063 esac
16064 else
Reid Spencera773bd52006-08-04 18:18:08 +000016065 case $host_cpu in
16066 hppa*64*)
16067 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16068 ;;
16069 ia64*)
16070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016071 ;;
16072 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016073 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 +000016074 ;;
16075 esac
16076 fi
16077 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000016078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16079 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000016080
Reid Spencera773bd52006-08-04 18:18:08 +000016081 case $host_cpu in
16082 hppa*64*|ia64*)
16083 hardcode_libdir_flag_spec_ld='+b $libdir'
16084 hardcode_direct=no
16085 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000016086 ;;
16087 *)
John Criswell47fdd832003-07-14 16:52:07 +000016088 hardcode_direct=yes
16089 export_dynamic_flag_spec='${wl}-E'
16090
16091 # hardcode_minus_L: Not really in the search PATH,
16092 # but as the default location of the library.
16093 hardcode_minus_L=yes
16094 ;;
16095 esac
16096 fi
16097 ;;
16098
16099 irix5* | irix6* | nonstopux*)
16100 if test "$GCC" = yes; then
16101 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'
16102 else
16103 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'
16104 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16105 fi
16106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16107 hardcode_libdir_separator=:
16108 link_all_deplibs=yes
16109 ;;
16110
16111 netbsd*)
16112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16114 else
16115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16116 fi
16117 hardcode_libdir_flag_spec='-R$libdir'
16118 hardcode_direct=yes
16119 hardcode_shlibpath_var=no
16120 ;;
16121
16122 newsos6)
16123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_direct=yes
16125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16126 hardcode_libdir_separator=:
16127 hardcode_shlibpath_var=no
16128 ;;
16129
16130 openbsd*)
16131 hardcode_direct=yes
16132 hardcode_shlibpath_var=no
16133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016135 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 +000016136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16137 export_dynamic_flag_spec='${wl}-E'
16138 else
16139 case $host_os in
16140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_libdir_flag_spec='-R$libdir'
16143 ;;
16144 *)
16145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16147 ;;
16148 esac
16149 fi
16150 ;;
16151
16152 os2*)
16153 hardcode_libdir_flag_spec='-L$libdir'
16154 hardcode_minus_L=yes
16155 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016156 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 +000016157 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16158 ;;
16159
16160 osf3*)
16161 if test "$GCC" = yes; then
16162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16163 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'
16164 else
16165 allow_undefined_flag=' -expect_unresolved \*'
16166 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'
16167 fi
16168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16169 hardcode_libdir_separator=:
16170 ;;
16171
16172 osf4* | osf5*) # as osf3* with the addition of -msym flag
16173 if test "$GCC" = yes; then
16174 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16175 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'
16176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16177 else
16178 allow_undefined_flag=' -expect_unresolved \*'
16179 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 +000016180 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 +000016181 $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 +000016182
John Criswell47fdd832003-07-14 16:52:07 +000016183 # Both c and cxx compiler support -rpath directly
16184 hardcode_libdir_flag_spec='-rpath $libdir'
16185 fi
16186 hardcode_libdir_separator=:
16187 ;;
16188
John Criswell47fdd832003-07-14 16:52:07 +000016189 solaris*)
16190 no_undefined_flag=' -z text'
16191 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016192 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016193 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016194 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195 $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 +000016196 else
Reid Spencera773bd52006-08-04 18:18:08 +000016197 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016198 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016199 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16200 $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 +000016201 fi
16202 hardcode_libdir_flag_spec='-R$libdir'
16203 hardcode_shlibpath_var=no
16204 case $host_os in
16205 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016206 *)
16207 # The compiler driver will combine linker options so we
16208 # cannot just pass the convience library names through
16209 # without $wl, iff we do not link with $LD.
16210 # Luckily, gcc supports the same syntax we need for Sun Studio.
16211 # Supported since Solaris 2.6 (maybe 2.5.1?)
16212 case $wlarc in
16213 '')
16214 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16215 *)
16216 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' ;;
16217 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016218 esac
16219 link_all_deplibs=yes
16220 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016221
John Criswell47fdd832003-07-14 16:52:07 +000016222 sunos4*)
16223 if test "x$host_vendor" = xsequent; then
16224 # Use $CC to link under sequent, because it throws in some extra .o
16225 # files that make .init and .fini sections work.
16226 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16227 else
16228 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16229 fi
16230 hardcode_libdir_flag_spec='-L$libdir'
16231 hardcode_direct=yes
16232 hardcode_minus_L=yes
16233 hardcode_shlibpath_var=no
16234 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016235
John Criswell47fdd832003-07-14 16:52:07 +000016236 sysv4)
16237 case $host_vendor in
16238 sni)
16239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_direct=yes # is this really true???
16241 ;;
16242 siemens)
16243 ## LD is ld it makes a PLAMLIB
16244 ## CC just makes a GrossModule.
16245 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16246 reload_cmds='$CC -r -o $output$reload_objs'
16247 hardcode_direct=no
16248 ;;
16249 motorola)
16250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16252 ;;
16253 esac
16254 runpath_var='LD_RUN_PATH'
16255 hardcode_shlibpath_var=no
16256 ;;
16257
16258 sysv4.3*)
16259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16260 hardcode_shlibpath_var=no
16261 export_dynamic_flag_spec='-Bexport'
16262 ;;
16263
16264 sysv4*MP*)
16265 if test -d /usr/nec; then
16266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_shlibpath_var=no
16268 runpath_var=LD_RUN_PATH
16269 hardcode_runpath_var=yes
16270 ld_shlibs=yes
16271 fi
16272 ;;
16273
Reid Spencera773bd52006-08-04 18:18:08 +000016274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16275 no_undefined_flag='${wl}-z,text'
16276 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016277 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016278 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016279
John Criswell47fdd832003-07-14 16:52:07 +000016280 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016281 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 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 +000016283 else
Reid Spencera773bd52006-08-04 18:18:08 +000016284 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 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 +000016286 fi
John Criswell47fdd832003-07-14 16:52:07 +000016287 ;;
16288
Reid Spencera773bd52006-08-04 18:18:08 +000016289 sysv5* | sco3.2v5* | sco5v6*)
16290 # Note: We can NOT use -z defs as we might desire, because we do not
16291 # link with -lc, and that would cause any symbols used from libc to
16292 # always be unresolved, which means just about no library would
16293 # ever link correctly. If we're not using GNU ld we use -z text
16294 # though, which does catch some bad symbols but isn't as heavy-handed
16295 # as -z defs.
16296 no_undefined_flag='${wl}-z,text'
16297 allow_undefined_flag='${wl}-z,nodefs'
16298 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016299 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016300 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16301 hardcode_libdir_separator=':'
16302 link_all_deplibs=yes
16303 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016304 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016305
16306 if test "$GCC" = yes; then
16307 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16308 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16309 else
16310 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16311 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16312 fi
John Criswell47fdd832003-07-14 16:52:07 +000016313 ;;
16314
16315 uts4*)
16316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317 hardcode_libdir_flag_spec='-L$libdir'
16318 hardcode_shlibpath_var=no
16319 ;;
16320
16321 *)
16322 ld_shlibs=no
16323 ;;
16324 esac
16325 fi
16326
Reid Spencera773bd52006-08-04 18:18:08 +000016327{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16328echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016329test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016330
John Criswell47fdd832003-07-14 16:52:07 +000016331#
16332# Do we need to explicitly link libc?
16333#
16334case "x$archive_cmds_need_lc" in
16335x|xyes)
16336 # Assume -lc should be added
16337 archive_cmds_need_lc=yes
16338
16339 if test "$enable_shared" = yes && test "$GCC" = yes; then
16340 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016341 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016342 # FIXME: we may have to deal with multi-command sequences.
16343 ;;
16344 '$CC '*)
16345 # Test whether the compiler implicitly links with -lc since on some
16346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16347 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016348 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16349echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016350 $rm conftest*
16351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16352
16353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16354 (eval $ac_compile) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } 2>conftest.err; then
16358 soname=conftest
16359 lib=conftest
16360 libobjs=conftest.$ac_objext
16361 deplibs=
16362 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016363 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016364 compiler_flags=-v
16365 linker_flags=-v
16366 verstring=
16367 output_objdir=.
16368 libname=conftest
16369 lt_save_allow_undefined_flag=$allow_undefined_flag
16370 allow_undefined_flag=
16371 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16372 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }
16376 then
16377 archive_cmds_need_lc=no
16378 else
16379 archive_cmds_need_lc=yes
16380 fi
16381 allow_undefined_flag=$lt_save_allow_undefined_flag
16382 else
16383 cat conftest.err 1>&5
16384 fi
16385 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016386 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16387echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016388 ;;
16389 esac
16390 fi
16391 ;;
16392esac
16393
Reid Spencera773bd52006-08-04 18:18:08 +000016394{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16395echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016396library_names_spec=
16397libname_spec='lib$name'
16398soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016399shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016400postinstall_cmds=
16401postuninstall_cmds=
16402finish_cmds=
16403finish_eval=
16404shlibpath_var=
16405shlibpath_overrides_runpath=unknown
16406version_type=none
16407dynamic_linker="$host_os ld.so"
16408sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016409if test "$GCC" = yes; then
16410 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16411 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16412 # if the path contains ";" then we assume it to be the separator
16413 # otherwise default to the standard path separator (i.e. ":") - it is
16414 # assumed that no part of a normal pathname contains ";" but that should
16415 # okay in the real world where ";" in dirpaths is itself problematic.
16416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16417 else
16418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16419 fi
16420else
16421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16422fi
16423need_lib_prefix=unknown
16424hardcode_into_libs=no
16425
16426# when you set need_version to no, make sure it does not cause -set_version
16427# flags to be left without arguments
16428need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016429
16430case $host_os in
16431aix3*)
16432 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016434 shlibpath_var=LIBPATH
16435
John Criswell47fdd832003-07-14 16:52:07 +000016436 # AIX 3 has no versioning support, so we append a major version to the name.
16437 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016438 ;;
16439
16440aix4* | aix5*)
16441 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016442 need_lib_prefix=no
16443 need_version=no
16444 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016445 if test "$host_cpu" = ia64; then
16446 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016447 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016448 shlibpath_var=LD_LIBRARY_PATH
16449 else
16450 # With GCC up to 2.95.x, collect2 would create an import file
16451 # for dependence libraries. The import file would start with
16452 # the line `#! .'. This would cause the generated library to
16453 # depend on `.', always an invalid library. This was fixed in
16454 # development snapshots of GCC prior to 3.0.
16455 case $host_os in
16456 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16458 echo ' yes '
16459 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16460 :
16461 else
16462 can_build_shared=no
16463 fi
16464 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016465 esac
John Criswell47fdd832003-07-14 16:52:07 +000016466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16467 # soname into executable. Probably we can add versioning support to
16468 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016469 if test "$aix_use_runtimelinking" = yes; then
16470 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16471 # instead of lib<name>.a to let people know that these are not
16472 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016474 else
16475 # We preserve .a as extension for shared libraries through AIX4.2
16476 # and later when we are not doing run time linking.
16477 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016478 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016479 fi
16480 shlibpath_var=LIBPATH
16481 fi
16482 ;;
16483
16484amigaos*)
16485 library_names_spec='$libname.ixlibrary $libname.a'
16486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016487 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 +000016488 ;;
16489
16490beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016491 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016492 dynamic_linker="$host_os ld.so"
16493 shlibpath_var=LIBRARY_PATH
16494 ;;
16495
Reid Spencer2706f8c2004-09-19 23:53:36 +000016496bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016497 version_type=linux
16498 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016505 # the default ld.so.conf also contains /usr/contrib/lib and
16506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16507 # libtool to hard-code these into programs
16508 ;;
16509
16510cygwin* | mingw* | pw32*)
16511 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016512 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016513 need_version=no
16514 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016515
John Criswell7a73b802003-06-30 21:59:07 +000016516 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016517 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016518 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016520 postinstall_cmds='base_file=`basename \${file}`~
16521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16522 dldir=$destdir/`dirname \$dlpath`~
16523 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016524 $install_prog $dir/$dlname \$dldir/$dlname~
16525 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16527 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016528 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016529 shlibpath_overrides_runpath=yes
16530
16531 case $host_os in
16532 cygwin*)
16533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16534 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 +000016535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016536 ;;
16537 mingw*)
16538 # MinGW DLLs use traditional 'lib' prefix
16539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16542 # It is most probably a Windows format PATH printed by
16543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16544 # path with ; separators, and with drive letters. We can handle the
16545 # drive letters (cygwin fileutils understands them), so leave them,
16546 # especially as we might pass files found there to a mingw objdump,
16547 # which wouldn't understand a cygwinified path. Ahh.
16548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16549 else
16550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16551 fi
16552 ;;
16553 pw32*)
16554 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016555 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 +000016556 ;;
16557 esac
John Criswell7a73b802003-06-30 21:59:07 +000016558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016559
John Criswell7a73b802003-06-30 21:59:07 +000016560 *)
John Criswell47fdd832003-07-14 16:52:07 +000016561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016562 ;;
16563 esac
16564 dynamic_linker='Win32 ld.exe'
16565 # FIXME: first we should search . and the directory the executable is in
16566 shlibpath_var=PATH
16567 ;;
16568
16569darwin* | rhapsody*)
16570 dynamic_linker="$host_os dyld"
16571 version_type=darwin
16572 need_lib_prefix=no
16573 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016575 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016576 shlibpath_overrides_runpath=yes
16577 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016578 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016580 if test "$GCC" = yes; then
16581 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"`
16582 else
16583 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016584 fi
16585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16586 ;;
16587
16588dgux*)
16589 version_type=linux
16590 need_lib_prefix=no
16591 need_version=no
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016595 ;;
16596
16597freebsd1*)
16598 dynamic_linker=no
16599 ;;
16600
Reid Spencer2706f8c2004-09-19 23:53:36 +000016601kfreebsd*-gnu)
16602 version_type=linux
16603 need_lib_prefix=no
16604 need_version=no
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 shlibpath_overrides_runpath=no
16609 hardcode_into_libs=yes
16610 dynamic_linker='GNU ld.so'
16611 ;;
16612
Reid Spencera773bd52006-08-04 18:18:08 +000016613freebsd* | dragonfly*)
16614 # DragonFly does not have aout. When/if they implement a new
16615 # versioning mechanism, adjust this.
16616 if test -x /usr/bin/objformat; then
16617 objformat=`/usr/bin/objformat`
16618 else
16619 case $host_os in
16620 freebsd[123]*) objformat=aout ;;
16621 *) objformat=elf ;;
16622 esac
16623 fi
John Criswell7a73b802003-06-30 21:59:07 +000016624 version_type=freebsd-$objformat
16625 case $version_type in
16626 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016628 need_version=no
16629 need_lib_prefix=no
16630 ;;
16631 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016633 need_version=yes
16634 ;;
16635 esac
16636 shlibpath_var=LD_LIBRARY_PATH
16637 case $host_os in
16638 freebsd2*)
16639 shlibpath_overrides_runpath=yes
16640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016641 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016642 shlibpath_overrides_runpath=yes
16643 hardcode_into_libs=yes
16644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016647 shlibpath_overrides_runpath=no
16648 hardcode_into_libs=yes
16649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016650 freebsd*) # from 4.6 on
16651 shlibpath_overrides_runpath=yes
16652 hardcode_into_libs=yes
16653 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016654 esac
16655 ;;
16656
16657gnu*)
16658 version_type=linux
16659 need_lib_prefix=no
16660 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016663 shlibpath_var=LD_LIBRARY_PATH
16664 hardcode_into_libs=yes
16665 ;;
16666
16667hpux9* | hpux10* | hpux11*)
16668 # Give a soname corresponding to the major version so that dld.sl refuses to
16669 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016670 version_type=sunos
16671 need_lib_prefix=no
16672 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016673 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016674 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016675 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016676 hardcode_into_libs=yes
16677 dynamic_linker="$host_os dld.so"
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 if test "X$HPUX_IA64_MODE" = X32; then
16683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16684 else
16685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16686 fi
16687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16688 ;;
16689 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016690 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016691 hardcode_into_libs=yes
16692 dynamic_linker="$host_os dld.sl"
16693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16699 ;;
16700 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016701 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016702 dynamic_linker="$host_os dld.sl"
16703 shlibpath_var=SHLIB_PATH
16704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706 soname_spec='${libname}${release}${shared_ext}$major'
16707 ;;
16708 esac
John Criswell7a73b802003-06-30 21:59:07 +000016709 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16710 postinstall_cmds='chmod 555 $lib'
16711 ;;
16712
Reid Spencera773bd52006-08-04 18:18:08 +000016713interix3*)
16714 version_type=linux
16715 need_lib_prefix=no
16716 need_version=no
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=no
16722 hardcode_into_libs=yes
16723 ;;
16724
John Criswell47fdd832003-07-14 16:52:07 +000016725irix5* | irix6* | nonstopux*)
16726 case $host_os in
16727 nonstopux*) version_type=nonstopux ;;
16728 *)
16729 if test "$lt_cv_prog_gnu_ld" = yes; then
16730 version_type=linux
16731 else
16732 version_type=irix
16733 fi ;;
16734 esac
John Criswell7a73b802003-06-30 21:59:07 +000016735 need_lib_prefix=no
16736 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016737 soname_spec='${libname}${release}${shared_ext}$major'
16738 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 +000016739 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016740 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016741 libsuff= shlibsuff=
16742 ;;
16743 *)
16744 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16746 libsuff= shlibsuff= libmagic=32-bit;;
16747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16748 libsuff=32 shlibsuff=N32 libmagic=N32;;
16749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016751 *) libsuff= shlibsuff= libmagic=never-match;;
16752 esac
16753 ;;
16754 esac
16755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16756 shlibpath_overrides_runpath=no
16757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016759 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016760 ;;
16761
16762# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016763linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016764 dynamic_linker=no
16765 ;;
16766
16767# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016768linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016769 version_type=linux
16770 need_lib_prefix=no
16771 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=no
16777 # This implies no fast_install, which is unacceptable.
16778 # Some rework will be needed to allow for fast_install
16779 # before this can be enabled.
16780 hardcode_into_libs=yes
16781
Reid Spencer2706f8c2004-09-19 23:53:36 +000016782 # Append ld.so.conf contents to the search path
16783 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016784 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 +000016785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16786 fi
16787
John Criswell7a73b802003-06-30 21:59:07 +000016788 # We used to test for /lib/ld.so.1 and disable shared libraries on
16789 # powerpc, because MkLinux only supported shared libraries with the
16790 # GNU dynamic linker. Since this was broken with cross compilers,
16791 # most powerpc-linux boxes support dynamic linking these days and
16792 # people can always --disable-shared, the test was removed, and we
16793 # assume the GNU/Linux dynamic linker is in use.
16794 dynamic_linker='GNU/Linux ld.so'
16795 ;;
16796
Reid Spencer2706f8c2004-09-19 23:53:36 +000016797knetbsd*-gnu)
16798 version_type=linux
16799 need_lib_prefix=no
16800 need_version=no
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 shlibpath_overrides_runpath=no
16805 hardcode_into_libs=yes
16806 dynamic_linker='GNU ld.so'
16807 ;;
16808
John Criswell7a73b802003-06-30 21:59:07 +000016809netbsd*)
16810 version_type=sunos
16811 need_lib_prefix=no
16812 need_version=no
16813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16816 dynamic_linker='NetBSD (a.out) ld.so'
16817 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016819 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016820 dynamic_linker='NetBSD ld.elf_so'
16821 fi
16822 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=yes
16824 hardcode_into_libs=yes
16825 ;;
16826
16827newsos6)
16828 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 shlibpath_var=LD_LIBRARY_PATH
16831 shlibpath_overrides_runpath=yes
16832 ;;
16833
Reid Spencer2706f8c2004-09-19 23:53:36 +000016834nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016835 version_type=linux
16836 need_lib_prefix=no
16837 need_version=no
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016840 shlibpath_var=LD_LIBRARY_PATH
16841 shlibpath_overrides_runpath=yes
16842 ;;
16843
16844openbsd*)
16845 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016846 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016847 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16849 case $host_os in
16850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16851 *) need_version=no ;;
16852 esac
John Criswell47fdd832003-07-14 16:52:07 +000016853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16855 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016856 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 +000016857 case $host_os in
16858 openbsd2.[89] | openbsd2.[89].*)
16859 shlibpath_overrides_runpath=no
16860 ;;
16861 *)
16862 shlibpath_overrides_runpath=yes
16863 ;;
16864 esac
John Criswell7a73b802003-06-30 21:59:07 +000016865 else
16866 shlibpath_overrides_runpath=yes
16867 fi
John Criswell7a73b802003-06-30 21:59:07 +000016868 ;;
16869
16870os2*)
16871 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016872 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016873 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016874 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016875 dynamic_linker='OS/2 ld.exe'
16876 shlibpath_var=LIBPATH
16877 ;;
16878
16879osf3* | osf4* | osf5*)
16880 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016881 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016882 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016883 soname_spec='${libname}${release}${shared_ext}$major'
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016885 shlibpath_var=LD_LIBRARY_PATH
16886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16888 ;;
16889
John Criswell7a73b802003-06-30 21:59:07 +000016890solaris*)
16891 version_type=linux
16892 need_lib_prefix=no
16893 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016896 shlibpath_var=LD_LIBRARY_PATH
16897 shlibpath_overrides_runpath=yes
16898 hardcode_into_libs=yes
16899 # ldd complains unless libraries are executable
16900 postinstall_cmds='chmod +x $lib'
16901 ;;
16902
16903sunos4*)
16904 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 shlibpath_overrides_runpath=yes
16909 if test "$with_gnu_ld" = yes; then
16910 need_lib_prefix=no
16911 fi
16912 need_version=yes
16913 ;;
16914
Reid Spencera773bd52006-08-04 18:18:08 +000016915sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016916 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016919 shlibpath_var=LD_LIBRARY_PATH
16920 case $host_vendor in
16921 sni)
16922 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016923 need_lib_prefix=no
16924 export_dynamic_flag_spec='${wl}-Blargedynsym'
16925 runpath_var=LD_RUN_PATH
16926 ;;
16927 siemens)
16928 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016929 ;;
16930 motorola)
16931 need_lib_prefix=no
16932 need_version=no
16933 shlibpath_overrides_runpath=no
16934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16935 ;;
16936 esac
16937 ;;
16938
John Criswell7a73b802003-06-30 21:59:07 +000016939sysv4*MP*)
16940 if test -d /usr/nec ;then
16941 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16943 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016944 shlibpath_var=LD_LIBRARY_PATH
16945 fi
16946 ;;
16947
Reid Spencera773bd52006-08-04 18:18:08 +000016948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16949 version_type=freebsd-elf
16950 need_lib_prefix=no
16951 need_version=no
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 shlibpath_var=LD_LIBRARY_PATH
16955 hardcode_into_libs=yes
16956 if test "$with_gnu_ld" = yes; then
16957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16958 shlibpath_overrides_runpath=no
16959 else
16960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16961 shlibpath_overrides_runpath=yes
16962 case $host_os in
16963 sco3.2v5*)
16964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16965 ;;
16966 esac
16967 fi
16968 sys_lib_dlsearch_path_spec='/usr/lib'
16969 ;;
16970
John Criswell47fdd832003-07-14 16:52:07 +000016971uts4*)
16972 version_type=linux
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 ;;
16977
John Criswell7a73b802003-06-30 21:59:07 +000016978*)
16979 dynamic_linker=no
16980 ;;
16981esac
Reid Spencera773bd52006-08-04 18:18:08 +000016982{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16983echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016984test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016985
Reid Spencera773bd52006-08-04 18:18:08 +000016986variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16987if test "$GCC" = yes; then
16988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16989fi
16990
16991{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16992echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016993hardcode_action=
16994if test -n "$hardcode_libdir_flag_spec" || \
16995 test -n "$runpath_var" || \
16996 test "X$hardcode_automatic" = "Xyes" ; then
16997
16998 # We can hardcode non-existant directories.
16999 if test "$hardcode_direct" != no &&
17000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17001 # have to relink, otherwise we might link with an installed library
17002 # when we should be linking with a yet-to-be-installed one
17003 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17004 test "$hardcode_minus_L" != no; then
17005 # Linking always hardcodes the temporary library directory.
17006 hardcode_action=relink
17007 else
17008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17009 hardcode_action=immediate
17010 fi
17011else
17012 # We cannot hardcode anything, or else we can only hardcode existing
17013 # directories.
17014 hardcode_action=unsupported
17015fi
Reid Spencera773bd52006-08-04 18:18:08 +000017016{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
17017echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017018
17019if test "$hardcode_action" = relink; then
17020 # Fast installation is not supported
17021 enable_fast_install=no
17022elif test "$shlibpath_overrides_runpath" = yes ||
17023 test "$enable_shared" = no; then
17024 # Fast installation is not necessary
17025 enable_fast_install=needless
17026fi
17027
17028striplib=
17029old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000017030{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17031echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017032if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17033 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17034 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000017035 { echo "$as_me:$LINENO: result: yes" >&5
17036echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017037else
17038# FIXME - insert some real tests, host_os isn't really good enough
17039 case $host_os in
17040 darwin*)
17041 if test -n "$STRIP" ; then
17042 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000017043 { echo "$as_me:$LINENO: result: yes" >&5
17044echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017045 else
Reid Spencera773bd52006-08-04 18:18:08 +000017046 { echo "$as_me:$LINENO: result: no" >&5
17047echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017048fi
17049 ;;
17050 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017051 { echo "$as_me:$LINENO: result: no" >&5
17052echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000017053 ;;
17054 esac
17055fi
17056
John Criswell7a73b802003-06-30 21:59:07 +000017057if test "x$enable_dlopen" != xyes; then
17058 enable_dlopen=unknown
17059 enable_dlopen_self=unknown
17060 enable_dlopen_self_static=unknown
17061else
17062 lt_cv_dlopen=no
17063 lt_cv_dlopen_libs=
17064
17065 case $host_os in
17066 beos*)
17067 lt_cv_dlopen="load_add_on"
17068 lt_cv_dlopen_libs=
17069 lt_cv_dlopen_self=yes
17070 ;;
17071
John Criswell47fdd832003-07-14 16:52:07 +000017072 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000017073 lt_cv_dlopen="LoadLibrary"
17074 lt_cv_dlopen_libs=
17075 ;;
17076
John Criswell47fdd832003-07-14 16:52:07 +000017077 cygwin*)
17078 lt_cv_dlopen="dlopen"
17079 lt_cv_dlopen_libs=
17080 ;;
17081
17082 darwin*)
17083 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000017084 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17085echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017086if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088else
17089 ac_check_lib_save_LIBS=$LIBS
17090LIBS="-ldl $LIBS"
17091cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017097
Reid Spencera773bd52006-08-04 18:18:08 +000017098/* Override any GCC internal prototype to avoid an error.
17099 Use char because int might match the return type of a GCC
17100 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000017101#ifdef __cplusplus
17102extern "C"
17103#endif
John Criswell47fdd832003-07-14 16:52:07 +000017104char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017105int
17106main ()
17107{
Reid Spencera773bd52006-08-04 18:18:08 +000017108return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017114if { (ac_try="$ac_link"
17115case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17131esac
17132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017147 ac_cv_lib_dl_dlopen=yes
17148else
17149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017150sed 's/^/| /' conftest.$ac_ext >&5
17151
Reid Spencera773bd52006-08-04 18:18:08 +000017152 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017153fi
Reid Spencera773bd52006-08-04 18:18:08 +000017154
Bill Wendlingebcceee2009-04-18 11:20:33 +000017155rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017156 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017157LIBS=$ac_check_lib_save_LIBS
17158fi
Reid Spencera773bd52006-08-04 18:18:08 +000017159{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17160echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017161if test $ac_cv_lib_dl_dlopen = yes; then
17162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17163else
17164
17165 lt_cv_dlopen="dyld"
17166 lt_cv_dlopen_libs=
17167 lt_cv_dlopen_self=yes
17168
17169fi
17170
17171 ;;
17172
John Criswell7a73b802003-06-30 21:59:07 +000017173 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017174 { echo "$as_me:$LINENO: checking for shl_load" >&5
17175echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017176if test "${ac_cv_func_shl_load+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178else
17179 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017180/* confdefs.h. */
17181_ACEOF
17182cat confdefs.h >>conftest.$ac_ext
17183cat >>conftest.$ac_ext <<_ACEOF
17184/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017185/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17187#define shl_load innocuous_shl_load
17188
John Criswell7a73b802003-06-30 21:59:07 +000017189/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017190 which can conflict with char shl_load (); below.
17191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17192 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017193
John Criswell0c38eaf2003-09-10 15:17:25 +000017194#ifdef __STDC__
17195# include <limits.h>
17196#else
17197# include <assert.h>
17198#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017199
17200#undef shl_load
17201
Reid Spencera773bd52006-08-04 18:18:08 +000017202/* Override any GCC internal prototype to avoid an error.
17203 Use char because int might match the return type of a GCC
17204 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017205#ifdef __cplusplus
17206extern "C"
17207#endif
John Criswell7a73b802003-06-30 21:59:07 +000017208char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017209/* The GNU C library defines this for functions which it implements
17210 to always fail with ENOSYS. Some functions are actually named
17211 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017212#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017213choke me
John Criswell7a73b802003-06-30 21:59:07 +000017214#endif
17215
John Criswell0c38eaf2003-09-10 15:17:25 +000017216int
17217main ()
17218{
Reid Spencera773bd52006-08-04 18:18:08 +000017219return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017220 ;
17221 return 0;
17222}
17223_ACEOF
17224rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017225if { (ac_try="$ac_link"
17226case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229esac
17230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017258 ac_cv_func_shl_load=yes
17259else
17260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017261sed 's/^/| /' conftest.$ac_ext >&5
17262
Reid Spencera773bd52006-08-04 18:18:08 +000017263 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017264fi
Reid Spencera773bd52006-08-04 18:18:08 +000017265
Bill Wendlingebcceee2009-04-18 11:20:33 +000017266rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017267 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017268fi
Reid Spencera773bd52006-08-04 18:18:08 +000017269{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17270echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017271if test $ac_cv_func_shl_load = yes; then
17272 lt_cv_dlopen="shl_load"
17273else
Reid Spencera773bd52006-08-04 18:18:08 +000017274 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17275echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017276if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279 ac_check_lib_save_LIBS=$LIBS
17280LIBS="-ldld $LIBS"
17281cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017282/* confdefs.h. */
17283_ACEOF
17284cat confdefs.h >>conftest.$ac_ext
17285cat >>conftest.$ac_ext <<_ACEOF
17286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017287
Reid Spencera773bd52006-08-04 18:18:08 +000017288/* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017291#ifdef __cplusplus
17292extern "C"
17293#endif
John Criswell7a73b802003-06-30 21:59:07 +000017294char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017295int
17296main ()
17297{
Reid Spencera773bd52006-08-04 18:18:08 +000017298return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017299 ;
17300 return 0;
17301}
17302_ACEOF
17303rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017304if { (ac_try="$ac_link"
17305case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308esac
17309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331esac
17332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_try") 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017337 ac_cv_lib_dld_shl_load=yes
17338else
17339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017340sed 's/^/| /' conftest.$ac_ext >&5
17341
Reid Spencera773bd52006-08-04 18:18:08 +000017342 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017343fi
Reid Spencera773bd52006-08-04 18:18:08 +000017344
Bill Wendlingebcceee2009-04-18 11:20:33 +000017345rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017346 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017347LIBS=$ac_check_lib_save_LIBS
17348fi
Reid Spencera773bd52006-08-04 18:18:08 +000017349{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17350echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017351if test $ac_cv_lib_dld_shl_load = yes; then
17352 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17353else
Reid Spencera773bd52006-08-04 18:18:08 +000017354 { echo "$as_me:$LINENO: checking for dlopen" >&5
17355echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017356if test "${ac_cv_func_dlopen+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358else
17359 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017360/* confdefs.h. */
17361_ACEOF
17362cat confdefs.h >>conftest.$ac_ext
17363cat >>conftest.$ac_ext <<_ACEOF
17364/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017365/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367#define dlopen innocuous_dlopen
17368
John Criswell7a73b802003-06-30 21:59:07 +000017369/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017370 which can conflict with char dlopen (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017373
John Criswell0c38eaf2003-09-10 15:17:25 +000017374#ifdef __STDC__
17375# include <limits.h>
17376#else
17377# include <assert.h>
17378#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017379
17380#undef dlopen
17381
Reid Spencera773bd52006-08-04 18:18:08 +000017382/* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017385#ifdef __cplusplus
17386extern "C"
17387#endif
John Criswell7a73b802003-06-30 21:59:07 +000017388char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017389/* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017392#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017393choke me
John Criswell7a73b802003-06-30 21:59:07 +000017394#endif
17395
John Criswell0c38eaf2003-09-10 15:17:25 +000017396int
17397main ()
17398{
Reid Spencera773bd52006-08-04 18:18:08 +000017399return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017400 ;
17401 return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017405if { (ac_try="$ac_link"
17406case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409esac
17410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422esac
17423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17432esac
17433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017438 ac_cv_func_dlopen=yes
17439else
17440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017441sed 's/^/| /' conftest.$ac_ext >&5
17442
Reid Spencera773bd52006-08-04 18:18:08 +000017443 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017444fi
Reid Spencera773bd52006-08-04 18:18:08 +000017445
Bill Wendlingebcceee2009-04-18 11:20:33 +000017446rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017447 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017448fi
Reid Spencera773bd52006-08-04 18:18:08 +000017449{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17450echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017451if test $ac_cv_func_dlopen = yes; then
17452 lt_cv_dlopen="dlopen"
17453else
Reid Spencera773bd52006-08-04 18:18:08 +000017454 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17455echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017456if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458else
17459 ac_check_lib_save_LIBS=$LIBS
17460LIBS="-ldl $LIBS"
17461cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017462/* confdefs.h. */
17463_ACEOF
17464cat confdefs.h >>conftest.$ac_ext
17465cat >>conftest.$ac_ext <<_ACEOF
17466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017467
Reid Spencera773bd52006-08-04 18:18:08 +000017468/* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017471#ifdef __cplusplus
17472extern "C"
17473#endif
John Criswell7a73b802003-06-30 21:59:07 +000017474char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017475int
17476main ()
17477{
Reid Spencera773bd52006-08-04 18:18:08 +000017478return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017479 ;
17480 return 0;
17481}
17482_ACEOF
17483rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017484if { (ac_try="$ac_link"
17485case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501esac
17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017517 ac_cv_lib_dl_dlopen=yes
17518else
17519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017520sed 's/^/| /' conftest.$ac_ext >&5
17521
Reid Spencera773bd52006-08-04 18:18:08 +000017522 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017523fi
Reid Spencera773bd52006-08-04 18:18:08 +000017524
Bill Wendlingebcceee2009-04-18 11:20:33 +000017525rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017526 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017527LIBS=$ac_check_lib_save_LIBS
17528fi
Reid Spencera773bd52006-08-04 18:18:08 +000017529{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17530echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017531if test $ac_cv_lib_dl_dlopen = yes; then
17532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17533else
Reid Spencera773bd52006-08-04 18:18:08 +000017534 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17535echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017536if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538else
17539 ac_check_lib_save_LIBS=$LIBS
17540LIBS="-lsvld $LIBS"
17541cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017547
Reid Spencera773bd52006-08-04 18:18:08 +000017548/* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017551#ifdef __cplusplus
17552extern "C"
17553#endif
John Criswell7a73b802003-06-30 21:59:07 +000017554char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017555int
17556main ()
17557{
Reid Spencera773bd52006-08-04 18:18:08 +000017558return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017564if { (ac_try="$ac_link"
17565case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568esac
17569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017571 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581esac
17582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017597 ac_cv_lib_svld_dlopen=yes
17598else
17599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017600sed 's/^/| /' conftest.$ac_ext >&5
17601
Reid Spencera773bd52006-08-04 18:18:08 +000017602 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017603fi
Reid Spencera773bd52006-08-04 18:18:08 +000017604
Bill Wendlingebcceee2009-04-18 11:20:33 +000017605rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017606 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017607LIBS=$ac_check_lib_save_LIBS
17608fi
Reid Spencera773bd52006-08-04 18:18:08 +000017609{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17610echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017611if test $ac_cv_lib_svld_dlopen = yes; then
17612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17613else
Reid Spencera773bd52006-08-04 18:18:08 +000017614 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17615echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017616if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618else
17619 ac_check_lib_save_LIBS=$LIBS
17620LIBS="-ldld $LIBS"
17621cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017627
Reid Spencera773bd52006-08-04 18:18:08 +000017628/* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017631#ifdef __cplusplus
17632extern "C"
17633#endif
John Criswell7a73b802003-06-30 21:59:07 +000017634char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017635int
17636main ()
17637{
Reid Spencera773bd52006-08-04 18:18:08 +000017638return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017644if { (ac_try="$ac_link"
17645case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648esac
17649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017651 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661esac
17662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest$ac_exeext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017677 ac_cv_lib_dld_dld_link=yes
17678else
17679 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017680sed 's/^/| /' conftest.$ac_ext >&5
17681
Reid Spencera773bd52006-08-04 18:18:08 +000017682 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017683fi
Reid Spencera773bd52006-08-04 18:18:08 +000017684
Bill Wendlingebcceee2009-04-18 11:20:33 +000017685rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017686 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017687LIBS=$ac_check_lib_save_LIBS
17688fi
Reid Spencera773bd52006-08-04 18:18:08 +000017689{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17690echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017691if test $ac_cv_lib_dld_dld_link = yes; then
17692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17693fi
17694
17695
17696fi
17697
17698
17699fi
17700
17701
17702fi
17703
17704
17705fi
17706
17707
17708fi
17709
17710 ;;
17711 esac
17712
17713 if test "x$lt_cv_dlopen" != xno; then
17714 enable_dlopen=yes
17715 else
17716 enable_dlopen=no
17717 fi
17718
17719 case $lt_cv_dlopen in
17720 dlopen)
17721 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017723
17724 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017726
17727 save_LIBS="$LIBS"
17728 LIBS="$lt_cv_dlopen_libs $LIBS"
17729
Reid Spencera773bd52006-08-04 18:18:08 +000017730 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17731echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017732if test "${lt_cv_dlopen_self+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734else
17735 if test "$cross_compiling" = yes; then :
17736 lt_cv_dlopen_self=cross
17737else
John Criswell47fdd832003-07-14 16:52:07 +000017738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017739 lt_status=$lt_dlunknown
17740 cat > conftest.$ac_ext <<EOF
Rafael Espindola7f9ec912009-11-12 05:46:09 +000017741#line 17741 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017742#include "confdefs.h"
17743
17744#if HAVE_DLFCN_H
17745#include <dlfcn.h>
17746#endif
17747
17748#include <stdio.h>
17749
17750#ifdef RTLD_GLOBAL
17751# define LT_DLGLOBAL RTLD_GLOBAL
17752#else
17753# ifdef DL_GLOBAL
17754# define LT_DLGLOBAL DL_GLOBAL
17755# else
17756# define LT_DLGLOBAL 0
17757# endif
17758#endif
17759
17760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17761 find out it does not work in some platform. */
17762#ifndef LT_DLLAZY_OR_NOW
17763# ifdef RTLD_LAZY
17764# define LT_DLLAZY_OR_NOW RTLD_LAZY
17765# else
17766# ifdef DL_LAZY
17767# define LT_DLLAZY_OR_NOW DL_LAZY
17768# else
17769# ifdef RTLD_NOW
17770# define LT_DLLAZY_OR_NOW RTLD_NOW
17771# else
17772# ifdef DL_NOW
17773# define LT_DLLAZY_OR_NOW DL_NOW
17774# else
17775# define LT_DLLAZY_OR_NOW 0
17776# endif
17777# endif
17778# endif
17779# endif
17780#endif
17781
17782#ifdef __cplusplus
17783extern "C" void exit (int);
17784#endif
17785
17786void fnord() { int i=42;}
17787int main ()
17788{
17789 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17790 int status = $lt_dlunknown;
17791
17792 if (self)
17793 {
17794 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17795 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17796 /* dlclose (self); */
17797 }
Reid Spencera773bd52006-08-04 18:18:08 +000017798 else
17799 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017800
17801 exit (status);
17802}
17803EOF
17804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17805 (eval $ac_link) 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017809 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017810 lt_status=$?
17811 case x$lt_status in
17812 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17813 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017814 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017815 esac
17816 else :
17817 # compilation failed
17818 lt_cv_dlopen_self=no
17819 fi
17820fi
17821rm -fr conftest*
17822
17823
17824fi
Reid Spencera773bd52006-08-04 18:18:08 +000017825{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17826echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017827
17828 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17830 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17831echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017832if test "${lt_cv_dlopen_self_static+set}" = set; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17834else
17835 if test "$cross_compiling" = yes; then :
17836 lt_cv_dlopen_self_static=cross
17837else
John Criswell47fdd832003-07-14 16:52:07 +000017838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017839 lt_status=$lt_dlunknown
17840 cat > conftest.$ac_ext <<EOF
Rafael Espindola7f9ec912009-11-12 05:46:09 +000017841#line 17841 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017842#include "confdefs.h"
17843
17844#if HAVE_DLFCN_H
17845#include <dlfcn.h>
17846#endif
17847
17848#include <stdio.h>
17849
17850#ifdef RTLD_GLOBAL
17851# define LT_DLGLOBAL RTLD_GLOBAL
17852#else
17853# ifdef DL_GLOBAL
17854# define LT_DLGLOBAL DL_GLOBAL
17855# else
17856# define LT_DLGLOBAL 0
17857# endif
17858#endif
17859
17860/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17861 find out it does not work in some platform. */
17862#ifndef LT_DLLAZY_OR_NOW
17863# ifdef RTLD_LAZY
17864# define LT_DLLAZY_OR_NOW RTLD_LAZY
17865# else
17866# ifdef DL_LAZY
17867# define LT_DLLAZY_OR_NOW DL_LAZY
17868# else
17869# ifdef RTLD_NOW
17870# define LT_DLLAZY_OR_NOW RTLD_NOW
17871# else
17872# ifdef DL_NOW
17873# define LT_DLLAZY_OR_NOW DL_NOW
17874# else
17875# define LT_DLLAZY_OR_NOW 0
17876# endif
17877# endif
17878# endif
17879# endif
17880#endif
17881
17882#ifdef __cplusplus
17883extern "C" void exit (int);
17884#endif
17885
17886void fnord() { int i=42;}
17887int main ()
17888{
17889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17890 int status = $lt_dlunknown;
17891
17892 if (self)
17893 {
17894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17896 /* dlclose (self); */
17897 }
Reid Spencera773bd52006-08-04 18:18:08 +000017898 else
17899 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017900
17901 exit (status);
17902}
17903EOF
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017909 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017910 lt_status=$?
17911 case x$lt_status in
17912 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17913 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017914 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017915 esac
17916 else :
17917 # compilation failed
17918 lt_cv_dlopen_self_static=no
17919 fi
17920fi
17921rm -fr conftest*
17922
17923
17924fi
Reid Spencera773bd52006-08-04 18:18:08 +000017925{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17926echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017927 fi
17928
17929 CPPFLAGS="$save_CPPFLAGS"
17930 LDFLAGS="$save_LDFLAGS"
17931 LIBS="$save_LIBS"
17932 ;;
17933 esac
17934
17935 case $lt_cv_dlopen_self in
17936 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17937 *) enable_dlopen_self=unknown ;;
17938 esac
17939
17940 case $lt_cv_dlopen_self_static in
17941 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17942 *) enable_dlopen_self_static=unknown ;;
17943 esac
17944fi
17945
17946
Reid Spencera773bd52006-08-04 18:18:08 +000017947# Report which library types will actually be built
17948{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17949echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17950{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17951echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017952
Reid Spencera773bd52006-08-04 18:18:08 +000017953{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17954echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017955test "$can_build_shared" = "no" && enable_shared=no
17956
17957# On AIX, shared libraries and static libraries use the same namespace, and
17958# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017959case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017960aix3*)
17961 test "$enable_shared" = yes && enable_static=no
17962 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017963 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017964 postinstall_cmds='$RANLIB $lib'
17965 fi
17966 ;;
17967
Reid Spencer2706f8c2004-09-19 23:53:36 +000017968aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017969 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17970 test "$enable_shared" = yes && enable_static=no
17971 fi
John Criswell7a73b802003-06-30 21:59:07 +000017972 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017973esac
Reid Spencera773bd52006-08-04 18:18:08 +000017974{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17975echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017976
Reid Spencera773bd52006-08-04 18:18:08 +000017977{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17978echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017979# Make sure either enable_shared or enable_static is yes.
17980test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017981{ echo "$as_me:$LINENO: result: $enable_static" >&5
17982echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017983
17984# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017985# libtool distribution, otherwise you forgot to ship ltmain.sh
17986# with your package, and you will get complaints that there are
17987# no rules to generate ltmain.sh.
17988if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017989 # See if we are running on zsh, and set the options which allow our commands through
17990 # without removal of \ escapes.
17991 if test -n "${ZSH_VERSION+set}" ; then
17992 setopt NO_GLOB_SUBST
17993 fi
John Criswell7a73b802003-06-30 21:59:07 +000017994 # Now quote all the things that may contain metacharacters while being
17995 # careful not to overquote the AC_SUBSTed values. We take copies of the
17996 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017997 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 +000017998 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18001 deplibs_check_method reload_flag reload_cmds need_locks \
18002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18003 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000018004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000018005 old_postinstall_cmds old_postuninstall_cmds \
18006 compiler \
18007 CC \
18008 LD \
18009 lt_prog_compiler_wl \
18010 lt_prog_compiler_pic \
18011 lt_prog_compiler_static \
18012 lt_prog_compiler_no_builtin_flag \
18013 export_dynamic_flag_spec \
18014 thread_safe_flag_spec \
18015 whole_archive_flag_spec \
18016 enable_shared_with_static_runtimes \
18017 old_archive_cmds \
18018 old_archive_from_new_cmds \
18019 predep_objects \
18020 postdep_objects \
18021 predeps \
18022 postdeps \
18023 compiler_lib_search_path \
18024 archive_cmds \
18025 archive_expsym_cmds \
18026 postinstall_cmds \
18027 postuninstall_cmds \
18028 old_archive_from_expsyms_cmds \
18029 allow_undefined_flag \
18030 no_undefined_flag \
18031 export_symbols_cmds \
18032 hardcode_libdir_flag_spec \
18033 hardcode_libdir_flag_spec_ld \
18034 hardcode_libdir_separator \
18035 hardcode_automatic \
18036 module_cmds \
18037 module_expsym_cmds \
18038 lt_cv_prog_compiler_c_o \
18039 exclude_expsyms \
18040 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000018041
18042 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000018043 old_archive_cmds | \
18044 old_archive_from_new_cmds | \
18045 archive_cmds | \
18046 archive_expsym_cmds | \
18047 module_cmds | \
18048 module_expsym_cmds | \
18049 old_archive_from_expsyms_cmds | \
18050 export_symbols_cmds | \
18051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000018052 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000018053 old_postinstall_cmds | old_postuninstall_cmds | \
18054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000018055 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018056 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 +000018057 ;;
18058 *)
18059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18060 ;;
18061 esac
18062 done
18063
John Criswell47fdd832003-07-14 16:52:07 +000018064 case $lt_echo in
18065 *'\$0 --fallback-echo"')
18066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18067 ;;
18068 esac
18069
18070cfgfile="${ofile}T"
18071 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18072 $rm -f "$cfgfile"
18073 { echo "$as_me:$LINENO: creating $ofile" >&5
18074echo "$as_me: creating $ofile" >&6;}
18075
18076 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018077#! $SHELL
18078
John Criswell47fdd832003-07-14 16:52:07 +000018079# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000018080# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18081# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18082#
John Criswell47fdd832003-07-14 16:52:07 +000018083# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18084# Free Software Foundation, Inc.
18085#
18086# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000018087# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18088#
18089# This program is free software; you can redistribute it and/or modify
18090# it under the terms of the GNU General Public License as published by
18091# the Free Software Foundation; either version 2 of the License, or
18092# (at your option) any later version.
18093#
18094# This program is distributed in the hope that it will be useful, but
18095# WITHOUT ANY WARRANTY; without even the implied warranty of
18096# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18097# General Public License for more details.
18098#
18099# You should have received a copy of the GNU General Public License
18100# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000018101# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000018102#
18103# As a special exception to the GNU General Public License, if you
18104# distribute this file as part of a program that contains a
18105# configuration script generated by Autoconf, you may include it under
18106# the same distribution terms that you use for the rest of that program.
18107
John Criswell47fdd832003-07-14 16:52:07 +000018108# A sed program that does not truncate output.
18109SED=$lt_SED
18110
John Criswell7a73b802003-06-30 21:59:07 +000018111# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000018112Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000018113
18114# The HP-UX ksh and POSIX shell print the target directory to stdout
18115# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018116(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000018117
John Criswell47fdd832003-07-14 16:52:07 +000018118# The names of the tagged configurations supported by this script.
18119available_tags=
18120
John Criswell7a73b802003-06-30 21:59:07 +000018121# ### BEGIN LIBTOOL CONFIG
18122
18123# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18124
18125# Shell to use when invoking shell scripts.
18126SHELL=$lt_SHELL
18127
18128# Whether or not to build shared libraries.
18129build_libtool_libs=$enable_shared
18130
18131# Whether or not to build static libraries.
18132build_old_libs=$enable_static
18133
18134# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000018135build_libtool_need_lc=$archive_cmds_need_lc
18136
18137# Whether or not to disallow shared libs when runtime libs are static
18138allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018139
18140# Whether or not to optimize for fast installation.
18141fast_install=$enable_fast_install
18142
18143# The host system.
18144host_alias=$host_alias
18145host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018146host_os=$host_os
18147
18148# The build system.
18149build_alias=$build_alias
18150build=$build
18151build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018152
18153# An echo program that does not interpret backslashes.
18154echo=$lt_echo
18155
18156# The archiver.
18157AR=$lt_AR
18158AR_FLAGS=$lt_AR_FLAGS
18159
John Criswell47fdd832003-07-14 16:52:07 +000018160# A C compiler.
18161LTCC=$lt_LTCC
18162
Reid Spencera773bd52006-08-04 18:18:08 +000018163# LTCC compiler flags.
18164LTCFLAGS=$lt_LTCFLAGS
18165
John Criswell47fdd832003-07-14 16:52:07 +000018166# A language-specific compiler.
18167CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018168
18169# Is the compiler the GNU C compiler?
18170with_gcc=$GCC
18171
John Criswell47fdd832003-07-14 16:52:07 +000018172# An ERE matcher.
18173EGREP=$lt_EGREP
18174
John Criswell7a73b802003-06-30 21:59:07 +000018175# The linker used to build libraries.
18176LD=$lt_LD
18177
18178# Whether we need hard or soft links.
18179LN_S=$lt_LN_S
18180
18181# A BSD-compatible nm program.
18182NM=$lt_NM
18183
18184# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018185STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018186
18187# Used to examine libraries when file_magic_cmd begins "file"
18188MAGIC_CMD=$MAGIC_CMD
18189
18190# Used on cygwin: DLL creation program.
18191DLLTOOL="$DLLTOOL"
18192
18193# Used on cygwin: object dumper.
18194OBJDUMP="$OBJDUMP"
18195
18196# Used on cygwin: assembler.
18197AS="$AS"
18198
18199# The name of the directory that contains temporary libtool files.
18200objdir=$objdir
18201
18202# How to create reloadable object files.
18203reload_flag=$lt_reload_flag
18204reload_cmds=$lt_reload_cmds
18205
18206# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018207wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018208
18209# Object file suffix (normally "o").
18210objext="$ac_objext"
18211
18212# Old archive suffix (normally "a").
18213libext="$libext"
18214
John Criswell47fdd832003-07-14 16:52:07 +000018215# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018216shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018217
John Criswell7a73b802003-06-30 21:59:07 +000018218# Executable file suffix (normally "").
18219exeext="$exeext"
18220
18221# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018222pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018223pic_mode=$pic_mode
18224
John Criswell47fdd832003-07-14 16:52:07 +000018225# What is the maximum length of a command?
18226max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018227
John Criswell47fdd832003-07-14 16:52:07 +000018228# Does compiler simultaneously support -c and -o options?
18229compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018230
Reid Spencera773bd52006-08-04 18:18:08 +000018231# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018232need_locks=$lt_need_locks
18233
18234# Do we need the lib prefix for modules?
18235need_lib_prefix=$need_lib_prefix
18236
18237# Do we need a version for libraries?
18238need_version=$need_version
18239
18240# Whether dlopen is supported.
18241dlopen_support=$enable_dlopen
18242
18243# Whether dlopen of programs is supported.
18244dlopen_self=$enable_dlopen_self
18245
18246# Whether dlopen of statically linked programs is supported.
18247dlopen_self_static=$enable_dlopen_self_static
18248
18249# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018250link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018251
18252# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018253no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018254
18255# Compiler flag to allow reflexive dlopens.
18256export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18257
18258# Compiler flag to generate shared objects directly from archives.
18259whole_archive_flag_spec=$lt_whole_archive_flag_spec
18260
18261# Compiler flag to generate thread-safe objects.
18262thread_safe_flag_spec=$lt_thread_safe_flag_spec
18263
18264# Library versioning type.
18265version_type=$version_type
18266
18267# Format of library name prefix.
18268libname_spec=$lt_libname_spec
18269
18270# List of archive names. First name is the real one, the rest are links.
18271# The last name is the one that the linker finds with -lNAME.
18272library_names_spec=$lt_library_names_spec
18273
18274# The coded name of the library, if different from the real name.
18275soname_spec=$lt_soname_spec
18276
18277# Commands used to build and install an old-style archive.
18278RANLIB=$lt_RANLIB
18279old_archive_cmds=$lt_old_archive_cmds
18280old_postinstall_cmds=$lt_old_postinstall_cmds
18281old_postuninstall_cmds=$lt_old_postuninstall_cmds
18282
18283# Create an old-style archive from a shared archive.
18284old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18285
18286# Create a temporary old-style archive to link instead of a shared archive.
18287old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18288
18289# Commands used to build and install a shared archive.
18290archive_cmds=$lt_archive_cmds
18291archive_expsym_cmds=$lt_archive_expsym_cmds
18292postinstall_cmds=$lt_postinstall_cmds
18293postuninstall_cmds=$lt_postuninstall_cmds
18294
John Criswell47fdd832003-07-14 16:52:07 +000018295# Commands used to build a loadable module (assumed same as above if empty)
18296module_cmds=$lt_module_cmds
18297module_expsym_cmds=$lt_module_expsym_cmds
18298
John Criswell7a73b802003-06-30 21:59:07 +000018299# Commands to strip libraries.
18300old_striplib=$lt_old_striplib
18301striplib=$lt_striplib
18302
John Criswell47fdd832003-07-14 16:52:07 +000018303# Dependencies to place before the objects being linked to create a
18304# shared library.
18305predep_objects=$lt_predep_objects
18306
18307# Dependencies to place after the objects being linked to create a
18308# shared library.
18309postdep_objects=$lt_postdep_objects
18310
18311# Dependencies to place before the objects being linked to create a
18312# shared library.
18313predeps=$lt_predeps
18314
18315# Dependencies to place after the objects being linked to create a
18316# shared library.
18317postdeps=$lt_postdeps
18318
18319# The library search path used internally by the compiler when linking
18320# a shared library.
18321compiler_lib_search_path=$lt_compiler_lib_search_path
18322
John Criswell7a73b802003-06-30 21:59:07 +000018323# Method to check whether dependent libraries are shared objects.
18324deplibs_check_method=$lt_deplibs_check_method
18325
18326# Command to use when deplibs_check_method == file_magic.
18327file_magic_cmd=$lt_file_magic_cmd
18328
18329# Flag that allows shared libraries with undefined symbols to be built.
18330allow_undefined_flag=$lt_allow_undefined_flag
18331
18332# Flag that forces no undefined symbols.
18333no_undefined_flag=$lt_no_undefined_flag
18334
18335# Commands used to finish a libtool library installation in a directory.
18336finish_cmds=$lt_finish_cmds
18337
18338# Same as above, but a single script fragment to be evaled but not shown.
18339finish_eval=$lt_finish_eval
18340
18341# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018342global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018343
18344# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018345global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018346
18347# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018348global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018349
18350# This is the shared library runtime path variable.
18351runpath_var=$runpath_var
18352
18353# This is the shared library path variable.
18354shlibpath_var=$shlibpath_var
18355
18356# Is shlibpath searched before the hard-coded library search path?
18357shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18358
18359# How to hardcode a shared library path into an executable.
18360hardcode_action=$hardcode_action
18361
18362# Whether we should hardcode library paths into libraries.
18363hardcode_into_libs=$hardcode_into_libs
18364
18365# Flag to hardcode \$libdir into a binary during linking.
18366# This must work even if \$libdir does not exist.
18367hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18368
John Criswell47fdd832003-07-14 16:52:07 +000018369# If ld is used when linking, flag to hardcode \$libdir into
18370# a binary during linking. This must work even if \$libdir does
18371# not exist.
18372hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18373
John Criswell7a73b802003-06-30 21:59:07 +000018374# Whether we need a single -rpath flag with a separated argument.
18375hardcode_libdir_separator=$lt_hardcode_libdir_separator
18376
John Criswell47fdd832003-07-14 16:52:07 +000018377# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018378# resulting binary.
18379hardcode_direct=$hardcode_direct
18380
18381# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18382# resulting binary.
18383hardcode_minus_L=$hardcode_minus_L
18384
18385# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18386# the resulting binary.
18387hardcode_shlibpath_var=$hardcode_shlibpath_var
18388
John Criswell47fdd832003-07-14 16:52:07 +000018389# Set to yes if building a shared library automatically hardcodes DIR into the library
18390# and all subsequent libraries and executables linked against it.
18391hardcode_automatic=$hardcode_automatic
18392
John Criswell7a73b802003-06-30 21:59:07 +000018393# Variables whose values should be saved in libtool wrapper scripts and
18394# restored at relink time.
18395variables_saved_for_relink="$variables_saved_for_relink"
18396
18397# Whether libtool must link a program against all its dependency libraries.
18398link_all_deplibs=$link_all_deplibs
18399
18400# Compile-time system search path for libraries
18401sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18402
18403# Run-time system search path for libraries
18404sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18405
18406# Fix the shell variable \$srcfile for the compiler.
18407fix_srcfile_path="$fix_srcfile_path"
18408
18409# Set to yes if exported symbols are required.
18410always_export_symbols=$always_export_symbols
18411
18412# The commands to list exported symbols.
18413export_symbols_cmds=$lt_export_symbols_cmds
18414
18415# The commands to extract the exported symbol list from a shared archive.
18416extract_expsyms_cmds=$lt_extract_expsyms_cmds
18417
18418# Symbols that should not be listed in the preloaded symbols.
18419exclude_expsyms=$lt_exclude_expsyms
18420
18421# Symbols that must always be exported.
18422include_expsyms=$lt_include_expsyms
18423
18424# ### END LIBTOOL CONFIG
18425
18426__EOF__
18427
John Criswell47fdd832003-07-14 16:52:07 +000018428
John Criswell7a73b802003-06-30 21:59:07 +000018429 case $host_os in
18430 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018431 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018432
18433# AIX sometimes has problems with the GCC collect2 program. For some
18434# reason, if we set the COLLECT_NAMES environment variable, the problems
18435# vanish in a puff of smoke.
18436if test "X${COLLECT_NAMES+set}" != Xset; then
18437 COLLECT_NAMES=
18438 export COLLECT_NAMES
18439fi
18440EOF
18441 ;;
18442 esac
18443
John Criswell7a73b802003-06-30 21:59:07 +000018444 # We use sed instead of cat because bash on DJGPP gets confused if
18445 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18446 # text mode, it properly converts lines to CR/LF. This bash problem
18447 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018448 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018449
John Criswell47fdd832003-07-14 16:52:07 +000018450 mv -f "$cfgfile" "$ofile" || \
18451 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018452 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018453
18454else
18455 # If there is no Makefile yet, we rely on a make rule to execute
18456 # `config.status --recheck' to rerun these tests and create the
18457 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018458 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18459 if test -f "$ltmain_in"; then
18460 test -f Makefile && make "$ltmain"
18461 fi
John Criswell7a73b802003-06-30 21:59:07 +000018462fi
John Criswell7a73b802003-06-30 21:59:07 +000018463
18464
John Criswell47fdd832003-07-14 16:52:07 +000018465ac_ext=c
18466ac_cpp='$CPP $CPPFLAGS'
18467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18469ac_compiler_gnu=$ac_cv_c_compiler_gnu
18470
18471CC="$lt_save_CC"
18472
18473
Reid Spencera773bd52006-08-04 18:18:08 +000018474# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018475if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018476 withval=$with_tags; tagnames="$withval"
18477fi
18478
John Criswell47fdd832003-07-14 16:52:07 +000018479
18480if test -f "$ltmain" && test -n "$tagnames"; then
18481 if test ! -f "${ofile}"; then
18482 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18483echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18484 fi
18485
18486 if test -z "$LTCC"; then
18487 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18488 if test -z "$LTCC"; then
18489 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18490echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18491 else
18492 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18493echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18494 fi
18495 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018496 if test -z "$LTCFLAGS"; then
18497 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18498 fi
John Criswell47fdd832003-07-14 16:52:07 +000018499
18500 # Extract list of available tagged configurations in $ofile.
18501 # Note that this assumes the entire list is on one line.
18502 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18503
18504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18505 for tagname in $tagnames; do
18506 IFS="$lt_save_ifs"
18507 # Check whether tagname contains only valid characters
18508 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18509 "") ;;
18510 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18511echo "$as_me: error: invalid tag name: $tagname" >&2;}
18512 { (exit 1); exit 1; }; }
18513 ;;
18514 esac
18515
18516 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18517 then
18518 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18519echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18520 { (exit 1); exit 1; }; }
18521 fi
18522
18523 # Update the list of available tags.
18524 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018525 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018526
18527 case $tagname in
18528 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018529 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18530 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18531 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018532 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018533ac_cpp='$CXXCPP $CPPFLAGS'
18534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18537
18538
18539
18540
18541archive_cmds_need_lc_CXX=no
18542allow_undefined_flag_CXX=
18543always_export_symbols_CXX=no
18544archive_expsym_cmds_CXX=
18545export_dynamic_flag_spec_CXX=
18546hardcode_direct_CXX=no
18547hardcode_libdir_flag_spec_CXX=
18548hardcode_libdir_flag_spec_ld_CXX=
18549hardcode_libdir_separator_CXX=
18550hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018551hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018552hardcode_automatic_CXX=no
18553module_cmds_CXX=
18554module_expsym_cmds_CXX=
18555link_all_deplibs_CXX=unknown
18556old_archive_cmds_CXX=$old_archive_cmds
18557no_undefined_flag_CXX=
18558whole_archive_flag_spec_CXX=
18559enable_shared_with_static_runtimes_CXX=no
18560
18561# Dependencies to place before and after the object being linked:
18562predep_objects_CXX=
18563postdep_objects_CXX=
18564predeps_CXX=
18565postdeps_CXX=
18566compiler_lib_search_path_CXX=
18567
18568# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018569ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018570
18571# Object file extension for compiled C++ test sources.
18572objext=o
18573objext_CXX=$objext
18574
18575# Code to be used in simple compile tests
18576lt_simple_compile_test_code="int some_variable = 0;\n"
18577
18578# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018579lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018580
18581# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18582
18583# If no C compiler was specified, use CC.
18584LTCC=${LTCC-"$CC"}
18585
Reid Spencera773bd52006-08-04 18:18:08 +000018586# If no C compiler flags were specified, use CFLAGS.
18587LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18588
John Criswell47fdd832003-07-14 16:52:07 +000018589# Allow CC to be a program name with arguments.
18590compiler=$CC
18591
18592
Reid Spencera773bd52006-08-04 18:18:08 +000018593# save warnings/boilerplate of simple test code
18594ac_outfile=conftest.$ac_objext
18595printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18596eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18597_lt_compiler_boilerplate=`cat conftest.err`
18598$rm conftest*
18599
18600ac_outfile=conftest.$ac_objext
18601printf "$lt_simple_link_test_code" >conftest.$ac_ext
18602eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18603_lt_linker_boilerplate=`cat conftest.err`
18604$rm conftest*
18605
18606
John Criswell47fdd832003-07-14 16:52:07 +000018607# Allow CC to be a program name with arguments.
18608lt_save_CC=$CC
18609lt_save_LD=$LD
18610lt_save_GCC=$GCC
18611GCC=$GXX
18612lt_save_with_gnu_ld=$with_gnu_ld
18613lt_save_path_LD=$lt_cv_path_LD
18614if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18616else
Reid Spencera773bd52006-08-04 18:18:08 +000018617 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018618fi
18619if test -n "${lt_cv_path_LDCXX+set}"; then
18620 lt_cv_path_LD=$lt_cv_path_LDCXX
18621else
Reid Spencera773bd52006-08-04 18:18:08 +000018622 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018623fi
18624test -z "${LDCXX+set}" || LD=$LDCXX
18625CC=${CXX-"c++"}
18626compiler=$CC
18627compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018628for cc_temp in $compiler""; do
18629 case $cc_temp in
18630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18632 \-*) ;;
18633 *) break;;
18634 esac
18635done
18636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18637
John Criswell47fdd832003-07-14 16:52:07 +000018638
18639# We don't want -fno-exception wen compiling C++ code, so set the
18640# no_builtin_flag separately
18641if test "$GXX" = yes; then
18642 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18643else
18644 lt_prog_compiler_no_builtin_flag_CXX=
18645fi
18646
18647if test "$GXX" = yes; then
18648 # Set up default GNU C++ configuration
18649
18650
Reid Spencera773bd52006-08-04 18:18:08 +000018651# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018652if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018654else
18655 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018656fi
18657
John Criswell47fdd832003-07-14 16:52:07 +000018658ac_prog=ld
18659if test "$GCC" = yes; then
18660 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018661 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18662echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018663 case $host in
18664 *-*-mingw*)
18665 # gcc leaves a trailing carriage return which upsets mingw
18666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18667 *)
18668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18669 esac
18670 case $ac_prog in
18671 # Accept absolute paths.
18672 [\\/]* | ?:[\\/]*)
18673 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018674 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018675 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18676 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18677 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18678 done
18679 test -z "$LD" && LD="$ac_prog"
18680 ;;
18681 "")
18682 # If it fails, then pretend we aren't using GCC.
18683 ac_prog=ld
18684 ;;
18685 *)
18686 # If it is relative, then search for the first ld in PATH.
18687 with_gnu_ld=unknown
18688 ;;
18689 esac
18690elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018691 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18692echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018693else
Reid Spencera773bd52006-08-04 18:18:08 +000018694 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18695echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018696fi
18697if test "${lt_cv_path_LD+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700 if test -z "$LD"; then
18701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18702 for ac_dir in $PATH; do
18703 IFS="$lt_save_ifs"
18704 test -z "$ac_dir" && ac_dir=.
18705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18706 lt_cv_path_LD="$ac_dir/$ac_prog"
18707 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018708 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018709 # Break only if it was the GNU/non-GNU ld that we prefer.
18710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18711 *GNU* | *'with BFD'*)
18712 test "$with_gnu_ld" != no && break
18713 ;;
18714 *)
18715 test "$with_gnu_ld" != yes && break
18716 ;;
18717 esac
18718 fi
18719 done
18720 IFS="$lt_save_ifs"
18721else
18722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18723fi
18724fi
18725
18726LD="$lt_cv_path_LD"
18727if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018728 { echo "$as_me:$LINENO: result: $LD" >&5
18729echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018730else
Reid Spencera773bd52006-08-04 18:18:08 +000018731 { echo "$as_me:$LINENO: result: no" >&5
18732echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018733fi
18734test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18735echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18736 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018737{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18738echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018739if test "${lt_cv_prog_gnu_ld+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741else
Reid Spencera773bd52006-08-04 18:18:08 +000018742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018743case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018744*GNU* | *'with BFD'*)
18745 lt_cv_prog_gnu_ld=yes
18746 ;;
18747*)
18748 lt_cv_prog_gnu_ld=no
18749 ;;
18750esac
18751fi
Reid Spencera773bd52006-08-04 18:18:08 +000018752{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18753echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018754with_gnu_ld=$lt_cv_prog_gnu_ld
18755
18756
18757
18758 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18759 # archiving commands below assume that GNU ld is being used.
18760 if test "$with_gnu_ld" = yes; then
18761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18762 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'
18763
18764 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18766
18767 # If archive_cmds runs LD, not CC, wlarc should be empty
18768 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18769 # investigate it a little bit more. (MM)
18770 wlarc='${wl}'
18771
18772 # ancient GNU ld didn't support --whole-archive et. al.
18773 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18774 grep 'no-whole-archive' > /dev/null; then
18775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18776 else
18777 whole_archive_flag_spec_CXX=
18778 fi
18779 else
18780 with_gnu_ld=no
18781 wlarc=
18782
18783 # A generic and very simple default shared library creation
18784 # command for GNU C++ for the case where it uses the native
18785 # linker, instead of GNU ld. If possible, this setting should
18786 # overridden to take advantage of the native linker features on
18787 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018789 fi
18790
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 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18795
18796else
18797 GXX=no
18798 with_gnu_ld=no
18799 wlarc=
18800fi
18801
18802# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018803{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18804echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018805ld_shlibs_CXX=yes
18806case $host_os in
18807 aix3*)
18808 # FIXME: insert proper C++ library support
18809 ld_shlibs_CXX=no
18810 ;;
18811 aix4* | aix5*)
18812 if test "$host_cpu" = ia64; then
18813 # On IA64, the linker does run time linking by default, so we don't
18814 # have to do anything special.
18815 aix_use_runtimelinking=no
18816 exp_sym_flag='-Bexport'
18817 no_entry_flag=""
18818 else
18819 aix_use_runtimelinking=no
18820
18821 # Test if we are trying to use run time linking or normal
18822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18823 # need to do runtime linking.
18824 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18825 for ld_flag in $LDFLAGS; do
18826 case $ld_flag in
18827 *-brtl*)
18828 aix_use_runtimelinking=yes
18829 break
18830 ;;
18831 esac
18832 done
Reid Spencera773bd52006-08-04 18:18:08 +000018833 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018834 esac
18835
18836 exp_sym_flag='-bexport'
18837 no_entry_flag='-bnoentry'
18838 fi
18839
18840 # When large executables or shared objects are built, AIX ld can
18841 # have problems creating the table of contents. If linking a library
18842 # or program results in "error TOC overflow" add -mminimal-toc to
18843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18845
18846 archive_cmds_CXX=''
18847 hardcode_direct_CXX=yes
18848 hardcode_libdir_separator_CXX=':'
18849 link_all_deplibs_CXX=yes
18850
18851 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018852 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018853 # We only want to do this on AIX 4.2 and lower, the check
18854 # below for broken collect2 doesn't work under 4.3+
18855 collect2name=`${CC} -print-prog-name=collect2`
18856 if test -f "$collect2name" && \
18857 strings "$collect2name" | grep resolve_lib_name >/dev/null
18858 then
18859 # We have reworked collect2
18860 hardcode_direct_CXX=yes
18861 else
18862 # We have old collect2
18863 hardcode_direct_CXX=unsupported
18864 # It fails to find uninstalled libraries when the uninstalled
18865 # path is not listed in the libpath. Setting hardcode_minus_L
18866 # to unsupported forces relinking
18867 hardcode_minus_L_CXX=yes
18868 hardcode_libdir_flag_spec_CXX='-L$libdir'
18869 hardcode_libdir_separator_CXX=
18870 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018871 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018872 esac
18873 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018874 if test "$aix_use_runtimelinking" = yes; then
18875 shared_flag="$shared_flag "'${wl}-G'
18876 fi
John Criswell47fdd832003-07-14 16:52:07 +000018877 else
18878 # not using gcc
18879 if test "$host_cpu" = ia64; then
18880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18881 # chokes on -Wl,-G. The following line is correct:
18882 shared_flag='-G'
18883 else
18884 if test "$aix_use_runtimelinking" = yes; then
18885 shared_flag='${wl}-G'
18886 else
18887 shared_flag='${wl}-bM:SRE'
18888 fi
18889 fi
18890 fi
18891
18892 # It seems that -bexpall does not export symbols beginning with
18893 # underscore (_), so it is better to generate a list of symbols to export.
18894 always_export_symbols_CXX=yes
18895 if test "$aix_use_runtimelinking" = yes; then
18896 # Warning - without using the other runtime loading flags (-brtl),
18897 # -berok will link without error, but may produce a broken library.
18898 allow_undefined_flag_CXX='-berok'
18899 # Determine the default libpath from the value encoded in an empty executable.
18900 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018901/* confdefs.h. */
18902_ACEOF
18903cat confdefs.h >>conftest.$ac_ext
18904cat >>conftest.$ac_ext <<_ACEOF
18905/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018906
John Criswell47fdd832003-07-14 16:52:07 +000018907int
18908main ()
18909{
18910
18911 ;
18912 return 0;
18913}
18914_ACEOF
18915rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018916if { (ac_try="$ac_link"
18917case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920esac
18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018923 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933esac
18934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018949
18950aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18951}'`
18952# Check for a 64-bit object if we didn't find anything.
18953if 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; }
18954}'`; fi
18955else
18956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018957sed 's/^/| /' conftest.$ac_ext >&5
18958
Reid Spencera773bd52006-08-04 18:18:08 +000018959
John Criswell47fdd832003-07-14 16:52:07 +000018960fi
Reid Spencera773bd52006-08-04 18:18:08 +000018961
Bill Wendlingebcceee2009-04-18 11:20:33 +000018962rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018963 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18965
18966 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18967
Reid Spencera773bd52006-08-04 18:18:08 +000018968 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 +000018969 else
18970 if test "$host_cpu" = ia64; then
18971 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18972 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018973 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 +000018974 else
18975 # Determine the default libpath from the value encoded in an empty executable.
18976 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018977/* confdefs.h. */
18978_ACEOF
18979cat confdefs.h >>conftest.$ac_ext
18980cat >>conftest.$ac_ext <<_ACEOF
18981/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018982
John Criswell47fdd832003-07-14 16:52:07 +000018983int
18984main ()
18985{
18986
18987 ;
18988 return 0;
18989}
18990_ACEOF
18991rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018992if { (ac_try="$ac_link"
18993case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000019004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009esac
19010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019esac
19020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000019025
19026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19027}'`
19028# Check for a 64-bit object if we didn't find anything.
19029if 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; }
19030}'`; fi
19031else
19032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019033sed 's/^/| /' conftest.$ac_ext >&5
19034
Reid Spencera773bd52006-08-04 18:18:08 +000019035
John Criswell47fdd832003-07-14 16:52:07 +000019036fi
Reid Spencera773bd52006-08-04 18:18:08 +000019037
Bill Wendlingebcceee2009-04-18 11:20:33 +000019038rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019039 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19041
19042 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19043 # Warning - without using the other run time loading flags,
19044 # -berok will link without error, but may produce a broken library.
19045 no_undefined_flag_CXX=' ${wl}-bernotok'
19046 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000019047 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000019048 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000019049 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000019050 # This is similar to how AIX traditionally builds its shared libraries.
19051 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 +000019052 fi
19053 fi
19054 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019055
19056 beos*)
19057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19058 allow_undefined_flag_CXX=unsupported
19059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19060 # support --undefined. This deserves some investigation. FIXME
19061 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19062 else
19063 ld_shlibs_CXX=no
19064 fi
19065 ;;
19066
John Criswell47fdd832003-07-14 16:52:07 +000019067 chorus*)
19068 case $cc_basename in
19069 *)
19070 # FIXME: insert proper C++ library support
19071 ld_shlibs_CXX=no
19072 ;;
19073 esac
19074 ;;
19075
19076 cygwin* | mingw* | pw32*)
19077 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19078 # as there is no search path for DLLs.
19079 hardcode_libdir_flag_spec_CXX='-L$libdir'
19080 allow_undefined_flag_CXX=unsupported
19081 always_export_symbols_CXX=no
19082 enable_shared_with_static_runtimes_CXX=yes
19083
19084 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000019085 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 +000019086 # If the export-symbols file already is a .def file (1st line
19087 # is EXPORTS), use it as is; otherwise, prepend...
19088 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19089 cp $export_symbols $output_objdir/$soname.def;
19090 else
19091 echo EXPORTS > $output_objdir/$soname.def;
19092 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019093 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000019094 $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 +000019095 else
19096 ld_shlibs_CXX=no
19097 fi
19098 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019099 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000019100 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019101 rhapsody* | darwin1.[012])
19102 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19103 ;;
19104 *) # Darwin 1.3 on
19105 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19106 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19107 else
19108 case ${MACOSX_DEPLOYMENT_TARGET} in
19109 10.[012])
19110 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19111 ;;
19112 10.*)
19113 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19114 ;;
19115 esac
19116 fi
19117 ;;
19118 esac
19119 archive_cmds_need_lc_CXX=no
19120 hardcode_direct_CXX=no
19121 hardcode_automatic_CXX=yes
19122 hardcode_shlibpath_var_CXX=unsupported
19123 whole_archive_flag_spec_CXX=''
19124 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019125
Reid Spencer2706f8c2004-09-19 23:53:36 +000019126 if test "$GXX" = yes ; then
19127 lt_int_apple_cc_single_mod=no
19128 output_verbose_link_cmd='echo'
19129 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19130 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019131 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019133 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 +000019134 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019135 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 +000019136 fi
19137 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019138 # 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 +000019139 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019140 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 +000019141 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019142 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 +000019143 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019144 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 +000019145 else
Reid Spencera773bd52006-08-04 18:18:08 +000019146 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019147 xlc*)
19148 output_verbose_link_cmd='echo'
19149 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'
19150 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019151 # 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 +000019152 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}'
19153 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 +000019154 ;;
19155 *)
19156 ld_shlibs_CXX=no
19157 ;;
19158 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019159 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019160 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019161
19162 dgux*)
19163 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019164 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019165 # FIXME: insert proper C++ library support
19166 ld_shlibs_CXX=no
19167 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019168 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019169 # Green Hills C++ Compiler
19170 # FIXME: insert proper C++ library support
19171 ld_shlibs_CXX=no
19172 ;;
19173 *)
19174 # FIXME: insert proper C++ library support
19175 ld_shlibs_CXX=no
19176 ;;
19177 esac
19178 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019179 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019180 # C++ shared libraries reported to be fairly broken before switch to ELF
19181 ld_shlibs_CXX=no
19182 ;;
19183 freebsd-elf*)
19184 archive_cmds_need_lc_CXX=no
19185 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019186 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019187 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19188 # conventions
19189 ld_shlibs_CXX=yes
19190 ;;
19191 gnu*)
19192 ;;
19193 hpux9*)
19194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19195 hardcode_libdir_separator_CXX=:
19196 export_dynamic_flag_spec_CXX='${wl}-E'
19197 hardcode_direct_CXX=yes
19198 hardcode_minus_L_CXX=yes # Not in the search PATH,
19199 # but as the default
19200 # location of the library.
19201
19202 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019203 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019204 # FIXME: insert proper C++ library support
19205 ld_shlibs_CXX=no
19206 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019207 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019208 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 +000019209 # Commands to make compiler produce verbose output that lists
19210 # what "hidden" libraries, object files and flags are used when
19211 # linking a shared library.
19212 #
19213 # There doesn't appear to be a way to prevent this compiler from
19214 # explicitly linking system object files so we need to strip them
19215 # from the output so that they don't get included in the library
19216 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019217 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 +000019218 ;;
19219 *)
19220 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019221 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 +000019222 else
19223 # FIXME: insert proper C++ library support
19224 ld_shlibs_CXX=no
19225 fi
19226 ;;
19227 esac
19228 ;;
19229 hpux10*|hpux11*)
19230 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019231 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19232 hardcode_libdir_separator_CXX=:
19233
19234 case $host_cpu in
19235 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019236 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019237 ;;
19238 *)
John Criswell47fdd832003-07-14 16:52:07 +000019239 export_dynamic_flag_spec_CXX='${wl}-E'
19240 ;;
19241 esac
19242 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019243 case $host_cpu in
19244 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019245 hardcode_direct_CXX=no
19246 hardcode_shlibpath_var_CXX=no
19247 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019248 *)
19249 hardcode_direct_CXX=yes
19250 hardcode_minus_L_CXX=yes # Not in the search PATH,
19251 # but as the default
19252 # location of the library.
19253 ;;
19254 esac
19255
19256 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019257 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019261 aCC*)
19262 case $host_cpu in
19263 hppa*64*)
19264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19265 ;;
19266 ia64*)
19267 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 +000019268 ;;
19269 *)
19270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19271 ;;
19272 esac
19273 # Commands to make compiler produce verbose output that lists
19274 # what "hidden" libraries, object files and flags are used when
19275 # linking a shared library.
19276 #
19277 # There doesn't appear to be a way to prevent this compiler from
19278 # explicitly linking system object files so we need to strip them
19279 # from the output so that they don't get included in the library
19280 # dependencies.
19281 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'
19282 ;;
19283 *)
19284 if test "$GXX" = yes; then
19285 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019286 case $host_cpu in
19287 hppa*64*)
19288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19289 ;;
19290 ia64*)
19291 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 +000019292 ;;
19293 *)
19294 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'
19295 ;;
19296 esac
19297 fi
19298 else
19299 # FIXME: insert proper C++ library support
19300 ld_shlibs_CXX=no
19301 fi
19302 ;;
19303 esac
19304 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019305 interix3*)
19306 hardcode_direct_CXX=no
19307 hardcode_shlibpath_var_CXX=no
19308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19309 export_dynamic_flag_spec_CXX='${wl}-E'
19310 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19311 # Instead, shared libraries are loaded at an image base (0x10000000 by
19312 # default) and relocated if they conflict, which is a slow very memory
19313 # consuming and fragmenting process. To avoid this, we pick a random,
19314 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19315 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19316 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'
19317 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'
19318 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019319 irix5* | irix6*)
19320 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019321 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019322 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019323 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 +000019324
19325 # Archives containing C++ object files must be created using
19326 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19327 # necessary to make sure instantiated templates are included
19328 # in the archive.
19329 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19330 ;;
19331 *)
19332 if test "$GXX" = yes; then
19333 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019334 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 +000019335 else
19336 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'
19337 fi
19338 fi
19339 link_all_deplibs_CXX=yes
19340 ;;
19341 esac
19342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19343 hardcode_libdir_separator_CXX=:
19344 ;;
19345 linux*)
19346 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019347 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019348 # Kuck and Associates, Inc. (KAI) C++ Compiler
19349
19350 # KCC will only create a shared library if the output file
19351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19352 # to its proper name (with version) after linking.
19353 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'
19354 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'
19355 # Commands to make compiler produce verbose output that lists
19356 # what "hidden" libraries, object files and flags are used when
19357 # linking a shared library.
19358 #
19359 # There doesn't appear to be a way to prevent this compiler from
19360 # explicitly linking system object files so we need to strip them
19361 # from the output so that they don't get included in the library
19362 # dependencies.
19363 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'
19364
19365 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19367
19368 # Archives containing C++ object files must be created using
19369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19371 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019372 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019373 # Intel C++
19374 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019375 # version 8.0 and above of icpc choke on multiply defined symbols
19376 # if we add $predep_objects and $postdep_objects, however 7.1 and
19377 # earlier do not add the objects themselves.
19378 case `$CC -V 2>&1` in
19379 *"Version 7."*)
19380 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 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'
19382 ;;
19383 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019384 tmp_idyn=
19385 case $host_cpu in
19386 ia64*) tmp_idyn=' -i_dynamic';;
19387 esac
19388 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389 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 +000019390 ;;
19391 esac
John Criswell47fdd832003-07-14 16:52:07 +000019392 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19396 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019397 pgCC*)
19398 # Portland Group C++ compiler
19399 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19400 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'
19401
19402 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19404 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'
19405 ;;
19406 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019407 # Compaq C++
19408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19409 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'
19410
19411 runpath_var=LD_RUN_PATH
19412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19413 hardcode_libdir_separator_CXX=:
19414
19415 # Commands to make compiler produce verbose output that lists
19416 # what "hidden" libraries, object files and flags are used when
19417 # linking a shared library.
19418 #
19419 # There doesn't appear to be a way to prevent this compiler from
19420 # explicitly linking system object files so we need to strip them
19421 # from the output so that they don't get included in the library
19422 # dependencies.
19423 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'
19424 ;;
19425 esac
19426 ;;
19427 lynxos*)
19428 # FIXME: insert proper C++ library support
19429 ld_shlibs_CXX=no
19430 ;;
19431 m88k*)
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19434 ;;
19435 mvs*)
19436 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019437 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19440 ;;
19441 *)
19442 # FIXME: insert proper C++ library support
19443 ld_shlibs_CXX=no
19444 ;;
19445 esac
19446 ;;
19447 netbsd*)
19448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19449 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19450 wlarc=
19451 hardcode_libdir_flag_spec_CXX='-R$libdir'
19452 hardcode_direct_CXX=yes
19453 hardcode_shlibpath_var_CXX=no
19454 fi
19455 # Workaround some broken pre-1.5 toolchains
19456 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19457 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019458 openbsd2*)
19459 # C++ shared libraries are fairly broken
19460 ld_shlibs_CXX=no
19461 ;;
19462 openbsd*)
19463 hardcode_direct_CXX=yes
19464 hardcode_shlibpath_var_CXX=no
19465 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19468 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19469 export_dynamic_flag_spec_CXX='${wl}-E'
19470 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19471 fi
19472 output_verbose_link_cmd='echo'
19473 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019474 osf3*)
19475 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019476 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019477 # Kuck and Associates, Inc. (KAI) C++ Compiler
19478
19479 # KCC will only create a shared library if the output file
19480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19481 # to its proper name (with version) after linking.
19482 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'
19483
19484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19485 hardcode_libdir_separator_CXX=:
19486
19487 # Archives containing C++ object files must be created using
19488 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19489 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19490
19491 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019492 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019493 # Rational C++ 2.4.1
19494 # FIXME: insert proper C++ library support
19495 ld_shlibs_CXX=no
19496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019497 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019498 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019499 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 +000019500
19501 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19502 hardcode_libdir_separator_CXX=:
19503
19504 # Commands to make compiler produce verbose output that lists
19505 # what "hidden" libraries, object files and flags are used when
19506 # linking a shared library.
19507 #
19508 # There doesn't appear to be a way to prevent this compiler from
19509 # explicitly linking system object files so we need to strip them
19510 # from the output so that they don't get included in the library
19511 # dependencies.
19512 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'
19513 ;;
19514 *)
19515 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019517 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 +000019518
19519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19520 hardcode_libdir_separator_CXX=:
19521
19522 # Commands to make compiler produce verbose output that lists
19523 # what "hidden" libraries, object files and flags are used when
19524 # linking a shared library.
19525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19526
19527 else
19528 # FIXME: insert proper C++ library support
19529 ld_shlibs_CXX=no
19530 fi
19531 ;;
19532 esac
19533 ;;
19534 osf4* | osf5*)
19535 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019536 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019537 # Kuck and Associates, Inc. (KAI) C++ Compiler
19538
19539 # KCC will only create a shared library if the output file
19540 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19541 # to its proper name (with version) after linking.
19542 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'
19543
19544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19545 hardcode_libdir_separator_CXX=:
19546
19547 # Archives containing C++ object files must be created using
19548 # the KAI C++ compiler.
19549 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019551 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019552 # Rational C++ 2.4.1
19553 # FIXME: insert proper C++ library support
19554 ld_shlibs_CXX=no
19555 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019556 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019557 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019558 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 +000019559 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19560 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019561 $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 +000019562 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019563
19564 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19565 hardcode_libdir_separator_CXX=:
19566
19567 # Commands to make compiler produce verbose output that lists
19568 # what "hidden" libraries, object files and flags are used when
19569 # linking a shared library.
19570 #
19571 # There doesn't appear to be a way to prevent this compiler from
19572 # explicitly linking system object files so we need to strip them
19573 # from the output so that they don't get included in the library
19574 # dependencies.
19575 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'
19576 ;;
19577 *)
19578 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19579 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019580 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 +000019581
19582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19583 hardcode_libdir_separator_CXX=:
19584
19585 # Commands to make compiler produce verbose output that lists
19586 # what "hidden" libraries, object files and flags are used when
19587 # linking a shared library.
19588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19589
19590 else
19591 # FIXME: insert proper C++ library support
19592 ld_shlibs_CXX=no
19593 fi
19594 ;;
19595 esac
19596 ;;
19597 psos*)
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19600 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019601 sunos4*)
19602 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019603 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019604 # Sun C++ 4.x
19605 # FIXME: insert proper C++ library support
19606 ld_shlibs_CXX=no
19607 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019608 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019609 # Lucid
19610 # FIXME: insert proper C++ library support
19611 ld_shlibs_CXX=no
19612 ;;
19613 *)
19614 # FIXME: insert proper C++ library support
19615 ld_shlibs_CXX=no
19616 ;;
19617 esac
19618 ;;
19619 solaris*)
19620 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019621 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019622 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019623 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019624 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019625 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 +000019626 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 +000019627 $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 +000019628
19629 hardcode_libdir_flag_spec_CXX='-R$libdir'
19630 hardcode_shlibpath_var_CXX=no
19631 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019632 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019633 *)
19634 # The C++ compiler is used as linker so we must use $wl
19635 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019636 # linker. We must also pass each convience library through
19637 # to the system linker between allextract/defaultextract.
19638 # The C++ compiler will combine linker options so we
19639 # cannot just pass the convience library names through
19640 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019641 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019642 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 +000019643 ;;
19644 esac
19645 link_all_deplibs_CXX=yes
19646
Reid Spencera773bd52006-08-04 18:18:08 +000019647 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019648
19649 # Archives containing C++ object files must be created using
19650 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19651 # necessary to make sure instantiated templates are included
19652 # in the archive.
19653 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019655 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019656 # Green Hills C++ Compiler
19657 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19658
19659 # The C++ compiler must be used to create the archive.
19660 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19661 ;;
19662 *)
19663 # GNU C++ compiler with Solaris linker
19664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19665 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19666 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019667 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 +000019668 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19669 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19670
John Criswell47fdd832003-07-14 16:52:07 +000019671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019674 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019675 else
19676 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19677 # platform.
19678 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 +000019679 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19680 $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 +000019681
19682 # Commands to make compiler produce verbose output that lists
19683 # what "hidden" libraries, object files and flags are used when
19684 # linking a shared library.
19685 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19686 fi
19687
19688 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19689 fi
19690 ;;
19691 esac
19692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19694 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019695 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019696 hardcode_shlibpath_var_CXX=no
19697 runpath_var='LD_RUN_PATH'
19698
19699 case $cc_basename in
19700 CC*)
19701 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19702 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19703 ;;
19704 *)
19705 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 ;;
19708 esac
19709 ;;
19710 sysv5* | sco3.2v5* | sco5v6*)
19711 # Note: We can NOT use -z defs as we might desire, because we do not
19712 # link with -lc, and that would cause any symbols used from libc to
19713 # always be unresolved, which means just about no library would
19714 # ever link correctly. If we're not using GNU ld we use -z text
19715 # though, which does catch some bad symbols but isn't as heavy-handed
19716 # as -z defs.
19717 # For security reasons, it is highly recommended that you always
19718 # use absolute paths for naming shared libraries, and exclude the
19719 # DT_RUNPATH tag from executables and libraries. But doing so
19720 # requires that you compile everything twice, which is a pain.
19721 # So that behaviour is only enabled if SCOABSPATH is set to a
19722 # non-empty value in the environment. Most likely only useful for
19723 # creating official distributions of packages.
19724 # This is a hack until libtool officially supports absolute path
19725 # names for shared libraries.
19726 no_undefined_flag_CXX='${wl}-z,text'
19727 allow_undefined_flag_CXX='${wl}-z,nodefs'
19728 archive_cmds_need_lc_CXX=no
19729 hardcode_shlibpath_var_CXX=no
19730 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19731 hardcode_libdir_separator_CXX=':'
19732 link_all_deplibs_CXX=yes
19733 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19734 runpath_var='LD_RUN_PATH'
19735
19736 case $cc_basename in
19737 CC*)
19738 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19739 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19740 ;;
19741 *)
19742 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19743 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19744 ;;
19745 esac
John Criswell47fdd832003-07-14 16:52:07 +000019746 ;;
19747 tandem*)
19748 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019749 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019750 # NonStop-UX NCC 3.20
19751 # FIXME: insert proper C++ library support
19752 ld_shlibs_CXX=no
19753 ;;
19754 *)
19755 # FIXME: insert proper C++ library support
19756 ld_shlibs_CXX=no
19757 ;;
19758 esac
19759 ;;
19760 vxworks*)
19761 # FIXME: insert proper C++ library support
19762 ld_shlibs_CXX=no
19763 ;;
19764 *)
19765 # FIXME: insert proper C++ library support
19766 ld_shlibs_CXX=no
19767 ;;
19768esac
Reid Spencera773bd52006-08-04 18:18:08 +000019769{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19770echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019771test "$ld_shlibs_CXX" = no && can_build_shared=no
19772
19773GCC_CXX="$GXX"
19774LD_CXX="$LD"
19775
John Criswell47fdd832003-07-14 16:52:07 +000019776
19777cat > conftest.$ac_ext <<EOF
19778class Foo
19779{
19780public:
19781 Foo (void) { a = 0; }
19782private:
19783 int a;
19784};
19785EOF
19786
19787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; then
19792 # Parse the compiler output and extract the necessary
19793 # objects, libraries and library flags.
19794
19795 # Sentinel used to keep track of whether or not we are before
19796 # the conftest object file.
19797 pre_test_object_deps_done=no
19798
19799 # The `*' in the case matches for architectures that use `case' in
19800 # $output_verbose_cmd can trigger glob expansion during the loop
19801 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019802 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019803
19804 for p in `eval $output_verbose_link_cmd`; do
19805 case $p in
19806
19807 -L* | -R* | -l*)
19808 # Some compilers place space between "-{L,R}" and the path.
19809 # Remove the space.
19810 if test $p = "-L" \
19811 || test $p = "-R"; then
19812 prev=$p
19813 continue
19814 else
19815 prev=
19816 fi
19817
19818 if test "$pre_test_object_deps_done" = no; then
19819 case $p in
19820 -L* | -R*)
19821 # Internal compiler library paths should come after those
19822 # provided the user. The postdeps already come after the
19823 # user supplied libs so there is no need to process them.
19824 if test -z "$compiler_lib_search_path_CXX"; then
19825 compiler_lib_search_path_CXX="${prev}${p}"
19826 else
19827 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19828 fi
19829 ;;
19830 # The "-l" case would never come before the object being
19831 # linked, so don't bother handling this case.
19832 esac
19833 else
19834 if test -z "$postdeps_CXX"; then
19835 postdeps_CXX="${prev}${p}"
19836 else
19837 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19838 fi
19839 fi
19840 ;;
19841
19842 *.$objext)
19843 # This assumes that the test object file only shows up
19844 # once in the compiler output.
19845 if test "$p" = "conftest.$objext"; then
19846 pre_test_object_deps_done=yes
19847 continue
19848 fi
19849
19850 if test "$pre_test_object_deps_done" = no; then
19851 if test -z "$predep_objects_CXX"; then
19852 predep_objects_CXX="$p"
19853 else
19854 predep_objects_CXX="$predep_objects_CXX $p"
19855 fi
19856 else
19857 if test -z "$postdep_objects_CXX"; then
19858 postdep_objects_CXX="$p"
19859 else
19860 postdep_objects_CXX="$postdep_objects_CXX $p"
19861 fi
19862 fi
19863 ;;
19864
19865 *) ;; # Ignore the rest.
19866
19867 esac
19868 done
19869
19870 # Clean up.
19871 rm -f a.out a.exe
19872else
19873 echo "libtool.m4: error: problem compiling CXX test program"
19874fi
19875
19876$rm -f confest.$objext
19877
Reid Spencera773bd52006-08-04 18:18:08 +000019878# PORTME: override above test on systems where it is broken
19879case $host_os in
19880interix3*)
19881 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19882 # hack all around it, let's just trust "g++" to DTRT.
19883 predep_objects_CXX=
19884 postdep_objects_CXX=
19885 postdeps_CXX=
19886 ;;
19887
19888solaris*)
19889 case $cc_basename in
19890 CC*)
19891 # Adding this requires a known-good setup of shared libraries for
19892 # Sun compiler versions before 5.6, else PIC objects from an old
19893 # archive will be linked into the output, leading to subtle bugs.
19894 postdeps_CXX='-lCstd -lCrun'
19895 ;;
19896 esac
19897 ;;
19898esac
19899
19900
John Criswell47fdd832003-07-14 16:52:07 +000019901case " $postdeps_CXX " in
19902*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19903esac
19904
19905lt_prog_compiler_wl_CXX=
19906lt_prog_compiler_pic_CXX=
19907lt_prog_compiler_static_CXX=
19908
Reid Spencera773bd52006-08-04 18:18:08 +000019909{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19910echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019911
19912 # C++ specific cases for pic, static, wl, etc.
19913 if test "$GXX" = yes; then
19914 lt_prog_compiler_wl_CXX='-Wl,'
19915 lt_prog_compiler_static_CXX='-static'
19916
19917 case $host_os in
19918 aix*)
19919 # All AIX code is PIC.
19920 if test "$host_cpu" = ia64; then
19921 # AIX 5 now supports IA64 processor
19922 lt_prog_compiler_static_CXX='-Bstatic'
19923 fi
19924 ;;
19925 amigaos*)
19926 # FIXME: we need at least 68020 code to build shared libraries, but
19927 # adding the `-m68020' flag to GCC prevents building anything better,
19928 # like `-m68040'.
19929 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19930 ;;
19931 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19932 # PIC is the default for these OSes.
19933 ;;
19934 mingw* | os2* | pw32*)
19935 # This hack is so that the source file can tell whether it is being
19936 # built for inclusion in a dll (and should export symbols for example).
19937 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19938 ;;
19939 darwin* | rhapsody*)
19940 # PIC is the default on this platform
19941 # Common symbols not allowed in MH_DYLIB files
19942 lt_prog_compiler_pic_CXX='-fno-common'
19943 ;;
19944 *djgpp*)
19945 # DJGPP does not support shared libraries at all
19946 lt_prog_compiler_pic_CXX=
19947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019948 interix3*)
19949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19950 # Instead, we relocate shared libraries at runtime.
19951 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019952 sysv4*MP*)
19953 if test -d /usr/nec; then
19954 lt_prog_compiler_pic_CXX=-Kconform_pic
19955 fi
19956 ;;
19957 hpux*)
19958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19959 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019960 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019961 hppa*64*|ia64*)
19962 ;;
19963 *)
19964 lt_prog_compiler_pic_CXX='-fPIC'
19965 ;;
19966 esac
19967 ;;
19968 *)
19969 lt_prog_compiler_pic_CXX='-fPIC'
19970 ;;
19971 esac
19972 else
19973 case $host_os in
19974 aix4* | aix5*)
19975 # All AIX code is PIC.
19976 if test "$host_cpu" = ia64; then
19977 # AIX 5 now supports IA64 processor
19978 lt_prog_compiler_static_CXX='-Bstatic'
19979 else
19980 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19981 fi
19982 ;;
19983 chorus*)
19984 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019985 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019986 # Green Hills C++ Compiler
19987 # _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"
19988 ;;
19989 esac
19990 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019991 darwin*)
19992 # PIC is the default on this platform
19993 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019994 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019995 xlc*)
19996 lt_prog_compiler_pic_CXX='-qnocommon'
19997 lt_prog_compiler_wl_CXX='-Wl,'
19998 ;;
19999 esac
20000 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020001 dgux*)
20002 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020003 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000020004 lt_prog_compiler_pic_CXX='-KPIC'
20005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020006 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020007 # Green Hills C++ Compiler
20008 lt_prog_compiler_pic_CXX='-pic'
20009 ;;
20010 *)
20011 ;;
20012 esac
20013 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020014 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000020015 # FreeBSD uses GNU C++
20016 ;;
20017 hpux9* | hpux10* | hpux11*)
20018 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020019 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020020 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020021 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000020022 if test "$host_cpu" != ia64; then
20023 lt_prog_compiler_pic_CXX='+Z'
20024 fi
20025 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020026 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020027 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000020028 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20029 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020030 hppa*64*|ia64*)
20031 # +Z the default
20032 ;;
20033 *)
20034 lt_prog_compiler_pic_CXX='+Z'
20035 ;;
20036 esac
20037 ;;
20038 *)
20039 ;;
20040 esac
20041 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020042 interix*)
20043 # This is c89, which is MS Visual C++ (no shared libs)
20044 # Anyone wants to do a port?
20045 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020046 irix5* | irix6* | nonstopux*)
20047 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020048 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020049 lt_prog_compiler_wl_CXX='-Wl,'
20050 lt_prog_compiler_static_CXX='-non_shared'
20051 # CC pic flag -KPIC is the default.
20052 ;;
20053 *)
20054 ;;
20055 esac
20056 ;;
20057 linux*)
20058 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020059 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020060 # KAI C++ Compiler
20061 lt_prog_compiler_wl_CXX='--backend -Wl,'
20062 lt_prog_compiler_pic_CXX='-fPIC'
20063 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020064 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000020065 # Intel C++
20066 lt_prog_compiler_wl_CXX='-Wl,'
20067 lt_prog_compiler_pic_CXX='-KPIC'
20068 lt_prog_compiler_static_CXX='-static'
20069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020070 pgCC*)
20071 # Portland Group C++ compiler.
20072 lt_prog_compiler_wl_CXX='-Wl,'
20073 lt_prog_compiler_pic_CXX='-fpic'
20074 lt_prog_compiler_static_CXX='-Bstatic'
20075 ;;
20076 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020077 # Compaq C++
20078 # Make sure the PIC flag is empty. It appears that all Alpha
20079 # Linux and Compaq Tru64 Unix objects are PIC.
20080 lt_prog_compiler_pic_CXX=
20081 lt_prog_compiler_static_CXX='-non_shared'
20082 ;;
20083 *)
20084 ;;
20085 esac
20086 ;;
20087 lynxos*)
20088 ;;
20089 m88k*)
20090 ;;
20091 mvs*)
20092 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020093 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020094 lt_prog_compiler_pic_CXX='-W c,exportall'
20095 ;;
20096 *)
20097 ;;
20098 esac
20099 ;;
20100 netbsd*)
20101 ;;
20102 osf3* | osf4* | osf5*)
20103 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020104 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020105 lt_prog_compiler_wl_CXX='--backend -Wl,'
20106 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020107 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020108 # Rational C++ 2.4.1
20109 lt_prog_compiler_pic_CXX='-pic'
20110 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020111 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000020112 # Digital/Compaq C++
20113 lt_prog_compiler_wl_CXX='-Wl,'
20114 # Make sure the PIC flag is empty. It appears that all Alpha
20115 # Linux and Compaq Tru64 Unix objects are PIC.
20116 lt_prog_compiler_pic_CXX=
20117 lt_prog_compiler_static_CXX='-non_shared'
20118 ;;
20119 *)
20120 ;;
20121 esac
20122 ;;
20123 psos*)
20124 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020125 solaris*)
20126 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020127 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020128 # Sun C++ 4.2, 5.x and Centerline C++
20129 lt_prog_compiler_pic_CXX='-KPIC'
20130 lt_prog_compiler_static_CXX='-Bstatic'
20131 lt_prog_compiler_wl_CXX='-Qoption ld '
20132 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020133 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000020134 # Green Hills C++ Compiler
20135 lt_prog_compiler_pic_CXX='-PIC'
20136 ;;
20137 *)
20138 ;;
20139 esac
20140 ;;
20141 sunos4*)
20142 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020143 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020144 # Sun C++ 4.x
20145 lt_prog_compiler_pic_CXX='-pic'
20146 lt_prog_compiler_static_CXX='-Bstatic'
20147 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020148 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020149 # Lucid
20150 lt_prog_compiler_pic_CXX='-pic'
20151 ;;
20152 *)
20153 ;;
20154 esac
20155 ;;
20156 tandem*)
20157 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020158 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020159 # NonStop-UX NCC 3.20
20160 lt_prog_compiler_pic_CXX='-KPIC'
20161 ;;
20162 *)
20163 ;;
20164 esac
20165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20167 case $cc_basename in
20168 CC*)
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_pic_CXX='-KPIC'
20171 lt_prog_compiler_static_CXX='-Bstatic'
20172 ;;
20173 esac
John Criswell47fdd832003-07-14 16:52:07 +000020174 ;;
20175 vxworks*)
20176 ;;
20177 *)
20178 lt_prog_compiler_can_build_shared_CXX=no
20179 ;;
20180 esac
20181 fi
20182
Reid Spencera773bd52006-08-04 18:18:08 +000020183{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20184echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020185
20186#
20187# Check to make sure the PIC flag actually works.
20188#
20189if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020190
Reid Spencera773bd52006-08-04 18:18:08 +000020191{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20192echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020193if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195else
20196 lt_prog_compiler_pic_works_CXX=no
20197 ac_outfile=conftest.$ac_objext
20198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20199 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20200 # Insert the option either (1) after the last *FLAGS variable, or
20201 # (2) before a word containing "conftest.", or (3) at the end.
20202 # Note that $ac_compile itself does not contain backslashes and begins
20203 # with a dollar sign (not a hyphen), so the echo should work correctly.
20204 # The option is referenced via a variable to avoid confusing sed.
20205 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20208 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000020209 (eval echo "\"\$as_me:20209: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020210 (eval "$lt_compile" 2>conftest.err)
20211 ac_status=$?
20212 cat conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000020213 echo "$as_me:20213: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020214 if (exit $ac_status) && test -s "$ac_outfile"; then
20215 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020216 # So say no if there are warnings other than the usual output.
20217 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020220 lt_prog_compiler_pic_works_CXX=yes
20221 fi
20222 fi
20223 $rm conftest*
20224
20225fi
Reid Spencera773bd52006-08-04 18:18:08 +000020226{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20227echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020228
20229if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20230 case $lt_prog_compiler_pic_CXX in
20231 "" | " "*) ;;
20232 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20233 esac
20234else
20235 lt_prog_compiler_pic_CXX=
20236 lt_prog_compiler_can_build_shared_CXX=no
20237fi
20238
20239fi
Reid Spencera773bd52006-08-04 18:18:08 +000020240case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020241 # For platforms which do not support PIC, -DPIC is meaningless:
20242 *djgpp*)
20243 lt_prog_compiler_pic_CXX=
20244 ;;
20245 *)
20246 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20247 ;;
20248esac
20249
Reid Spencera773bd52006-08-04 18:18:08 +000020250#
20251# Check to make sure the static flag actually works.
20252#
20253wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20254{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20255echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20256if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258else
20259 lt_prog_compiler_static_works_CXX=no
20260 save_LDFLAGS="$LDFLAGS"
20261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20262 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20264 # The linker can only warn and ignore the option if not recognized
20265 # So say no if there are warnings
20266 if test -s conftest.err; then
20267 # Append any errors to the config.log.
20268 cat conftest.err 1>&5
20269 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20271 if diff conftest.exp conftest.er2 >/dev/null; then
20272 lt_prog_compiler_static_works_CXX=yes
20273 fi
20274 else
20275 lt_prog_compiler_static_works_CXX=yes
20276 fi
20277 fi
20278 $rm conftest*
20279 LDFLAGS="$save_LDFLAGS"
20280
20281fi
20282{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20283echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20284
20285if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20286 :
20287else
20288 lt_prog_compiler_static_CXX=
20289fi
20290
20291
20292{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20293echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020294if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20296else
20297 lt_cv_prog_compiler_c_o_CXX=no
20298 $rm -r conftest 2>/dev/null
20299 mkdir conftest
20300 cd conftest
20301 mkdir out
20302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20303
John Criswell47fdd832003-07-14 16:52:07 +000020304 lt_compiler_flag="-o out/conftest2.$ac_objext"
20305 # Insert the option either (1) after the last *FLAGS variable, or
20306 # (2) before a word containing "conftest.", or (3) at the end.
20307 # Note that $ac_compile itself does not contain backslashes and begins
20308 # with a dollar sign (not a hyphen), so the echo should work correctly.
20309 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20312 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000020313 (eval echo "\"\$as_me:20313: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020314 (eval "$lt_compile" 2>out/conftest.err)
20315 ac_status=$?
20316 cat out/conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000020317 echo "$as_me:20317: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20319 then
20320 # The compiler can only warn and ignore the option if not recognized
20321 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020325 lt_cv_prog_compiler_c_o_CXX=yes
20326 fi
20327 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020328 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020329 $rm conftest*
20330 # SGI C++ compiler will create directory out/ii_files/ for
20331 # template instantiation
20332 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20333 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020334 cd ..
20335 rmdir conftest
20336 $rm conftest*
20337
20338fi
Reid Spencera773bd52006-08-04 18:18:08 +000020339{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20340echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020341
20342
20343hard_links="nottested"
20344if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20345 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020346 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20347echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020348 hard_links=yes
20349 $rm conftest*
20350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20351 touch conftest.a
20352 ln conftest.a conftest.b 2>&5 || hard_links=no
20353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020354 { echo "$as_me:$LINENO: result: $hard_links" >&5
20355echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020356 if test "$hard_links" = no; then
20357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20358echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20359 need_locks=warn
20360 fi
20361else
20362 need_locks=no
20363fi
20364
Reid Spencera773bd52006-08-04 18:18:08 +000020365{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20366echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020367
20368 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20369 case $host_os in
20370 aix4* | aix5*)
20371 # If we're using GNU nm, then we don't want the "-C" option.
20372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20373 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20374 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'
20375 else
20376 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'
20377 fi
20378 ;;
20379 pw32*)
20380 export_symbols_cmds_CXX="$ltdll_cmds"
20381 ;;
20382 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020383 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 +000020384 ;;
20385 *)
20386 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20387 ;;
20388 esac
20389
Reid Spencera773bd52006-08-04 18:18:08 +000020390{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20391echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020392test "$ld_shlibs_CXX" = no && can_build_shared=no
20393
John Criswell47fdd832003-07-14 16:52:07 +000020394#
20395# Do we need to explicitly link libc?
20396#
20397case "x$archive_cmds_need_lc_CXX" in
20398x|xyes)
20399 # Assume -lc should be added
20400 archive_cmds_need_lc_CXX=yes
20401
20402 if test "$enable_shared" = yes && test "$GCC" = yes; then
20403 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020404 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020405 # FIXME: we may have to deal with multi-command sequences.
20406 ;;
20407 '$CC '*)
20408 # Test whether the compiler implicitly links with -lc since on some
20409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20410 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020411 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20412echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020413 $rm conftest*
20414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20415
20416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20417 (eval $ac_compile) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } 2>conftest.err; then
20421 soname=conftest
20422 lib=conftest
20423 libobjs=conftest.$ac_objext
20424 deplibs=
20425 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020426 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020427 compiler_flags=-v
20428 linker_flags=-v
20429 verstring=
20430 output_objdir=.
20431 libname=conftest
20432 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20433 allow_undefined_flag_CXX=
20434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20435 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }
20439 then
20440 archive_cmds_need_lc_CXX=no
20441 else
20442 archive_cmds_need_lc_CXX=yes
20443 fi
20444 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20445 else
20446 cat conftest.err 1>&5
20447 fi
20448 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020449 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20450echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020451 ;;
20452 esac
20453 fi
20454 ;;
20455esac
20456
Reid Spencera773bd52006-08-04 18:18:08 +000020457{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20458echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020459library_names_spec=
20460libname_spec='lib$name'
20461soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020462shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020463postinstall_cmds=
20464postuninstall_cmds=
20465finish_cmds=
20466finish_eval=
20467shlibpath_var=
20468shlibpath_overrides_runpath=unknown
20469version_type=none
20470dynamic_linker="$host_os ld.so"
20471sys_lib_dlsearch_path_spec="/lib /usr/lib"
20472if test "$GCC" = yes; then
20473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20474 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20475 # if the path contains ";" then we assume it to be the separator
20476 # otherwise default to the standard path separator (i.e. ":") - it is
20477 # assumed that no part of a normal pathname contains ";" but that should
20478 # okay in the real world where ";" in dirpaths is itself problematic.
20479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20480 else
20481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20482 fi
20483else
20484 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20485fi
20486need_lib_prefix=unknown
20487hardcode_into_libs=no
20488
20489# when you set need_version to no, make sure it does not cause -set_version
20490# flags to be left without arguments
20491need_version=unknown
20492
20493case $host_os in
20494aix3*)
20495 version_type=linux
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20497 shlibpath_var=LIBPATH
20498
20499 # AIX 3 has no versioning support, so we append a major version to the name.
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 ;;
20502
20503aix4* | aix5*)
20504 version_type=linux
20505 need_lib_prefix=no
20506 need_version=no
20507 hardcode_into_libs=yes
20508 if test "$host_cpu" = ia64; then
20509 # AIX 5 supports IA64
20510 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20511 shlibpath_var=LD_LIBRARY_PATH
20512 else
20513 # With GCC up to 2.95.x, collect2 would create an import file
20514 # for dependence libraries. The import file would start with
20515 # the line `#! .'. This would cause the generated library to
20516 # depend on `.', always an invalid library. This was fixed in
20517 # development snapshots of GCC prior to 3.0.
20518 case $host_os in
20519 aix4 | aix4.[01] | aix4.[01].*)
20520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20521 echo ' yes '
20522 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20523 :
20524 else
20525 can_build_shared=no
20526 fi
20527 ;;
20528 esac
20529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20530 # soname into executable. Probably we can add versioning support to
20531 # collect2, so additional links can be useful in future.
20532 if test "$aix_use_runtimelinking" = yes; then
20533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20534 # instead of lib<name>.a to let people know that these are not
20535 # typical AIX shared libraries.
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 else
20538 # We preserve .a as extension for shared libraries through AIX4.2
20539 # and later when we are not doing run time linking.
20540 library_names_spec='${libname}${release}.a $libname.a'
20541 soname_spec='${libname}${release}${shared_ext}$major'
20542 fi
20543 shlibpath_var=LIBPATH
20544 fi
20545 ;;
20546
20547amigaos*)
20548 library_names_spec='$libname.ixlibrary $libname.a'
20549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020550 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 +000020551 ;;
20552
20553beos*)
20554 library_names_spec='${libname}${shared_ext}'
20555 dynamic_linker="$host_os ld.so"
20556 shlibpath_var=LIBRARY_PATH
20557 ;;
20558
Reid Spencer2706f8c2004-09-19 23:53:36 +000020559bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020560 version_type=linux
20561 need_version=no
20562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20563 soname_spec='${libname}${release}${shared_ext}$major'
20564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20565 shlibpath_var=LD_LIBRARY_PATH
20566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20568 # the default ld.so.conf also contains /usr/contrib/lib and
20569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20570 # libtool to hard-code these into programs
20571 ;;
20572
20573cygwin* | mingw* | pw32*)
20574 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020575 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020576 need_version=no
20577 need_lib_prefix=no
20578
20579 case $GCC,$host_os in
20580 yes,cygwin* | yes,mingw* | yes,pw32*)
20581 library_names_spec='$libname.dll.a'
20582 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020583 postinstall_cmds='base_file=`basename \${file}`~
20584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20585 dldir=$destdir/`dirname \$dlpath`~
20586 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020587 $install_prog $dir/$dlname \$dldir/$dlname~
20588 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20590 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020591 $rm \$dlpath'
20592 shlibpath_overrides_runpath=yes
20593
20594 case $host_os in
20595 cygwin*)
20596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20597 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 +000020598 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020599 ;;
20600 mingw*)
20601 # MinGW DLLs use traditional 'lib' prefix
20602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20604 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20605 # It is most probably a Windows format PATH printed by
20606 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20607 # path with ; separators, and with drive letters. We can handle the
20608 # drive letters (cygwin fileutils understands them), so leave them,
20609 # especially as we might pass files found there to a mingw objdump,
20610 # which wouldn't understand a cygwinified path. Ahh.
20611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20612 else
20613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20614 fi
20615 ;;
20616 pw32*)
20617 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020618 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 +000020619 ;;
20620 esac
20621 ;;
20622
20623 *)
20624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20625 ;;
20626 esac
20627 dynamic_linker='Win32 ld.exe'
20628 # FIXME: first we should search . and the directory the executable is in
20629 shlibpath_var=PATH
20630 ;;
20631
20632darwin* | rhapsody*)
20633 dynamic_linker="$host_os dyld"
20634 version_type=darwin
20635 need_lib_prefix=no
20636 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020637 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020638 soname_spec='${libname}${release}${major}$shared_ext'
20639 shlibpath_overrides_runpath=yes
20640 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020641 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020642 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020643 if test "$GCC" = yes; then
20644 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"`
20645 else
20646 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020647 fi
20648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20649 ;;
20650
20651dgux*)
20652 version_type=linux
20653 need_lib_prefix=no
20654 need_version=no
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 shlibpath_var=LD_LIBRARY_PATH
20658 ;;
20659
20660freebsd1*)
20661 dynamic_linker=no
20662 ;;
20663
Reid Spencer2706f8c2004-09-19 23:53:36 +000020664kfreebsd*-gnu)
20665 version_type=linux
20666 need_lib_prefix=no
20667 need_version=no
20668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20669 soname_spec='${libname}${release}${shared_ext}$major'
20670 shlibpath_var=LD_LIBRARY_PATH
20671 shlibpath_overrides_runpath=no
20672 hardcode_into_libs=yes
20673 dynamic_linker='GNU ld.so'
20674 ;;
20675
Reid Spencera773bd52006-08-04 18:18:08 +000020676freebsd* | dragonfly*)
20677 # DragonFly does not have aout. When/if they implement a new
20678 # versioning mechanism, adjust this.
20679 if test -x /usr/bin/objformat; then
20680 objformat=`/usr/bin/objformat`
20681 else
20682 case $host_os in
20683 freebsd[123]*) objformat=aout ;;
20684 *) objformat=elf ;;
20685 esac
20686 fi
John Criswell47fdd832003-07-14 16:52:07 +000020687 version_type=freebsd-$objformat
20688 case $version_type in
20689 freebsd-elf*)
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20691 need_version=no
20692 need_lib_prefix=no
20693 ;;
20694 freebsd-*)
20695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20696 need_version=yes
20697 ;;
20698 esac
20699 shlibpath_var=LD_LIBRARY_PATH
20700 case $host_os in
20701 freebsd2*)
20702 shlibpath_overrides_runpath=yes
20703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020704 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020705 shlibpath_overrides_runpath=yes
20706 hardcode_into_libs=yes
20707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020708 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20709 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020710 shlibpath_overrides_runpath=no
20711 hardcode_into_libs=yes
20712 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020713 freebsd*) # from 4.6 on
20714 shlibpath_overrides_runpath=yes
20715 hardcode_into_libs=yes
20716 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020717 esac
20718 ;;
20719
20720gnu*)
20721 version_type=linux
20722 need_lib_prefix=no
20723 need_version=no
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20726 shlibpath_var=LD_LIBRARY_PATH
20727 hardcode_into_libs=yes
20728 ;;
20729
20730hpux9* | hpux10* | hpux11*)
20731 # Give a soname corresponding to the major version so that dld.sl refuses to
20732 # link against other versions.
20733 version_type=sunos
20734 need_lib_prefix=no
20735 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020736 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020737 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020738 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020739 hardcode_into_libs=yes
20740 dynamic_linker="$host_os dld.so"
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 soname_spec='${libname}${release}${shared_ext}$major'
20745 if test "X$HPUX_IA64_MODE" = X32; then
20746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20747 else
20748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20749 fi
20750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20751 ;;
20752 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020753 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020754 hardcode_into_libs=yes
20755 dynamic_linker="$host_os dld.sl"
20756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20759 soname_spec='${libname}${release}${shared_ext}$major'
20760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20762 ;;
20763 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020764 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020765 dynamic_linker="$host_os dld.sl"
20766 shlibpath_var=SHLIB_PATH
20767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20769 soname_spec='${libname}${release}${shared_ext}$major'
20770 ;;
20771 esac
20772 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20773 postinstall_cmds='chmod 555 $lib'
20774 ;;
20775
Reid Spencera773bd52006-08-04 18:18:08 +000020776interix3*)
20777 version_type=linux
20778 need_lib_prefix=no
20779 need_version=no
20780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20781 soname_spec='${libname}${release}${shared_ext}$major'
20782 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20783 shlibpath_var=LD_LIBRARY_PATH
20784 shlibpath_overrides_runpath=no
20785 hardcode_into_libs=yes
20786 ;;
20787
John Criswell47fdd832003-07-14 16:52:07 +000020788irix5* | irix6* | nonstopux*)
20789 case $host_os in
20790 nonstopux*) version_type=nonstopux ;;
20791 *)
20792 if test "$lt_cv_prog_gnu_ld" = yes; then
20793 version_type=linux
20794 else
20795 version_type=irix
20796 fi ;;
20797 esac
20798 need_lib_prefix=no
20799 need_version=no
20800 soname_spec='${libname}${release}${shared_ext}$major'
20801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20802 case $host_os in
20803 irix5* | nonstopux*)
20804 libsuff= shlibsuff=
20805 ;;
20806 *)
20807 case $LD in # libtool.m4 will add one of these switches to LD
20808 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20809 libsuff= shlibsuff= libmagic=32-bit;;
20810 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20811 libsuff=32 shlibsuff=N32 libmagic=N32;;
20812 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20813 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20814 *) libsuff= shlibsuff= libmagic=never-match;;
20815 esac
20816 ;;
20817 esac
20818 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20819 shlibpath_overrides_runpath=no
20820 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20821 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20822 hardcode_into_libs=yes
20823 ;;
20824
20825# No shared lib support for Linux oldld, aout, or coff.
20826linux*oldld* | linux*aout* | linux*coff*)
20827 dynamic_linker=no
20828 ;;
20829
20830# This must be Linux ELF.
20831linux*)
20832 version_type=linux
20833 need_lib_prefix=no
20834 need_version=no
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836 soname_spec='${libname}${release}${shared_ext}$major'
20837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 shlibpath_overrides_runpath=no
20840 # This implies no fast_install, which is unacceptable.
20841 # Some rework will be needed to allow for fast_install
20842 # before this can be enabled.
20843 hardcode_into_libs=yes
20844
Reid Spencer2706f8c2004-09-19 23:53:36 +000020845 # Append ld.so.conf contents to the search path
20846 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020847 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 +000020848 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20849 fi
20850
John Criswell47fdd832003-07-14 16:52:07 +000020851 # We used to test for /lib/ld.so.1 and disable shared libraries on
20852 # powerpc, because MkLinux only supported shared libraries with the
20853 # GNU dynamic linker. Since this was broken with cross compilers,
20854 # most powerpc-linux boxes support dynamic linking these days and
20855 # people can always --disable-shared, the test was removed, and we
20856 # assume the GNU/Linux dynamic linker is in use.
20857 dynamic_linker='GNU/Linux ld.so'
20858 ;;
20859
Reid Spencer2706f8c2004-09-19 23:53:36 +000020860knetbsd*-gnu)
20861 version_type=linux
20862 need_lib_prefix=no
20863 need_version=no
20864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20865 soname_spec='${libname}${release}${shared_ext}$major'
20866 shlibpath_var=LD_LIBRARY_PATH
20867 shlibpath_overrides_runpath=no
20868 hardcode_into_libs=yes
20869 dynamic_linker='GNU ld.so'
20870 ;;
20871
John Criswell47fdd832003-07-14 16:52:07 +000020872netbsd*)
20873 version_type=sunos
20874 need_lib_prefix=no
20875 need_version=no
20876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20879 dynamic_linker='NetBSD (a.out) ld.so'
20880 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020882 soname_spec='${libname}${release}${shared_ext}$major'
20883 dynamic_linker='NetBSD ld.elf_so'
20884 fi
20885 shlibpath_var=LD_LIBRARY_PATH
20886 shlibpath_overrides_runpath=yes
20887 hardcode_into_libs=yes
20888 ;;
20889
20890newsos6)
20891 version_type=linux
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 shlibpath_var=LD_LIBRARY_PATH
20894 shlibpath_overrides_runpath=yes
20895 ;;
20896
Reid Spencer2706f8c2004-09-19 23:53:36 +000020897nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020898 version_type=linux
20899 need_lib_prefix=no
20900 need_version=no
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 shlibpath_var=LD_LIBRARY_PATH
20904 shlibpath_overrides_runpath=yes
20905 ;;
20906
20907openbsd*)
20908 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020909 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020910 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020911 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20912 case $host_os in
20913 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20914 *) need_version=no ;;
20915 esac
John Criswell47fdd832003-07-14 16:52:07 +000020916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20918 shlibpath_var=LD_LIBRARY_PATH
20919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20920 case $host_os in
20921 openbsd2.[89] | openbsd2.[89].*)
20922 shlibpath_overrides_runpath=no
20923 ;;
20924 *)
20925 shlibpath_overrides_runpath=yes
20926 ;;
20927 esac
20928 else
20929 shlibpath_overrides_runpath=yes
20930 fi
20931 ;;
20932
20933os2*)
20934 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020935 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020936 need_lib_prefix=no
20937 library_names_spec='$libname${shared_ext} $libname.a'
20938 dynamic_linker='OS/2 ld.exe'
20939 shlibpath_var=LIBPATH
20940 ;;
20941
20942osf3* | osf4* | osf5*)
20943 version_type=osf
20944 need_lib_prefix=no
20945 need_version=no
20946 soname_spec='${libname}${release}${shared_ext}$major'
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20948 shlibpath_var=LD_LIBRARY_PATH
20949 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20950 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20951 ;;
20952
John Criswell47fdd832003-07-14 16:52:07 +000020953solaris*)
20954 version_type=linux
20955 need_lib_prefix=no
20956 need_version=no
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath=yes
20961 hardcode_into_libs=yes
20962 # ldd complains unless libraries are executable
20963 postinstall_cmds='chmod +x $lib'
20964 ;;
20965
20966sunos4*)
20967 version_type=sunos
20968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20970 shlibpath_var=LD_LIBRARY_PATH
20971 shlibpath_overrides_runpath=yes
20972 if test "$with_gnu_ld" = yes; then
20973 need_lib_prefix=no
20974 fi
20975 need_version=yes
20976 ;;
20977
Reid Spencera773bd52006-08-04 18:18:08 +000020978sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020979 version_type=linux
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981 soname_spec='${libname}${release}${shared_ext}$major'
20982 shlibpath_var=LD_LIBRARY_PATH
20983 case $host_vendor in
20984 sni)
20985 shlibpath_overrides_runpath=no
20986 need_lib_prefix=no
20987 export_dynamic_flag_spec='${wl}-Blargedynsym'
20988 runpath_var=LD_RUN_PATH
20989 ;;
20990 siemens)
20991 need_lib_prefix=no
20992 ;;
20993 motorola)
20994 need_lib_prefix=no
20995 need_version=no
20996 shlibpath_overrides_runpath=no
20997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20998 ;;
20999 esac
21000 ;;
21001
21002sysv4*MP*)
21003 if test -d /usr/nec ;then
21004 version_type=linux
21005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21006 soname_spec='$libname${shared_ext}.$major'
21007 shlibpath_var=LD_LIBRARY_PATH
21008 fi
21009 ;;
21010
Reid Spencera773bd52006-08-04 18:18:08 +000021011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21012 version_type=freebsd-elf
21013 need_lib_prefix=no
21014 need_version=no
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21016 soname_spec='${libname}${release}${shared_ext}$major'
21017 shlibpath_var=LD_LIBRARY_PATH
21018 hardcode_into_libs=yes
21019 if test "$with_gnu_ld" = yes; then
21020 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21021 shlibpath_overrides_runpath=no
21022 else
21023 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21024 shlibpath_overrides_runpath=yes
21025 case $host_os in
21026 sco3.2v5*)
21027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21028 ;;
21029 esac
21030 fi
21031 sys_lib_dlsearch_path_spec='/usr/lib'
21032 ;;
21033
John Criswell47fdd832003-07-14 16:52:07 +000021034uts4*)
21035 version_type=linux
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 ;;
21040
21041*)
21042 dynamic_linker=no
21043 ;;
21044esac
Reid Spencera773bd52006-08-04 18:18:08 +000021045{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21046echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021047test "$dynamic_linker" = no && can_build_shared=no
21048
Reid Spencera773bd52006-08-04 18:18:08 +000021049variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21050if test "$GCC" = yes; then
21051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21052fi
21053
21054{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21055echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021056hardcode_action_CXX=
21057if test -n "$hardcode_libdir_flag_spec_CXX" || \
21058 test -n "$runpath_var_CXX" || \
21059 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21060
21061 # We can hardcode non-existant directories.
21062 if test "$hardcode_direct_CXX" != no &&
21063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21064 # have to relink, otherwise we might link with an installed library
21065 # when we should be linking with a yet-to-be-installed one
21066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21067 test "$hardcode_minus_L_CXX" != no; then
21068 # Linking always hardcodes the temporary library directory.
21069 hardcode_action_CXX=relink
21070 else
21071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21072 hardcode_action_CXX=immediate
21073 fi
21074else
21075 # We cannot hardcode anything, or else we can only hardcode existing
21076 # directories.
21077 hardcode_action_CXX=unsupported
21078fi
Reid Spencera773bd52006-08-04 18:18:08 +000021079{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21080echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000021081
21082if test "$hardcode_action_CXX" = relink; then
21083 # Fast installation is not supported
21084 enable_fast_install=no
21085elif test "$shlibpath_overrides_runpath" = yes ||
21086 test "$enable_shared" = no; then
21087 # Fast installation is not necessary
21088 enable_fast_install=needless
21089fi
21090
John Criswell47fdd832003-07-14 16:52:07 +000021091
21092# The else clause should only fire when bootstrapping the
21093# libtool distribution, otherwise you forgot to ship ltmain.sh
21094# with your package, and you will get complaints that there are
21095# no rules to generate ltmain.sh.
21096if test -f "$ltmain"; then
21097 # See if we are running on zsh, and set the options which allow our commands through
21098 # without removal of \ escapes.
21099 if test -n "${ZSH_VERSION+set}" ; then
21100 setopt NO_GLOB_SUBST
21101 fi
21102 # Now quote all the things that may contain metacharacters while being
21103 # careful not to overquote the AC_SUBSTed values. We take copies of the
21104 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000021105 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 +000021106 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000021107 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21108 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21109 deplibs_check_method reload_flag reload_cmds need_locks \
21110 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21111 lt_cv_sys_global_symbol_to_c_name_address \
21112 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21113 old_postinstall_cmds old_postuninstall_cmds \
21114 compiler_CXX \
21115 CC_CXX \
21116 LD_CXX \
21117 lt_prog_compiler_wl_CXX \
21118 lt_prog_compiler_pic_CXX \
21119 lt_prog_compiler_static_CXX \
21120 lt_prog_compiler_no_builtin_flag_CXX \
21121 export_dynamic_flag_spec_CXX \
21122 thread_safe_flag_spec_CXX \
21123 whole_archive_flag_spec_CXX \
21124 enable_shared_with_static_runtimes_CXX \
21125 old_archive_cmds_CXX \
21126 old_archive_from_new_cmds_CXX \
21127 predep_objects_CXX \
21128 postdep_objects_CXX \
21129 predeps_CXX \
21130 postdeps_CXX \
21131 compiler_lib_search_path_CXX \
21132 archive_cmds_CXX \
21133 archive_expsym_cmds_CXX \
21134 postinstall_cmds_CXX \
21135 postuninstall_cmds_CXX \
21136 old_archive_from_expsyms_cmds_CXX \
21137 allow_undefined_flag_CXX \
21138 no_undefined_flag_CXX \
21139 export_symbols_cmds_CXX \
21140 hardcode_libdir_flag_spec_CXX \
21141 hardcode_libdir_flag_spec_ld_CXX \
21142 hardcode_libdir_separator_CXX \
21143 hardcode_automatic_CXX \
21144 module_cmds_CXX \
21145 module_expsym_cmds_CXX \
21146 lt_cv_prog_compiler_c_o_CXX \
21147 exclude_expsyms_CXX \
21148 include_expsyms_CXX; do
21149
21150 case $var in
21151 old_archive_cmds_CXX | \
21152 old_archive_from_new_cmds_CXX | \
21153 archive_cmds_CXX | \
21154 archive_expsym_cmds_CXX | \
21155 module_cmds_CXX | \
21156 module_expsym_cmds_CXX | \
21157 old_archive_from_expsyms_cmds_CXX | \
21158 export_symbols_cmds_CXX | \
21159 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21160 postinstall_cmds | postuninstall_cmds | \
21161 old_postinstall_cmds | old_postuninstall_cmds | \
21162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21163 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021164 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 +000021165 ;;
21166 *)
21167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21168 ;;
21169 esac
21170 done
21171
21172 case $lt_echo in
21173 *'\$0 --fallback-echo"')
21174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21175 ;;
21176 esac
21177
21178cfgfile="$ofile"
21179
21180 cat <<__EOF__ >> "$cfgfile"
21181# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21182
21183# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21184
21185# Shell to use when invoking shell scripts.
21186SHELL=$lt_SHELL
21187
21188# Whether or not to build shared libraries.
21189build_libtool_libs=$enable_shared
21190
21191# Whether or not to build static libraries.
21192build_old_libs=$enable_static
21193
21194# Whether or not to add -lc for building shared libraries.
21195build_libtool_need_lc=$archive_cmds_need_lc_CXX
21196
21197# Whether or not to disallow shared libs when runtime libs are static
21198allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21199
21200# Whether or not to optimize for fast installation.
21201fast_install=$enable_fast_install
21202
21203# The host system.
21204host_alias=$host_alias
21205host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021206host_os=$host_os
21207
21208# The build system.
21209build_alias=$build_alias
21210build=$build
21211build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021212
21213# An echo program that does not interpret backslashes.
21214echo=$lt_echo
21215
21216# The archiver.
21217AR=$lt_AR
21218AR_FLAGS=$lt_AR_FLAGS
21219
21220# A C compiler.
21221LTCC=$lt_LTCC
21222
Reid Spencera773bd52006-08-04 18:18:08 +000021223# LTCC compiler flags.
21224LTCFLAGS=$lt_LTCFLAGS
21225
John Criswell47fdd832003-07-14 16:52:07 +000021226# A language-specific compiler.
21227CC=$lt_compiler_CXX
21228
21229# Is the compiler the GNU C compiler?
21230with_gcc=$GCC_CXX
21231
21232# An ERE matcher.
21233EGREP=$lt_EGREP
21234
21235# The linker used to build libraries.
21236LD=$lt_LD_CXX
21237
21238# Whether we need hard or soft links.
21239LN_S=$lt_LN_S
21240
21241# A BSD-compatible nm program.
21242NM=$lt_NM
21243
21244# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021245STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021246
21247# Used to examine libraries when file_magic_cmd begins "file"
21248MAGIC_CMD=$MAGIC_CMD
21249
21250# Used on cygwin: DLL creation program.
21251DLLTOOL="$DLLTOOL"
21252
21253# Used on cygwin: object dumper.
21254OBJDUMP="$OBJDUMP"
21255
21256# Used on cygwin: assembler.
21257AS="$AS"
21258
21259# The name of the directory that contains temporary libtool files.
21260objdir=$objdir
21261
21262# How to create reloadable object files.
21263reload_flag=$lt_reload_flag
21264reload_cmds=$lt_reload_cmds
21265
21266# How to pass a linker flag through the compiler.
21267wl=$lt_lt_prog_compiler_wl_CXX
21268
21269# Object file suffix (normally "o").
21270objext="$ac_objext"
21271
21272# Old archive suffix (normally "a").
21273libext="$libext"
21274
21275# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021276shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021277
21278# Executable file suffix (normally "").
21279exeext="$exeext"
21280
21281# Additional compiler flags for building library objects.
21282pic_flag=$lt_lt_prog_compiler_pic_CXX
21283pic_mode=$pic_mode
21284
21285# What is the maximum length of a command?
21286max_cmd_len=$lt_cv_sys_max_cmd_len
21287
21288# Does compiler simultaneously support -c and -o options?
21289compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21290
Reid Spencera773bd52006-08-04 18:18:08 +000021291# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021292need_locks=$lt_need_locks
21293
21294# Do we need the lib prefix for modules?
21295need_lib_prefix=$need_lib_prefix
21296
21297# Do we need a version for libraries?
21298need_version=$need_version
21299
21300# Whether dlopen is supported.
21301dlopen_support=$enable_dlopen
21302
21303# Whether dlopen of programs is supported.
21304dlopen_self=$enable_dlopen_self
21305
21306# Whether dlopen of statically linked programs is supported.
21307dlopen_self_static=$enable_dlopen_self_static
21308
21309# Compiler flag to prevent dynamic linking.
21310link_static_flag=$lt_lt_prog_compiler_static_CXX
21311
21312# Compiler flag to turn off builtin functions.
21313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21314
21315# Compiler flag to allow reflexive dlopens.
21316export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21317
21318# Compiler flag to generate shared objects directly from archives.
21319whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21320
21321# Compiler flag to generate thread-safe objects.
21322thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21323
21324# Library versioning type.
21325version_type=$version_type
21326
21327# Format of library name prefix.
21328libname_spec=$lt_libname_spec
21329
21330# List of archive names. First name is the real one, the rest are links.
21331# The last name is the one that the linker finds with -lNAME.
21332library_names_spec=$lt_library_names_spec
21333
21334# The coded name of the library, if different from the real name.
21335soname_spec=$lt_soname_spec
21336
21337# Commands used to build and install an old-style archive.
21338RANLIB=$lt_RANLIB
21339old_archive_cmds=$lt_old_archive_cmds_CXX
21340old_postinstall_cmds=$lt_old_postinstall_cmds
21341old_postuninstall_cmds=$lt_old_postuninstall_cmds
21342
21343# Create an old-style archive from a shared archive.
21344old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21345
21346# Create a temporary old-style archive to link instead of a shared archive.
21347old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21348
21349# Commands used to build and install a shared archive.
21350archive_cmds=$lt_archive_cmds_CXX
21351archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21352postinstall_cmds=$lt_postinstall_cmds
21353postuninstall_cmds=$lt_postuninstall_cmds
21354
21355# Commands used to build a loadable module (assumed same as above if empty)
21356module_cmds=$lt_module_cmds_CXX
21357module_expsym_cmds=$lt_module_expsym_cmds_CXX
21358
21359# Commands to strip libraries.
21360old_striplib=$lt_old_striplib
21361striplib=$lt_striplib
21362
21363# Dependencies to place before the objects being linked to create a
21364# shared library.
21365predep_objects=$lt_predep_objects_CXX
21366
21367# Dependencies to place after the objects being linked to create a
21368# shared library.
21369postdep_objects=$lt_postdep_objects_CXX
21370
21371# Dependencies to place before the objects being linked to create a
21372# shared library.
21373predeps=$lt_predeps_CXX
21374
21375# Dependencies to place after the objects being linked to create a
21376# shared library.
21377postdeps=$lt_postdeps_CXX
21378
21379# The library search path used internally by the compiler when linking
21380# a shared library.
21381compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21382
21383# Method to check whether dependent libraries are shared objects.
21384deplibs_check_method=$lt_deplibs_check_method
21385
21386# Command to use when deplibs_check_method == file_magic.
21387file_magic_cmd=$lt_file_magic_cmd
21388
21389# Flag that allows shared libraries with undefined symbols to be built.
21390allow_undefined_flag=$lt_allow_undefined_flag_CXX
21391
21392# Flag that forces no undefined symbols.
21393no_undefined_flag=$lt_no_undefined_flag_CXX
21394
21395# Commands used to finish a libtool library installation in a directory.
21396finish_cmds=$lt_finish_cmds
21397
21398# Same as above, but a single script fragment to be evaled but not shown.
21399finish_eval=$lt_finish_eval
21400
21401# Take the output of nm and produce a listing of raw symbols and C names.
21402global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21403
21404# Transform the output of nm in a proper C declaration
21405global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21406
21407# Transform the output of nm in a C name address pair
21408global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21409
21410# This is the shared library runtime path variable.
21411runpath_var=$runpath_var
21412
21413# This is the shared library path variable.
21414shlibpath_var=$shlibpath_var
21415
21416# Is shlibpath searched before the hard-coded library search path?
21417shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21418
21419# How to hardcode a shared library path into an executable.
21420hardcode_action=$hardcode_action_CXX
21421
21422# Whether we should hardcode library paths into libraries.
21423hardcode_into_libs=$hardcode_into_libs
21424
21425# Flag to hardcode \$libdir into a binary during linking.
21426# This must work even if \$libdir does not exist.
21427hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21428
21429# If ld is used when linking, flag to hardcode \$libdir into
21430# a binary during linking. This must work even if \$libdir does
21431# not exist.
21432hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21433
21434# Whether we need a single -rpath flag with a separated argument.
21435hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21436
21437# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21438# resulting binary.
21439hardcode_direct=$hardcode_direct_CXX
21440
21441# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21442# resulting binary.
21443hardcode_minus_L=$hardcode_minus_L_CXX
21444
21445# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21446# the resulting binary.
21447hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21448
21449# Set to yes if building a shared library automatically hardcodes DIR into the library
21450# and all subsequent libraries and executables linked against it.
21451hardcode_automatic=$hardcode_automatic_CXX
21452
21453# Variables whose values should be saved in libtool wrapper scripts and
21454# restored at relink time.
21455variables_saved_for_relink="$variables_saved_for_relink"
21456
21457# Whether libtool must link a program against all its dependency libraries.
21458link_all_deplibs=$link_all_deplibs_CXX
21459
21460# Compile-time system search path for libraries
21461sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21462
21463# Run-time system search path for libraries
21464sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21465
21466# Fix the shell variable \$srcfile for the compiler.
21467fix_srcfile_path="$fix_srcfile_path_CXX"
21468
21469# Set to yes if exported symbols are required.
21470always_export_symbols=$always_export_symbols_CXX
21471
21472# The commands to list exported symbols.
21473export_symbols_cmds=$lt_export_symbols_cmds_CXX
21474
21475# The commands to extract the exported symbol list from a shared archive.
21476extract_expsyms_cmds=$lt_extract_expsyms_cmds
21477
21478# Symbols that should not be listed in the preloaded symbols.
21479exclude_expsyms=$lt_exclude_expsyms_CXX
21480
21481# Symbols that must always be exported.
21482include_expsyms=$lt_include_expsyms_CXX
21483
21484# ### END LIBTOOL TAG CONFIG: $tagname
21485
21486__EOF__
21487
21488
21489else
21490 # If there is no Makefile yet, we rely on a make rule to execute
21491 # `config.status --recheck' to rerun these tests and create the
21492 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021493 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21494 if test -f "$ltmain_in"; then
21495 test -f Makefile && make "$ltmain"
21496 fi
John Criswell47fdd832003-07-14 16:52:07 +000021497fi
21498
21499
21500ac_ext=c
21501ac_cpp='$CPP $CPPFLAGS'
21502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504ac_compiler_gnu=$ac_cv_c_compiler_gnu
21505
21506CC=$lt_save_CC
21507LDCXX=$LD
21508LD=$lt_save_LD
21509GCC=$lt_save_GCC
21510with_gnu_ldcxx=$with_gnu_ld
21511with_gnu_ld=$lt_save_with_gnu_ld
21512lt_cv_path_LDCXX=$lt_cv_path_LD
21513lt_cv_path_LD=$lt_save_path_LD
21514lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21515lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21516
21517 else
21518 tagname=""
21519 fi
21520 ;;
21521
21522 F77)
21523 if test -n "$F77" && test "X$F77" != "Xno"; then
21524
21525ac_ext=f
21526ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21527ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21528ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21529
21530
21531archive_cmds_need_lc_F77=no
21532allow_undefined_flag_F77=
21533always_export_symbols_F77=no
21534archive_expsym_cmds_F77=
21535export_dynamic_flag_spec_F77=
21536hardcode_direct_F77=no
21537hardcode_libdir_flag_spec_F77=
21538hardcode_libdir_flag_spec_ld_F77=
21539hardcode_libdir_separator_F77=
21540hardcode_minus_L_F77=no
21541hardcode_automatic_F77=no
21542module_cmds_F77=
21543module_expsym_cmds_F77=
21544link_all_deplibs_F77=unknown
21545old_archive_cmds_F77=$old_archive_cmds
21546no_undefined_flag_F77=
21547whole_archive_flag_spec_F77=
21548enable_shared_with_static_runtimes_F77=no
21549
21550# Source file extension for f77 test sources.
21551ac_ext=f
21552
21553# Object file extension for compiled f77 test sources.
21554objext=o
21555objext_F77=$objext
21556
21557# Code to be used in simple compile tests
21558lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21559
21560# Code to be used in simple link tests
21561lt_simple_link_test_code=" program t\n end\n"
21562
21563# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21564
21565# If no C compiler was specified, use CC.
21566LTCC=${LTCC-"$CC"}
21567
Reid Spencera773bd52006-08-04 18:18:08 +000021568# If no C compiler flags were specified, use CFLAGS.
21569LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21570
John Criswell47fdd832003-07-14 16:52:07 +000021571# Allow CC to be a program name with arguments.
21572compiler=$CC
21573
21574
Reid Spencera773bd52006-08-04 18:18:08 +000021575# save warnings/boilerplate of simple test code
21576ac_outfile=conftest.$ac_objext
21577printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21578eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21579_lt_compiler_boilerplate=`cat conftest.err`
21580$rm conftest*
21581
21582ac_outfile=conftest.$ac_objext
21583printf "$lt_simple_link_test_code" >conftest.$ac_ext
21584eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21585_lt_linker_boilerplate=`cat conftest.err`
21586$rm conftest*
21587
21588
John Criswell47fdd832003-07-14 16:52:07 +000021589# Allow CC to be a program name with arguments.
21590lt_save_CC="$CC"
21591CC=${F77-"f77"}
21592compiler=$CC
21593compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021594for cc_temp in $compiler""; do
21595 case $cc_temp in
21596 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21597 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21598 \-*) ;;
21599 *) break;;
21600 esac
21601done
21602cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021603
John Criswell47fdd832003-07-14 16:52:07 +000021604
Reid Spencera773bd52006-08-04 18:18:08 +000021605{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21606echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21607{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21608echo "${ECHO_T}$can_build_shared" >&6; }
21609
21610{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21611echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021612test "$can_build_shared" = "no" && enable_shared=no
21613
21614# On AIX, shared libraries and static libraries use the same namespace, and
21615# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021616case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021617aix3*)
21618 test "$enable_shared" = yes && enable_static=no
21619 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021620 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021621 postinstall_cmds='$RANLIB $lib'
21622 fi
21623 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021624aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021625 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21626 test "$enable_shared" = yes && enable_static=no
21627 fi
John Criswell47fdd832003-07-14 16:52:07 +000021628 ;;
21629esac
Reid Spencera773bd52006-08-04 18:18:08 +000021630{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21631echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021632
Reid Spencera773bd52006-08-04 18:18:08 +000021633{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21634echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021635# Make sure either enable_shared or enable_static is yes.
21636test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021637{ echo "$as_me:$LINENO: result: $enable_static" >&5
21638echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021639
21640GCC_F77="$G77"
21641LD_F77="$LD"
21642
21643lt_prog_compiler_wl_F77=
21644lt_prog_compiler_pic_F77=
21645lt_prog_compiler_static_F77=
21646
Reid Spencera773bd52006-08-04 18:18:08 +000021647{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21648echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021649
21650 if test "$GCC" = yes; then
21651 lt_prog_compiler_wl_F77='-Wl,'
21652 lt_prog_compiler_static_F77='-static'
21653
21654 case $host_os in
21655 aix*)
21656 # All AIX code is PIC.
21657 if test "$host_cpu" = ia64; then
21658 # AIX 5 now supports IA64 processor
21659 lt_prog_compiler_static_F77='-Bstatic'
21660 fi
21661 ;;
21662
21663 amigaos*)
21664 # FIXME: we need at least 68020 code to build shared libraries, but
21665 # adding the `-m68020' flag to GCC prevents building anything better,
21666 # like `-m68040'.
21667 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21668 ;;
21669
21670 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21671 # PIC is the default for these OSes.
21672 ;;
21673
21674 mingw* | pw32* | os2*)
21675 # This hack is so that the source file can tell whether it is being
21676 # built for inclusion in a dll (and should export symbols for example).
21677 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21678 ;;
21679
21680 darwin* | rhapsody*)
21681 # PIC is the default on this platform
21682 # Common symbols not allowed in MH_DYLIB files
21683 lt_prog_compiler_pic_F77='-fno-common'
21684 ;;
21685
Reid Spencera773bd52006-08-04 18:18:08 +000021686 interix3*)
21687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21688 # Instead, we relocate shared libraries at runtime.
21689 ;;
21690
John Criswell47fdd832003-07-14 16:52:07 +000021691 msdosdjgpp*)
21692 # Just because we use GCC doesn't mean we suddenly get shared libraries
21693 # on systems that don't support them.
21694 lt_prog_compiler_can_build_shared_F77=no
21695 enable_shared=no
21696 ;;
21697
21698 sysv4*MP*)
21699 if test -d /usr/nec; then
21700 lt_prog_compiler_pic_F77=-Kconform_pic
21701 fi
21702 ;;
21703
21704 hpux*)
21705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21706 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021707 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021708 hppa*64*|ia64*)
21709 # +Z the default
21710 ;;
21711 *)
21712 lt_prog_compiler_pic_F77='-fPIC'
21713 ;;
21714 esac
21715 ;;
21716
21717 *)
21718 lt_prog_compiler_pic_F77='-fPIC'
21719 ;;
21720 esac
21721 else
21722 # PORTME Check for flag to pass linker flags through the system compiler.
21723 case $host_os in
21724 aix*)
21725 lt_prog_compiler_wl_F77='-Wl,'
21726 if test "$host_cpu" = ia64; then
21727 # AIX 5 now supports IA64 processor
21728 lt_prog_compiler_static_F77='-Bstatic'
21729 else
21730 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21731 fi
21732 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021733 darwin*)
21734 # PIC is the default on this platform
21735 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021736 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021737 xlc*)
21738 lt_prog_compiler_pic_F77='-qnocommon'
21739 lt_prog_compiler_wl_F77='-Wl,'
21740 ;;
21741 esac
21742 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021743
21744 mingw* | pw32* | os2*)
21745 # This hack is so that the source file can tell whether it is being
21746 # built for inclusion in a dll (and should export symbols for example).
21747 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21748 ;;
21749
21750 hpux9* | hpux10* | hpux11*)
21751 lt_prog_compiler_wl_F77='-Wl,'
21752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21753 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021754 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021755 hppa*64*|ia64*)
21756 # +Z the default
21757 ;;
21758 *)
21759 lt_prog_compiler_pic_F77='+Z'
21760 ;;
21761 esac
21762 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21763 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21764 ;;
21765
21766 irix5* | irix6* | nonstopux*)
21767 lt_prog_compiler_wl_F77='-Wl,'
21768 # PIC (with -KPIC) is the default.
21769 lt_prog_compiler_static_F77='-non_shared'
21770 ;;
21771
21772 newsos6)
21773 lt_prog_compiler_pic_F77='-KPIC'
21774 lt_prog_compiler_static_F77='-Bstatic'
21775 ;;
21776
21777 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021778 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021779 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021780 lt_prog_compiler_wl_F77='-Wl,'
21781 lt_prog_compiler_pic_F77='-KPIC'
21782 lt_prog_compiler_static_F77='-static'
21783 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021784 pgcc* | pgf77* | pgf90* | pgf95*)
21785 # Portland Group compilers (*not* the Pentium gcc compiler,
21786 # which looks to be a dead project)
21787 lt_prog_compiler_wl_F77='-Wl,'
21788 lt_prog_compiler_pic_F77='-fpic'
21789 lt_prog_compiler_static_F77='-Bstatic'
21790 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021791 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021792 lt_prog_compiler_wl_F77='-Wl,'
21793 # All Alpha code is PIC.
21794 lt_prog_compiler_static_F77='-non_shared'
21795 ;;
21796 esac
21797 ;;
21798
21799 osf3* | osf4* | osf5*)
21800 lt_prog_compiler_wl_F77='-Wl,'
21801 # All OSF/1 code is PIC.
21802 lt_prog_compiler_static_F77='-non_shared'
21803 ;;
21804
John Criswell47fdd832003-07-14 16:52:07 +000021805 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021806 lt_prog_compiler_pic_F77='-KPIC'
21807 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021808 case $cc_basename in
21809 f77* | f90* | f95*)
21810 lt_prog_compiler_wl_F77='-Qoption ld ';;
21811 *)
21812 lt_prog_compiler_wl_F77='-Wl,';;
21813 esac
John Criswell47fdd832003-07-14 16:52:07 +000021814 ;;
21815
21816 sunos4*)
21817 lt_prog_compiler_wl_F77='-Qoption ld '
21818 lt_prog_compiler_pic_F77='-PIC'
21819 lt_prog_compiler_static_F77='-Bstatic'
21820 ;;
21821
Reid Spencera773bd52006-08-04 18:18:08 +000021822 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021823 lt_prog_compiler_wl_F77='-Wl,'
21824 lt_prog_compiler_pic_F77='-KPIC'
21825 lt_prog_compiler_static_F77='-Bstatic'
21826 ;;
21827
21828 sysv4*MP*)
21829 if test -d /usr/nec ;then
21830 lt_prog_compiler_pic_F77='-Kconform_pic'
21831 lt_prog_compiler_static_F77='-Bstatic'
21832 fi
21833 ;;
21834
Reid Spencera773bd52006-08-04 18:18:08 +000021835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21836 lt_prog_compiler_wl_F77='-Wl,'
21837 lt_prog_compiler_pic_F77='-KPIC'
21838 lt_prog_compiler_static_F77='-Bstatic'
21839 ;;
21840
21841 unicos*)
21842 lt_prog_compiler_wl_F77='-Wl,'
21843 lt_prog_compiler_can_build_shared_F77=no
21844 ;;
21845
John Criswell47fdd832003-07-14 16:52:07 +000021846 uts4*)
21847 lt_prog_compiler_pic_F77='-pic'
21848 lt_prog_compiler_static_F77='-Bstatic'
21849 ;;
21850
21851 *)
21852 lt_prog_compiler_can_build_shared_F77=no
21853 ;;
21854 esac
21855 fi
21856
Reid Spencera773bd52006-08-04 18:18:08 +000021857{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21858echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021859
21860#
21861# Check to make sure the PIC flag actually works.
21862#
21863if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021864
Reid Spencera773bd52006-08-04 18:18:08 +000021865{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21866echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021867if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
21869else
21870 lt_prog_compiler_pic_works_F77=no
21871 ac_outfile=conftest.$ac_objext
21872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21873 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21874 # Insert the option either (1) after the last *FLAGS variable, or
21875 # (2) before a word containing "conftest.", or (3) at the end.
21876 # Note that $ac_compile itself does not contain backslashes and begins
21877 # with a dollar sign (not a hyphen), so the echo should work correctly.
21878 # The option is referenced via a variable to avoid confusing sed.
21879 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21882 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000021883 (eval echo "\"\$as_me:21883: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021884 (eval "$lt_compile" 2>conftest.err)
21885 ac_status=$?
21886 cat conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000021887 echo "$as_me:21887: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021888 if (exit $ac_status) && test -s "$ac_outfile"; then
21889 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021890 # So say no if there are warnings other than the usual output.
21891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021894 lt_prog_compiler_pic_works_F77=yes
21895 fi
21896 fi
21897 $rm conftest*
21898
21899fi
Reid Spencera773bd52006-08-04 18:18:08 +000021900{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21901echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021902
21903if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21904 case $lt_prog_compiler_pic_F77 in
21905 "" | " "*) ;;
21906 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21907 esac
21908else
21909 lt_prog_compiler_pic_F77=
21910 lt_prog_compiler_can_build_shared_F77=no
21911fi
21912
21913fi
Reid Spencera773bd52006-08-04 18:18:08 +000021914case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021915 # For platforms which do not support PIC, -DPIC is meaningless:
21916 *djgpp*)
21917 lt_prog_compiler_pic_F77=
21918 ;;
21919 *)
21920 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21921 ;;
21922esac
21923
Reid Spencera773bd52006-08-04 18:18:08 +000021924#
21925# Check to make sure the static flag actually works.
21926#
21927wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21928{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21929echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21930if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21932else
21933 lt_prog_compiler_static_works_F77=no
21934 save_LDFLAGS="$LDFLAGS"
21935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21936 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21938 # The linker can only warn and ignore the option if not recognized
21939 # So say no if there are warnings
21940 if test -s conftest.err; then
21941 # Append any errors to the config.log.
21942 cat conftest.err 1>&5
21943 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21945 if diff conftest.exp conftest.er2 >/dev/null; then
21946 lt_prog_compiler_static_works_F77=yes
21947 fi
21948 else
21949 lt_prog_compiler_static_works_F77=yes
21950 fi
21951 fi
21952 $rm conftest*
21953 LDFLAGS="$save_LDFLAGS"
21954
21955fi
21956{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21957echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21958
21959if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21960 :
21961else
21962 lt_prog_compiler_static_F77=
21963fi
21964
21965
21966{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21967echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021968if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21970else
21971 lt_cv_prog_compiler_c_o_F77=no
21972 $rm -r conftest 2>/dev/null
21973 mkdir conftest
21974 cd conftest
21975 mkdir out
21976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21977
John Criswell47fdd832003-07-14 16:52:07 +000021978 lt_compiler_flag="-o out/conftest2.$ac_objext"
21979 # Insert the option either (1) after the last *FLAGS variable, or
21980 # (2) before a word containing "conftest.", or (3) at the end.
21981 # Note that $ac_compile itself does not contain backslashes and begins
21982 # with a dollar sign (not a hyphen), so the echo should work correctly.
21983 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21986 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000021987 (eval echo "\"\$as_me:21987: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021988 (eval "$lt_compile" 2>out/conftest.err)
21989 ac_status=$?
21990 cat out/conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000021991 echo "$as_me:21991: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21993 then
21994 # The compiler can only warn and ignore the option if not recognized
21995 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021999 lt_cv_prog_compiler_c_o_F77=yes
22000 fi
22001 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022002 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022003 $rm conftest*
22004 # SGI C++ compiler will create directory out/ii_files/ for
22005 # template instantiation
22006 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22007 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000022008 cd ..
22009 rmdir conftest
22010 $rm conftest*
22011
22012fi
Reid Spencera773bd52006-08-04 18:18:08 +000022013{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22014echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022015
22016
22017hard_links="nottested"
22018if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22019 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000022020 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22021echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022022 hard_links=yes
22023 $rm conftest*
22024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22025 touch conftest.a
22026 ln conftest.a conftest.b 2>&5 || hard_links=no
22027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000022028 { echo "$as_me:$LINENO: result: $hard_links" >&5
22029echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022030 if test "$hard_links" = no; then
22031 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22032echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22033 need_locks=warn
22034 fi
22035else
22036 need_locks=no
22037fi
22038
Reid Spencera773bd52006-08-04 18:18:08 +000022039{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22040echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022041
22042 runpath_var=
22043 allow_undefined_flag_F77=
22044 enable_shared_with_static_runtimes_F77=no
22045 archive_cmds_F77=
22046 archive_expsym_cmds_F77=
22047 old_archive_From_new_cmds_F77=
22048 old_archive_from_expsyms_cmds_F77=
22049 export_dynamic_flag_spec_F77=
22050 whole_archive_flag_spec_F77=
22051 thread_safe_flag_spec_F77=
22052 hardcode_libdir_flag_spec_F77=
22053 hardcode_libdir_flag_spec_ld_F77=
22054 hardcode_libdir_separator_F77=
22055 hardcode_direct_F77=no
22056 hardcode_minus_L_F77=no
22057 hardcode_shlibpath_var_F77=unsupported
22058 link_all_deplibs_F77=unknown
22059 hardcode_automatic_F77=no
22060 module_cmds_F77=
22061 module_expsym_cmds_F77=
22062 always_export_symbols_F77=no
22063 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22064 # include_expsyms should be a list of space-separated symbols to be *always*
22065 # included in the symbol list
22066 include_expsyms_F77=
22067 # exclude_expsyms can be an extended regexp of symbols to exclude
22068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22070 # as well as any symbol that contains `d'.
22071 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22073 # platforms (ab)use it in PIC code, but their linkers get confused if
22074 # the symbol is explicitly referenced. Since portable code cannot
22075 # rely on this symbol name, it's probably fine to never include it in
22076 # preloaded symbol tables.
22077 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000022078 # Just being paranoid about ensuring that cc_basename is set.
22079 for cc_temp in $compiler""; do
22080 case $cc_temp in
22081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22083 \-*) ;;
22084 *) break;;
22085 esac
22086done
22087cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000022088
22089 case $host_os in
22090 cygwin* | mingw* | pw32*)
22091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22092 # When not using gcc, we currently assume that we are using
22093 # Microsoft Visual C++.
22094 if test "$GCC" != yes; then
22095 with_gnu_ld=no
22096 fi
22097 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022098 interix*)
22099 # we just hope/assume this is gcc and not c89 (= MSVC++)
22100 with_gnu_ld=yes
22101 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022102 openbsd*)
22103 with_gnu_ld=no
22104 ;;
22105 esac
22106
22107 ld_shlibs_F77=yes
22108 if test "$with_gnu_ld" = yes; then
22109 # If archive_cmds runs LD, not CC, wlarc should be empty
22110 wlarc='${wl}'
22111
Reid Spencera773bd52006-08-04 18:18:08 +000022112 # Set some defaults for GNU ld with shared library support. These
22113 # are reset later if shared libraries are not supported. Putting them
22114 # here allows them to be overridden if necessary.
22115 runpath_var=LD_RUN_PATH
22116 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22117 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22118 # ancient GNU ld didn't support --whole-archive et. al.
22119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22120 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22121 else
22122 whole_archive_flag_spec_F77=
22123 fi
22124 supports_anon_versioning=no
22125 case `$LD -v 2>/dev/null` in
22126 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22129 *\ 2.11.*) ;; # other 2.11 versions
22130 *) supports_anon_versioning=yes ;;
22131 esac
22132
John Criswell47fdd832003-07-14 16:52:07 +000022133 # See if GNU ld supports shared libraries.
22134 case $host_os in
22135 aix3* | aix4* | aix5*)
22136 # On AIX/PPC, the GNU linker is very broken
22137 if test "$host_cpu" != ia64; then
22138 ld_shlibs_F77=no
22139 cat <<EOF 1>&2
22140
22141*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22142*** to be unable to reliably create shared libraries on AIX.
22143*** Therefore, libtool is disabling shared libraries support. If you
22144*** really care for shared libraries, you may want to modify your PATH
22145*** so that a non-GNU linker is found, and then restart.
22146
22147EOF
22148 fi
22149 ;;
22150
22151 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022152 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 +000022153 hardcode_libdir_flag_spec_F77='-L$libdir'
22154 hardcode_minus_L_F77=yes
22155
22156 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22157 # that the semantics of dynamic libraries on AmigaOS, at least up
22158 # to version 4, is to share data among multiple programs linked
22159 # with the same dynamic library. Since this doesn't match the
22160 # behavior of shared libraries on other platforms, we can't use
22161 # them.
22162 ld_shlibs_F77=no
22163 ;;
22164
22165 beos*)
22166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22167 allow_undefined_flag_F77=unsupported
22168 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22169 # support --undefined. This deserves some investigation. FIXME
22170 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22171 else
22172 ld_shlibs_F77=no
22173 fi
22174 ;;
22175
22176 cygwin* | mingw* | pw32*)
22177 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22178 # as there is no search path for DLLs.
22179 hardcode_libdir_flag_spec_F77='-L$libdir'
22180 allow_undefined_flag_F77=unsupported
22181 always_export_symbols_F77=no
22182 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022183 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 +000022184
22185 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022186 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 +000022187 # If the export-symbols file already is a .def file (1st line
22188 # is EXPORTS), use it as is; otherwise, prepend...
22189 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22190 cp $export_symbols $output_objdir/$soname.def;
22191 else
22192 echo EXPORTS > $output_objdir/$soname.def;
22193 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022194 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022195 $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 +000022196 else
Reid Spencera773bd52006-08-04 18:18:08 +000022197 ld_shlibs_F77=no
22198 fi
22199 ;;
22200
22201 interix3*)
22202 hardcode_direct_F77=no
22203 hardcode_shlibpath_var_F77=no
22204 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22205 export_dynamic_flag_spec_F77='${wl}-E'
22206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22207 # Instead, shared libraries are loaded at an image base (0x10000000 by
22208 # default) and relocated if they conflict, which is a slow very memory
22209 # consuming and fragmenting process. To avoid this, we pick a random,
22210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22212 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'
22213 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'
22214 ;;
22215
22216 linux*)
22217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22218 tmp_addflag=
22219 case $cc_basename,$host_cpu in
22220 pgcc*) # Portland Group C compiler
22221 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'
22222 tmp_addflag=' $pic_flag'
22223 ;;
22224 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22225 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'
22226 tmp_addflag=' $pic_flag -Mnomain' ;;
22227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22228 tmp_addflag=' -i_dynamic' ;;
22229 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22230 tmp_addflag=' -i_dynamic -nofor_main' ;;
22231 ifc* | ifort*) # Intel Fortran compiler
22232 tmp_addflag=' -nofor_main' ;;
22233 esac
22234 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22235
22236 if test $supports_anon_versioning = yes; then
22237 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22239 $echo "local: *; };" >> $output_objdir/$libname.ver~
22240 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22241 fi
22242 else
22243 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022244 fi
22245 ;;
22246
22247 netbsd*)
22248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22249 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22250 wlarc=
22251 else
22252 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22253 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22254 fi
22255 ;;
22256
Reid Spencera773bd52006-08-04 18:18:08 +000022257 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022258 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22259 ld_shlibs_F77=no
22260 cat <<EOF 1>&2
22261
22262*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22263*** create shared libraries on Solaris systems. Therefore, libtool
22264*** is disabling shared libraries support. We urge you to upgrade GNU
22265*** binutils to release 2.9.1 or newer. Another option is to modify
22266*** your PATH or compiler configuration so that the native linker is
22267*** used, and then restart.
22268
22269EOF
22270 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22271 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22272 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22273 else
22274 ld_shlibs_F77=no
22275 fi
22276 ;;
22277
Reid Spencera773bd52006-08-04 18:18:08 +000022278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22279 case `$LD -v 2>&1` in
22280 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22281 ld_shlibs_F77=no
22282 cat <<_LT_EOF 1>&2
22283
22284*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22285*** reliably create shared libraries on SCO systems. Therefore, libtool
22286*** is disabling shared libraries support. We urge you to upgrade GNU
22287*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22288*** your PATH or compiler configuration so that the native linker is
22289*** used, and then restart.
22290
22291_LT_EOF
22292 ;;
22293 *)
22294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22295 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22296 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22297 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22298 else
22299 ld_shlibs_F77=no
22300 fi
22301 ;;
22302 esac
22303 ;;
22304
John Criswell47fdd832003-07-14 16:52:07 +000022305 sunos4*)
22306 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22307 wlarc=
22308 hardcode_direct_F77=yes
22309 hardcode_shlibpath_var_F77=no
22310 ;;
22311
22312 *)
22313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22314 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22315 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22316 else
22317 ld_shlibs_F77=no
22318 fi
22319 ;;
22320 esac
22321
Reid Spencera773bd52006-08-04 18:18:08 +000022322 if test "$ld_shlibs_F77" = no; then
22323 runpath_var=
22324 hardcode_libdir_flag_spec_F77=
22325 export_dynamic_flag_spec_F77=
22326 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022327 fi
22328 else
22329 # PORTME fill in a description of your system's linker (not GNU ld)
22330 case $host_os in
22331 aix3*)
22332 allow_undefined_flag_F77=unsupported
22333 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022334 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 +000022335 # Note: this linker hardcodes the directories in LIBPATH if there
22336 # are no directories specified by -L.
22337 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022339 # Neither direct hardcoding nor static linking is supported with a
22340 # broken collect2.
22341 hardcode_direct_F77=unsupported
22342 fi
22343 ;;
22344
22345 aix4* | aix5*)
22346 if test "$host_cpu" = ia64; then
22347 # On IA64, the linker does run time linking by default, so we don't
22348 # have to do anything special.
22349 aix_use_runtimelinking=no
22350 exp_sym_flag='-Bexport'
22351 no_entry_flag=""
22352 else
22353 # If we're using GNU nm, then we don't want the "-C" option.
22354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22355 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22356 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'
22357 else
22358 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'
22359 fi
22360 aix_use_runtimelinking=no
22361
22362 # Test if we are trying to use run time linking or normal
22363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22364 # need to do runtime linking.
22365 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22366 for ld_flag in $LDFLAGS; do
22367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22368 aix_use_runtimelinking=yes
22369 break
22370 fi
22371 done
Reid Spencera773bd52006-08-04 18:18:08 +000022372 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022373 esac
22374
22375 exp_sym_flag='-bexport'
22376 no_entry_flag='-bnoentry'
22377 fi
22378
22379 # When large executables or shared objects are built, AIX ld can
22380 # have problems creating the table of contents. If linking a library
22381 # or program results in "error TOC overflow" add -mminimal-toc to
22382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22384
22385 archive_cmds_F77=''
22386 hardcode_direct_F77=yes
22387 hardcode_libdir_separator_F77=':'
22388 link_all_deplibs_F77=yes
22389
22390 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022391 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022392 # We only want to do this on AIX 4.2 and lower, the check
22393 # below for broken collect2 doesn't work under 4.3+
22394 collect2name=`${CC} -print-prog-name=collect2`
22395 if test -f "$collect2name" && \
22396 strings "$collect2name" | grep resolve_lib_name >/dev/null
22397 then
22398 # We have reworked collect2
22399 hardcode_direct_F77=yes
22400 else
22401 # We have old collect2
22402 hardcode_direct_F77=unsupported
22403 # It fails to find uninstalled libraries when the uninstalled
22404 # path is not listed in the libpath. Setting hardcode_minus_L
22405 # to unsupported forces relinking
22406 hardcode_minus_L_F77=yes
22407 hardcode_libdir_flag_spec_F77='-L$libdir'
22408 hardcode_libdir_separator_F77=
22409 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022410 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022411 esac
22412 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022413 if test "$aix_use_runtimelinking" = yes; then
22414 shared_flag="$shared_flag "'${wl}-G'
22415 fi
John Criswell47fdd832003-07-14 16:52:07 +000022416 else
22417 # not using gcc
22418 if test "$host_cpu" = ia64; then
22419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22420 # chokes on -Wl,-G. The following line is correct:
22421 shared_flag='-G'
22422 else
Reid Spencera773bd52006-08-04 18:18:08 +000022423 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022424 shared_flag='${wl}-G'
22425 else
22426 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022427 fi
John Criswell47fdd832003-07-14 16:52:07 +000022428 fi
22429 fi
22430
22431 # It seems that -bexpall does not export symbols beginning with
22432 # underscore (_), so it is better to generate a list of symbols to export.
22433 always_export_symbols_F77=yes
22434 if test "$aix_use_runtimelinking" = yes; then
22435 # Warning - without using the other runtime loading flags (-brtl),
22436 # -berok will link without error, but may produce a broken library.
22437 allow_undefined_flag_F77='-berok'
22438 # Determine the default libpath from the value encoded in an empty executable.
22439 cat >conftest.$ac_ext <<_ACEOF
22440 program main
22441
22442 end
22443_ACEOF
22444rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022445if { (ac_try="$ac_link"
22446case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449esac
22450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022457 (exit $ac_status); } &&
22458 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22459 { (case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22462esac
22463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_try") 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try='test -s conftest$ac_exeext'
22469 { (case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472esac
22473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_try") 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022478
22479aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22480}'`
22481# Check for a 64-bit object if we didn't find anything.
22482if 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; }
22483}'`; fi
22484else
22485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022486sed 's/^/| /' conftest.$ac_ext >&5
22487
Reid Spencera773bd52006-08-04 18:18:08 +000022488
John Criswell47fdd832003-07-14 16:52:07 +000022489fi
Reid Spencera773bd52006-08-04 18:18:08 +000022490
Bill Wendlingebcceee2009-04-18 11:20:33 +000022491rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022492 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22494
22495 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022496 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 +000022497 else
22498 if test "$host_cpu" = ia64; then
22499 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22500 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022501 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 +000022502 else
22503 # Determine the default libpath from the value encoded in an empty executable.
22504 cat >conftest.$ac_ext <<_ACEOF
22505 program main
22506
22507 end
22508_ACEOF
22509rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022510if { (ac_try="$ac_link"
22511case "(($ac_try" in
22512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22513 *) ac_try_echo=$ac_try;;
22514esac
22515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22516 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022517 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022518 grep -v '^ *+' conftest.er1 >conftest.err
22519 rm -f conftest.er1
22520 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022522 (exit $ac_status); } &&
22523 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22524 { (case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527esac
22528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_try") 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try='test -s conftest$ac_exeext'
22534 { (case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22537esac
22538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_try") 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022543
22544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22545}'`
22546# Check for a 64-bit object if we didn't find anything.
22547if 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; }
22548}'`; fi
22549else
22550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022551sed 's/^/| /' conftest.$ac_ext >&5
22552
Reid Spencera773bd52006-08-04 18:18:08 +000022553
John Criswell47fdd832003-07-14 16:52:07 +000022554fi
Reid Spencera773bd52006-08-04 18:18:08 +000022555
Bill Wendlingebcceee2009-04-18 11:20:33 +000022556rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022557 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22559
22560 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22561 # Warning - without using the other run time loading flags,
22562 # -berok will link without error, but may produce a broken library.
22563 no_undefined_flag_F77=' ${wl}-bernotok'
22564 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022565 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022566 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022567 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022568 # This is similar to how AIX traditionally builds its shared libraries.
22569 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 +000022570 fi
22571 fi
22572 ;;
22573
22574 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022575 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 +000022576 hardcode_libdir_flag_spec_F77='-L$libdir'
22577 hardcode_minus_L_F77=yes
22578 # see comment about different semantics on the GNU ld section
22579 ld_shlibs_F77=no
22580 ;;
22581
Reid Spencer2706f8c2004-09-19 23:53:36 +000022582 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022583 export_dynamic_flag_spec_F77=-rdynamic
22584 ;;
22585
22586 cygwin* | mingw* | pw32*)
22587 # When not using gcc, we currently assume that we are using
22588 # Microsoft Visual C++.
22589 # hardcode_libdir_flag_spec is actually meaningless, as there is
22590 # no search path for DLLs.
22591 hardcode_libdir_flag_spec_F77=' '
22592 allow_undefined_flag_F77=unsupported
22593 # Tell ltmain to make .lib files, not .a files.
22594 libext=lib
22595 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022596 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022597 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022598 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 +000022599 # The linker will automatically build a .lib file if we build a DLL.
22600 old_archive_From_new_cmds_F77='true'
22601 # FIXME: Should let the user specify the lib program.
22602 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022603 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022604 enable_shared_with_static_runtimes_F77=yes
22605 ;;
22606
22607 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022608 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022609 rhapsody* | darwin1.[012])
22610 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22611 ;;
22612 *) # Darwin 1.3 on
22613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22614 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22615 else
22616 case ${MACOSX_DEPLOYMENT_TARGET} in
22617 10.[012])
22618 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22619 ;;
22620 10.*)
22621 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22622 ;;
22623 esac
22624 fi
22625 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022626 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022627 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022628 hardcode_direct_F77=no
22629 hardcode_automatic_F77=yes
22630 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022631 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022632 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022633 if test "$GCC" = yes ; then
22634 output_verbose_link_cmd='echo'
22635 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22636 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022637 # 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 +000022638 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}'
22639 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 +000022640 else
Reid Spencera773bd52006-08-04 18:18:08 +000022641 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022642 xlc*)
22643 output_verbose_link_cmd='echo'
22644 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22645 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022646 # 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 +000022647 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}'
22648 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 +000022649 ;;
22650 *)
22651 ld_shlibs_F77=no
22652 ;;
22653 esac
John Criswell47fdd832003-07-14 16:52:07 +000022654 fi
22655 ;;
22656
22657 dgux*)
22658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22659 hardcode_libdir_flag_spec_F77='-L$libdir'
22660 hardcode_shlibpath_var_F77=no
22661 ;;
22662
22663 freebsd1*)
22664 ld_shlibs_F77=no
22665 ;;
22666
22667 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22668 # support. Future versions do this automatically, but an explicit c++rt0.o
22669 # does not break anything, and helps significantly (at the cost of a little
22670 # extra space).
22671 freebsd2.2*)
22672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22673 hardcode_libdir_flag_spec_F77='-R$libdir'
22674 hardcode_direct_F77=yes
22675 hardcode_shlibpath_var_F77=no
22676 ;;
22677
22678 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22679 freebsd2*)
22680 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22681 hardcode_direct_F77=yes
22682 hardcode_minus_L_F77=yes
22683 hardcode_shlibpath_var_F77=no
22684 ;;
22685
22686 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022687 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022688 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22689 hardcode_libdir_flag_spec_F77='-R$libdir'
22690 hardcode_direct_F77=yes
22691 hardcode_shlibpath_var_F77=no
22692 ;;
22693
22694 hpux9*)
22695 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022696 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 +000022697 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022698 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 +000022699 fi
22700 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22701 hardcode_libdir_separator_F77=:
22702 hardcode_direct_F77=yes
22703
22704 # hardcode_minus_L: Not really in the search PATH,
22705 # but as the default location of the library.
22706 hardcode_minus_L_F77=yes
22707 export_dynamic_flag_spec_F77='${wl}-E'
22708 ;;
22709
Reid Spencera773bd52006-08-04 18:18:08 +000022710 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022712 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22713 else
22714 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22715 fi
22716 if test "$with_gnu_ld" = no; then
22717 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22718 hardcode_libdir_separator_F77=:
22719
22720 hardcode_direct_F77=yes
22721 export_dynamic_flag_spec_F77='${wl}-E'
22722
22723 # hardcode_minus_L: Not really in the search PATH,
22724 # but as the default location of the library.
22725 hardcode_minus_L_F77=yes
22726 fi
22727 ;;
22728
22729 hpux11*)
22730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22731 case $host_cpu in
22732 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022733 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022735 ia64*)
22736 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22737 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022738 *)
22739 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22740 ;;
22741 esac
22742 else
Reid Spencera773bd52006-08-04 18:18:08 +000022743 case $host_cpu in
22744 hppa*64*)
22745 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22746 ;;
22747 ia64*)
22748 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022749 ;;
22750 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022751 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 +000022752 ;;
22753 esac
22754 fi
22755 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022756 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22757 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022758
Reid Spencera773bd52006-08-04 18:18:08 +000022759 case $host_cpu in
22760 hppa*64*|ia64*)
22761 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22762 hardcode_direct_F77=no
22763 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022764 ;;
22765 *)
John Criswell47fdd832003-07-14 16:52:07 +000022766 hardcode_direct_F77=yes
22767 export_dynamic_flag_spec_F77='${wl}-E'
22768
22769 # hardcode_minus_L: Not really in the search PATH,
22770 # but as the default location of the library.
22771 hardcode_minus_L_F77=yes
22772 ;;
22773 esac
22774 fi
22775 ;;
22776
22777 irix5* | irix6* | nonstopux*)
22778 if test "$GCC" = yes; then
22779 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'
22780 else
22781 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'
22782 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22783 fi
22784 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22785 hardcode_libdir_separator_F77=:
22786 link_all_deplibs_F77=yes
22787 ;;
22788
22789 netbsd*)
22790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22791 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22792 else
22793 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22794 fi
22795 hardcode_libdir_flag_spec_F77='-R$libdir'
22796 hardcode_direct_F77=yes
22797 hardcode_shlibpath_var_F77=no
22798 ;;
22799
22800 newsos6)
22801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22802 hardcode_direct_F77=yes
22803 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22804 hardcode_libdir_separator_F77=:
22805 hardcode_shlibpath_var_F77=no
22806 ;;
22807
22808 openbsd*)
22809 hardcode_direct_F77=yes
22810 hardcode_shlibpath_var_F77=no
22811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22812 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022813 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 +000022814 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22815 export_dynamic_flag_spec_F77='${wl}-E'
22816 else
22817 case $host_os in
22818 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22819 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22820 hardcode_libdir_flag_spec_F77='-R$libdir'
22821 ;;
22822 *)
22823 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22824 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22825 ;;
22826 esac
22827 fi
22828 ;;
22829
22830 os2*)
22831 hardcode_libdir_flag_spec_F77='-L$libdir'
22832 hardcode_minus_L_F77=yes
22833 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022834 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 +000022835 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22836 ;;
22837
22838 osf3*)
22839 if test "$GCC" = yes; then
22840 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22841 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'
22842 else
22843 allow_undefined_flag_F77=' -expect_unresolved \*'
22844 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'
22845 fi
22846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22847 hardcode_libdir_separator_F77=:
22848 ;;
22849
22850 osf4* | osf5*) # as osf3* with the addition of -msym flag
22851 if test "$GCC" = yes; then
22852 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22853 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'
22854 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22855 else
22856 allow_undefined_flag_F77=' -expect_unresolved \*'
22857 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 +000022858 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 +000022859 $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 +000022860
John Criswell47fdd832003-07-14 16:52:07 +000022861 # Both c and cxx compiler support -rpath directly
22862 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22863 fi
22864 hardcode_libdir_separator_F77=:
22865 ;;
22866
John Criswell47fdd832003-07-14 16:52:07 +000022867 solaris*)
22868 no_undefined_flag_F77=' -z text'
22869 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022870 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022871 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22873 $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 +000022874 else
Reid Spencera773bd52006-08-04 18:18:08 +000022875 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022876 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22878 $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 +000022879 fi
22880 hardcode_libdir_flag_spec_F77='-R$libdir'
22881 hardcode_shlibpath_var_F77=no
22882 case $host_os in
22883 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022884 *)
22885 # The compiler driver will combine linker options so we
22886 # cannot just pass the convience library names through
22887 # without $wl, iff we do not link with $LD.
22888 # Luckily, gcc supports the same syntax we need for Sun Studio.
22889 # Supported since Solaris 2.6 (maybe 2.5.1?)
22890 case $wlarc in
22891 '')
22892 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22893 *)
22894 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' ;;
22895 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022896 esac
22897 link_all_deplibs_F77=yes
22898 ;;
22899
22900 sunos4*)
22901 if test "x$host_vendor" = xsequent; then
22902 # Use $CC to link under sequent, because it throws in some extra .o
22903 # files that make .init and .fini sections work.
22904 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22905 else
22906 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22907 fi
22908 hardcode_libdir_flag_spec_F77='-L$libdir'
22909 hardcode_direct_F77=yes
22910 hardcode_minus_L_F77=yes
22911 hardcode_shlibpath_var_F77=no
22912 ;;
22913
22914 sysv4)
22915 case $host_vendor in
22916 sni)
22917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22918 hardcode_direct_F77=yes # is this really true???
22919 ;;
22920 siemens)
22921 ## LD is ld it makes a PLAMLIB
22922 ## CC just makes a GrossModule.
22923 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22924 reload_cmds_F77='$CC -r -o $output$reload_objs'
22925 hardcode_direct_F77=no
22926 ;;
22927 motorola)
22928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22929 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22930 ;;
22931 esac
22932 runpath_var='LD_RUN_PATH'
22933 hardcode_shlibpath_var_F77=no
22934 ;;
22935
22936 sysv4.3*)
22937 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22938 hardcode_shlibpath_var_F77=no
22939 export_dynamic_flag_spec_F77='-Bexport'
22940 ;;
22941
22942 sysv4*MP*)
22943 if test -d /usr/nec; then
22944 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22945 hardcode_shlibpath_var_F77=no
22946 runpath_var=LD_RUN_PATH
22947 hardcode_runpath_var=yes
22948 ld_shlibs_F77=yes
22949 fi
22950 ;;
22951
Reid Spencera773bd52006-08-04 18:18:08 +000022952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22953 no_undefined_flag_F77='${wl}-z,text'
22954 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022955 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022956 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022957
John Criswell47fdd832003-07-14 16:52:07 +000022958 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022959 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22960 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 +000022961 else
Reid Spencera773bd52006-08-04 18:18:08 +000022962 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22963 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 +000022964 fi
John Criswell47fdd832003-07-14 16:52:07 +000022965 ;;
22966
Reid Spencera773bd52006-08-04 18:18:08 +000022967 sysv5* | sco3.2v5* | sco5v6*)
22968 # Note: We can NOT use -z defs as we might desire, because we do not
22969 # link with -lc, and that would cause any symbols used from libc to
22970 # always be unresolved, which means just about no library would
22971 # ever link correctly. If we're not using GNU ld we use -z text
22972 # though, which does catch some bad symbols but isn't as heavy-handed
22973 # as -z defs.
22974 no_undefined_flag_F77='${wl}-z,text'
22975 allow_undefined_flag_F77='${wl}-z,nodefs'
22976 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022977 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022978 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22979 hardcode_libdir_separator_F77=':'
22980 link_all_deplibs_F77=yes
22981 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022982 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022983
22984 if test "$GCC" = yes; then
22985 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22986 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22987 else
22988 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22989 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22990 fi
John Criswell47fdd832003-07-14 16:52:07 +000022991 ;;
22992
22993 uts4*)
22994 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22995 hardcode_libdir_flag_spec_F77='-L$libdir'
22996 hardcode_shlibpath_var_F77=no
22997 ;;
22998
22999 *)
23000 ld_shlibs_F77=no
23001 ;;
23002 esac
23003 fi
23004
Reid Spencera773bd52006-08-04 18:18:08 +000023005{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23006echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023007test "$ld_shlibs_F77" = no && can_build_shared=no
23008
John Criswell47fdd832003-07-14 16:52:07 +000023009#
23010# Do we need to explicitly link libc?
23011#
23012case "x$archive_cmds_need_lc_F77" in
23013x|xyes)
23014 # Assume -lc should be added
23015 archive_cmds_need_lc_F77=yes
23016
23017 if test "$enable_shared" = yes && test "$GCC" = yes; then
23018 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023019 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000023020 # FIXME: we may have to deal with multi-command sequences.
23021 ;;
23022 '$CC '*)
23023 # Test whether the compiler implicitly links with -lc since on some
23024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23025 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000023026 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23027echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023028 $rm conftest*
23029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23030
23031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23032 (eval $ac_compile) 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } 2>conftest.err; then
23036 soname=conftest
23037 lib=conftest
23038 libobjs=conftest.$ac_objext
23039 deplibs=
23040 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000023041 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000023042 compiler_flags=-v
23043 linker_flags=-v
23044 verstring=
23045 output_objdir=.
23046 libname=conftest
23047 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23048 allow_undefined_flag_F77=
23049 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23050 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23051 ac_status=$?
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }
23054 then
23055 archive_cmds_need_lc_F77=no
23056 else
23057 archive_cmds_need_lc_F77=yes
23058 fi
23059 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23060 else
23061 cat conftest.err 1>&5
23062 fi
23063 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000023064 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23065echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023066 ;;
23067 esac
23068 fi
23069 ;;
23070esac
23071
Reid Spencera773bd52006-08-04 18:18:08 +000023072{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23073echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023074library_names_spec=
23075libname_spec='lib$name'
23076soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000023077shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000023078postinstall_cmds=
23079postuninstall_cmds=
23080finish_cmds=
23081finish_eval=
23082shlibpath_var=
23083shlibpath_overrides_runpath=unknown
23084version_type=none
23085dynamic_linker="$host_os ld.so"
23086sys_lib_dlsearch_path_spec="/lib /usr/lib"
23087if test "$GCC" = yes; then
23088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23090 # if the path contains ";" then we assume it to be the separator
23091 # otherwise default to the standard path separator (i.e. ":") - it is
23092 # assumed that no part of a normal pathname contains ";" but that should
23093 # okay in the real world where ";" in dirpaths is itself problematic.
23094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23095 else
23096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23097 fi
23098else
23099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23100fi
23101need_lib_prefix=unknown
23102hardcode_into_libs=no
23103
23104# when you set need_version to no, make sure it does not cause -set_version
23105# flags to be left without arguments
23106need_version=unknown
23107
23108case $host_os in
23109aix3*)
23110 version_type=linux
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23112 shlibpath_var=LIBPATH
23113
23114 # AIX 3 has no versioning support, so we append a major version to the name.
23115 soname_spec='${libname}${release}${shared_ext}$major'
23116 ;;
23117
23118aix4* | aix5*)
23119 version_type=linux
23120 need_lib_prefix=no
23121 need_version=no
23122 hardcode_into_libs=yes
23123 if test "$host_cpu" = ia64; then
23124 # AIX 5 supports IA64
23125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23126 shlibpath_var=LD_LIBRARY_PATH
23127 else
23128 # With GCC up to 2.95.x, collect2 would create an import file
23129 # for dependence libraries. The import file would start with
23130 # the line `#! .'. This would cause the generated library to
23131 # depend on `.', always an invalid library. This was fixed in
23132 # development snapshots of GCC prior to 3.0.
23133 case $host_os in
23134 aix4 | aix4.[01] | aix4.[01].*)
23135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23136 echo ' yes '
23137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23138 :
23139 else
23140 can_build_shared=no
23141 fi
23142 ;;
23143 esac
23144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23145 # soname into executable. Probably we can add versioning support to
23146 # collect2, so additional links can be useful in future.
23147 if test "$aix_use_runtimelinking" = yes; then
23148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23149 # instead of lib<name>.a to let people know that these are not
23150 # typical AIX shared libraries.
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152 else
23153 # We preserve .a as extension for shared libraries through AIX4.2
23154 # and later when we are not doing run time linking.
23155 library_names_spec='${libname}${release}.a $libname.a'
23156 soname_spec='${libname}${release}${shared_ext}$major'
23157 fi
23158 shlibpath_var=LIBPATH
23159 fi
23160 ;;
23161
23162amigaos*)
23163 library_names_spec='$libname.ixlibrary $libname.a'
23164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023165 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 +000023166 ;;
23167
23168beos*)
23169 library_names_spec='${libname}${shared_ext}'
23170 dynamic_linker="$host_os ld.so"
23171 shlibpath_var=LIBRARY_PATH
23172 ;;
23173
Reid Spencer2706f8c2004-09-19 23:53:36 +000023174bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023175 version_type=linux
23176 need_version=no
23177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23178 soname_spec='${libname}${release}${shared_ext}$major'
23179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23180 shlibpath_var=LD_LIBRARY_PATH
23181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23183 # the default ld.so.conf also contains /usr/contrib/lib and
23184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23185 # libtool to hard-code these into programs
23186 ;;
23187
23188cygwin* | mingw* | pw32*)
23189 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023190 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023191 need_version=no
23192 need_lib_prefix=no
23193
23194 case $GCC,$host_os in
23195 yes,cygwin* | yes,mingw* | yes,pw32*)
23196 library_names_spec='$libname.dll.a'
23197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023198 postinstall_cmds='base_file=`basename \${file}`~
23199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23200 dldir=$destdir/`dirname \$dlpath`~
23201 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023202 $install_prog $dir/$dlname \$dldir/$dlname~
23203 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23205 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023206 $rm \$dlpath'
23207 shlibpath_overrides_runpath=yes
23208
23209 case $host_os in
23210 cygwin*)
23211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23212 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 +000023213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023214 ;;
23215 mingw*)
23216 # MinGW DLLs use traditional 'lib' prefix
23217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23220 # It is most probably a Windows format PATH printed by
23221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23222 # path with ; separators, and with drive letters. We can handle the
23223 # drive letters (cygwin fileutils understands them), so leave them,
23224 # especially as we might pass files found there to a mingw objdump,
23225 # which wouldn't understand a cygwinified path. Ahh.
23226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23227 else
23228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23229 fi
23230 ;;
23231 pw32*)
23232 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023233 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 +000023234 ;;
23235 esac
23236 ;;
23237
23238 *)
23239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23240 ;;
23241 esac
23242 dynamic_linker='Win32 ld.exe'
23243 # FIXME: first we should search . and the directory the executable is in
23244 shlibpath_var=PATH
23245 ;;
23246
23247darwin* | rhapsody*)
23248 dynamic_linker="$host_os dyld"
23249 version_type=darwin
23250 need_lib_prefix=no
23251 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023253 soname_spec='${libname}${release}${major}$shared_ext'
23254 shlibpath_overrides_runpath=yes
23255 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023256 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258 if test "$GCC" = yes; then
23259 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"`
23260 else
23261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023262 fi
23263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23264 ;;
23265
23266dgux*)
23267 version_type=linux
23268 need_lib_prefix=no
23269 need_version=no
23270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23271 soname_spec='${libname}${release}${shared_ext}$major'
23272 shlibpath_var=LD_LIBRARY_PATH
23273 ;;
23274
23275freebsd1*)
23276 dynamic_linker=no
23277 ;;
23278
Reid Spencer2706f8c2004-09-19 23:53:36 +000023279kfreebsd*-gnu)
23280 version_type=linux
23281 need_lib_prefix=no
23282 need_version=no
23283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23284 soname_spec='${libname}${release}${shared_ext}$major'
23285 shlibpath_var=LD_LIBRARY_PATH
23286 shlibpath_overrides_runpath=no
23287 hardcode_into_libs=yes
23288 dynamic_linker='GNU ld.so'
23289 ;;
23290
Reid Spencera773bd52006-08-04 18:18:08 +000023291freebsd* | dragonfly*)
23292 # DragonFly does not have aout. When/if they implement a new
23293 # versioning mechanism, adjust this.
23294 if test -x /usr/bin/objformat; then
23295 objformat=`/usr/bin/objformat`
23296 else
23297 case $host_os in
23298 freebsd[123]*) objformat=aout ;;
23299 *) objformat=elf ;;
23300 esac
23301 fi
John Criswell47fdd832003-07-14 16:52:07 +000023302 version_type=freebsd-$objformat
23303 case $version_type in
23304 freebsd-elf*)
23305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23306 need_version=no
23307 need_lib_prefix=no
23308 ;;
23309 freebsd-*)
23310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23311 need_version=yes
23312 ;;
23313 esac
23314 shlibpath_var=LD_LIBRARY_PATH
23315 case $host_os in
23316 freebsd2*)
23317 shlibpath_overrides_runpath=yes
23318 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023319 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023320 shlibpath_overrides_runpath=yes
23321 hardcode_into_libs=yes
23322 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023325 shlibpath_overrides_runpath=no
23326 hardcode_into_libs=yes
23327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023328 freebsd*) # from 4.6 on
23329 shlibpath_overrides_runpath=yes
23330 hardcode_into_libs=yes
23331 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023332 esac
23333 ;;
23334
23335gnu*)
23336 version_type=linux
23337 need_lib_prefix=no
23338 need_version=no
23339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23340 soname_spec='${libname}${release}${shared_ext}$major'
23341 shlibpath_var=LD_LIBRARY_PATH
23342 hardcode_into_libs=yes
23343 ;;
23344
23345hpux9* | hpux10* | hpux11*)
23346 # Give a soname corresponding to the major version so that dld.sl refuses to
23347 # link against other versions.
23348 version_type=sunos
23349 need_lib_prefix=no
23350 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023351 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023352 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023353 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023354 hardcode_into_libs=yes
23355 dynamic_linker="$host_os dld.so"
23356 shlibpath_var=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23359 soname_spec='${libname}${release}${shared_ext}$major'
23360 if test "X$HPUX_IA64_MODE" = X32; then
23361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23362 else
23363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23364 fi
23365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23366 ;;
23367 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023368 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023369 hardcode_into_libs=yes
23370 dynamic_linker="$host_os dld.sl"
23371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23374 soname_spec='${libname}${release}${shared_ext}$major'
23375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23377 ;;
23378 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023379 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023380 dynamic_linker="$host_os dld.sl"
23381 shlibpath_var=SHLIB_PATH
23382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23384 soname_spec='${libname}${release}${shared_ext}$major'
23385 ;;
23386 esac
23387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23388 postinstall_cmds='chmod 555 $lib'
23389 ;;
23390
Reid Spencera773bd52006-08-04 18:18:08 +000023391interix3*)
23392 version_type=linux
23393 need_lib_prefix=no
23394 need_version=no
23395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23396 soname_spec='${libname}${release}${shared_ext}$major'
23397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23398 shlibpath_var=LD_LIBRARY_PATH
23399 shlibpath_overrides_runpath=no
23400 hardcode_into_libs=yes
23401 ;;
23402
John Criswell47fdd832003-07-14 16:52:07 +000023403irix5* | irix6* | nonstopux*)
23404 case $host_os in
23405 nonstopux*) version_type=nonstopux ;;
23406 *)
23407 if test "$lt_cv_prog_gnu_ld" = yes; then
23408 version_type=linux
23409 else
23410 version_type=irix
23411 fi ;;
23412 esac
23413 need_lib_prefix=no
23414 need_version=no
23415 soname_spec='${libname}${release}${shared_ext}$major'
23416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23417 case $host_os in
23418 irix5* | nonstopux*)
23419 libsuff= shlibsuff=
23420 ;;
23421 *)
23422 case $LD in # libtool.m4 will add one of these switches to LD
23423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23424 libsuff= shlibsuff= libmagic=32-bit;;
23425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23426 libsuff=32 shlibsuff=N32 libmagic=N32;;
23427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23429 *) libsuff= shlibsuff= libmagic=never-match;;
23430 esac
23431 ;;
23432 esac
23433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23434 shlibpath_overrides_runpath=no
23435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23437 hardcode_into_libs=yes
23438 ;;
23439
23440# No shared lib support for Linux oldld, aout, or coff.
23441linux*oldld* | linux*aout* | linux*coff*)
23442 dynamic_linker=no
23443 ;;
23444
23445# This must be Linux ELF.
23446linux*)
23447 version_type=linux
23448 need_lib_prefix=no
23449 need_version=no
23450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23451 soname_spec='${libname}${release}${shared_ext}$major'
23452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23453 shlibpath_var=LD_LIBRARY_PATH
23454 shlibpath_overrides_runpath=no
23455 # This implies no fast_install, which is unacceptable.
23456 # Some rework will be needed to allow for fast_install
23457 # before this can be enabled.
23458 hardcode_into_libs=yes
23459
Reid Spencer2706f8c2004-09-19 23:53:36 +000023460 # Append ld.so.conf contents to the search path
23461 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023462 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 +000023463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23464 fi
23465
John Criswell47fdd832003-07-14 16:52:07 +000023466 # We used to test for /lib/ld.so.1 and disable shared libraries on
23467 # powerpc, because MkLinux only supported shared libraries with the
23468 # GNU dynamic linker. Since this was broken with cross compilers,
23469 # most powerpc-linux boxes support dynamic linking these days and
23470 # people can always --disable-shared, the test was removed, and we
23471 # assume the GNU/Linux dynamic linker is in use.
23472 dynamic_linker='GNU/Linux ld.so'
23473 ;;
23474
Reid Spencer2706f8c2004-09-19 23:53:36 +000023475knetbsd*-gnu)
23476 version_type=linux
23477 need_lib_prefix=no
23478 need_version=no
23479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23480 soname_spec='${libname}${release}${shared_ext}$major'
23481 shlibpath_var=LD_LIBRARY_PATH
23482 shlibpath_overrides_runpath=no
23483 hardcode_into_libs=yes
23484 dynamic_linker='GNU ld.so'
23485 ;;
23486
John Criswell47fdd832003-07-14 16:52:07 +000023487netbsd*)
23488 version_type=sunos
23489 need_lib_prefix=no
23490 need_version=no
23491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23494 dynamic_linker='NetBSD (a.out) ld.so'
23495 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023497 soname_spec='${libname}${release}${shared_ext}$major'
23498 dynamic_linker='NetBSD ld.elf_so'
23499 fi
23500 shlibpath_var=LD_LIBRARY_PATH
23501 shlibpath_overrides_runpath=yes
23502 hardcode_into_libs=yes
23503 ;;
23504
23505newsos6)
23506 version_type=linux
23507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23508 shlibpath_var=LD_LIBRARY_PATH
23509 shlibpath_overrides_runpath=yes
23510 ;;
23511
Reid Spencer2706f8c2004-09-19 23:53:36 +000023512nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023513 version_type=linux
23514 need_lib_prefix=no
23515 need_version=no
23516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23517 soname_spec='${libname}${release}${shared_ext}$major'
23518 shlibpath_var=LD_LIBRARY_PATH
23519 shlibpath_overrides_runpath=yes
23520 ;;
23521
23522openbsd*)
23523 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023524 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023525 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23527 case $host_os in
23528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23529 *) need_version=no ;;
23530 esac
John Criswell47fdd832003-07-14 16:52:07 +000023531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23533 shlibpath_var=LD_LIBRARY_PATH
23534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23535 case $host_os in
23536 openbsd2.[89] | openbsd2.[89].*)
23537 shlibpath_overrides_runpath=no
23538 ;;
23539 *)
23540 shlibpath_overrides_runpath=yes
23541 ;;
23542 esac
23543 else
23544 shlibpath_overrides_runpath=yes
23545 fi
23546 ;;
23547
23548os2*)
23549 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023550 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023551 need_lib_prefix=no
23552 library_names_spec='$libname${shared_ext} $libname.a'
23553 dynamic_linker='OS/2 ld.exe'
23554 shlibpath_var=LIBPATH
23555 ;;
23556
23557osf3* | osf4* | osf5*)
23558 version_type=osf
23559 need_lib_prefix=no
23560 need_version=no
23561 soname_spec='${libname}${release}${shared_ext}$major'
23562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23563 shlibpath_var=LD_LIBRARY_PATH
23564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23566 ;;
23567
John Criswell47fdd832003-07-14 16:52:07 +000023568solaris*)
23569 version_type=linux
23570 need_lib_prefix=no
23571 need_version=no
23572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23573 soname_spec='${libname}${release}${shared_ext}$major'
23574 shlibpath_var=LD_LIBRARY_PATH
23575 shlibpath_overrides_runpath=yes
23576 hardcode_into_libs=yes
23577 # ldd complains unless libraries are executable
23578 postinstall_cmds='chmod +x $lib'
23579 ;;
23580
23581sunos4*)
23582 version_type=sunos
23583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23585 shlibpath_var=LD_LIBRARY_PATH
23586 shlibpath_overrides_runpath=yes
23587 if test "$with_gnu_ld" = yes; then
23588 need_lib_prefix=no
23589 fi
23590 need_version=yes
23591 ;;
23592
Reid Spencera773bd52006-08-04 18:18:08 +000023593sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023594 version_type=linux
23595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23596 soname_spec='${libname}${release}${shared_ext}$major'
23597 shlibpath_var=LD_LIBRARY_PATH
23598 case $host_vendor in
23599 sni)
23600 shlibpath_overrides_runpath=no
23601 need_lib_prefix=no
23602 export_dynamic_flag_spec='${wl}-Blargedynsym'
23603 runpath_var=LD_RUN_PATH
23604 ;;
23605 siemens)
23606 need_lib_prefix=no
23607 ;;
23608 motorola)
23609 need_lib_prefix=no
23610 need_version=no
23611 shlibpath_overrides_runpath=no
23612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23613 ;;
23614 esac
23615 ;;
23616
23617sysv4*MP*)
23618 if test -d /usr/nec ;then
23619 version_type=linux
23620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23621 soname_spec='$libname${shared_ext}.$major'
23622 shlibpath_var=LD_LIBRARY_PATH
23623 fi
23624 ;;
23625
Reid Spencera773bd52006-08-04 18:18:08 +000023626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23627 version_type=freebsd-elf
23628 need_lib_prefix=no
23629 need_version=no
23630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23631 soname_spec='${libname}${release}${shared_ext}$major'
23632 shlibpath_var=LD_LIBRARY_PATH
23633 hardcode_into_libs=yes
23634 if test "$with_gnu_ld" = yes; then
23635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23636 shlibpath_overrides_runpath=no
23637 else
23638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23639 shlibpath_overrides_runpath=yes
23640 case $host_os in
23641 sco3.2v5*)
23642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23643 ;;
23644 esac
23645 fi
23646 sys_lib_dlsearch_path_spec='/usr/lib'
23647 ;;
23648
John Criswell47fdd832003-07-14 16:52:07 +000023649uts4*)
23650 version_type=linux
23651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23652 soname_spec='${libname}${release}${shared_ext}$major'
23653 shlibpath_var=LD_LIBRARY_PATH
23654 ;;
23655
23656*)
23657 dynamic_linker=no
23658 ;;
23659esac
Reid Spencera773bd52006-08-04 18:18:08 +000023660{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23661echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023662test "$dynamic_linker" = no && can_build_shared=no
23663
Reid Spencera773bd52006-08-04 18:18:08 +000023664variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23665if test "$GCC" = yes; then
23666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23667fi
23668
23669{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23670echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023671hardcode_action_F77=
23672if test -n "$hardcode_libdir_flag_spec_F77" || \
23673 test -n "$runpath_var_F77" || \
23674 test "X$hardcode_automatic_F77" = "Xyes" ; then
23675
23676 # We can hardcode non-existant directories.
23677 if test "$hardcode_direct_F77" != no &&
23678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23679 # have to relink, otherwise we might link with an installed library
23680 # when we should be linking with a yet-to-be-installed one
23681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23682 test "$hardcode_minus_L_F77" != no; then
23683 # Linking always hardcodes the temporary library directory.
23684 hardcode_action_F77=relink
23685 else
23686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23687 hardcode_action_F77=immediate
23688 fi
23689else
23690 # We cannot hardcode anything, or else we can only hardcode existing
23691 # directories.
23692 hardcode_action_F77=unsupported
23693fi
Reid Spencera773bd52006-08-04 18:18:08 +000023694{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23695echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023696
23697if test "$hardcode_action_F77" = relink; then
23698 # Fast installation is not supported
23699 enable_fast_install=no
23700elif test "$shlibpath_overrides_runpath" = yes ||
23701 test "$enable_shared" = no; then
23702 # Fast installation is not necessary
23703 enable_fast_install=needless
23704fi
23705
John Criswell47fdd832003-07-14 16:52:07 +000023706
23707# The else clause should only fire when bootstrapping the
23708# libtool distribution, otherwise you forgot to ship ltmain.sh
23709# with your package, and you will get complaints that there are
23710# no rules to generate ltmain.sh.
23711if test -f "$ltmain"; then
23712 # See if we are running on zsh, and set the options which allow our commands through
23713 # without removal of \ escapes.
23714 if test -n "${ZSH_VERSION+set}" ; then
23715 setopt NO_GLOB_SUBST
23716 fi
23717 # Now quote all the things that may contain metacharacters while being
23718 # careful not to overquote the AC_SUBSTed values. We take copies of the
23719 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023720 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 +000023721 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23724 deplibs_check_method reload_flag reload_cmds need_locks \
23725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23726 lt_cv_sys_global_symbol_to_c_name_address \
23727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23728 old_postinstall_cmds old_postuninstall_cmds \
23729 compiler_F77 \
23730 CC_F77 \
23731 LD_F77 \
23732 lt_prog_compiler_wl_F77 \
23733 lt_prog_compiler_pic_F77 \
23734 lt_prog_compiler_static_F77 \
23735 lt_prog_compiler_no_builtin_flag_F77 \
23736 export_dynamic_flag_spec_F77 \
23737 thread_safe_flag_spec_F77 \
23738 whole_archive_flag_spec_F77 \
23739 enable_shared_with_static_runtimes_F77 \
23740 old_archive_cmds_F77 \
23741 old_archive_from_new_cmds_F77 \
23742 predep_objects_F77 \
23743 postdep_objects_F77 \
23744 predeps_F77 \
23745 postdeps_F77 \
23746 compiler_lib_search_path_F77 \
23747 archive_cmds_F77 \
23748 archive_expsym_cmds_F77 \
23749 postinstall_cmds_F77 \
23750 postuninstall_cmds_F77 \
23751 old_archive_from_expsyms_cmds_F77 \
23752 allow_undefined_flag_F77 \
23753 no_undefined_flag_F77 \
23754 export_symbols_cmds_F77 \
23755 hardcode_libdir_flag_spec_F77 \
23756 hardcode_libdir_flag_spec_ld_F77 \
23757 hardcode_libdir_separator_F77 \
23758 hardcode_automatic_F77 \
23759 module_cmds_F77 \
23760 module_expsym_cmds_F77 \
23761 lt_cv_prog_compiler_c_o_F77 \
23762 exclude_expsyms_F77 \
23763 include_expsyms_F77; do
23764
23765 case $var in
23766 old_archive_cmds_F77 | \
23767 old_archive_from_new_cmds_F77 | \
23768 archive_cmds_F77 | \
23769 archive_expsym_cmds_F77 | \
23770 module_cmds_F77 | \
23771 module_expsym_cmds_F77 | \
23772 old_archive_from_expsyms_cmds_F77 | \
23773 export_symbols_cmds_F77 | \
23774 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23775 postinstall_cmds | postuninstall_cmds | \
23776 old_postinstall_cmds | old_postuninstall_cmds | \
23777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23778 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023779 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 +000023780 ;;
23781 *)
23782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23783 ;;
23784 esac
23785 done
23786
23787 case $lt_echo in
23788 *'\$0 --fallback-echo"')
23789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23790 ;;
23791 esac
23792
23793cfgfile="$ofile"
23794
23795 cat <<__EOF__ >> "$cfgfile"
23796# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23797
23798# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23799
23800# Shell to use when invoking shell scripts.
23801SHELL=$lt_SHELL
23802
23803# Whether or not to build shared libraries.
23804build_libtool_libs=$enable_shared
23805
23806# Whether or not to build static libraries.
23807build_old_libs=$enable_static
23808
23809# Whether or not to add -lc for building shared libraries.
23810build_libtool_need_lc=$archive_cmds_need_lc_F77
23811
23812# Whether or not to disallow shared libs when runtime libs are static
23813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23814
23815# Whether or not to optimize for fast installation.
23816fast_install=$enable_fast_install
23817
23818# The host system.
23819host_alias=$host_alias
23820host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023821host_os=$host_os
23822
23823# The build system.
23824build_alias=$build_alias
23825build=$build
23826build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023827
23828# An echo program that does not interpret backslashes.
23829echo=$lt_echo
23830
23831# The archiver.
23832AR=$lt_AR
23833AR_FLAGS=$lt_AR_FLAGS
23834
23835# A C compiler.
23836LTCC=$lt_LTCC
23837
Reid Spencera773bd52006-08-04 18:18:08 +000023838# LTCC compiler flags.
23839LTCFLAGS=$lt_LTCFLAGS
23840
John Criswell47fdd832003-07-14 16:52:07 +000023841# A language-specific compiler.
23842CC=$lt_compiler_F77
23843
23844# Is the compiler the GNU C compiler?
23845with_gcc=$GCC_F77
23846
23847# An ERE matcher.
23848EGREP=$lt_EGREP
23849
23850# The linker used to build libraries.
23851LD=$lt_LD_F77
23852
23853# Whether we need hard or soft links.
23854LN_S=$lt_LN_S
23855
23856# A BSD-compatible nm program.
23857NM=$lt_NM
23858
23859# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023860STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023861
23862# Used to examine libraries when file_magic_cmd begins "file"
23863MAGIC_CMD=$MAGIC_CMD
23864
23865# Used on cygwin: DLL creation program.
23866DLLTOOL="$DLLTOOL"
23867
23868# Used on cygwin: object dumper.
23869OBJDUMP="$OBJDUMP"
23870
23871# Used on cygwin: assembler.
23872AS="$AS"
23873
23874# The name of the directory that contains temporary libtool files.
23875objdir=$objdir
23876
23877# How to create reloadable object files.
23878reload_flag=$lt_reload_flag
23879reload_cmds=$lt_reload_cmds
23880
23881# How to pass a linker flag through the compiler.
23882wl=$lt_lt_prog_compiler_wl_F77
23883
23884# Object file suffix (normally "o").
23885objext="$ac_objext"
23886
23887# Old archive suffix (normally "a").
23888libext="$libext"
23889
23890# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023891shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023892
23893# Executable file suffix (normally "").
23894exeext="$exeext"
23895
23896# Additional compiler flags for building library objects.
23897pic_flag=$lt_lt_prog_compiler_pic_F77
23898pic_mode=$pic_mode
23899
23900# What is the maximum length of a command?
23901max_cmd_len=$lt_cv_sys_max_cmd_len
23902
23903# Does compiler simultaneously support -c and -o options?
23904compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23905
Reid Spencera773bd52006-08-04 18:18:08 +000023906# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023907need_locks=$lt_need_locks
23908
23909# Do we need the lib prefix for modules?
23910need_lib_prefix=$need_lib_prefix
23911
23912# Do we need a version for libraries?
23913need_version=$need_version
23914
23915# Whether dlopen is supported.
23916dlopen_support=$enable_dlopen
23917
23918# Whether dlopen of programs is supported.
23919dlopen_self=$enable_dlopen_self
23920
23921# Whether dlopen of statically linked programs is supported.
23922dlopen_self_static=$enable_dlopen_self_static
23923
23924# Compiler flag to prevent dynamic linking.
23925link_static_flag=$lt_lt_prog_compiler_static_F77
23926
23927# Compiler flag to turn off builtin functions.
23928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23929
23930# Compiler flag to allow reflexive dlopens.
23931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23932
23933# Compiler flag to generate shared objects directly from archives.
23934whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23935
23936# Compiler flag to generate thread-safe objects.
23937thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23938
23939# Library versioning type.
23940version_type=$version_type
23941
23942# Format of library name prefix.
23943libname_spec=$lt_libname_spec
23944
23945# List of archive names. First name is the real one, the rest are links.
23946# The last name is the one that the linker finds with -lNAME.
23947library_names_spec=$lt_library_names_spec
23948
23949# The coded name of the library, if different from the real name.
23950soname_spec=$lt_soname_spec
23951
23952# Commands used to build and install an old-style archive.
23953RANLIB=$lt_RANLIB
23954old_archive_cmds=$lt_old_archive_cmds_F77
23955old_postinstall_cmds=$lt_old_postinstall_cmds
23956old_postuninstall_cmds=$lt_old_postuninstall_cmds
23957
23958# Create an old-style archive from a shared archive.
23959old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23960
23961# Create a temporary old-style archive to link instead of a shared archive.
23962old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23963
23964# Commands used to build and install a shared archive.
23965archive_cmds=$lt_archive_cmds_F77
23966archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23967postinstall_cmds=$lt_postinstall_cmds
23968postuninstall_cmds=$lt_postuninstall_cmds
23969
23970# Commands used to build a loadable module (assumed same as above if empty)
23971module_cmds=$lt_module_cmds_F77
23972module_expsym_cmds=$lt_module_expsym_cmds_F77
23973
23974# Commands to strip libraries.
23975old_striplib=$lt_old_striplib
23976striplib=$lt_striplib
23977
23978# Dependencies to place before the objects being linked to create a
23979# shared library.
23980predep_objects=$lt_predep_objects_F77
23981
23982# Dependencies to place after the objects being linked to create a
23983# shared library.
23984postdep_objects=$lt_postdep_objects_F77
23985
23986# Dependencies to place before the objects being linked to create a
23987# shared library.
23988predeps=$lt_predeps_F77
23989
23990# Dependencies to place after the objects being linked to create a
23991# shared library.
23992postdeps=$lt_postdeps_F77
23993
23994# The library search path used internally by the compiler when linking
23995# a shared library.
23996compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23997
23998# Method to check whether dependent libraries are shared objects.
23999deplibs_check_method=$lt_deplibs_check_method
24000
24001# Command to use when deplibs_check_method == file_magic.
24002file_magic_cmd=$lt_file_magic_cmd
24003
24004# Flag that allows shared libraries with undefined symbols to be built.
24005allow_undefined_flag=$lt_allow_undefined_flag_F77
24006
24007# Flag that forces no undefined symbols.
24008no_undefined_flag=$lt_no_undefined_flag_F77
24009
24010# Commands used to finish a libtool library installation in a directory.
24011finish_cmds=$lt_finish_cmds
24012
24013# Same as above, but a single script fragment to be evaled but not shown.
24014finish_eval=$lt_finish_eval
24015
24016# Take the output of nm and produce a listing of raw symbols and C names.
24017global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24018
24019# Transform the output of nm in a proper C declaration
24020global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24021
24022# Transform the output of nm in a C name address pair
24023global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24024
24025# This is the shared library runtime path variable.
24026runpath_var=$runpath_var
24027
24028# This is the shared library path variable.
24029shlibpath_var=$shlibpath_var
24030
24031# Is shlibpath searched before the hard-coded library search path?
24032shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24033
24034# How to hardcode a shared library path into an executable.
24035hardcode_action=$hardcode_action_F77
24036
24037# Whether we should hardcode library paths into libraries.
24038hardcode_into_libs=$hardcode_into_libs
24039
24040# Flag to hardcode \$libdir into a binary during linking.
24041# This must work even if \$libdir does not exist.
24042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24043
24044# If ld is used when linking, flag to hardcode \$libdir into
24045# a binary during linking. This must work even if \$libdir does
24046# not exist.
24047hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24048
24049# Whether we need a single -rpath flag with a separated argument.
24050hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24051
24052# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24053# resulting binary.
24054hardcode_direct=$hardcode_direct_F77
24055
24056# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24057# resulting binary.
24058hardcode_minus_L=$hardcode_minus_L_F77
24059
24060# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24061# the resulting binary.
24062hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24063
24064# Set to yes if building a shared library automatically hardcodes DIR into the library
24065# and all subsequent libraries and executables linked against it.
24066hardcode_automatic=$hardcode_automatic_F77
24067
24068# Variables whose values should be saved in libtool wrapper scripts and
24069# restored at relink time.
24070variables_saved_for_relink="$variables_saved_for_relink"
24071
24072# Whether libtool must link a program against all its dependency libraries.
24073link_all_deplibs=$link_all_deplibs_F77
24074
24075# Compile-time system search path for libraries
24076sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24077
24078# Run-time system search path for libraries
24079sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24080
24081# Fix the shell variable \$srcfile for the compiler.
24082fix_srcfile_path="$fix_srcfile_path_F77"
24083
24084# Set to yes if exported symbols are required.
24085always_export_symbols=$always_export_symbols_F77
24086
24087# The commands to list exported symbols.
24088export_symbols_cmds=$lt_export_symbols_cmds_F77
24089
24090# The commands to extract the exported symbol list from a shared archive.
24091extract_expsyms_cmds=$lt_extract_expsyms_cmds
24092
24093# Symbols that should not be listed in the preloaded symbols.
24094exclude_expsyms=$lt_exclude_expsyms_F77
24095
24096# Symbols that must always be exported.
24097include_expsyms=$lt_include_expsyms_F77
24098
24099# ### END LIBTOOL TAG CONFIG: $tagname
24100
24101__EOF__
24102
24103
24104else
24105 # If there is no Makefile yet, we rely on a make rule to execute
24106 # `config.status --recheck' to rerun these tests and create the
24107 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024108 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24109 if test -f "$ltmain_in"; then
24110 test -f Makefile && make "$ltmain"
24111 fi
John Criswell47fdd832003-07-14 16:52:07 +000024112fi
24113
24114
24115ac_ext=c
24116ac_cpp='$CPP $CPPFLAGS'
24117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119ac_compiler_gnu=$ac_cv_c_compiler_gnu
24120
24121CC="$lt_save_CC"
24122
24123 else
24124 tagname=""
24125 fi
24126 ;;
24127
24128 GCJ)
24129 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024130 ac_ext=c
24131ac_cpp='$CPP $CPPFLAGS'
24132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24134ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024135
24136
24137# Source file extension for Java test sources.
24138ac_ext=java
24139
24140# Object file extension for compiled Java test sources.
24141objext=o
24142objext_GCJ=$objext
24143
24144# Code to be used in simple compile tests
24145lt_simple_compile_test_code="class foo {}\n"
24146
24147# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024148lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024149
24150# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24151
24152# If no C compiler was specified, use CC.
24153LTCC=${LTCC-"$CC"}
24154
Reid Spencera773bd52006-08-04 18:18:08 +000024155# If no C compiler flags were specified, use CFLAGS.
24156LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24157
John Criswell47fdd832003-07-14 16:52:07 +000024158# Allow CC to be a program name with arguments.
24159compiler=$CC
24160
24161
Reid Spencera773bd52006-08-04 18:18:08 +000024162# save warnings/boilerplate of simple test code
24163ac_outfile=conftest.$ac_objext
24164printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24165eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24166_lt_compiler_boilerplate=`cat conftest.err`
24167$rm conftest*
24168
24169ac_outfile=conftest.$ac_objext
24170printf "$lt_simple_link_test_code" >conftest.$ac_ext
24171eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24172_lt_linker_boilerplate=`cat conftest.err`
24173$rm conftest*
24174
24175
John Criswell47fdd832003-07-14 16:52:07 +000024176# Allow CC to be a program name with arguments.
24177lt_save_CC="$CC"
24178CC=${GCJ-"gcj"}
24179compiler=$CC
24180compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024181for cc_temp in $compiler""; do
24182 case $cc_temp in
24183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24185 \-*) ;;
24186 *) break;;
24187 esac
24188done
24189cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24190
John Criswell47fdd832003-07-14 16:52:07 +000024191
24192# GCJ did not exist at the time GCC didn't implicitly link libc in.
24193archive_cmds_need_lc_GCJ=no
24194
Reid Spencera773bd52006-08-04 18:18:08 +000024195old_archive_cmds_GCJ=$old_archive_cmds
24196
John Criswell47fdd832003-07-14 16:52:07 +000024197
24198lt_prog_compiler_no_builtin_flag_GCJ=
24199
24200if test "$GCC" = yes; then
24201 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24202
Reid Spencer2706f8c2004-09-19 23:53:36 +000024203
Reid Spencera773bd52006-08-04 18:18:08 +000024204{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24205echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024206if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24208else
24209 lt_cv_prog_compiler_rtti_exceptions=no
24210 ac_outfile=conftest.$ac_objext
24211 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24212 lt_compiler_flag="-fno-rtti -fno-exceptions"
24213 # Insert the option either (1) after the last *FLAGS variable, or
24214 # (2) before a word containing "conftest.", or (3) at the end.
24215 # Note that $ac_compile itself does not contain backslashes and begins
24216 # with a dollar sign (not a hyphen), so the echo should work correctly.
24217 # The option is referenced via a variable to avoid confusing sed.
24218 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24221 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000024222 (eval echo "\"\$as_me:24222: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024223 (eval "$lt_compile" 2>conftest.err)
24224 ac_status=$?
24225 cat conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000024226 echo "$as_me:24226: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024227 if (exit $ac_status) && test -s "$ac_outfile"; then
24228 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024229 # So say no if there are warnings other than the usual output.
24230 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024233 lt_cv_prog_compiler_rtti_exceptions=yes
24234 fi
24235 fi
24236 $rm conftest*
24237
24238fi
Reid Spencera773bd52006-08-04 18:18:08 +000024239{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24240echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024241
24242if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24243 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24244else
24245 :
24246fi
24247
24248fi
24249
24250lt_prog_compiler_wl_GCJ=
24251lt_prog_compiler_pic_GCJ=
24252lt_prog_compiler_static_GCJ=
24253
Reid Spencera773bd52006-08-04 18:18:08 +000024254{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24255echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024256
24257 if test "$GCC" = yes; then
24258 lt_prog_compiler_wl_GCJ='-Wl,'
24259 lt_prog_compiler_static_GCJ='-static'
24260
24261 case $host_os in
24262 aix*)
24263 # All AIX code is PIC.
24264 if test "$host_cpu" = ia64; then
24265 # AIX 5 now supports IA64 processor
24266 lt_prog_compiler_static_GCJ='-Bstatic'
24267 fi
24268 ;;
24269
24270 amigaos*)
24271 # FIXME: we need at least 68020 code to build shared libraries, but
24272 # adding the `-m68020' flag to GCC prevents building anything better,
24273 # like `-m68040'.
24274 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24275 ;;
24276
24277 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24278 # PIC is the default for these OSes.
24279 ;;
24280
24281 mingw* | pw32* | os2*)
24282 # This hack is so that the source file can tell whether it is being
24283 # built for inclusion in a dll (and should export symbols for example).
24284 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24285 ;;
24286
24287 darwin* | rhapsody*)
24288 # PIC is the default on this platform
24289 # Common symbols not allowed in MH_DYLIB files
24290 lt_prog_compiler_pic_GCJ='-fno-common'
24291 ;;
24292
Reid Spencera773bd52006-08-04 18:18:08 +000024293 interix3*)
24294 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24295 # Instead, we relocate shared libraries at runtime.
24296 ;;
24297
John Criswell47fdd832003-07-14 16:52:07 +000024298 msdosdjgpp*)
24299 # Just because we use GCC doesn't mean we suddenly get shared libraries
24300 # on systems that don't support them.
24301 lt_prog_compiler_can_build_shared_GCJ=no
24302 enable_shared=no
24303 ;;
24304
24305 sysv4*MP*)
24306 if test -d /usr/nec; then
24307 lt_prog_compiler_pic_GCJ=-Kconform_pic
24308 fi
24309 ;;
24310
24311 hpux*)
24312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24313 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024314 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024315 hppa*64*|ia64*)
24316 # +Z the default
24317 ;;
24318 *)
24319 lt_prog_compiler_pic_GCJ='-fPIC'
24320 ;;
24321 esac
24322 ;;
24323
24324 *)
24325 lt_prog_compiler_pic_GCJ='-fPIC'
24326 ;;
24327 esac
24328 else
24329 # PORTME Check for flag to pass linker flags through the system compiler.
24330 case $host_os in
24331 aix*)
24332 lt_prog_compiler_wl_GCJ='-Wl,'
24333 if test "$host_cpu" = ia64; then
24334 # AIX 5 now supports IA64 processor
24335 lt_prog_compiler_static_GCJ='-Bstatic'
24336 else
24337 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24338 fi
24339 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024340 darwin*)
24341 # PIC is the default on this platform
24342 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024343 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024344 xlc*)
24345 lt_prog_compiler_pic_GCJ='-qnocommon'
24346 lt_prog_compiler_wl_GCJ='-Wl,'
24347 ;;
24348 esac
24349 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024350
24351 mingw* | pw32* | os2*)
24352 # This hack is so that the source file can tell whether it is being
24353 # built for inclusion in a dll (and should export symbols for example).
24354 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24355 ;;
24356
24357 hpux9* | hpux10* | hpux11*)
24358 lt_prog_compiler_wl_GCJ='-Wl,'
24359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24360 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024361 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024362 hppa*64*|ia64*)
24363 # +Z the default
24364 ;;
24365 *)
24366 lt_prog_compiler_pic_GCJ='+Z'
24367 ;;
24368 esac
24369 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24370 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24371 ;;
24372
24373 irix5* | irix6* | nonstopux*)
24374 lt_prog_compiler_wl_GCJ='-Wl,'
24375 # PIC (with -KPIC) is the default.
24376 lt_prog_compiler_static_GCJ='-non_shared'
24377 ;;
24378
24379 newsos6)
24380 lt_prog_compiler_pic_GCJ='-KPIC'
24381 lt_prog_compiler_static_GCJ='-Bstatic'
24382 ;;
24383
24384 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024385 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024386 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024387 lt_prog_compiler_wl_GCJ='-Wl,'
24388 lt_prog_compiler_pic_GCJ='-KPIC'
24389 lt_prog_compiler_static_GCJ='-static'
24390 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024391 pgcc* | pgf77* | pgf90* | pgf95*)
24392 # Portland Group compilers (*not* the Pentium gcc compiler,
24393 # which looks to be a dead project)
24394 lt_prog_compiler_wl_GCJ='-Wl,'
24395 lt_prog_compiler_pic_GCJ='-fpic'
24396 lt_prog_compiler_static_GCJ='-Bstatic'
24397 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024398 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024399 lt_prog_compiler_wl_GCJ='-Wl,'
24400 # All Alpha code is PIC.
24401 lt_prog_compiler_static_GCJ='-non_shared'
24402 ;;
24403 esac
24404 ;;
24405
24406 osf3* | osf4* | osf5*)
24407 lt_prog_compiler_wl_GCJ='-Wl,'
24408 # All OSF/1 code is PIC.
24409 lt_prog_compiler_static_GCJ='-non_shared'
24410 ;;
24411
John Criswell47fdd832003-07-14 16:52:07 +000024412 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024413 lt_prog_compiler_pic_GCJ='-KPIC'
24414 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024415 case $cc_basename in
24416 f77* | f90* | f95*)
24417 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24418 *)
24419 lt_prog_compiler_wl_GCJ='-Wl,';;
24420 esac
John Criswell47fdd832003-07-14 16:52:07 +000024421 ;;
24422
24423 sunos4*)
24424 lt_prog_compiler_wl_GCJ='-Qoption ld '
24425 lt_prog_compiler_pic_GCJ='-PIC'
24426 lt_prog_compiler_static_GCJ='-Bstatic'
24427 ;;
24428
Reid Spencera773bd52006-08-04 18:18:08 +000024429 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024430 lt_prog_compiler_wl_GCJ='-Wl,'
24431 lt_prog_compiler_pic_GCJ='-KPIC'
24432 lt_prog_compiler_static_GCJ='-Bstatic'
24433 ;;
24434
24435 sysv4*MP*)
24436 if test -d /usr/nec ;then
24437 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24438 lt_prog_compiler_static_GCJ='-Bstatic'
24439 fi
24440 ;;
24441
Reid Spencera773bd52006-08-04 18:18:08 +000024442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24443 lt_prog_compiler_wl_GCJ='-Wl,'
24444 lt_prog_compiler_pic_GCJ='-KPIC'
24445 lt_prog_compiler_static_GCJ='-Bstatic'
24446 ;;
24447
24448 unicos*)
24449 lt_prog_compiler_wl_GCJ='-Wl,'
24450 lt_prog_compiler_can_build_shared_GCJ=no
24451 ;;
24452
John Criswell47fdd832003-07-14 16:52:07 +000024453 uts4*)
24454 lt_prog_compiler_pic_GCJ='-pic'
24455 lt_prog_compiler_static_GCJ='-Bstatic'
24456 ;;
24457
24458 *)
24459 lt_prog_compiler_can_build_shared_GCJ=no
24460 ;;
24461 esac
24462 fi
24463
Reid Spencera773bd52006-08-04 18:18:08 +000024464{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24465echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024466
24467#
24468# Check to make sure the PIC flag actually works.
24469#
24470if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024471
Reid Spencera773bd52006-08-04 18:18:08 +000024472{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24473echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024474if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24476else
24477 lt_prog_compiler_pic_works_GCJ=no
24478 ac_outfile=conftest.$ac_objext
24479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24480 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24481 # Insert the option either (1) after the last *FLAGS variable, or
24482 # (2) before a word containing "conftest.", or (3) at the end.
24483 # Note that $ac_compile itself does not contain backslashes and begins
24484 # with a dollar sign (not a hyphen), so the echo should work correctly.
24485 # The option is referenced via a variable to avoid confusing sed.
24486 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24489 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000024490 (eval echo "\"\$as_me:24490: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024491 (eval "$lt_compile" 2>conftest.err)
24492 ac_status=$?
24493 cat conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000024494 echo "$as_me:24494: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024495 if (exit $ac_status) && test -s "$ac_outfile"; then
24496 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024497 # So say no if there are warnings other than the usual output.
24498 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024501 lt_prog_compiler_pic_works_GCJ=yes
24502 fi
24503 fi
24504 $rm conftest*
24505
24506fi
Reid Spencera773bd52006-08-04 18:18:08 +000024507{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24508echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024509
24510if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24511 case $lt_prog_compiler_pic_GCJ in
24512 "" | " "*) ;;
24513 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24514 esac
24515else
24516 lt_prog_compiler_pic_GCJ=
24517 lt_prog_compiler_can_build_shared_GCJ=no
24518fi
24519
24520fi
Reid Spencera773bd52006-08-04 18:18:08 +000024521case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024522 # For platforms which do not support PIC, -DPIC is meaningless:
24523 *djgpp*)
24524 lt_prog_compiler_pic_GCJ=
24525 ;;
24526 *)
24527 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24528 ;;
24529esac
24530
Reid Spencera773bd52006-08-04 18:18:08 +000024531#
24532# Check to make sure the static flag actually works.
24533#
24534wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24535{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24536echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24537if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24538 echo $ECHO_N "(cached) $ECHO_C" >&6
24539else
24540 lt_prog_compiler_static_works_GCJ=no
24541 save_LDFLAGS="$LDFLAGS"
24542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24543 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24545 # The linker can only warn and ignore the option if not recognized
24546 # So say no if there are warnings
24547 if test -s conftest.err; then
24548 # Append any errors to the config.log.
24549 cat conftest.err 1>&5
24550 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24552 if diff conftest.exp conftest.er2 >/dev/null; then
24553 lt_prog_compiler_static_works_GCJ=yes
24554 fi
24555 else
24556 lt_prog_compiler_static_works_GCJ=yes
24557 fi
24558 fi
24559 $rm conftest*
24560 LDFLAGS="$save_LDFLAGS"
24561
24562fi
24563{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24564echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24565
24566if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24567 :
24568else
24569 lt_prog_compiler_static_GCJ=
24570fi
24571
24572
24573{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24574echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024575if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577else
24578 lt_cv_prog_compiler_c_o_GCJ=no
24579 $rm -r conftest 2>/dev/null
24580 mkdir conftest
24581 cd conftest
24582 mkdir out
24583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24584
John Criswell47fdd832003-07-14 16:52:07 +000024585 lt_compiler_flag="-o out/conftest2.$ac_objext"
24586 # Insert the option either (1) after the last *FLAGS variable, or
24587 # (2) before a word containing "conftest.", or (3) at the end.
24588 # Note that $ac_compile itself does not contain backslashes and begins
24589 # with a dollar sign (not a hyphen), so the echo should work correctly.
24590 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24593 -e 's:$: $lt_compiler_flag:'`
Rafael Espindola7f9ec912009-11-12 05:46:09 +000024594 (eval echo "\"\$as_me:24594: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024595 (eval "$lt_compile" 2>out/conftest.err)
24596 ac_status=$?
24597 cat out/conftest.err >&5
Rafael Espindola7f9ec912009-11-12 05:46:09 +000024598 echo "$as_me:24598: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24600 then
24601 # The compiler can only warn and ignore the option if not recognized
24602 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024603 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024606 lt_cv_prog_compiler_c_o_GCJ=yes
24607 fi
24608 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024609 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024610 $rm conftest*
24611 # SGI C++ compiler will create directory out/ii_files/ for
24612 # template instantiation
24613 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24614 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024615 cd ..
24616 rmdir conftest
24617 $rm conftest*
24618
24619fi
Reid Spencera773bd52006-08-04 18:18:08 +000024620{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24621echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024622
24623
24624hard_links="nottested"
24625if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24626 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024627 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24628echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024629 hard_links=yes
24630 $rm conftest*
24631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24632 touch conftest.a
24633 ln conftest.a conftest.b 2>&5 || hard_links=no
24634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024635 { echo "$as_me:$LINENO: result: $hard_links" >&5
24636echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024637 if test "$hard_links" = no; then
24638 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24639echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24640 need_locks=warn
24641 fi
24642else
24643 need_locks=no
24644fi
24645
Reid Spencera773bd52006-08-04 18:18:08 +000024646{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24647echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024648
24649 runpath_var=
24650 allow_undefined_flag_GCJ=
24651 enable_shared_with_static_runtimes_GCJ=no
24652 archive_cmds_GCJ=
24653 archive_expsym_cmds_GCJ=
24654 old_archive_From_new_cmds_GCJ=
24655 old_archive_from_expsyms_cmds_GCJ=
24656 export_dynamic_flag_spec_GCJ=
24657 whole_archive_flag_spec_GCJ=
24658 thread_safe_flag_spec_GCJ=
24659 hardcode_libdir_flag_spec_GCJ=
24660 hardcode_libdir_flag_spec_ld_GCJ=
24661 hardcode_libdir_separator_GCJ=
24662 hardcode_direct_GCJ=no
24663 hardcode_minus_L_GCJ=no
24664 hardcode_shlibpath_var_GCJ=unsupported
24665 link_all_deplibs_GCJ=unknown
24666 hardcode_automatic_GCJ=no
24667 module_cmds_GCJ=
24668 module_expsym_cmds_GCJ=
24669 always_export_symbols_GCJ=no
24670 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24671 # include_expsyms should be a list of space-separated symbols to be *always*
24672 # included in the symbol list
24673 include_expsyms_GCJ=
24674 # exclude_expsyms can be an extended regexp of symbols to exclude
24675 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24676 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24677 # as well as any symbol that contains `d'.
24678 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24679 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24680 # platforms (ab)use it in PIC code, but their linkers get confused if
24681 # the symbol is explicitly referenced. Since portable code cannot
24682 # rely on this symbol name, it's probably fine to never include it in
24683 # preloaded symbol tables.
24684 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024685 # Just being paranoid about ensuring that cc_basename is set.
24686 for cc_temp in $compiler""; do
24687 case $cc_temp in
24688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24690 \-*) ;;
24691 *) break;;
24692 esac
24693done
24694cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024695
24696 case $host_os in
24697 cygwin* | mingw* | pw32*)
24698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24699 # When not using gcc, we currently assume that we are using
24700 # Microsoft Visual C++.
24701 if test "$GCC" != yes; then
24702 with_gnu_ld=no
24703 fi
24704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024705 interix*)
24706 # we just hope/assume this is gcc and not c89 (= MSVC++)
24707 with_gnu_ld=yes
24708 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024709 openbsd*)
24710 with_gnu_ld=no
24711 ;;
24712 esac
24713
24714 ld_shlibs_GCJ=yes
24715 if test "$with_gnu_ld" = yes; then
24716 # If archive_cmds runs LD, not CC, wlarc should be empty
24717 wlarc='${wl}'
24718
Reid Spencera773bd52006-08-04 18:18:08 +000024719 # Set some defaults for GNU ld with shared library support. These
24720 # are reset later if shared libraries are not supported. Putting them
24721 # here allows them to be overridden if necessary.
24722 runpath_var=LD_RUN_PATH
24723 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24724 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24725 # ancient GNU ld didn't support --whole-archive et. al.
24726 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24727 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24728 else
24729 whole_archive_flag_spec_GCJ=
24730 fi
24731 supports_anon_versioning=no
24732 case `$LD -v 2>/dev/null` in
24733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24736 *\ 2.11.*) ;; # other 2.11 versions
24737 *) supports_anon_versioning=yes ;;
24738 esac
24739
John Criswell47fdd832003-07-14 16:52:07 +000024740 # See if GNU ld supports shared libraries.
24741 case $host_os in
24742 aix3* | aix4* | aix5*)
24743 # On AIX/PPC, the GNU linker is very broken
24744 if test "$host_cpu" != ia64; then
24745 ld_shlibs_GCJ=no
24746 cat <<EOF 1>&2
24747
24748*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24749*** to be unable to reliably create shared libraries on AIX.
24750*** Therefore, libtool is disabling shared libraries support. If you
24751*** really care for shared libraries, you may want to modify your PATH
24752*** so that a non-GNU linker is found, and then restart.
24753
24754EOF
24755 fi
24756 ;;
24757
24758 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024759 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 +000024760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761 hardcode_minus_L_GCJ=yes
24762
24763 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24764 # that the semantics of dynamic libraries on AmigaOS, at least up
24765 # to version 4, is to share data among multiple programs linked
24766 # with the same dynamic library. Since this doesn't match the
24767 # behavior of shared libraries on other platforms, we can't use
24768 # them.
24769 ld_shlibs_GCJ=no
24770 ;;
24771
24772 beos*)
24773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24774 allow_undefined_flag_GCJ=unsupported
24775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24776 # support --undefined. This deserves some investigation. FIXME
24777 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24778 else
24779 ld_shlibs_GCJ=no
24780 fi
24781 ;;
24782
24783 cygwin* | mingw* | pw32*)
24784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24785 # as there is no search path for DLLs.
24786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24787 allow_undefined_flag_GCJ=unsupported
24788 always_export_symbols_GCJ=no
24789 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024790 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 +000024791
24792 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024793 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 +000024794 # If the export-symbols file already is a .def file (1st line
24795 # is EXPORTS), use it as is; otherwise, prepend...
24796 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24797 cp $export_symbols $output_objdir/$soname.def;
24798 else
24799 echo EXPORTS > $output_objdir/$soname.def;
24800 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024801 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024802 $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 +000024803 else
Reid Spencera773bd52006-08-04 18:18:08 +000024804 ld_shlibs_GCJ=no
24805 fi
24806 ;;
24807
24808 interix3*)
24809 hardcode_direct_GCJ=no
24810 hardcode_shlibpath_var_GCJ=no
24811 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24812 export_dynamic_flag_spec_GCJ='${wl}-E'
24813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24814 # Instead, shared libraries are loaded at an image base (0x10000000 by
24815 # default) and relocated if they conflict, which is a slow very memory
24816 # consuming and fragmenting process. To avoid this, we pick a random,
24817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24818 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24819 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'
24820 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'
24821 ;;
24822
24823 linux*)
24824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24825 tmp_addflag=
24826 case $cc_basename,$host_cpu in
24827 pgcc*) # Portland Group C compiler
24828 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'
24829 tmp_addflag=' $pic_flag'
24830 ;;
24831 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24832 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'
24833 tmp_addflag=' $pic_flag -Mnomain' ;;
24834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24835 tmp_addflag=' -i_dynamic' ;;
24836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24837 tmp_addflag=' -i_dynamic -nofor_main' ;;
24838 ifc* | ifort*) # Intel Fortran compiler
24839 tmp_addflag=' -nofor_main' ;;
24840 esac
24841 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24842
24843 if test $supports_anon_versioning = yes; then
24844 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24846 $echo "local: *; };" >> $output_objdir/$libname.ver~
24847 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24848 fi
24849 else
24850 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024851 fi
24852 ;;
24853
24854 netbsd*)
24855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24856 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24857 wlarc=
24858 else
24859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24860 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24861 fi
24862 ;;
24863
Reid Spencera773bd52006-08-04 18:18:08 +000024864 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24866 ld_shlibs_GCJ=no
24867 cat <<EOF 1>&2
24868
24869*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24870*** create shared libraries on Solaris systems. Therefore, libtool
24871*** is disabling shared libraries support. We urge you to upgrade GNU
24872*** binutils to release 2.9.1 or newer. Another option is to modify
24873*** your PATH or compiler configuration so that the native linker is
24874*** used, and then restart.
24875
24876EOF
24877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24879 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24880 else
24881 ld_shlibs_GCJ=no
24882 fi
24883 ;;
24884
Reid Spencera773bd52006-08-04 18:18:08 +000024885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24886 case `$LD -v 2>&1` in
24887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24888 ld_shlibs_GCJ=no
24889 cat <<_LT_EOF 1>&2
24890
24891*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24892*** reliably create shared libraries on SCO systems. Therefore, libtool
24893*** is disabling shared libraries support. We urge you to upgrade GNU
24894*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24895*** your PATH or compiler configuration so that the native linker is
24896*** used, and then restart.
24897
24898_LT_EOF
24899 ;;
24900 *)
24901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24902 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24903 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24904 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24905 else
24906 ld_shlibs_GCJ=no
24907 fi
24908 ;;
24909 esac
24910 ;;
24911
John Criswell47fdd832003-07-14 16:52:07 +000024912 sunos4*)
24913 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24914 wlarc=
24915 hardcode_direct_GCJ=yes
24916 hardcode_shlibpath_var_GCJ=no
24917 ;;
24918
24919 *)
24920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24923 else
24924 ld_shlibs_GCJ=no
24925 fi
24926 ;;
24927 esac
24928
Reid Spencera773bd52006-08-04 18:18:08 +000024929 if test "$ld_shlibs_GCJ" = no; then
24930 runpath_var=
24931 hardcode_libdir_flag_spec_GCJ=
24932 export_dynamic_flag_spec_GCJ=
24933 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024934 fi
24935 else
24936 # PORTME fill in a description of your system's linker (not GNU ld)
24937 case $host_os in
24938 aix3*)
24939 allow_undefined_flag_GCJ=unsupported
24940 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024941 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 +000024942 # Note: this linker hardcodes the directories in LIBPATH if there
24943 # are no directories specified by -L.
24944 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024946 # Neither direct hardcoding nor static linking is supported with a
24947 # broken collect2.
24948 hardcode_direct_GCJ=unsupported
24949 fi
24950 ;;
24951
24952 aix4* | aix5*)
24953 if test "$host_cpu" = ia64; then
24954 # On IA64, the linker does run time linking by default, so we don't
24955 # have to do anything special.
24956 aix_use_runtimelinking=no
24957 exp_sym_flag='-Bexport'
24958 no_entry_flag=""
24959 else
24960 # If we're using GNU nm, then we don't want the "-C" option.
24961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24963 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'
24964 else
24965 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'
24966 fi
24967 aix_use_runtimelinking=no
24968
24969 # Test if we are trying to use run time linking or normal
24970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24971 # need to do runtime linking.
24972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24973 for ld_flag in $LDFLAGS; do
24974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24975 aix_use_runtimelinking=yes
24976 break
24977 fi
24978 done
Reid Spencera773bd52006-08-04 18:18:08 +000024979 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024980 esac
24981
24982 exp_sym_flag='-bexport'
24983 no_entry_flag='-bnoentry'
24984 fi
24985
24986 # When large executables or shared objects are built, AIX ld can
24987 # have problems creating the table of contents. If linking a library
24988 # or program results in "error TOC overflow" add -mminimal-toc to
24989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24991
24992 archive_cmds_GCJ=''
24993 hardcode_direct_GCJ=yes
24994 hardcode_libdir_separator_GCJ=':'
24995 link_all_deplibs_GCJ=yes
24996
24997 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024998 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024999 # We only want to do this on AIX 4.2 and lower, the check
25000 # below for broken collect2 doesn't work under 4.3+
25001 collect2name=`${CC} -print-prog-name=collect2`
25002 if test -f "$collect2name" && \
25003 strings "$collect2name" | grep resolve_lib_name >/dev/null
25004 then
25005 # We have reworked collect2
25006 hardcode_direct_GCJ=yes
25007 else
25008 # We have old collect2
25009 hardcode_direct_GCJ=unsupported
25010 # It fails to find uninstalled libraries when the uninstalled
25011 # path is not listed in the libpath. Setting hardcode_minus_L
25012 # to unsupported forces relinking
25013 hardcode_minus_L_GCJ=yes
25014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25015 hardcode_libdir_separator_GCJ=
25016 fi
Reid Spencera773bd52006-08-04 18:18:08 +000025017 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025018 esac
25019 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000025020 if test "$aix_use_runtimelinking" = yes; then
25021 shared_flag="$shared_flag "'${wl}-G'
25022 fi
John Criswell47fdd832003-07-14 16:52:07 +000025023 else
25024 # not using gcc
25025 if test "$host_cpu" = ia64; then
25026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25027 # chokes on -Wl,-G. The following line is correct:
25028 shared_flag='-G'
25029 else
Reid Spencera773bd52006-08-04 18:18:08 +000025030 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000025031 shared_flag='${wl}-G'
25032 else
25033 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000025034 fi
John Criswell47fdd832003-07-14 16:52:07 +000025035 fi
25036 fi
25037
25038 # It seems that -bexpall does not export symbols beginning with
25039 # underscore (_), so it is better to generate a list of symbols to export.
25040 always_export_symbols_GCJ=yes
25041 if test "$aix_use_runtimelinking" = yes; then
25042 # Warning - without using the other runtime loading flags (-brtl),
25043 # -berok will link without error, but may produce a broken library.
25044 allow_undefined_flag_GCJ='-berok'
25045 # Determine the default libpath from the value encoded in an empty executable.
25046 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025047/* confdefs.h. */
25048_ACEOF
25049cat confdefs.h >>conftest.$ac_ext
25050cat >>conftest.$ac_ext <<_ACEOF
25051/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025052
John Criswell47fdd832003-07-14 16:52:07 +000025053int
25054main ()
25055{
25056
25057 ;
25058 return 0;
25059}
25060_ACEOF
25061rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025062if { (ac_try="$ac_link"
25063case "(($ac_try" in
25064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065 *) ac_try_echo=$ac_try;;
25066esac
25067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025070 grep -v '^ *+' conftest.er1 >conftest.err
25071 rm -f conftest.er1
25072 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025074 (exit $ac_status); } &&
25075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25076 { (case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079esac
25080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_try") 2>&5
25082 ac_status=$?
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); }; } &&
25085 { ac_try='test -s conftest$ac_exeext'
25086 { (case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25089esac
25090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091 (eval "$ac_try") 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025095
25096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25097}'`
25098# Check for a 64-bit object if we didn't find anything.
25099if 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; }
25100}'`; fi
25101else
25102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025103sed 's/^/| /' conftest.$ac_ext >&5
25104
Reid Spencera773bd52006-08-04 18:18:08 +000025105
John Criswell47fdd832003-07-14 16:52:07 +000025106fi
Reid Spencera773bd52006-08-04 18:18:08 +000025107
Bill Wendlingebcceee2009-04-18 11:20:33 +000025108rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025109 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025110if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25111
25112 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000025113 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 +000025114 else
25115 if test "$host_cpu" = ia64; then
25116 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25117 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000025118 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 +000025119 else
25120 # Determine the default libpath from the value encoded in an empty executable.
25121 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025122/* confdefs.h. */
25123_ACEOF
25124cat confdefs.h >>conftest.$ac_ext
25125cat >>conftest.$ac_ext <<_ACEOF
25126/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000025127
John Criswell47fdd832003-07-14 16:52:07 +000025128int
25129main ()
25130{
25131
25132 ;
25133 return 0;
25134}
25135_ACEOF
25136rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000025137if { (ac_try="$ac_link"
25138case "(($ac_try" in
25139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140 *) ac_try_echo=$ac_try;;
25141esac
25142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025144 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025145 grep -v '^ *+' conftest.er1 >conftest.err
25146 rm -f conftest.er1
25147 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025149 (exit $ac_status); } &&
25150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25151 { (case "(($ac_try" in
25152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153 *) ac_try_echo=$ac_try;;
25154esac
25155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25156 (eval "$ac_try") 2>&5
25157 ac_status=$?
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); }; } &&
25160 { ac_try='test -s conftest$ac_exeext'
25161 { (case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25164esac
25165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166 (eval "$ac_try") 2>&5
25167 ac_status=$?
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025170
25171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25172}'`
25173# Check for a 64-bit object if we didn't find anything.
25174if 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; }
25175}'`; fi
25176else
25177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025178sed 's/^/| /' conftest.$ac_ext >&5
25179
Reid Spencera773bd52006-08-04 18:18:08 +000025180
John Criswell47fdd832003-07-14 16:52:07 +000025181fi
Reid Spencera773bd52006-08-04 18:18:08 +000025182
Bill Wendlingebcceee2009-04-18 11:20:33 +000025183rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025184 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25186
25187 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25188 # Warning - without using the other run time loading flags,
25189 # -berok will link without error, but may produce a broken library.
25190 no_undefined_flag_GCJ=' ${wl}-bernotok'
25191 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025192 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025193 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025194 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025195 # This is similar to how AIX traditionally builds its shared libraries.
25196 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 +000025197 fi
25198 fi
25199 ;;
25200
25201 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025202 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 +000025203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204 hardcode_minus_L_GCJ=yes
25205 # see comment about different semantics on the GNU ld section
25206 ld_shlibs_GCJ=no
25207 ;;
25208
Reid Spencer2706f8c2004-09-19 23:53:36 +000025209 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025210 export_dynamic_flag_spec_GCJ=-rdynamic
25211 ;;
25212
25213 cygwin* | mingw* | pw32*)
25214 # When not using gcc, we currently assume that we are using
25215 # Microsoft Visual C++.
25216 # hardcode_libdir_flag_spec is actually meaningless, as there is
25217 # no search path for DLLs.
25218 hardcode_libdir_flag_spec_GCJ=' '
25219 allow_undefined_flag_GCJ=unsupported
25220 # Tell ltmain to make .lib files, not .a files.
25221 libext=lib
25222 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025223 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025224 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025225 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 +000025226 # The linker will automatically build a .lib file if we build a DLL.
25227 old_archive_From_new_cmds_GCJ='true'
25228 # FIXME: Should let the user specify the lib program.
25229 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025230 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025231 enable_shared_with_static_runtimes_GCJ=yes
25232 ;;
25233
25234 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025235 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025236 rhapsody* | darwin1.[012])
25237 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25238 ;;
25239 *) # Darwin 1.3 on
25240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25241 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25242 else
25243 case ${MACOSX_DEPLOYMENT_TARGET} in
25244 10.[012])
25245 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25246 ;;
25247 10.*)
25248 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25249 ;;
25250 esac
25251 fi
25252 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025253 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025254 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025255 hardcode_direct_GCJ=no
25256 hardcode_automatic_GCJ=yes
25257 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025258 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025259 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025260 if test "$GCC" = yes ; then
25261 output_verbose_link_cmd='echo'
25262 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25263 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025264 # 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 +000025265 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}'
25266 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 +000025267 else
Reid Spencera773bd52006-08-04 18:18:08 +000025268 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025269 xlc*)
25270 output_verbose_link_cmd='echo'
25271 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25272 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025273 # 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 +000025274 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}'
25275 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 +000025276 ;;
25277 *)
25278 ld_shlibs_GCJ=no
25279 ;;
25280 esac
John Criswell47fdd832003-07-14 16:52:07 +000025281 fi
25282 ;;
25283
25284 dgux*)
25285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25287 hardcode_shlibpath_var_GCJ=no
25288 ;;
25289
25290 freebsd1*)
25291 ld_shlibs_GCJ=no
25292 ;;
25293
25294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25295 # support. Future versions do this automatically, but an explicit c++rt0.o
25296 # does not break anything, and helps significantly (at the cost of a little
25297 # extra space).
25298 freebsd2.2*)
25299 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25300 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25301 hardcode_direct_GCJ=yes
25302 hardcode_shlibpath_var_GCJ=no
25303 ;;
25304
25305 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25306 freebsd2*)
25307 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25308 hardcode_direct_GCJ=yes
25309 hardcode_minus_L_GCJ=yes
25310 hardcode_shlibpath_var_GCJ=no
25311 ;;
25312
25313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025314 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025315 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25316 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25317 hardcode_direct_GCJ=yes
25318 hardcode_shlibpath_var_GCJ=no
25319 ;;
25320
25321 hpux9*)
25322 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025323 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 +000025324 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025325 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 +000025326 fi
25327 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25328 hardcode_libdir_separator_GCJ=:
25329 hardcode_direct_GCJ=yes
25330
25331 # hardcode_minus_L: Not really in the search PATH,
25332 # but as the default location of the library.
25333 hardcode_minus_L_GCJ=yes
25334 export_dynamic_flag_spec_GCJ='${wl}-E'
25335 ;;
25336
Reid Spencera773bd52006-08-04 18:18:08 +000025337 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025338 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025339 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25340 else
25341 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25342 fi
25343 if test "$with_gnu_ld" = no; then
25344 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25345 hardcode_libdir_separator_GCJ=:
25346
25347 hardcode_direct_GCJ=yes
25348 export_dynamic_flag_spec_GCJ='${wl}-E'
25349
25350 # hardcode_minus_L: Not really in the search PATH,
25351 # but as the default location of the library.
25352 hardcode_minus_L_GCJ=yes
25353 fi
25354 ;;
25355
25356 hpux11*)
25357 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25358 case $host_cpu in
25359 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025360 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25361 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025362 ia64*)
25363 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25364 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025365 *)
25366 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25367 ;;
25368 esac
25369 else
Reid Spencera773bd52006-08-04 18:18:08 +000025370 case $host_cpu in
25371 hppa*64*)
25372 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25373 ;;
25374 ia64*)
25375 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025376 ;;
25377 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025378 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 +000025379 ;;
25380 esac
25381 fi
25382 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025383 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25384 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025385
Reid Spencera773bd52006-08-04 18:18:08 +000025386 case $host_cpu in
25387 hppa*64*|ia64*)
25388 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25389 hardcode_direct_GCJ=no
25390 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025391 ;;
25392 *)
John Criswell47fdd832003-07-14 16:52:07 +000025393 hardcode_direct_GCJ=yes
25394 export_dynamic_flag_spec_GCJ='${wl}-E'
25395
25396 # hardcode_minus_L: Not really in the search PATH,
25397 # but as the default location of the library.
25398 hardcode_minus_L_GCJ=yes
25399 ;;
25400 esac
25401 fi
25402 ;;
25403
25404 irix5* | irix6* | nonstopux*)
25405 if test "$GCC" = yes; then
25406 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'
25407 else
25408 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'
25409 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25410 fi
25411 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25412 hardcode_libdir_separator_GCJ=:
25413 link_all_deplibs_GCJ=yes
25414 ;;
25415
25416 netbsd*)
25417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25418 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25419 else
25420 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25421 fi
25422 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25423 hardcode_direct_GCJ=yes
25424 hardcode_shlibpath_var_GCJ=no
25425 ;;
25426
25427 newsos6)
25428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25429 hardcode_direct_GCJ=yes
25430 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25431 hardcode_libdir_separator_GCJ=:
25432 hardcode_shlibpath_var_GCJ=no
25433 ;;
25434
25435 openbsd*)
25436 hardcode_direct_GCJ=yes
25437 hardcode_shlibpath_var_GCJ=no
25438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25439 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025440 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 +000025441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25442 export_dynamic_flag_spec_GCJ='${wl}-E'
25443 else
25444 case $host_os in
25445 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25446 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25448 ;;
25449 *)
25450 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25452 ;;
25453 esac
25454 fi
25455 ;;
25456
25457 os2*)
25458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25459 hardcode_minus_L_GCJ=yes
25460 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025461 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 +000025462 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25463 ;;
25464
25465 osf3*)
25466 if test "$GCC" = yes; then
25467 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25468 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'
25469 else
25470 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25471 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'
25472 fi
25473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25474 hardcode_libdir_separator_GCJ=:
25475 ;;
25476
25477 osf4* | osf5*) # as osf3* with the addition of -msym flag
25478 if test "$GCC" = yes; then
25479 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25480 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'
25481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25482 else
25483 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25484 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 +000025485 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 +000025486 $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 +000025487
John Criswell47fdd832003-07-14 16:52:07 +000025488 # Both c and cxx compiler support -rpath directly
25489 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25490 fi
25491 hardcode_libdir_separator_GCJ=:
25492 ;;
25493
John Criswell47fdd832003-07-14 16:52:07 +000025494 solaris*)
25495 no_undefined_flag_GCJ=' -z text'
25496 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025497 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025498 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025499 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25500 $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 +000025501 else
Reid Spencera773bd52006-08-04 18:18:08 +000025502 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025503 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025504 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25505 $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 +000025506 fi
25507 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25508 hardcode_shlibpath_var_GCJ=no
25509 case $host_os in
25510 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025511 *)
25512 # The compiler driver will combine linker options so we
25513 # cannot just pass the convience library names through
25514 # without $wl, iff we do not link with $LD.
25515 # Luckily, gcc supports the same syntax we need for Sun Studio.
25516 # Supported since Solaris 2.6 (maybe 2.5.1?)
25517 case $wlarc in
25518 '')
25519 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25520 *)
25521 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' ;;
25522 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025523 esac
25524 link_all_deplibs_GCJ=yes
25525 ;;
25526
25527 sunos4*)
25528 if test "x$host_vendor" = xsequent; then
25529 # Use $CC to link under sequent, because it throws in some extra .o
25530 # files that make .init and .fini sections work.
25531 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25532 else
25533 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25534 fi
25535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25536 hardcode_direct_GCJ=yes
25537 hardcode_minus_L_GCJ=yes
25538 hardcode_shlibpath_var_GCJ=no
25539 ;;
25540
25541 sysv4)
25542 case $host_vendor in
25543 sni)
25544 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25545 hardcode_direct_GCJ=yes # is this really true???
25546 ;;
25547 siemens)
25548 ## LD is ld it makes a PLAMLIB
25549 ## CC just makes a GrossModule.
25550 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25551 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25552 hardcode_direct_GCJ=no
25553 ;;
25554 motorola)
25555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25556 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25557 ;;
25558 esac
25559 runpath_var='LD_RUN_PATH'
25560 hardcode_shlibpath_var_GCJ=no
25561 ;;
25562
25563 sysv4.3*)
25564 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25565 hardcode_shlibpath_var_GCJ=no
25566 export_dynamic_flag_spec_GCJ='-Bexport'
25567 ;;
25568
25569 sysv4*MP*)
25570 if test -d /usr/nec; then
25571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25572 hardcode_shlibpath_var_GCJ=no
25573 runpath_var=LD_RUN_PATH
25574 hardcode_runpath_var=yes
25575 ld_shlibs_GCJ=yes
25576 fi
25577 ;;
25578
Reid Spencera773bd52006-08-04 18:18:08 +000025579 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25580 no_undefined_flag_GCJ='${wl}-z,text'
25581 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025582 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025583 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025584
John Criswell47fdd832003-07-14 16:52:07 +000025585 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025586 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25587 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 +000025588 else
Reid Spencera773bd52006-08-04 18:18:08 +000025589 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25590 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 +000025591 fi
John Criswell47fdd832003-07-14 16:52:07 +000025592 ;;
25593
Reid Spencera773bd52006-08-04 18:18:08 +000025594 sysv5* | sco3.2v5* | sco5v6*)
25595 # Note: We can NOT use -z defs as we might desire, because we do not
25596 # link with -lc, and that would cause any symbols used from libc to
25597 # always be unresolved, which means just about no library would
25598 # ever link correctly. If we're not using GNU ld we use -z text
25599 # though, which does catch some bad symbols but isn't as heavy-handed
25600 # as -z defs.
25601 no_undefined_flag_GCJ='${wl}-z,text'
25602 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25603 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025604 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025605 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25606 hardcode_libdir_separator_GCJ=':'
25607 link_all_deplibs_GCJ=yes
25608 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025609 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025610
25611 if test "$GCC" = yes; then
25612 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25613 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25614 else
25615 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25616 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25617 fi
John Criswell47fdd832003-07-14 16:52:07 +000025618 ;;
25619
25620 uts4*)
25621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25623 hardcode_shlibpath_var_GCJ=no
25624 ;;
25625
25626 *)
25627 ld_shlibs_GCJ=no
25628 ;;
25629 esac
25630 fi
25631
Reid Spencera773bd52006-08-04 18:18:08 +000025632{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25633echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025634test "$ld_shlibs_GCJ" = no && can_build_shared=no
25635
John Criswell47fdd832003-07-14 16:52:07 +000025636#
25637# Do we need to explicitly link libc?
25638#
25639case "x$archive_cmds_need_lc_GCJ" in
25640x|xyes)
25641 # Assume -lc should be added
25642 archive_cmds_need_lc_GCJ=yes
25643
25644 if test "$enable_shared" = yes && test "$GCC" = yes; then
25645 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025646 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025647 # FIXME: we may have to deal with multi-command sequences.
25648 ;;
25649 '$CC '*)
25650 # Test whether the compiler implicitly links with -lc since on some
25651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25652 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025653 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25654echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025655 $rm conftest*
25656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25657
25658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25659 (eval $ac_compile) 2>&5
25660 ac_status=$?
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } 2>conftest.err; then
25663 soname=conftest
25664 lib=conftest
25665 libobjs=conftest.$ac_objext
25666 deplibs=
25667 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025668 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025669 compiler_flags=-v
25670 linker_flags=-v
25671 verstring=
25672 output_objdir=.
25673 libname=conftest
25674 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25675 allow_undefined_flag_GCJ=
25676 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25677 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25678 ac_status=$?
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }
25681 then
25682 archive_cmds_need_lc_GCJ=no
25683 else
25684 archive_cmds_need_lc_GCJ=yes
25685 fi
25686 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25687 else
25688 cat conftest.err 1>&5
25689 fi
25690 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025691 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25692echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025693 ;;
25694 esac
25695 fi
25696 ;;
25697esac
25698
Reid Spencera773bd52006-08-04 18:18:08 +000025699{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25700echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025701library_names_spec=
25702libname_spec='lib$name'
25703soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025704shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025705postinstall_cmds=
25706postuninstall_cmds=
25707finish_cmds=
25708finish_eval=
25709shlibpath_var=
25710shlibpath_overrides_runpath=unknown
25711version_type=none
25712dynamic_linker="$host_os ld.so"
25713sys_lib_dlsearch_path_spec="/lib /usr/lib"
25714if test "$GCC" = yes; then
25715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25716 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25717 # if the path contains ";" then we assume it to be the separator
25718 # otherwise default to the standard path separator (i.e. ":") - it is
25719 # assumed that no part of a normal pathname contains ";" but that should
25720 # okay in the real world where ";" in dirpaths is itself problematic.
25721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25722 else
25723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25724 fi
25725else
25726 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25727fi
25728need_lib_prefix=unknown
25729hardcode_into_libs=no
25730
25731# when you set need_version to no, make sure it does not cause -set_version
25732# flags to be left without arguments
25733need_version=unknown
25734
25735case $host_os in
25736aix3*)
25737 version_type=linux
25738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25739 shlibpath_var=LIBPATH
25740
25741 # AIX 3 has no versioning support, so we append a major version to the name.
25742 soname_spec='${libname}${release}${shared_ext}$major'
25743 ;;
25744
25745aix4* | aix5*)
25746 version_type=linux
25747 need_lib_prefix=no
25748 need_version=no
25749 hardcode_into_libs=yes
25750 if test "$host_cpu" = ia64; then
25751 # AIX 5 supports IA64
25752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25753 shlibpath_var=LD_LIBRARY_PATH
25754 else
25755 # With GCC up to 2.95.x, collect2 would create an import file
25756 # for dependence libraries. The import file would start with
25757 # the line `#! .'. This would cause the generated library to
25758 # depend on `.', always an invalid library. This was fixed in
25759 # development snapshots of GCC prior to 3.0.
25760 case $host_os in
25761 aix4 | aix4.[01] | aix4.[01].*)
25762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25763 echo ' yes '
25764 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25765 :
25766 else
25767 can_build_shared=no
25768 fi
25769 ;;
25770 esac
25771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25772 # soname into executable. Probably we can add versioning support to
25773 # collect2, so additional links can be useful in future.
25774 if test "$aix_use_runtimelinking" = yes; then
25775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25776 # instead of lib<name>.a to let people know that these are not
25777 # typical AIX shared libraries.
25778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779 else
25780 # We preserve .a as extension for shared libraries through AIX4.2
25781 # and later when we are not doing run time linking.
25782 library_names_spec='${libname}${release}.a $libname.a'
25783 soname_spec='${libname}${release}${shared_ext}$major'
25784 fi
25785 shlibpath_var=LIBPATH
25786 fi
25787 ;;
25788
25789amigaos*)
25790 library_names_spec='$libname.ixlibrary $libname.a'
25791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025792 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 +000025793 ;;
25794
25795beos*)
25796 library_names_spec='${libname}${shared_ext}'
25797 dynamic_linker="$host_os ld.so"
25798 shlibpath_var=LIBRARY_PATH
25799 ;;
25800
Reid Spencer2706f8c2004-09-19 23:53:36 +000025801bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025802 version_type=linux
25803 need_version=no
25804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25805 soname_spec='${libname}${release}${shared_ext}$major'
25806 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25807 shlibpath_var=LD_LIBRARY_PATH
25808 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25809 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25810 # the default ld.so.conf also contains /usr/contrib/lib and
25811 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25812 # libtool to hard-code these into programs
25813 ;;
25814
25815cygwin* | mingw* | pw32*)
25816 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025817 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025818 need_version=no
25819 need_lib_prefix=no
25820
25821 case $GCC,$host_os in
25822 yes,cygwin* | yes,mingw* | yes,pw32*)
25823 library_names_spec='$libname.dll.a'
25824 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025825 postinstall_cmds='base_file=`basename \${file}`~
25826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25827 dldir=$destdir/`dirname \$dlpath`~
25828 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025829 $install_prog $dir/$dlname \$dldir/$dlname~
25830 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25832 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025833 $rm \$dlpath'
25834 shlibpath_overrides_runpath=yes
25835
25836 case $host_os in
25837 cygwin*)
25838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25839 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 +000025840 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025841 ;;
25842 mingw*)
25843 # MinGW DLLs use traditional 'lib' prefix
25844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25846 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25847 # It is most probably a Windows format PATH printed by
25848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25849 # path with ; separators, and with drive letters. We can handle the
25850 # drive letters (cygwin fileutils understands them), so leave them,
25851 # especially as we might pass files found there to a mingw objdump,
25852 # which wouldn't understand a cygwinified path. Ahh.
25853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25854 else
25855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25856 fi
25857 ;;
25858 pw32*)
25859 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025860 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 +000025861 ;;
25862 esac
25863 ;;
25864
25865 *)
25866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25867 ;;
25868 esac
25869 dynamic_linker='Win32 ld.exe'
25870 # FIXME: first we should search . and the directory the executable is in
25871 shlibpath_var=PATH
25872 ;;
25873
25874darwin* | rhapsody*)
25875 dynamic_linker="$host_os dyld"
25876 version_type=darwin
25877 need_lib_prefix=no
25878 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025879 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025880 soname_spec='${libname}${release}${major}$shared_ext'
25881 shlibpath_overrides_runpath=yes
25882 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025883 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025884 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025885 if test "$GCC" = yes; then
25886 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"`
25887 else
25888 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025889 fi
25890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25891 ;;
25892
25893dgux*)
25894 version_type=linux
25895 need_lib_prefix=no
25896 need_version=no
25897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25898 soname_spec='${libname}${release}${shared_ext}$major'
25899 shlibpath_var=LD_LIBRARY_PATH
25900 ;;
25901
25902freebsd1*)
25903 dynamic_linker=no
25904 ;;
25905
Reid Spencer2706f8c2004-09-19 23:53:36 +000025906kfreebsd*-gnu)
25907 version_type=linux
25908 need_lib_prefix=no
25909 need_version=no
25910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25911 soname_spec='${libname}${release}${shared_ext}$major'
25912 shlibpath_var=LD_LIBRARY_PATH
25913 shlibpath_overrides_runpath=no
25914 hardcode_into_libs=yes
25915 dynamic_linker='GNU ld.so'
25916 ;;
25917
Reid Spencera773bd52006-08-04 18:18:08 +000025918freebsd* | dragonfly*)
25919 # DragonFly does not have aout. When/if they implement a new
25920 # versioning mechanism, adjust this.
25921 if test -x /usr/bin/objformat; then
25922 objformat=`/usr/bin/objformat`
25923 else
25924 case $host_os in
25925 freebsd[123]*) objformat=aout ;;
25926 *) objformat=elf ;;
25927 esac
25928 fi
John Criswell47fdd832003-07-14 16:52:07 +000025929 version_type=freebsd-$objformat
25930 case $version_type in
25931 freebsd-elf*)
25932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25933 need_version=no
25934 need_lib_prefix=no
25935 ;;
25936 freebsd-*)
25937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25938 need_version=yes
25939 ;;
25940 esac
25941 shlibpath_var=LD_LIBRARY_PATH
25942 case $host_os in
25943 freebsd2*)
25944 shlibpath_overrides_runpath=yes
25945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025946 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025947 shlibpath_overrides_runpath=yes
25948 hardcode_into_libs=yes
25949 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025950 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25951 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025952 shlibpath_overrides_runpath=no
25953 hardcode_into_libs=yes
25954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025955 freebsd*) # from 4.6 on
25956 shlibpath_overrides_runpath=yes
25957 hardcode_into_libs=yes
25958 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025959 esac
25960 ;;
25961
25962gnu*)
25963 version_type=linux
25964 need_lib_prefix=no
25965 need_version=no
25966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25967 soname_spec='${libname}${release}${shared_ext}$major'
25968 shlibpath_var=LD_LIBRARY_PATH
25969 hardcode_into_libs=yes
25970 ;;
25971
25972hpux9* | hpux10* | hpux11*)
25973 # Give a soname corresponding to the major version so that dld.sl refuses to
25974 # link against other versions.
25975 version_type=sunos
25976 need_lib_prefix=no
25977 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025978 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025979 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025980 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025981 hardcode_into_libs=yes
25982 dynamic_linker="$host_os dld.so"
25983 shlibpath_var=LD_LIBRARY_PATH
25984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25986 soname_spec='${libname}${release}${shared_ext}$major'
25987 if test "X$HPUX_IA64_MODE" = X32; then
25988 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25989 else
25990 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25991 fi
25992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25993 ;;
25994 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025995 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025996 hardcode_into_libs=yes
25997 dynamic_linker="$host_os dld.sl"
25998 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26001 soname_spec='${libname}${release}${shared_ext}$major'
26002 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26004 ;;
26005 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026006 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000026007 dynamic_linker="$host_os dld.sl"
26008 shlibpath_var=SHLIB_PATH
26009 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26011 soname_spec='${libname}${release}${shared_ext}$major'
26012 ;;
26013 esac
26014 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26015 postinstall_cmds='chmod 555 $lib'
26016 ;;
26017
Reid Spencera773bd52006-08-04 18:18:08 +000026018interix3*)
26019 version_type=linux
26020 need_lib_prefix=no
26021 need_version=no
26022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26023 soname_spec='${libname}${release}${shared_ext}$major'
26024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26025 shlibpath_var=LD_LIBRARY_PATH
26026 shlibpath_overrides_runpath=no
26027 hardcode_into_libs=yes
26028 ;;
26029
John Criswell47fdd832003-07-14 16:52:07 +000026030irix5* | irix6* | nonstopux*)
26031 case $host_os in
26032 nonstopux*) version_type=nonstopux ;;
26033 *)
26034 if test "$lt_cv_prog_gnu_ld" = yes; then
26035 version_type=linux
26036 else
26037 version_type=irix
26038 fi ;;
26039 esac
26040 need_lib_prefix=no
26041 need_version=no
26042 soname_spec='${libname}${release}${shared_ext}$major'
26043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26044 case $host_os in
26045 irix5* | nonstopux*)
26046 libsuff= shlibsuff=
26047 ;;
26048 *)
26049 case $LD in # libtool.m4 will add one of these switches to LD
26050 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26051 libsuff= shlibsuff= libmagic=32-bit;;
26052 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26053 libsuff=32 shlibsuff=N32 libmagic=N32;;
26054 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26055 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26056 *) libsuff= shlibsuff= libmagic=never-match;;
26057 esac
26058 ;;
26059 esac
26060 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26061 shlibpath_overrides_runpath=no
26062 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26063 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26064 hardcode_into_libs=yes
26065 ;;
26066
26067# No shared lib support for Linux oldld, aout, or coff.
26068linux*oldld* | linux*aout* | linux*coff*)
26069 dynamic_linker=no
26070 ;;
26071
26072# This must be Linux ELF.
26073linux*)
26074 version_type=linux
26075 need_lib_prefix=no
26076 need_version=no
26077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26078 soname_spec='${libname}${release}${shared_ext}$major'
26079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 shlibpath_overrides_runpath=no
26082 # This implies no fast_install, which is unacceptable.
26083 # Some rework will be needed to allow for fast_install
26084 # before this can be enabled.
26085 hardcode_into_libs=yes
26086
Reid Spencer2706f8c2004-09-19 23:53:36 +000026087 # Append ld.so.conf contents to the search path
26088 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000026089 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 +000026090 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26091 fi
26092
John Criswell47fdd832003-07-14 16:52:07 +000026093 # We used to test for /lib/ld.so.1 and disable shared libraries on
26094 # powerpc, because MkLinux only supported shared libraries with the
26095 # GNU dynamic linker. Since this was broken with cross compilers,
26096 # most powerpc-linux boxes support dynamic linking these days and
26097 # people can always --disable-shared, the test was removed, and we
26098 # assume the GNU/Linux dynamic linker is in use.
26099 dynamic_linker='GNU/Linux ld.so'
26100 ;;
26101
Reid Spencer2706f8c2004-09-19 23:53:36 +000026102knetbsd*-gnu)
26103 version_type=linux
26104 need_lib_prefix=no
26105 need_version=no
26106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26107 soname_spec='${libname}${release}${shared_ext}$major'
26108 shlibpath_var=LD_LIBRARY_PATH
26109 shlibpath_overrides_runpath=no
26110 hardcode_into_libs=yes
26111 dynamic_linker='GNU ld.so'
26112 ;;
26113
John Criswell47fdd832003-07-14 16:52:07 +000026114netbsd*)
26115 version_type=sunos
26116 need_lib_prefix=no
26117 need_version=no
26118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26121 dynamic_linker='NetBSD (a.out) ld.so'
26122 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000026124 soname_spec='${libname}${release}${shared_ext}$major'
26125 dynamic_linker='NetBSD ld.elf_so'
26126 fi
26127 shlibpath_var=LD_LIBRARY_PATH
26128 shlibpath_overrides_runpath=yes
26129 hardcode_into_libs=yes
26130 ;;
26131
26132newsos6)
26133 version_type=linux
26134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26135 shlibpath_var=LD_LIBRARY_PATH
26136 shlibpath_overrides_runpath=yes
26137 ;;
26138
Reid Spencer2706f8c2004-09-19 23:53:36 +000026139nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026140 version_type=linux
26141 need_lib_prefix=no
26142 need_version=no
26143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26144 soname_spec='${libname}${release}${shared_ext}$major'
26145 shlibpath_var=LD_LIBRARY_PATH
26146 shlibpath_overrides_runpath=yes
26147 ;;
26148
26149openbsd*)
26150 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026151 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026152 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26154 case $host_os in
26155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26156 *) need_version=no ;;
26157 esac
John Criswell47fdd832003-07-14 16:52:07 +000026158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26160 shlibpath_var=LD_LIBRARY_PATH
26161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26162 case $host_os in
26163 openbsd2.[89] | openbsd2.[89].*)
26164 shlibpath_overrides_runpath=no
26165 ;;
26166 *)
26167 shlibpath_overrides_runpath=yes
26168 ;;
26169 esac
26170 else
26171 shlibpath_overrides_runpath=yes
26172 fi
26173 ;;
26174
26175os2*)
26176 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026177 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026178 need_lib_prefix=no
26179 library_names_spec='$libname${shared_ext} $libname.a'
26180 dynamic_linker='OS/2 ld.exe'
26181 shlibpath_var=LIBPATH
26182 ;;
26183
26184osf3* | osf4* | osf5*)
26185 version_type=osf
26186 need_lib_prefix=no
26187 need_version=no
26188 soname_spec='${libname}${release}${shared_ext}$major'
26189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26190 shlibpath_var=LD_LIBRARY_PATH
26191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26193 ;;
26194
John Criswell47fdd832003-07-14 16:52:07 +000026195solaris*)
26196 version_type=linux
26197 need_lib_prefix=no
26198 need_version=no
26199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26200 soname_spec='${libname}${release}${shared_ext}$major'
26201 shlibpath_var=LD_LIBRARY_PATH
26202 shlibpath_overrides_runpath=yes
26203 hardcode_into_libs=yes
26204 # ldd complains unless libraries are executable
26205 postinstall_cmds='chmod +x $lib'
26206 ;;
26207
26208sunos4*)
26209 version_type=sunos
26210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26212 shlibpath_var=LD_LIBRARY_PATH
26213 shlibpath_overrides_runpath=yes
26214 if test "$with_gnu_ld" = yes; then
26215 need_lib_prefix=no
26216 fi
26217 need_version=yes
26218 ;;
26219
Reid Spencera773bd52006-08-04 18:18:08 +000026220sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026221 version_type=linux
26222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26223 soname_spec='${libname}${release}${shared_ext}$major'
26224 shlibpath_var=LD_LIBRARY_PATH
26225 case $host_vendor in
26226 sni)
26227 shlibpath_overrides_runpath=no
26228 need_lib_prefix=no
26229 export_dynamic_flag_spec='${wl}-Blargedynsym'
26230 runpath_var=LD_RUN_PATH
26231 ;;
26232 siemens)
26233 need_lib_prefix=no
26234 ;;
26235 motorola)
26236 need_lib_prefix=no
26237 need_version=no
26238 shlibpath_overrides_runpath=no
26239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26240 ;;
26241 esac
26242 ;;
26243
26244sysv4*MP*)
26245 if test -d /usr/nec ;then
26246 version_type=linux
26247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26248 soname_spec='$libname${shared_ext}.$major'
26249 shlibpath_var=LD_LIBRARY_PATH
26250 fi
26251 ;;
26252
Reid Spencera773bd52006-08-04 18:18:08 +000026253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26254 version_type=freebsd-elf
26255 need_lib_prefix=no
26256 need_version=no
26257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26258 soname_spec='${libname}${release}${shared_ext}$major'
26259 shlibpath_var=LD_LIBRARY_PATH
26260 hardcode_into_libs=yes
26261 if test "$with_gnu_ld" = yes; then
26262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26263 shlibpath_overrides_runpath=no
26264 else
26265 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26266 shlibpath_overrides_runpath=yes
26267 case $host_os in
26268 sco3.2v5*)
26269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26270 ;;
26271 esac
26272 fi
26273 sys_lib_dlsearch_path_spec='/usr/lib'
26274 ;;
26275
John Criswell47fdd832003-07-14 16:52:07 +000026276uts4*)
26277 version_type=linux
26278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26279 soname_spec='${libname}${release}${shared_ext}$major'
26280 shlibpath_var=LD_LIBRARY_PATH
26281 ;;
26282
26283*)
26284 dynamic_linker=no
26285 ;;
26286esac
Reid Spencera773bd52006-08-04 18:18:08 +000026287{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26288echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026289test "$dynamic_linker" = no && can_build_shared=no
26290
Reid Spencera773bd52006-08-04 18:18:08 +000026291variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26292if test "$GCC" = yes; then
26293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26294fi
26295
26296{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26297echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026298hardcode_action_GCJ=
26299if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26300 test -n "$runpath_var_GCJ" || \
26301 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26302
26303 # We can hardcode non-existant directories.
26304 if test "$hardcode_direct_GCJ" != no &&
26305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26306 # have to relink, otherwise we might link with an installed library
26307 # when we should be linking with a yet-to-be-installed one
26308 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26309 test "$hardcode_minus_L_GCJ" != no; then
26310 # Linking always hardcodes the temporary library directory.
26311 hardcode_action_GCJ=relink
26312 else
26313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26314 hardcode_action_GCJ=immediate
26315 fi
26316else
26317 # We cannot hardcode anything, or else we can only hardcode existing
26318 # directories.
26319 hardcode_action_GCJ=unsupported
26320fi
Reid Spencera773bd52006-08-04 18:18:08 +000026321{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26322echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026323
26324if test "$hardcode_action_GCJ" = relink; then
26325 # Fast installation is not supported
26326 enable_fast_install=no
26327elif test "$shlibpath_overrides_runpath" = yes ||
26328 test "$enable_shared" = no; then
26329 # Fast installation is not necessary
26330 enable_fast_install=needless
26331fi
26332
John Criswell47fdd832003-07-14 16:52:07 +000026333
26334# The else clause should only fire when bootstrapping the
26335# libtool distribution, otherwise you forgot to ship ltmain.sh
26336# with your package, and you will get complaints that there are
26337# no rules to generate ltmain.sh.
26338if test -f "$ltmain"; then
26339 # See if we are running on zsh, and set the options which allow our commands through
26340 # without removal of \ escapes.
26341 if test -n "${ZSH_VERSION+set}" ; then
26342 setopt NO_GLOB_SUBST
26343 fi
26344 # Now quote all the things that may contain metacharacters while being
26345 # careful not to overquote the AC_SUBSTed values. We take copies of the
26346 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026347 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 +000026348 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26351 deplibs_check_method reload_flag reload_cmds need_locks \
26352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26353 lt_cv_sys_global_symbol_to_c_name_address \
26354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26355 old_postinstall_cmds old_postuninstall_cmds \
26356 compiler_GCJ \
26357 CC_GCJ \
26358 LD_GCJ \
26359 lt_prog_compiler_wl_GCJ \
26360 lt_prog_compiler_pic_GCJ \
26361 lt_prog_compiler_static_GCJ \
26362 lt_prog_compiler_no_builtin_flag_GCJ \
26363 export_dynamic_flag_spec_GCJ \
26364 thread_safe_flag_spec_GCJ \
26365 whole_archive_flag_spec_GCJ \
26366 enable_shared_with_static_runtimes_GCJ \
26367 old_archive_cmds_GCJ \
26368 old_archive_from_new_cmds_GCJ \
26369 predep_objects_GCJ \
26370 postdep_objects_GCJ \
26371 predeps_GCJ \
26372 postdeps_GCJ \
26373 compiler_lib_search_path_GCJ \
26374 archive_cmds_GCJ \
26375 archive_expsym_cmds_GCJ \
26376 postinstall_cmds_GCJ \
26377 postuninstall_cmds_GCJ \
26378 old_archive_from_expsyms_cmds_GCJ \
26379 allow_undefined_flag_GCJ \
26380 no_undefined_flag_GCJ \
26381 export_symbols_cmds_GCJ \
26382 hardcode_libdir_flag_spec_GCJ \
26383 hardcode_libdir_flag_spec_ld_GCJ \
26384 hardcode_libdir_separator_GCJ \
26385 hardcode_automatic_GCJ \
26386 module_cmds_GCJ \
26387 module_expsym_cmds_GCJ \
26388 lt_cv_prog_compiler_c_o_GCJ \
26389 exclude_expsyms_GCJ \
26390 include_expsyms_GCJ; do
26391
26392 case $var in
26393 old_archive_cmds_GCJ | \
26394 old_archive_from_new_cmds_GCJ | \
26395 archive_cmds_GCJ | \
26396 archive_expsym_cmds_GCJ | \
26397 module_cmds_GCJ | \
26398 module_expsym_cmds_GCJ | \
26399 old_archive_from_expsyms_cmds_GCJ | \
26400 export_symbols_cmds_GCJ | \
26401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26402 postinstall_cmds | postuninstall_cmds | \
26403 old_postinstall_cmds | old_postuninstall_cmds | \
26404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26405 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026406 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 +000026407 ;;
26408 *)
26409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26410 ;;
26411 esac
26412 done
26413
26414 case $lt_echo in
26415 *'\$0 --fallback-echo"')
26416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26417 ;;
26418 esac
26419
26420cfgfile="$ofile"
26421
26422 cat <<__EOF__ >> "$cfgfile"
26423# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26424
26425# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26426
26427# Shell to use when invoking shell scripts.
26428SHELL=$lt_SHELL
26429
26430# Whether or not to build shared libraries.
26431build_libtool_libs=$enable_shared
26432
26433# Whether or not to build static libraries.
26434build_old_libs=$enable_static
26435
26436# Whether or not to add -lc for building shared libraries.
26437build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26438
26439# Whether or not to disallow shared libs when runtime libs are static
26440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26441
26442# Whether or not to optimize for fast installation.
26443fast_install=$enable_fast_install
26444
26445# The host system.
26446host_alias=$host_alias
26447host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026448host_os=$host_os
26449
26450# The build system.
26451build_alias=$build_alias
26452build=$build
26453build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026454
26455# An echo program that does not interpret backslashes.
26456echo=$lt_echo
26457
26458# The archiver.
26459AR=$lt_AR
26460AR_FLAGS=$lt_AR_FLAGS
26461
26462# A C compiler.
26463LTCC=$lt_LTCC
26464
Reid Spencera773bd52006-08-04 18:18:08 +000026465# LTCC compiler flags.
26466LTCFLAGS=$lt_LTCFLAGS
26467
John Criswell47fdd832003-07-14 16:52:07 +000026468# A language-specific compiler.
26469CC=$lt_compiler_GCJ
26470
26471# Is the compiler the GNU C compiler?
26472with_gcc=$GCC_GCJ
26473
26474# An ERE matcher.
26475EGREP=$lt_EGREP
26476
26477# The linker used to build libraries.
26478LD=$lt_LD_GCJ
26479
26480# Whether we need hard or soft links.
26481LN_S=$lt_LN_S
26482
26483# A BSD-compatible nm program.
26484NM=$lt_NM
26485
26486# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026487STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026488
26489# Used to examine libraries when file_magic_cmd begins "file"
26490MAGIC_CMD=$MAGIC_CMD
26491
26492# Used on cygwin: DLL creation program.
26493DLLTOOL="$DLLTOOL"
26494
26495# Used on cygwin: object dumper.
26496OBJDUMP="$OBJDUMP"
26497
26498# Used on cygwin: assembler.
26499AS="$AS"
26500
26501# The name of the directory that contains temporary libtool files.
26502objdir=$objdir
26503
26504# How to create reloadable object files.
26505reload_flag=$lt_reload_flag
26506reload_cmds=$lt_reload_cmds
26507
26508# How to pass a linker flag through the compiler.
26509wl=$lt_lt_prog_compiler_wl_GCJ
26510
26511# Object file suffix (normally "o").
26512objext="$ac_objext"
26513
26514# Old archive suffix (normally "a").
26515libext="$libext"
26516
26517# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026518shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026519
26520# Executable file suffix (normally "").
26521exeext="$exeext"
26522
26523# Additional compiler flags for building library objects.
26524pic_flag=$lt_lt_prog_compiler_pic_GCJ
26525pic_mode=$pic_mode
26526
26527# What is the maximum length of a command?
26528max_cmd_len=$lt_cv_sys_max_cmd_len
26529
26530# Does compiler simultaneously support -c and -o options?
26531compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26532
Reid Spencera773bd52006-08-04 18:18:08 +000026533# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026534need_locks=$lt_need_locks
26535
26536# Do we need the lib prefix for modules?
26537need_lib_prefix=$need_lib_prefix
26538
26539# Do we need a version for libraries?
26540need_version=$need_version
26541
26542# Whether dlopen is supported.
26543dlopen_support=$enable_dlopen
26544
26545# Whether dlopen of programs is supported.
26546dlopen_self=$enable_dlopen_self
26547
26548# Whether dlopen of statically linked programs is supported.
26549dlopen_self_static=$enable_dlopen_self_static
26550
26551# Compiler flag to prevent dynamic linking.
26552link_static_flag=$lt_lt_prog_compiler_static_GCJ
26553
26554# Compiler flag to turn off builtin functions.
26555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26556
26557# Compiler flag to allow reflexive dlopens.
26558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26559
26560# Compiler flag to generate shared objects directly from archives.
26561whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26562
26563# Compiler flag to generate thread-safe objects.
26564thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26565
26566# Library versioning type.
26567version_type=$version_type
26568
26569# Format of library name prefix.
26570libname_spec=$lt_libname_spec
26571
26572# List of archive names. First name is the real one, the rest are links.
26573# The last name is the one that the linker finds with -lNAME.
26574library_names_spec=$lt_library_names_spec
26575
26576# The coded name of the library, if different from the real name.
26577soname_spec=$lt_soname_spec
26578
26579# Commands used to build and install an old-style archive.
26580RANLIB=$lt_RANLIB
26581old_archive_cmds=$lt_old_archive_cmds_GCJ
26582old_postinstall_cmds=$lt_old_postinstall_cmds
26583old_postuninstall_cmds=$lt_old_postuninstall_cmds
26584
26585# Create an old-style archive from a shared archive.
26586old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26587
26588# Create a temporary old-style archive to link instead of a shared archive.
26589old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26590
26591# Commands used to build and install a shared archive.
26592archive_cmds=$lt_archive_cmds_GCJ
26593archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26594postinstall_cmds=$lt_postinstall_cmds
26595postuninstall_cmds=$lt_postuninstall_cmds
26596
26597# Commands used to build a loadable module (assumed same as above if empty)
26598module_cmds=$lt_module_cmds_GCJ
26599module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26600
26601# Commands to strip libraries.
26602old_striplib=$lt_old_striplib
26603striplib=$lt_striplib
26604
26605# Dependencies to place before the objects being linked to create a
26606# shared library.
26607predep_objects=$lt_predep_objects_GCJ
26608
26609# Dependencies to place after the objects being linked to create a
26610# shared library.
26611postdep_objects=$lt_postdep_objects_GCJ
26612
26613# Dependencies to place before the objects being linked to create a
26614# shared library.
26615predeps=$lt_predeps_GCJ
26616
26617# Dependencies to place after the objects being linked to create a
26618# shared library.
26619postdeps=$lt_postdeps_GCJ
26620
26621# The library search path used internally by the compiler when linking
26622# a shared library.
26623compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26624
26625# Method to check whether dependent libraries are shared objects.
26626deplibs_check_method=$lt_deplibs_check_method
26627
26628# Command to use when deplibs_check_method == file_magic.
26629file_magic_cmd=$lt_file_magic_cmd
26630
26631# Flag that allows shared libraries with undefined symbols to be built.
26632allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26633
26634# Flag that forces no undefined symbols.
26635no_undefined_flag=$lt_no_undefined_flag_GCJ
26636
26637# Commands used to finish a libtool library installation in a directory.
26638finish_cmds=$lt_finish_cmds
26639
26640# Same as above, but a single script fragment to be evaled but not shown.
26641finish_eval=$lt_finish_eval
26642
26643# Take the output of nm and produce a listing of raw symbols and C names.
26644global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26645
26646# Transform the output of nm in a proper C declaration
26647global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26648
26649# Transform the output of nm in a C name address pair
26650global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26651
26652# This is the shared library runtime path variable.
26653runpath_var=$runpath_var
26654
26655# This is the shared library path variable.
26656shlibpath_var=$shlibpath_var
26657
26658# Is shlibpath searched before the hard-coded library search path?
26659shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26660
26661# How to hardcode a shared library path into an executable.
26662hardcode_action=$hardcode_action_GCJ
26663
26664# Whether we should hardcode library paths into libraries.
26665hardcode_into_libs=$hardcode_into_libs
26666
26667# Flag to hardcode \$libdir into a binary during linking.
26668# This must work even if \$libdir does not exist.
26669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26670
26671# If ld is used when linking, flag to hardcode \$libdir into
26672# a binary during linking. This must work even if \$libdir does
26673# not exist.
26674hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26675
26676# Whether we need a single -rpath flag with a separated argument.
26677hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26678
26679# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26680# resulting binary.
26681hardcode_direct=$hardcode_direct_GCJ
26682
26683# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26684# resulting binary.
26685hardcode_minus_L=$hardcode_minus_L_GCJ
26686
26687# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26688# the resulting binary.
26689hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26690
26691# Set to yes if building a shared library automatically hardcodes DIR into the library
26692# and all subsequent libraries and executables linked against it.
26693hardcode_automatic=$hardcode_automatic_GCJ
26694
26695# Variables whose values should be saved in libtool wrapper scripts and
26696# restored at relink time.
26697variables_saved_for_relink="$variables_saved_for_relink"
26698
26699# Whether libtool must link a program against all its dependency libraries.
26700link_all_deplibs=$link_all_deplibs_GCJ
26701
26702# Compile-time system search path for libraries
26703sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26704
26705# Run-time system search path for libraries
26706sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26707
26708# Fix the shell variable \$srcfile for the compiler.
26709fix_srcfile_path="$fix_srcfile_path_GCJ"
26710
26711# Set to yes if exported symbols are required.
26712always_export_symbols=$always_export_symbols_GCJ
26713
26714# The commands to list exported symbols.
26715export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26716
26717# The commands to extract the exported symbol list from a shared archive.
26718extract_expsyms_cmds=$lt_extract_expsyms_cmds
26719
26720# Symbols that should not be listed in the preloaded symbols.
26721exclude_expsyms=$lt_exclude_expsyms_GCJ
26722
26723# Symbols that must always be exported.
26724include_expsyms=$lt_include_expsyms_GCJ
26725
26726# ### END LIBTOOL TAG CONFIG: $tagname
26727
26728__EOF__
26729
26730
26731else
26732 # If there is no Makefile yet, we rely on a make rule to execute
26733 # `config.status --recheck' to rerun these tests and create the
26734 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26736 if test -f "$ltmain_in"; then
26737 test -f Makefile && make "$ltmain"
26738 fi
John Criswell47fdd832003-07-14 16:52:07 +000026739fi
26740
26741
26742ac_ext=c
26743ac_cpp='$CPP $CPPFLAGS'
26744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26746ac_compiler_gnu=$ac_cv_c_compiler_gnu
26747
26748CC="$lt_save_CC"
26749
26750 else
26751 tagname=""
26752 fi
26753 ;;
26754
26755 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026756 ac_ext=c
26757ac_cpp='$CPP $CPPFLAGS'
26758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26760ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026761
26762
26763# Source file extension for RC test sources.
26764ac_ext=rc
26765
26766# Object file extension for compiled RC test sources.
26767objext=o
26768objext_RC=$objext
26769
26770# Code to be used in simple compile tests
26771lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26772
26773# Code to be used in simple link tests
26774lt_simple_link_test_code="$lt_simple_compile_test_code"
26775
26776# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26777
26778# If no C compiler was specified, use CC.
26779LTCC=${LTCC-"$CC"}
26780
Reid Spencera773bd52006-08-04 18:18:08 +000026781# If no C compiler flags were specified, use CFLAGS.
26782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26783
John Criswell47fdd832003-07-14 16:52:07 +000026784# Allow CC to be a program name with arguments.
26785compiler=$CC
26786
26787
Reid Spencera773bd52006-08-04 18:18:08 +000026788# save warnings/boilerplate of simple test code
26789ac_outfile=conftest.$ac_objext
26790printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26792_lt_compiler_boilerplate=`cat conftest.err`
26793$rm conftest*
26794
26795ac_outfile=conftest.$ac_objext
26796printf "$lt_simple_link_test_code" >conftest.$ac_ext
26797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26798_lt_linker_boilerplate=`cat conftest.err`
26799$rm conftest*
26800
26801
John Criswell47fdd832003-07-14 16:52:07 +000026802# Allow CC to be a program name with arguments.
26803lt_save_CC="$CC"
26804CC=${RC-"windres"}
26805compiler=$CC
26806compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026807for cc_temp in $compiler""; do
26808 case $cc_temp in
26809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26811 \-*) ;;
26812 *) break;;
26813 esac
26814done
26815cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26816
John Criswell47fdd832003-07-14 16:52:07 +000026817lt_cv_prog_compiler_c_o_RC=yes
26818
26819# The else clause should only fire when bootstrapping the
26820# libtool distribution, otherwise you forgot to ship ltmain.sh
26821# with your package, and you will get complaints that there are
26822# no rules to generate ltmain.sh.
26823if test -f "$ltmain"; then
26824 # See if we are running on zsh, and set the options which allow our commands through
26825 # without removal of \ escapes.
26826 if test -n "${ZSH_VERSION+set}" ; then
26827 setopt NO_GLOB_SUBST
26828 fi
26829 # Now quote all the things that may contain metacharacters while being
26830 # careful not to overquote the AC_SUBSTed values. We take copies of the
26831 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026832 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 +000026833 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026834 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26835 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26836 deplibs_check_method reload_flag reload_cmds need_locks \
26837 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26838 lt_cv_sys_global_symbol_to_c_name_address \
26839 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26840 old_postinstall_cmds old_postuninstall_cmds \
26841 compiler_RC \
26842 CC_RC \
26843 LD_RC \
26844 lt_prog_compiler_wl_RC \
26845 lt_prog_compiler_pic_RC \
26846 lt_prog_compiler_static_RC \
26847 lt_prog_compiler_no_builtin_flag_RC \
26848 export_dynamic_flag_spec_RC \
26849 thread_safe_flag_spec_RC \
26850 whole_archive_flag_spec_RC \
26851 enable_shared_with_static_runtimes_RC \
26852 old_archive_cmds_RC \
26853 old_archive_from_new_cmds_RC \
26854 predep_objects_RC \
26855 postdep_objects_RC \
26856 predeps_RC \
26857 postdeps_RC \
26858 compiler_lib_search_path_RC \
26859 archive_cmds_RC \
26860 archive_expsym_cmds_RC \
26861 postinstall_cmds_RC \
26862 postuninstall_cmds_RC \
26863 old_archive_from_expsyms_cmds_RC \
26864 allow_undefined_flag_RC \
26865 no_undefined_flag_RC \
26866 export_symbols_cmds_RC \
26867 hardcode_libdir_flag_spec_RC \
26868 hardcode_libdir_flag_spec_ld_RC \
26869 hardcode_libdir_separator_RC \
26870 hardcode_automatic_RC \
26871 module_cmds_RC \
26872 module_expsym_cmds_RC \
26873 lt_cv_prog_compiler_c_o_RC \
26874 exclude_expsyms_RC \
26875 include_expsyms_RC; do
26876
26877 case $var in
26878 old_archive_cmds_RC | \
26879 old_archive_from_new_cmds_RC | \
26880 archive_cmds_RC | \
26881 archive_expsym_cmds_RC | \
26882 module_cmds_RC | \
26883 module_expsym_cmds_RC | \
26884 old_archive_from_expsyms_cmds_RC | \
26885 export_symbols_cmds_RC | \
26886 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26887 postinstall_cmds | postuninstall_cmds | \
26888 old_postinstall_cmds | old_postuninstall_cmds | \
26889 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26890 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026891 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 +000026892 ;;
26893 *)
26894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26895 ;;
26896 esac
26897 done
26898
26899 case $lt_echo in
26900 *'\$0 --fallback-echo"')
26901 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26902 ;;
26903 esac
26904
26905cfgfile="$ofile"
26906
26907 cat <<__EOF__ >> "$cfgfile"
26908# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26909
26910# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26911
26912# Shell to use when invoking shell scripts.
26913SHELL=$lt_SHELL
26914
26915# Whether or not to build shared libraries.
26916build_libtool_libs=$enable_shared
26917
26918# Whether or not to build static libraries.
26919build_old_libs=$enable_static
26920
26921# Whether or not to add -lc for building shared libraries.
26922build_libtool_need_lc=$archive_cmds_need_lc_RC
26923
26924# Whether or not to disallow shared libs when runtime libs are static
26925allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26926
26927# Whether or not to optimize for fast installation.
26928fast_install=$enable_fast_install
26929
26930# The host system.
26931host_alias=$host_alias
26932host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026933host_os=$host_os
26934
26935# The build system.
26936build_alias=$build_alias
26937build=$build
26938build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026939
26940# An echo program that does not interpret backslashes.
26941echo=$lt_echo
26942
26943# The archiver.
26944AR=$lt_AR
26945AR_FLAGS=$lt_AR_FLAGS
26946
26947# A C compiler.
26948LTCC=$lt_LTCC
26949
Reid Spencera773bd52006-08-04 18:18:08 +000026950# LTCC compiler flags.
26951LTCFLAGS=$lt_LTCFLAGS
26952
John Criswell47fdd832003-07-14 16:52:07 +000026953# A language-specific compiler.
26954CC=$lt_compiler_RC
26955
26956# Is the compiler the GNU C compiler?
26957with_gcc=$GCC_RC
26958
26959# An ERE matcher.
26960EGREP=$lt_EGREP
26961
26962# The linker used to build libraries.
26963LD=$lt_LD_RC
26964
26965# Whether we need hard or soft links.
26966LN_S=$lt_LN_S
26967
26968# A BSD-compatible nm program.
26969NM=$lt_NM
26970
26971# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026972STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026973
26974# Used to examine libraries when file_magic_cmd begins "file"
26975MAGIC_CMD=$MAGIC_CMD
26976
26977# Used on cygwin: DLL creation program.
26978DLLTOOL="$DLLTOOL"
26979
26980# Used on cygwin: object dumper.
26981OBJDUMP="$OBJDUMP"
26982
26983# Used on cygwin: assembler.
26984AS="$AS"
26985
26986# The name of the directory that contains temporary libtool files.
26987objdir=$objdir
26988
26989# How to create reloadable object files.
26990reload_flag=$lt_reload_flag
26991reload_cmds=$lt_reload_cmds
26992
26993# How to pass a linker flag through the compiler.
26994wl=$lt_lt_prog_compiler_wl_RC
26995
26996# Object file suffix (normally "o").
26997objext="$ac_objext"
26998
26999# Old archive suffix (normally "a").
27000libext="$libext"
27001
27002# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000027003shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000027004
27005# Executable file suffix (normally "").
27006exeext="$exeext"
27007
27008# Additional compiler flags for building library objects.
27009pic_flag=$lt_lt_prog_compiler_pic_RC
27010pic_mode=$pic_mode
27011
27012# What is the maximum length of a command?
27013max_cmd_len=$lt_cv_sys_max_cmd_len
27014
27015# Does compiler simultaneously support -c and -o options?
27016compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27017
Reid Spencera773bd52006-08-04 18:18:08 +000027018# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000027019need_locks=$lt_need_locks
27020
27021# Do we need the lib prefix for modules?
27022need_lib_prefix=$need_lib_prefix
27023
27024# Do we need a version for libraries?
27025need_version=$need_version
27026
27027# Whether dlopen is supported.
27028dlopen_support=$enable_dlopen
27029
27030# Whether dlopen of programs is supported.
27031dlopen_self=$enable_dlopen_self
27032
27033# Whether dlopen of statically linked programs is supported.
27034dlopen_self_static=$enable_dlopen_self_static
27035
27036# Compiler flag to prevent dynamic linking.
27037link_static_flag=$lt_lt_prog_compiler_static_RC
27038
27039# Compiler flag to turn off builtin functions.
27040no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27041
27042# Compiler flag to allow reflexive dlopens.
27043export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27044
27045# Compiler flag to generate shared objects directly from archives.
27046whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27047
27048# Compiler flag to generate thread-safe objects.
27049thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27050
27051# Library versioning type.
27052version_type=$version_type
27053
27054# Format of library name prefix.
27055libname_spec=$lt_libname_spec
27056
27057# List of archive names. First name is the real one, the rest are links.
27058# The last name is the one that the linker finds with -lNAME.
27059library_names_spec=$lt_library_names_spec
27060
27061# The coded name of the library, if different from the real name.
27062soname_spec=$lt_soname_spec
27063
27064# Commands used to build and install an old-style archive.
27065RANLIB=$lt_RANLIB
27066old_archive_cmds=$lt_old_archive_cmds_RC
27067old_postinstall_cmds=$lt_old_postinstall_cmds
27068old_postuninstall_cmds=$lt_old_postuninstall_cmds
27069
27070# Create an old-style archive from a shared archive.
27071old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27072
27073# Create a temporary old-style archive to link instead of a shared archive.
27074old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27075
27076# Commands used to build and install a shared archive.
27077archive_cmds=$lt_archive_cmds_RC
27078archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27079postinstall_cmds=$lt_postinstall_cmds
27080postuninstall_cmds=$lt_postuninstall_cmds
27081
27082# Commands used to build a loadable module (assumed same as above if empty)
27083module_cmds=$lt_module_cmds_RC
27084module_expsym_cmds=$lt_module_expsym_cmds_RC
27085
27086# Commands to strip libraries.
27087old_striplib=$lt_old_striplib
27088striplib=$lt_striplib
27089
27090# Dependencies to place before the objects being linked to create a
27091# shared library.
27092predep_objects=$lt_predep_objects_RC
27093
27094# Dependencies to place after the objects being linked to create a
27095# shared library.
27096postdep_objects=$lt_postdep_objects_RC
27097
27098# Dependencies to place before the objects being linked to create a
27099# shared library.
27100predeps=$lt_predeps_RC
27101
27102# Dependencies to place after the objects being linked to create a
27103# shared library.
27104postdeps=$lt_postdeps_RC
27105
27106# The library search path used internally by the compiler when linking
27107# a shared library.
27108compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27109
27110# Method to check whether dependent libraries are shared objects.
27111deplibs_check_method=$lt_deplibs_check_method
27112
27113# Command to use when deplibs_check_method == file_magic.
27114file_magic_cmd=$lt_file_magic_cmd
27115
27116# Flag that allows shared libraries with undefined symbols to be built.
27117allow_undefined_flag=$lt_allow_undefined_flag_RC
27118
27119# Flag that forces no undefined symbols.
27120no_undefined_flag=$lt_no_undefined_flag_RC
27121
27122# Commands used to finish a libtool library installation in a directory.
27123finish_cmds=$lt_finish_cmds
27124
27125# Same as above, but a single script fragment to be evaled but not shown.
27126finish_eval=$lt_finish_eval
27127
27128# Take the output of nm and produce a listing of raw symbols and C names.
27129global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27130
27131# Transform the output of nm in a proper C declaration
27132global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27133
27134# Transform the output of nm in a C name address pair
27135global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27136
27137# This is the shared library runtime path variable.
27138runpath_var=$runpath_var
27139
27140# This is the shared library path variable.
27141shlibpath_var=$shlibpath_var
27142
27143# Is shlibpath searched before the hard-coded library search path?
27144shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27145
27146# How to hardcode a shared library path into an executable.
27147hardcode_action=$hardcode_action_RC
27148
27149# Whether we should hardcode library paths into libraries.
27150hardcode_into_libs=$hardcode_into_libs
27151
27152# Flag to hardcode \$libdir into a binary during linking.
27153# This must work even if \$libdir does not exist.
27154hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27155
27156# If ld is used when linking, flag to hardcode \$libdir into
27157# a binary during linking. This must work even if \$libdir does
27158# not exist.
27159hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27160
27161# Whether we need a single -rpath flag with a separated argument.
27162hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27163
27164# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27165# resulting binary.
27166hardcode_direct=$hardcode_direct_RC
27167
27168# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27169# resulting binary.
27170hardcode_minus_L=$hardcode_minus_L_RC
27171
27172# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27173# the resulting binary.
27174hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27175
27176# Set to yes if building a shared library automatically hardcodes DIR into the library
27177# and all subsequent libraries and executables linked against it.
27178hardcode_automatic=$hardcode_automatic_RC
27179
27180# Variables whose values should be saved in libtool wrapper scripts and
27181# restored at relink time.
27182variables_saved_for_relink="$variables_saved_for_relink"
27183
27184# Whether libtool must link a program against all its dependency libraries.
27185link_all_deplibs=$link_all_deplibs_RC
27186
27187# Compile-time system search path for libraries
27188sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27189
27190# Run-time system search path for libraries
27191sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27192
27193# Fix the shell variable \$srcfile for the compiler.
27194fix_srcfile_path="$fix_srcfile_path_RC"
27195
27196# Set to yes if exported symbols are required.
27197always_export_symbols=$always_export_symbols_RC
27198
27199# The commands to list exported symbols.
27200export_symbols_cmds=$lt_export_symbols_cmds_RC
27201
27202# The commands to extract the exported symbol list from a shared archive.
27203extract_expsyms_cmds=$lt_extract_expsyms_cmds
27204
27205# Symbols that should not be listed in the preloaded symbols.
27206exclude_expsyms=$lt_exclude_expsyms_RC
27207
27208# Symbols that must always be exported.
27209include_expsyms=$lt_include_expsyms_RC
27210
27211# ### END LIBTOOL TAG CONFIG: $tagname
27212
27213__EOF__
27214
27215
27216else
27217 # If there is no Makefile yet, we rely on a make rule to execute
27218 # `config.status --recheck' to rerun these tests and create the
27219 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027220 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27221 if test -f "$ltmain_in"; then
27222 test -f Makefile && make "$ltmain"
27223 fi
John Criswell47fdd832003-07-14 16:52:07 +000027224fi
27225
27226
27227ac_ext=c
27228ac_cpp='$CPP $CPPFLAGS'
27229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27231ac_compiler_gnu=$ac_cv_c_compiler_gnu
27232
27233CC="$lt_save_CC"
27234
27235 ;;
27236
27237 *)
27238 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27239echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27240 { (exit 1); exit 1; }; }
27241 ;;
27242 esac
27243
27244 # Append the new tag name to the list of available tags.
27245 if test -n "$tagname" ; then
27246 available_tags="$available_tags $tagname"
27247 fi
27248 fi
27249 done
27250 IFS="$lt_save_ifs"
27251
27252 # Now substitute the updated list of available tags.
27253 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27254 mv "${ofile}T" "$ofile"
27255 chmod +x "$ofile"
27256 else
27257 rm -f "${ofile}T"
27258 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27259echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27260 { (exit 1); exit 1; }; }
27261 fi
27262fi
John Criswell7a73b802003-06-30 21:59:07 +000027263
27264
27265
27266# This can be used to rebuild libtool when needed
27267LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27268
27269# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027270LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027271
27272# Prevent multiple expansion
27273
27274
27275
John Criswell47fdd832003-07-14 16:52:07 +000027276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027293
Reid Spencer582a23c2004-12-29 07:07:57 +000027294if test "$lt_cv_dlopen_self" = "yes" ; then
27295
27296cat >>confdefs.h <<\_ACEOF
27297#define CAN_DLOPEN_SELF 1
27298_ACEOF
27299
27300fi
27301
Douglas Gregor01746742009-05-11 18:05:52 +000027302
Reid Spencer7931a782004-12-27 06:15:02 +000027303if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027304 LLVMGCC="llvm-gcc${EXEEXT}"
27305 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027306 LLVMGCCCOMMAND="$LLVMGCC"
27307 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027308 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27309
27310 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27311
Reid Spencerc84492c2005-06-02 22:34:49 +000027312 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27313set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027316if test "${ac_cv_path_LLVMGCC+set}" = set; then
27317 echo $ECHO_N "(cached) $ECHO_C" >&6
27318else
27319 case $LLVMGCC in
27320 [\\/]* | ?:[\\/]*)
27321 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27322 ;;
27323 *)
27324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27325for as_dir in $PATH
27326do
27327 IFS=$as_save_IFS
27328 test -z "$as_dir" && as_dir=.
27329 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027330 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 +000027331 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27333 break 2
27334 fi
27335done
27336done
Reid Spencera773bd52006-08-04 18:18:08 +000027337IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027338
Reid Spencer59473af2004-12-25 07:31:29 +000027339 ;;
27340esac
27341fi
27342LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027343if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027344 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27345echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027346else
Reid Spencera773bd52006-08-04 18:18:08 +000027347 { echo "$as_me:$LINENO: result: no" >&5
27348echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027349fi
27350
Reid Spencera773bd52006-08-04 18:18:08 +000027351
Reid Spencerc84492c2005-06-02 22:34:49 +000027352 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27353set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027356if test "${ac_cv_path_LLVMGXX+set}" = set; then
27357 echo $ECHO_N "(cached) $ECHO_C" >&6
27358else
27359 case $LLVMGXX in
27360 [\\/]* | ?:[\\/]*)
27361 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27362 ;;
27363 *)
27364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27365for as_dir in $PATH
27366do
27367 IFS=$as_save_IFS
27368 test -z "$as_dir" && as_dir=.
27369 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027370 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 +000027371 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27373 break 2
27374 fi
27375done
27376done
Reid Spencera773bd52006-08-04 18:18:08 +000027377IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027378
Reid Spencer59473af2004-12-25 07:31:29 +000027379 ;;
27380esac
27381fi
27382LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027383if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027384 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27385echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027386else
Reid Spencera773bd52006-08-04 18:18:08 +000027387 { echo "$as_me:$LINENO: result: no" >&5
27388echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027389fi
27390
Reid Spencera773bd52006-08-04 18:18:08 +000027391
Reid Spencer59473af2004-12-25 07:31:29 +000027392else
Devang Patel5d28b882007-12-04 22:54:47 +000027393 if test -z "$LLVMGCC"; then
27394 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027395 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027396 fi
27397 if test -z "$LLVMGXX"; then
27398 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027399 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027400 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027401
Reid Spencer59473af2004-12-25 07:31:29 +000027402 LLVMGCC=$LLVMGCC
27403
27404 LLVMGXX=$LLVMGXX
27405
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027406 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27407
27408 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27409
Reid Spencer59473af2004-12-25 07:31:29 +000027410fi
27411
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027412
Reid Spencera773bd52006-08-04 18:18:08 +000027413{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27414echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027415
Reid Spencer86901802004-12-08 23:07:27 +000027416ICC=no
27417IXX=no
27418case $CC in
27419 icc*|icpc*)
27420 ICC=yes
27421 IXX=yes
27422 ;;
27423 *)
27424 ;;
27425esac
27426
Duraid Madina937c60a2006-02-15 07:57:42 +000027427if test "$GCC" != "yes" && test "$ICC" != "yes"
27428then
27429 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27430echo "$as_me: error: gcc|icc required but not found" >&2;}
27431 { (exit 1); exit 1; }; }
27432fi
27433
27434if test "$GXX" != "yes" && test "$IXX" != "yes"
27435then
27436 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27437echo "$as_me: error: g++|icc required but not found" >&2;}
27438 { (exit 1); exit 1; }; }
27439fi
27440
Reid Spencer86901802004-12-08 23:07:27 +000027441if test "$GCC" = "yes"
27442then
Chris Lattner399c7c72008-02-05 19:43:53 +000027443 cat >conftest.$ac_ext <<_ACEOF
27444#if !defined(__GNUC__) || __GNUC__ < 3
27445#error Unsupported GCC version
27446#endif
27447
27448_ACEOF
27449rm -f conftest.$ac_objext
27450if { (ac_try="$ac_compile"
27451case "(($ac_try" in
27452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453 *) ac_try_echo=$ac_try;;
27454esac
27455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456 (eval "$ac_compile") 2>conftest.er1
27457 ac_status=$?
27458 grep -v '^ *+' conftest.er1 >conftest.err
27459 rm -f conftest.er1
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27464 { (case "(($ac_try" in
27465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466 *) ac_try_echo=$ac_try;;
27467esac
27468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469 (eval "$ac_try") 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; } &&
27473 { ac_try='test -s conftest.$ac_objext'
27474 { (case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27477esac
27478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_try") 2>&5
27480 ac_status=$?
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027483 :
27484else
27485 echo "$as_me: failed program was:" >&5
27486sed 's/^/| /' conftest.$ac_ext >&5
27487
27488 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027489echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27490 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027491fi
27492
27493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027494fi
27495
27496if test -z "$llvm_cv_gnu_make_command"
27497then
27498 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27499echo "$as_me: error: GNU Make required but not found" >&2;}
27500 { (exit 1); exit 1; }; }
27501fi
27502
Reid Spencera773bd52006-08-04 18:18:08 +000027503{ echo "$as_me:$LINENO: result: ok" >&5
27504echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027505
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000027506{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
27507echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27508NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27509
27510NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27511
27512{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27513echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27514
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027515
27516
Reid Spencera773bd52006-08-04 18:18:08 +000027517{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27518echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027519if test "${ac_cv_lib_m_sin+set}" = set; then
27520 echo $ECHO_N "(cached) $ECHO_C" >&6
27521else
27522 ac_check_lib_save_LIBS=$LIBS
27523LIBS="-lm $LIBS"
27524cat >conftest.$ac_ext <<_ACEOF
27525/* confdefs.h. */
27526_ACEOF
27527cat confdefs.h >>conftest.$ac_ext
27528cat >>conftest.$ac_ext <<_ACEOF
27529/* end confdefs.h. */
27530
Reid Spencera773bd52006-08-04 18:18:08 +000027531/* Override any GCC internal prototype to avoid an error.
27532 Use char because int might match the return type of a GCC
27533 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027534#ifdef __cplusplus
27535extern "C"
27536#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027537char sin ();
27538int
27539main ()
27540{
Reid Spencera773bd52006-08-04 18:18:08 +000027541return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027542 ;
27543 return 0;
27544}
27545_ACEOF
27546rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027547if { (ac_try="$ac_link"
27548case "(($ac_try" in
27549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550 *) ac_try_echo=$ac_try;;
27551esac
27552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027559 (exit $ac_status); } &&
27560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27561 { (case "(($ac_try" in
27562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563 *) ac_try_echo=$ac_try;;
27564esac
27565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566 (eval "$ac_try") 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; } &&
27570 { ac_try='test -s conftest$ac_exeext'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574esac
27575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027580 ac_cv_lib_m_sin=yes
27581else
27582 echo "$as_me: failed program was:" >&5
27583sed 's/^/| /' conftest.$ac_ext >&5
27584
Reid Spencera773bd52006-08-04 18:18:08 +000027585 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027586fi
Reid Spencera773bd52006-08-04 18:18:08 +000027587
Bill Wendlingebcceee2009-04-18 11:20:33 +000027588rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027589 conftest$ac_exeext conftest.$ac_ext
27590LIBS=$ac_check_lib_save_LIBS
27591fi
Reid Spencera773bd52006-08-04 18:18:08 +000027592{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27593echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027594if test $ac_cv_lib_m_sin = yes; then
27595 cat >>confdefs.h <<_ACEOF
27596#define HAVE_LIBM 1
27597_ACEOF
27598
27599 LIBS="-lm $LIBS"
27600
27601fi
27602
Jeff Cohen28783c32007-01-12 18:22:38 +000027603if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027604
Reid Spencera773bd52006-08-04 18:18:08 +000027605{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27606echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027607if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027608 echo $ECHO_N "(cached) $ECHO_C" >&6
27609else
27610 ac_check_lib_save_LIBS=$LIBS
27611LIBS="-limagehlp $LIBS"
27612cat >conftest.$ac_ext <<_ACEOF
27613/* confdefs.h. */
27614_ACEOF
27615cat confdefs.h >>conftest.$ac_ext
27616cat >>conftest.$ac_ext <<_ACEOF
27617/* end confdefs.h. */
27618
Reid Spencer48fdf912006-06-01 19:03:21 +000027619
Reid Spencer484fc8e2006-06-01 16:55:59 +000027620int
27621main ()
27622{
Reid Spencera773bd52006-08-04 18:18:08 +000027623return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027624 ;
27625 return 0;
27626}
27627_ACEOF
27628rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027629if { (ac_try="$ac_link"
27630case "(($ac_try" in
27631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632 *) ac_try_echo=$ac_try;;
27633esac
27634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027636 ac_status=$?
27637 grep -v '^ *+' conftest.er1 >conftest.err
27638 rm -f conftest.er1
27639 cat conftest.err >&5
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027641 (exit $ac_status); } &&
27642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27643 { (case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27646esac
27647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_try") 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; } &&
27652 { ac_try='test -s conftest$ac_exeext'
27653 { (case "(($ac_try" in
27654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655 *) ac_try_echo=$ac_try;;
27656esac
27657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658 (eval "$ac_try") 2>&5
27659 ac_status=$?
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027662 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027663else
27664 echo "$as_me: failed program was:" >&5
27665sed 's/^/| /' conftest.$ac_ext >&5
27666
Reid Spencera773bd52006-08-04 18:18:08 +000027667 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027668fi
Reid Spencera773bd52006-08-04 18:18:08 +000027669
Bill Wendlingebcceee2009-04-18 11:20:33 +000027670rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027671 conftest$ac_exeext conftest.$ac_ext
27672LIBS=$ac_check_lib_save_LIBS
27673fi
Reid Spencera773bd52006-08-04 18:18:08 +000027674{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27675echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027676if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027677 cat >>confdefs.h <<_ACEOF
27678#define HAVE_LIBIMAGEHLP 1
27679_ACEOF
27680
27681 LIBS="-limagehlp $LIBS"
27682
27683fi
27684
27685
Reid Spencera773bd52006-08-04 18:18:08 +000027686{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27687echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027688if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027689 echo $ECHO_N "(cached) $ECHO_C" >&6
27690else
27691 ac_check_lib_save_LIBS=$LIBS
27692LIBS="-lpsapi $LIBS"
27693cat >conftest.$ac_ext <<_ACEOF
27694/* confdefs.h. */
27695_ACEOF
27696cat confdefs.h >>conftest.$ac_ext
27697cat >>conftest.$ac_ext <<_ACEOF
27698/* end confdefs.h. */
27699
Reid Spencer48fdf912006-06-01 19:03:21 +000027700
Reid Spencer484fc8e2006-06-01 16:55:59 +000027701int
27702main ()
27703{
Reid Spencera773bd52006-08-04 18:18:08 +000027704return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027705 ;
27706 return 0;
27707}
27708_ACEOF
27709rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027710if { (ac_try="$ac_link"
27711case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27714esac
27715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027717 ac_status=$?
27718 grep -v '^ *+' conftest.er1 >conftest.err
27719 rm -f conftest.er1
27720 cat conftest.err >&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027722 (exit $ac_status); } &&
27723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27724 { (case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27727esac
27728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_try") 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; } &&
27733 { ac_try='test -s conftest$ac_exeext'
27734 { (case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27737esac
27738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739 (eval "$ac_try") 2>&5
27740 ac_status=$?
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027743 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027744else
27745 echo "$as_me: failed program was:" >&5
27746sed 's/^/| /' conftest.$ac_ext >&5
27747
Reid Spencera773bd52006-08-04 18:18:08 +000027748 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027749fi
Reid Spencera773bd52006-08-04 18:18:08 +000027750
Bill Wendlingebcceee2009-04-18 11:20:33 +000027751rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027752 conftest$ac_exeext conftest.$ac_ext
27753LIBS=$ac_check_lib_save_LIBS
27754fi
Reid Spencera773bd52006-08-04 18:18:08 +000027755{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27756echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027757if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027758 cat >>confdefs.h <<_ACEOF
27759#define HAVE_LIBPSAPI 1
27760_ACEOF
27761
27762 LIBS="-lpsapi $LIBS"
27763
27764fi
27765
27766fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027767
Reid Spencera773bd52006-08-04 18:18:08 +000027768{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27769echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027770if test "${ac_cv_search_dlopen+set}" = set; then
27771 echo $ECHO_N "(cached) $ECHO_C" >&6
27772else
27773 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027774cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027775/* confdefs.h. */
27776_ACEOF
27777cat confdefs.h >>conftest.$ac_ext
27778cat >>conftest.$ac_ext <<_ACEOF
27779/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027780
Reid Spencera773bd52006-08-04 18:18:08 +000027781/* Override any GCC internal prototype to avoid an error.
27782 Use char because int might match the return type of a GCC
27783 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027784#ifdef __cplusplus
27785extern "C"
27786#endif
John Criswell7a73b802003-06-30 21:59:07 +000027787char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027788int
27789main ()
27790{
Reid Spencera773bd52006-08-04 18:18:08 +000027791return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027792 ;
27793 return 0;
27794}
27795_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027796for ac_lib in '' dl; do
27797 if test -z "$ac_lib"; then
27798 ac_res="none required"
27799 else
27800 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027802 fi
27803 rm -f conftest.$ac_objext conftest$ac_exeext
27804if { (ac_try="$ac_link"
27805case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27808esac
27809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027811 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027816 (exit $ac_status); } &&
27817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27818 { (case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27821esac
27822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_try") 2>&5
27824 ac_status=$?
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; } &&
27827 { ac_try='test -s conftest$ac_exeext'
27828 { (case "(($ac_try" in
27829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830 *) ac_try_echo=$ac_try;;
27831esac
27832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833 (eval "$ac_try") 2>&5
27834 ac_status=$?
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027837 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027838else
27839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027840sed 's/^/| /' conftest.$ac_ext >&5
27841
Reid Spencera773bd52006-08-04 18:18:08 +000027842
John Criswell7a73b802003-06-30 21:59:07 +000027843fi
Reid Spencera773bd52006-08-04 18:18:08 +000027844
Bill Wendlingebcceee2009-04-18 11:20:33 +000027845rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027846 conftest$ac_exeext
27847 if test "${ac_cv_search_dlopen+set}" = set; then
27848 break
John Criswell7a73b802003-06-30 21:59:07 +000027849fi
Reid Spencera773bd52006-08-04 18:18:08 +000027850done
27851if test "${ac_cv_search_dlopen+set}" = set; then
27852 :
27853else
27854 ac_cv_search_dlopen=no
27855fi
27856rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027857LIBS=$ac_func_search_save_LIBS
27858fi
Reid Spencera773bd52006-08-04 18:18:08 +000027859{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27860echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27861ac_res=$ac_cv_search_dlopen
27862if test "$ac_res" != no; then
27863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027864
27865cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027866#define HAVE_DLOPEN 1
27867_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027868
27869else
Brian Gaekec45be042003-10-07 06:01:34 +000027870 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27871echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027872fi
27873
27874
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027875if test "$llvm_cv_enable_libffi" = "yes" ; then
27876 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027877echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27878if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027881 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027882cat >conftest.$ac_ext <<_ACEOF
27883/* confdefs.h. */
27884_ACEOF
27885cat confdefs.h >>conftest.$ac_ext
27886cat >>conftest.$ac_ext <<_ACEOF
27887/* end confdefs.h. */
27888
27889/* Override any GCC internal prototype to avoid an error.
27890 Use char because int might match the return type of a GCC
27891 builtin and then its argument prototype would still apply. */
27892#ifdef __cplusplus
27893extern "C"
27894#endif
27895char ffi_call ();
27896int
27897main ()
27898{
27899return ffi_call ();
27900 ;
27901 return 0;
27902}
27903_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027904for ac_lib in '' ffi; do
27905 if test -z "$ac_lib"; then
27906 ac_res="none required"
27907 else
27908 ac_res=-l$ac_lib
27909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27910 fi
27911 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027912if { (ac_try="$ac_link"
27913case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27916esac
27917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918 (eval "$ac_link") 2>conftest.er1
27919 ac_status=$?
27920 grep -v '^ *+' conftest.er1 >conftest.err
27921 rm -f conftest.er1
27922 cat conftest.err >&5
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027924 (exit $ac_status); } &&
27925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27926 { (case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27929esac
27930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_try") 2>&5
27932 ac_status=$?
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); }; } &&
27935 { ac_try='test -s conftest$ac_exeext'
27936 { (case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27939esac
27940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_try") 2>&5
27942 ac_status=$?
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027945 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027946else
27947 echo "$as_me: failed program was:" >&5
27948sed 's/^/| /' conftest.$ac_ext >&5
27949
Nick Lewycky267fddb2009-04-13 04:26:27 +000027950
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027951fi
27952
Bill Wendlingebcceee2009-04-18 11:20:33 +000027953rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027954 conftest$ac_exeext
27955 if test "${ac_cv_search_ffi_call+set}" = set; then
27956 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027957fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027958done
27959if test "${ac_cv_search_ffi_call+set}" = set; then
27960 :
27961else
27962 ac_cv_search_ffi_call=no
27963fi
27964rm conftest.$ac_ext
27965LIBS=$ac_func_search_save_LIBS
27966fi
27967{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27968echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27969ac_res=$ac_cv_search_ffi_call
27970if test "$ac_res" != no; then
27971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27972
27973cat >>confdefs.h <<\_ACEOF
27974#define HAVE_FFI_CALL 1
27975_ACEOF
27976
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027977else
27978 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27979echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27980fi
27981
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027982fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027983
Reid Spencera773bd52006-08-04 18:18:08 +000027984{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27985echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027986if test "${ac_cv_search_mallinfo+set}" = set; then
27987 echo $ECHO_N "(cached) $ECHO_C" >&6
27988else
27989 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027990cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027991/* confdefs.h. */
27992_ACEOF
27993cat confdefs.h >>conftest.$ac_ext
27994cat >>conftest.$ac_ext <<_ACEOF
27995/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027996
Reid Spencera773bd52006-08-04 18:18:08 +000027997/* Override any GCC internal prototype to avoid an error.
27998 Use char because int might match the return type of a GCC
27999 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000028000#ifdef __cplusplus
28001extern "C"
28002#endif
John Criswell7a73b802003-06-30 21:59:07 +000028003char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000028004int
28005main ()
28006{
Reid Spencera773bd52006-08-04 18:18:08 +000028007return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000028008 ;
28009 return 0;
28010}
28011_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028012for ac_lib in '' malloc; do
28013 if test -z "$ac_lib"; then
28014 ac_res="none required"
28015 else
28016 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000028017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028018 fi
28019 rm -f conftest.$ac_objext conftest$ac_exeext
28020if { (ac_try="$ac_link"
28021case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28024esac
28025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028027 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028028 grep -v '^ *+' conftest.er1 >conftest.err
28029 rm -f conftest.er1
28030 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028032 (exit $ac_status); } &&
28033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28034 { (case "(($ac_try" in
28035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036 *) ac_try_echo=$ac_try;;
28037esac
28038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039 (eval "$ac_try") 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; } &&
28043 { ac_try='test -s conftest$ac_exeext'
28044 { (case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28047esac
28048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_try") 2>&5
28050 ac_status=$?
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028053 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000028054else
28055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028056sed 's/^/| /' conftest.$ac_ext >&5
28057
Reid Spencera773bd52006-08-04 18:18:08 +000028058
John Criswell7a73b802003-06-30 21:59:07 +000028059fi
Reid Spencera773bd52006-08-04 18:18:08 +000028060
Bill Wendlingebcceee2009-04-18 11:20:33 +000028061rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028062 conftest$ac_exeext
28063 if test "${ac_cv_search_mallinfo+set}" = set; then
28064 break
John Criswell7a73b802003-06-30 21:59:07 +000028065fi
Reid Spencera773bd52006-08-04 18:18:08 +000028066done
28067if test "${ac_cv_search_mallinfo+set}" = set; then
28068 :
28069else
28070 ac_cv_search_mallinfo=no
28071fi
28072rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028073LIBS=$ac_func_search_save_LIBS
28074fi
Reid Spencera773bd52006-08-04 18:18:08 +000028075{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28076echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28077ac_res=$ac_cv_search_mallinfo
28078if test "$ac_res" != no; then
28079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000028080
28081cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000028082#define HAVE_MALLINFO 1
28083_ACEOF
28084
28085fi
28086
28087
Reid Spencer0a262ba2005-08-24 10:07:20 +000028088if test "$ENABLE_THREADS" -eq 1 ; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028089
28090{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28091echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28092if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028095 ac_check_lib_save_LIBS=$LIBS
28096LIBS="-lpthread $LIBS"
Reid Spencer22177fe2005-07-12 15:24:20 +000028097cat >conftest.$ac_ext <<_ACEOF
28098/* confdefs.h. */
28099_ACEOF
28100cat confdefs.h >>conftest.$ac_ext
28101cat >>conftest.$ac_ext <<_ACEOF
28102/* end confdefs.h. */
28103
Reid Spencera773bd52006-08-04 18:18:08 +000028104/* Override any GCC internal prototype to avoid an error.
28105 Use char because int might match the return type of a GCC
28106 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000028107#ifdef __cplusplus
28108extern "C"
28109#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000028110char pthread_mutex_init ();
28111int
28112main ()
28113{
Reid Spencera773bd52006-08-04 18:18:08 +000028114return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000028115 ;
28116 return 0;
28117}
28118_ACEOF
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028119rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028120if { (ac_try="$ac_link"
28121case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28124esac
28125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000028127 ac_status=$?
28128 grep -v '^ *+' conftest.er1 >conftest.err
28129 rm -f conftest.er1
28130 cat conftest.err >&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028132 (exit $ac_status); } &&
28133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28134 { (case "(($ac_try" in
28135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136 *) ac_try_echo=$ac_try;;
28137esac
28138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139 (eval "$ac_try") 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (case "(($ac_try" in
28145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146 *) ac_try_echo=$ac_try;;
28147esac
28148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149 (eval "$ac_try") 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028153 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000028154else
28155 echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028158 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028159fi
Reid Spencera773bd52006-08-04 18:18:08 +000028160
Bill Wendlingebcceee2009-04-18 11:20:33 +000028161rm -f core conftest.err conftest.$ac_objext \
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028162 conftest$ac_exeext conftest.$ac_ext
28163LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000028164fi
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028165{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28166echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28167if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28168 cat >>confdefs.h <<_ACEOF
28169#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000028170_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000028171
Edward O'Callaghan5da60462009-10-14 11:12:33 +000028172 LIBS="-lpthread $LIBS"
28173
Reid Spencer22177fe2005-07-12 15:24:20 +000028174fi
28175
Reid Spencera773bd52006-08-04 18:18:08 +000028176 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28177echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028178if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28180else
28181 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028182cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028183/* confdefs.h. */
28184_ACEOF
28185cat confdefs.h >>conftest.$ac_ext
28186cat >>conftest.$ac_ext <<_ACEOF
28187/* end confdefs.h. */
28188
Reid Spencera773bd52006-08-04 18:18:08 +000028189/* Override any GCC internal prototype to avoid an error.
28190 Use char because int might match the return type of a GCC
28191 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028192#ifdef __cplusplus
28193extern "C"
28194#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028195char pthread_mutex_lock ();
28196int
28197main ()
28198{
Reid Spencera773bd52006-08-04 18:18:08 +000028199return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028200 ;
28201 return 0;
28202}
28203_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028204for ac_lib in '' pthread; do
28205 if test -z "$ac_lib"; then
28206 ac_res="none required"
28207 else
28208 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028210 fi
28211 rm -f conftest.$ac_objext conftest$ac_exeext
28212if { (ac_try="$ac_link"
28213case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28216esac
28217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028219 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028220 grep -v '^ *+' conftest.er1 >conftest.err
28221 rm -f conftest.er1
28222 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028224 (exit $ac_status); } &&
28225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226 { (case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28229esac
28230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_try") 2>&5
28232 ac_status=$?
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest$ac_exeext'
28236 { (case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28239esac
28240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_try") 2>&5
28242 ac_status=$?
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028245 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028246else
28247 echo "$as_me: failed program was:" >&5
28248sed 's/^/| /' conftest.$ac_ext >&5
28249
Reid Spencera773bd52006-08-04 18:18:08 +000028250
Brian Gaeke5f268f72003-12-05 19:29:01 +000028251fi
Reid Spencera773bd52006-08-04 18:18:08 +000028252
Bill Wendlingebcceee2009-04-18 11:20:33 +000028253rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028254 conftest$ac_exeext
28255 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28256 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028257fi
Reid Spencera773bd52006-08-04 18:18:08 +000028258done
28259if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28260 :
28261else
28262 ac_cv_search_pthread_mutex_lock=no
28263fi
28264rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028265LIBS=$ac_func_search_save_LIBS
28266fi
Reid Spencera773bd52006-08-04 18:18:08 +000028267{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28268echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28269ac_res=$ac_cv_search_pthread_mutex_lock
28270if test "$ac_res" != no; then
28271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028272
John Criswell40468462004-09-24 21:19:06 +000028273cat >>confdefs.h <<\_ACEOF
28274#define HAVE_PTHREAD_MUTEX_LOCK 1
28275_ACEOF
28276
28277fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028278
Owen Andersonde8aed22009-06-16 18:20:20 +000028279 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28280echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28281if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283else
28284 ac_func_search_save_LIBS=$LIBS
28285cat >conftest.$ac_ext <<_ACEOF
28286/* confdefs.h. */
28287_ACEOF
28288cat confdefs.h >>conftest.$ac_ext
28289cat >>conftest.$ac_ext <<_ACEOF
28290/* end confdefs.h. */
28291
28292/* Override any GCC internal prototype to avoid an error.
28293 Use char because int might match the return type of a GCC
28294 builtin and then its argument prototype would still apply. */
28295#ifdef __cplusplus
28296extern "C"
28297#endif
28298char pthread_rwlock_init ();
28299int
28300main ()
28301{
28302return pthread_rwlock_init ();
28303 ;
28304 return 0;
28305}
28306_ACEOF
28307for ac_lib in '' pthread; do
28308 if test -z "$ac_lib"; then
28309 ac_res="none required"
28310 else
28311 ac_res=-l$ac_lib
28312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28313 fi
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315if { (ac_try="$ac_link"
28316case "(($ac_try" in
28317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28318 *) ac_try_echo=$ac_try;;
28319esac
28320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28321 (eval "$ac_link") 2>conftest.er1
28322 ac_status=$?
28323 grep -v '^ *+' conftest.er1 >conftest.err
28324 rm -f conftest.er1
28325 cat conftest.err >&5
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } &&
28328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28329 { (case "(($ac_try" in
28330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28331 *) ac_try_echo=$ac_try;;
28332esac
28333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28334 (eval "$ac_try") 2>&5
28335 ac_status=$?
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; } &&
28338 { ac_try='test -s conftest$ac_exeext'
28339 { (case "(($ac_try" in
28340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28341 *) ac_try_echo=$ac_try;;
28342esac
28343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28344 (eval "$ac_try") 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; }; then
28348 ac_cv_search_pthread_rwlock_init=$ac_res
28349else
28350 echo "$as_me: failed program was:" >&5
28351sed 's/^/| /' conftest.$ac_ext >&5
28352
28353
28354fi
28355
28356rm -f core conftest.err conftest.$ac_objext \
28357 conftest$ac_exeext
28358 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28359 break
28360fi
28361done
28362if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28363 :
28364else
28365 ac_cv_search_pthread_rwlock_init=no
28366fi
28367rm conftest.$ac_ext
28368LIBS=$ac_func_search_save_LIBS
28369fi
28370{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28371echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28372ac_res=$ac_cv_search_pthread_rwlock_init
28373if test "$ac_res" != no; then
28374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28375
28376cat >>confdefs.h <<\_ACEOF
28377#define HAVE_PTHREAD_RWLOCK_INIT 1
28378_ACEOF
28379
28380fi
28381
Owen Anderson27fcfe12009-06-25 23:10:26 +000028382 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28383echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28384if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28386else
28387 ac_func_search_save_LIBS=$LIBS
28388cat >conftest.$ac_ext <<_ACEOF
28389/* confdefs.h. */
28390_ACEOF
28391cat confdefs.h >>conftest.$ac_ext
28392cat >>conftest.$ac_ext <<_ACEOF
28393/* end confdefs.h. */
28394
28395/* Override any GCC internal prototype to avoid an error.
28396 Use char because int might match the return type of a GCC
28397 builtin and then its argument prototype would still apply. */
28398#ifdef __cplusplus
28399extern "C"
28400#endif
28401char pthread_getspecific ();
28402int
28403main ()
28404{
28405return pthread_getspecific ();
28406 ;
28407 return 0;
28408}
28409_ACEOF
28410for ac_lib in '' pthread; do
28411 if test -z "$ac_lib"; then
28412 ac_res="none required"
28413 else
28414 ac_res=-l$ac_lib
28415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28416 fi
28417 rm -f conftest.$ac_objext conftest$ac_exeext
28418if { (ac_try="$ac_link"
28419case "(($ac_try" in
28420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421 *) ac_try_echo=$ac_try;;
28422esac
28423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424 (eval "$ac_link") 2>conftest.er1
28425 ac_status=$?
28426 grep -v '^ *+' conftest.er1 >conftest.err
28427 rm -f conftest.er1
28428 cat conftest.err >&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } &&
28431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28432 { (case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28435esac
28436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437 (eval "$ac_try") 2>&5
28438 ac_status=$?
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); }; } &&
28441 { ac_try='test -s conftest$ac_exeext'
28442 { (case "(($ac_try" in
28443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444 *) ac_try_echo=$ac_try;;
28445esac
28446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447 (eval "$ac_try") 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 ac_cv_search_pthread_getspecific=$ac_res
28452else
28453 echo "$as_me: failed program was:" >&5
28454sed 's/^/| /' conftest.$ac_ext >&5
28455
28456
28457fi
28458
28459rm -f core conftest.err conftest.$ac_objext \
28460 conftest$ac_exeext
28461 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28462 break
28463fi
28464done
28465if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28466 :
28467else
28468 ac_cv_search_pthread_getspecific=no
28469fi
28470rm conftest.$ac_ext
28471LIBS=$ac_func_search_save_LIBS
28472fi
28473{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28474echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28475ac_res=$ac_cv_search_pthread_getspecific
28476if test "$ac_res" != no; then
28477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28478
28479cat >>confdefs.h <<\_ACEOF
28480#define HAVE_PTHREAD_GETSPECIFIC 1
28481_ACEOF
28482
28483fi
28484
Reid Spencer0a262ba2005-08-24 10:07:20 +000028485fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028486
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028487
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028488# Check whether --with-udis86 was given.
28489if test "${with_udis86+set}" = set; then
28490 withval=$with_udis86;
28491 USE_UDIS86=1
28492
28493 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028494 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028495 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28496 esac
28497
28498{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28499echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28500if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28502else
28503 ac_check_lib_save_LIBS=$LIBS
28504LIBS="-ludis86 $LIBS"
28505cat >conftest.$ac_ext <<_ACEOF
28506/* confdefs.h. */
28507_ACEOF
28508cat confdefs.h >>conftest.$ac_ext
28509cat >>conftest.$ac_ext <<_ACEOF
28510/* end confdefs.h. */
28511
28512/* Override any GCC internal prototype to avoid an error.
28513 Use char because int might match the return type of a GCC
28514 builtin and then its argument prototype would still apply. */
28515#ifdef __cplusplus
28516extern "C"
28517#endif
28518char ud_init ();
28519int
28520main ()
28521{
28522return ud_init ();
28523 ;
28524 return 0;
28525}
28526_ACEOF
28527rm -f conftest.$ac_objext conftest$ac_exeext
28528if { (ac_try="$ac_link"
28529case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28532esac
28533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28534 (eval "$ac_link") 2>conftest.er1
28535 ac_status=$?
28536 grep -v '^ *+' conftest.er1 >conftest.err
28537 rm -f conftest.er1
28538 cat conftest.err >&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028540 (exit $ac_status); } &&
28541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28542 { (case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_try") 2>&5
28548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; } &&
28551 { ac_try='test -s conftest$ac_exeext'
28552 { (case "(($ac_try" in
28553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28554 *) ac_try_echo=$ac_try;;
28555esac
28556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28557 (eval "$ac_try") 2>&5
28558 ac_status=$?
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028561 ac_cv_lib_udis86_ud_init=yes
28562else
28563 echo "$as_me: failed program was:" >&5
28564sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 ac_cv_lib_udis86_ud_init=no
28567fi
28568
Bill Wendlingebcceee2009-04-18 11:20:33 +000028569rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028570 conftest$ac_exeext conftest.$ac_ext
28571LIBS=$ac_check_lib_save_LIBS
28572fi
28573{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28574echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28575if test $ac_cv_lib_udis86_ud_init = yes; then
28576 cat >>confdefs.h <<_ACEOF
28577#define HAVE_LIBUDIS86 1
28578_ACEOF
28579
28580 LIBS="-ludis86 $LIBS"
28581
28582else
28583
28584 echo "Error! You need to have libudis86 around."
28585 exit -1
28586
28587fi
28588
28589
28590else
28591 USE_UDIS86=0
28592
28593fi
28594
28595
28596cat >>confdefs.h <<_ACEOF
28597#define USE_UDIS86 $USE_UDIS86
28598_ACEOF
28599
28600
28601
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028602# Check whether --with-oprofile was given.
28603if test "${with_oprofile+set}" = set; then
28604 withval=$with_oprofile;
28605 USE_OPROFILE=1
28606
28607 case "$withval" in
28608 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028609 no) llvm_cv_oppath=
28610 USE_OPROFILE=0
28611 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028612 *) llvm_cv_oppath="${withval}/lib/oprofile"
28613 CPPFLAGS="-I${withval}/include";;
28614 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028615 if test -n "$llvm_cv_oppath" ; then
28616 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28617 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28618echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28619if test "${ac_cv_search_bfd_init+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28621else
28622 ac_func_search_save_LIBS=$LIBS
28623cat >conftest.$ac_ext <<_ACEOF
28624/* confdefs.h. */
28625_ACEOF
28626cat confdefs.h >>conftest.$ac_ext
28627cat >>conftest.$ac_ext <<_ACEOF
28628/* end confdefs.h. */
28629
28630/* Override any GCC internal prototype to avoid an error.
28631 Use char because int might match the return type of a GCC
28632 builtin and then its argument prototype would still apply. */
28633#ifdef __cplusplus
28634extern "C"
28635#endif
28636char bfd_init ();
28637int
28638main ()
28639{
28640return bfd_init ();
28641 ;
28642 return 0;
28643}
28644_ACEOF
28645for ac_lib in '' bfd; do
28646 if test -z "$ac_lib"; then
28647 ac_res="none required"
28648 else
28649 ac_res=-l$ac_lib
28650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28651 fi
28652 rm -f conftest.$ac_objext conftest$ac_exeext
28653if { (ac_try="$ac_link"
28654case "(($ac_try" in
28655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656 *) ac_try_echo=$ac_try;;
28657esac
28658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659 (eval "$ac_link") 2>conftest.er1
28660 ac_status=$?
28661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28667 { (case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28670esac
28671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_try") 2>&5
28673 ac_status=$?
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest$ac_exeext'
28677 { (case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28680esac
28681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_try") 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 ac_cv_search_bfd_init=$ac_res
28687else
28688 echo "$as_me: failed program was:" >&5
28689sed 's/^/| /' conftest.$ac_ext >&5
28690
28691
28692fi
28693
28694rm -f core conftest.err conftest.$ac_objext \
28695 conftest$ac_exeext
28696 if test "${ac_cv_search_bfd_init+set}" = set; then
28697 break
28698fi
28699done
28700if test "${ac_cv_search_bfd_init+set}" = set; then
28701 :
28702else
28703 ac_cv_search_bfd_init=no
28704fi
28705rm conftest.$ac_ext
28706LIBS=$ac_func_search_save_LIBS
28707fi
28708{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28709echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28710ac_res=$ac_cv_search_bfd_init
28711if test "$ac_res" != no; then
28712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28713
28714fi
28715
28716 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028717echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28718if test "${ac_cv_search_op_open_agent+set}" = set; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28720else
28721 ac_func_search_save_LIBS=$LIBS
28722cat >conftest.$ac_ext <<_ACEOF
28723/* confdefs.h. */
28724_ACEOF
28725cat confdefs.h >>conftest.$ac_ext
28726cat >>conftest.$ac_ext <<_ACEOF
28727/* end confdefs.h. */
28728
28729/* Override any GCC internal prototype to avoid an error.
28730 Use char because int might match the return type of a GCC
28731 builtin and then its argument prototype would still apply. */
28732#ifdef __cplusplus
28733extern "C"
28734#endif
28735char op_open_agent ();
28736int
28737main ()
28738{
28739return op_open_agent ();
28740 ;
28741 return 0;
28742}
28743_ACEOF
28744for ac_lib in '' opagent; do
28745 if test -z "$ac_lib"; then
28746 ac_res="none required"
28747 else
28748 ac_res=-l$ac_lib
28749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28750 fi
28751 rm -f conftest.$ac_objext conftest$ac_exeext
28752if { (ac_try="$ac_link"
28753case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756esac
28757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_link") 2>conftest.er1
28759 ac_status=$?
28760 grep -v '^ *+' conftest.er1 >conftest.err
28761 rm -f conftest.er1
28762 cat conftest.err >&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
28765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766 { (case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28769esac
28770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_try") 2>&5
28772 ac_status=$?
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; } &&
28775 { ac_try='test -s conftest$ac_exeext'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28779esac
28780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 ac_cv_search_op_open_agent=$ac_res
28786else
28787 echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
28790
28791fi
28792
28793rm -f core conftest.err conftest.$ac_objext \
28794 conftest$ac_exeext
28795 if test "${ac_cv_search_op_open_agent+set}" = set; then
28796 break
28797fi
28798done
28799if test "${ac_cv_search_op_open_agent+set}" = set; then
28800 :
28801else
28802 ac_cv_search_op_open_agent=no
28803fi
28804rm conftest.$ac_ext
28805LIBS=$ac_func_search_save_LIBS
28806fi
28807{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28808echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28809ac_res=$ac_cv_search_op_open_agent
28810if test "$ac_res" != no; then
28811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28812
28813else
28814
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028815 echo "Error! You need to have libopagent around."
28816 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028817
28818fi
28819
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028820 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028821 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28822echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28823if test "${ac_cv_header_opagent_h+set}" = set; then
28824 echo $ECHO_N "(cached) $ECHO_C" >&6
28825fi
28826{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28827echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28828else
28829 # Is the header compilable?
28830{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28831echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28832cat >conftest.$ac_ext <<_ACEOF
28833/* confdefs.h. */
28834_ACEOF
28835cat confdefs.h >>conftest.$ac_ext
28836cat >>conftest.$ac_ext <<_ACEOF
28837/* end confdefs.h. */
28838$ac_includes_default
28839#include <opagent.h>
28840_ACEOF
28841rm -f conftest.$ac_objext
28842if { (ac_try="$ac_compile"
28843case "(($ac_try" in
28844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28845 *) ac_try_echo=$ac_try;;
28846esac
28847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28848 (eval "$ac_compile") 2>conftest.er1
28849 ac_status=$?
28850 grep -v '^ *+' conftest.er1 >conftest.err
28851 rm -f conftest.er1
28852 cat conftest.err >&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
28855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28856 { (case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28859esac
28860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_try") 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); }; } &&
28865 { ac_try='test -s conftest.$ac_objext'
28866 { (case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28869esac
28870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_try") 2>&5
28872 ac_status=$?
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28875 ac_header_compiler=yes
28876else
28877 echo "$as_me: failed program was:" >&5
28878sed 's/^/| /' conftest.$ac_ext >&5
28879
28880 ac_header_compiler=no
28881fi
28882
28883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28885echo "${ECHO_T}$ac_header_compiler" >&6; }
28886
28887# Is the header present?
28888{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28889echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28890cat >conftest.$ac_ext <<_ACEOF
28891/* confdefs.h. */
28892_ACEOF
28893cat confdefs.h >>conftest.$ac_ext
28894cat >>conftest.$ac_ext <<_ACEOF
28895/* end confdefs.h. */
28896#include <opagent.h>
28897_ACEOF
28898if { (ac_try="$ac_cpp conftest.$ac_ext"
28899case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28902esac
28903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28905 ac_status=$?
28906 grep -v '^ *+' conftest.er1 >conftest.err
28907 rm -f conftest.er1
28908 cat conftest.err >&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } >/dev/null; then
28911 if test -s conftest.err; then
28912 ac_cpp_err=$ac_c_preproc_warn_flag
28913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28914 else
28915 ac_cpp_err=
28916 fi
28917else
28918 ac_cpp_err=yes
28919fi
28920if test -z "$ac_cpp_err"; then
28921 ac_header_preproc=yes
28922else
28923 echo "$as_me: failed program was:" >&5
28924sed 's/^/| /' conftest.$ac_ext >&5
28925
28926 ac_header_preproc=no
28927fi
28928
28929rm -f conftest.err conftest.$ac_ext
28930{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28931echo "${ECHO_T}$ac_header_preproc" >&6; }
28932
28933# So? What about this header?
28934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28935 yes:no: )
28936 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28937echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28939echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28940 ac_header_preproc=yes
28941 ;;
28942 no:yes:* )
28943 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28944echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28945 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28946echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28947 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28948echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28949 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28950echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28952echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28954echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28955 ( cat <<\_ASBOX
28956## ----------------------------------- ##
28957## Report this to llvmbugs@cs.uiuc.edu ##
28958## ----------------------------------- ##
28959_ASBOX
28960 ) | sed "s/^/$as_me: WARNING: /" >&2
28961 ;;
28962esac
28963{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28964echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28965if test "${ac_cv_header_opagent_h+set}" = set; then
28966 echo $ECHO_N "(cached) $ECHO_C" >&6
28967else
28968 ac_cv_header_opagent_h=$ac_header_preproc
28969fi
28970{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28971echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28972
28973fi
28974if test $ac_cv_header_opagent_h = yes; then
28975 :
28976else
28977
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028978 echo "Error! You need to have opagent.h around."
28979 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028980
28981fi
28982
28983
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028984 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028985
28986else
28987
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000028988 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028989
28990
28991fi
28992
28993
28994cat >>confdefs.h <<_ACEOF
28995#define USE_OPROFILE $USE_OPROFILE
28996_ACEOF
28997
28998
28999
Reid Spencer59473af2004-12-25 07:31:29 +000029000
29001
29002
29003
29004
29005ac_header_dirent=no
29006for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29007 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029008{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29009echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029011 echo $ECHO_N "(cached) $ECHO_C" >&6
29012else
29013 cat >conftest.$ac_ext <<_ACEOF
29014/* confdefs.h. */
29015_ACEOF
29016cat confdefs.h >>conftest.$ac_ext
29017cat >>conftest.$ac_ext <<_ACEOF
29018/* end confdefs.h. */
29019#include <sys/types.h>
29020#include <$ac_hdr>
29021
29022int
29023main ()
29024{
29025if ((DIR *) 0)
29026return 0;
29027 ;
29028 return 0;
29029}
29030_ACEOF
29031rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029032if { (ac_try="$ac_compile"
29033case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29036esac
29037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029039 ac_status=$?
29040 grep -v '^ *+' conftest.er1 >conftest.err
29041 rm -f conftest.er1
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029044 (exit $ac_status); } &&
29045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29046 { (case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29049esac
29050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_try") 2>&5
29052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; } &&
29055 { ac_try='test -s conftest.$ac_objext'
29056 { (case "(($ac_try" in
29057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29059esac
29060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_try") 2>&5
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029065 eval "$as_ac_Header=yes"
29066else
29067 echo "$as_me: failed program was:" >&5
29068sed 's/^/| /' conftest.$ac_ext >&5
29069
Reid Spencera773bd52006-08-04 18:18:08 +000029070 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029071fi
Reid Spencera773bd52006-08-04 18:18:08 +000029072
29073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029074fi
Reid Spencera773bd52006-08-04 18:18:08 +000029075ac_res=`eval echo '${'$as_ac_Header'}'`
29076 { echo "$as_me:$LINENO: result: $ac_res" >&5
29077echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029078if test `eval echo '${'$as_ac_Header'}'` = yes; then
29079 cat >>confdefs.h <<_ACEOF
29080#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29081_ACEOF
29082
29083ac_header_dirent=$ac_hdr; break
29084fi
29085
29086done
29087# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29088if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029089 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29090echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029091if test "${ac_cv_search_opendir+set}" = set; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29093else
29094 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029095cat >conftest.$ac_ext <<_ACEOF
29096/* confdefs.h. */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h. */
29101
Reid Spencera773bd52006-08-04 18:18:08 +000029102/* Override any GCC internal prototype to avoid an error.
29103 Use char because int might match the return type of a GCC
29104 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029105#ifdef __cplusplus
29106extern "C"
29107#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029108char opendir ();
29109int
29110main ()
29111{
Reid Spencera773bd52006-08-04 18:18:08 +000029112return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029113 ;
29114 return 0;
29115}
29116_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029117for ac_lib in '' dir; do
29118 if test -z "$ac_lib"; then
29119 ac_res="none required"
29120 else
29121 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029123 fi
29124 rm -f conftest.$ac_objext conftest$ac_exeext
29125if { (ac_try="$ac_link"
29126case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29129esac
29130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029132 ac_status=$?
29133 grep -v '^ *+' conftest.er1 >conftest.err
29134 rm -f conftest.er1
29135 cat conftest.err >&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029137 (exit $ac_status); } &&
29138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29139 { (case "(($ac_try" in
29140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29142esac
29143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144 (eval "$ac_try") 2>&5
29145 ac_status=$?
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); }; } &&
29148 { ac_try='test -s conftest$ac_exeext'
29149 { (case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29152esac
29153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_try") 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029158 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029159else
29160 echo "$as_me: failed program was:" >&5
29161sed 's/^/| /' conftest.$ac_ext >&5
29162
Reid Spencera773bd52006-08-04 18:18:08 +000029163
Reid Spencer59473af2004-12-25 07:31:29 +000029164fi
Reid Spencera773bd52006-08-04 18:18:08 +000029165
Bill Wendlingebcceee2009-04-18 11:20:33 +000029166rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029167 conftest$ac_exeext
29168 if test "${ac_cv_search_opendir+set}" = set; then
29169 break
Reid Spencer59473af2004-12-25 07:31:29 +000029170fi
Reid Spencera773bd52006-08-04 18:18:08 +000029171done
29172if test "${ac_cv_search_opendir+set}" = set; then
29173 :
29174else
29175 ac_cv_search_opendir=no
29176fi
29177rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029178LIBS=$ac_func_search_save_LIBS
29179fi
Reid Spencera773bd52006-08-04 18:18:08 +000029180{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29181echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29182ac_res=$ac_cv_search_opendir
29183if test "$ac_res" != no; then
29184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029185
29186fi
29187
29188else
Reid Spencera773bd52006-08-04 18:18:08 +000029189 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29190echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029191if test "${ac_cv_search_opendir+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29193else
29194 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029195cat >conftest.$ac_ext <<_ACEOF
29196/* confdefs.h. */
29197_ACEOF
29198cat confdefs.h >>conftest.$ac_ext
29199cat >>conftest.$ac_ext <<_ACEOF
29200/* end confdefs.h. */
29201
Reid Spencera773bd52006-08-04 18:18:08 +000029202/* Override any GCC internal prototype to avoid an error.
29203 Use char because int might match the return type of a GCC
29204 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029205#ifdef __cplusplus
29206extern "C"
29207#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029208char opendir ();
29209int
29210main ()
29211{
Reid Spencera773bd52006-08-04 18:18:08 +000029212return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029213 ;
29214 return 0;
29215}
29216_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029217for ac_lib in '' x; do
29218 if test -z "$ac_lib"; then
29219 ac_res="none required"
29220 else
29221 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029223 fi
29224 rm -f conftest.$ac_objext conftest$ac_exeext
29225if { (ac_try="$ac_link"
29226case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29229esac
29230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029232 ac_status=$?
29233 grep -v '^ *+' conftest.er1 >conftest.err
29234 rm -f conftest.er1
29235 cat conftest.err >&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029237 (exit $ac_status); } &&
29238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29239 { (case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29242esac
29243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_try") 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest$ac_exeext'
29249 { (case "(($ac_try" in
29250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251 *) ac_try_echo=$ac_try;;
29252esac
29253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254 (eval "$ac_try") 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029258 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029259else
29260 echo "$as_me: failed program was:" >&5
29261sed 's/^/| /' conftest.$ac_ext >&5
29262
Reid Spencera773bd52006-08-04 18:18:08 +000029263
Reid Spencer59473af2004-12-25 07:31:29 +000029264fi
Reid Spencera773bd52006-08-04 18:18:08 +000029265
Bill Wendlingebcceee2009-04-18 11:20:33 +000029266rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029267 conftest$ac_exeext
29268 if test "${ac_cv_search_opendir+set}" = set; then
29269 break
Reid Spencer59473af2004-12-25 07:31:29 +000029270fi
Reid Spencera773bd52006-08-04 18:18:08 +000029271done
29272if test "${ac_cv_search_opendir+set}" = set; then
29273 :
29274else
29275 ac_cv_search_opendir=no
29276fi
29277rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029278LIBS=$ac_func_search_save_LIBS
29279fi
Reid Spencera773bd52006-08-04 18:18:08 +000029280{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29281echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29282ac_res=$ac_cv_search_opendir
29283if test "$ac_res" != no; then
29284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029285
29286fi
29287
29288fi
29289
Reid Spencera773bd52006-08-04 18:18:08 +000029290{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29291echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029292if test "${ac_cv_header_mmap_anon+set}" = set; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29294else
29295 ac_ext=c
29296ac_cpp='$CPP $CPPFLAGS'
29297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299ac_compiler_gnu=$ac_cv_c_compiler_gnu
29300
29301 cat >conftest.$ac_ext <<_ACEOF
29302/* confdefs.h. */
29303_ACEOF
29304cat confdefs.h >>conftest.$ac_ext
29305cat >>conftest.$ac_ext <<_ACEOF
29306/* end confdefs.h. */
29307#include <sys/mman.h>
29308#include <unistd.h>
29309#include <fcntl.h>
29310int
29311main ()
29312{
29313mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29314 ;
29315 return 0;
29316}
29317_ACEOF
29318rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029319if { (ac_try="$ac_compile"
29320case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323esac
29324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029326 ac_status=$?
29327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029331 (exit $ac_status); } &&
29332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29333 { (case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29336esac
29337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_try") 2>&5
29339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029352 ac_cv_header_mmap_anon=yes
29353else
29354 echo "$as_me: failed program was:" >&5
29355sed 's/^/| /' conftest.$ac_ext >&5
29356
Reid Spencera773bd52006-08-04 18:18:08 +000029357 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029358fi
Reid Spencera773bd52006-08-04 18:18:08 +000029359
29360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029361 ac_ext=c
29362ac_cpp='$CPP $CPPFLAGS'
29363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29365ac_compiler_gnu=$ac_cv_c_compiler_gnu
29366
29367
29368fi
Reid Spencera773bd52006-08-04 18:18:08 +000029369{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29370echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029371if test "$ac_cv_header_mmap_anon" = yes; then
29372
29373cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029374#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029375_ACEOF
29376
29377fi
29378
Reid Spencera773bd52006-08-04 18:18:08 +000029379{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29380echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029381if test "${ac_cv_header_stat_broken+set}" = set; then
29382 echo $ECHO_N "(cached) $ECHO_C" >&6
29383else
29384 cat >conftest.$ac_ext <<_ACEOF
29385/* confdefs.h. */
29386_ACEOF
29387cat confdefs.h >>conftest.$ac_ext
29388cat >>conftest.$ac_ext <<_ACEOF
29389/* end confdefs.h. */
29390#include <sys/types.h>
29391#include <sys/stat.h>
29392
Reid Spencera773bd52006-08-04 18:18:08 +000029393#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029394# if S_ISBLK (S_IFDIR)
29395You lose.
29396# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029397#endif
29398
Reid Spencera773bd52006-08-04 18:18:08 +000029399#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029400# if S_ISBLK (S_IFCHR)
29401You lose.
29402# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029403#endif
29404
Reid Spencera773bd52006-08-04 18:18:08 +000029405#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029406# if S_ISLNK (S_IFREG)
29407You lose.
29408# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029409#endif
29410
Reid Spencera773bd52006-08-04 18:18:08 +000029411#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029412# if S_ISSOCK (S_IFREG)
29413You lose.
29414# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029415#endif
29416
29417_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29419 $EGREP "You lose" >/dev/null 2>&1; then
29420 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029421else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029422 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029423fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029424rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029425
Reid Spencer59473af2004-12-25 07:31:29 +000029426fi
Reid Spencera773bd52006-08-04 18:18:08 +000029427{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29428echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029429if test $ac_cv_header_stat_broken = yes; then
29430
29431cat >>confdefs.h <<\_ACEOF
29432#define STAT_MACROS_BROKEN 1
29433_ACEOF
29434
29435fi
29436
Reid Spencera773bd52006-08-04 18:18:08 +000029437{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29438echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029439if test "${ac_cv_header_stdc+set}" = set; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29441else
29442 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029443/* confdefs.h. */
29444_ACEOF
29445cat confdefs.h >>conftest.$ac_ext
29446cat >>conftest.$ac_ext <<_ACEOF
29447/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029448#include <stdlib.h>
29449#include <stdarg.h>
29450#include <string.h>
29451#include <float.h>
29452
John Criswell0c38eaf2003-09-10 15:17:25 +000029453int
29454main ()
29455{
29456
29457 ;
29458 return 0;
29459}
John Criswell7a73b802003-06-30 21:59:07 +000029460_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029462if { (ac_try="$ac_compile"
29463case "(($ac_try" in
29464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465 *) ac_try_echo=$ac_try;;
29466esac
29467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029474 (exit $ac_status); } &&
29475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29476 { (case "(($ac_try" in
29477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478 *) ac_try_echo=$ac_try;;
29479esac
29480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481 (eval "$ac_try") 2>&5
29482 ac_status=$?
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; } &&
29485 { ac_try='test -s conftest.$ac_objext'
29486 { (case "(($ac_try" in
29487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29488 *) ac_try_echo=$ac_try;;
29489esac
29490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29491 (eval "$ac_try") 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029495 ac_cv_header_stdc=yes
29496else
29497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029498sed 's/^/| /' conftest.$ac_ext >&5
29499
Reid Spencera773bd52006-08-04 18:18:08 +000029500 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029501fi
Reid Spencera773bd52006-08-04 18:18:08 +000029502
29503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029504
29505if test $ac_cv_header_stdc = yes; then
29506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29507 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029508/* confdefs.h. */
29509_ACEOF
29510cat confdefs.h >>conftest.$ac_ext
29511cat >>conftest.$ac_ext <<_ACEOF
29512/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029513#include <string.h>
29514
29515_ACEOF
29516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029517 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029518 :
29519else
29520 ac_cv_header_stdc=no
29521fi
29522rm -f conftest*
29523
29524fi
29525
29526if test $ac_cv_header_stdc = yes; then
29527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29528 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029529/* confdefs.h. */
29530_ACEOF
29531cat confdefs.h >>conftest.$ac_ext
29532cat >>conftest.$ac_ext <<_ACEOF
29533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029534#include <stdlib.h>
29535
29536_ACEOF
29537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029538 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029539 :
29540else
29541 ac_cv_header_stdc=no
29542fi
29543rm -f conftest*
29544
29545fi
29546
29547if test $ac_cv_header_stdc = yes; then
29548 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29549 if test "$cross_compiling" = yes; then
29550 :
29551else
29552 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029553/* confdefs.h. */
29554_ACEOF
29555cat confdefs.h >>conftest.$ac_ext
29556cat >>conftest.$ac_ext <<_ACEOF
29557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029558#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029559#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029560#if ((' ' & 0x0FF) == 0x020)
29561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29563#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029564# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029565 (('a' <= (c) && (c) <= 'i') \
29566 || ('j' <= (c) && (c) <= 'r') \
29567 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29569#endif
29570
29571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29572int
29573main ()
29574{
29575 int i;
29576 for (i = 0; i < 256; i++)
29577 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029578 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029579 return 2;
29580 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029581}
29582_ACEOF
29583rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029584if { (ac_try="$ac_link"
29585case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29588esac
29589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029591 ac_status=$?
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029594 { (case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29597esac
29598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; }; then
29603 :
29604else
29605 echo "$as_me: program exited with status $ac_status" >&5
29606echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029607sed 's/^/| /' conftest.$ac_ext >&5
29608
John Criswell7a73b802003-06-30 21:59:07 +000029609( exit $ac_status )
29610ac_cv_header_stdc=no
29611fi
Reid Spencera773bd52006-08-04 18:18:08 +000029612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29613fi
29614
29615
John Criswell7a73b802003-06-30 21:59:07 +000029616fi
29617fi
Reid Spencera773bd52006-08-04 18:18:08 +000029618{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29619echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029620if test $ac_cv_header_stdc = yes; then
29621
29622cat >>confdefs.h <<\_ACEOF
29623#define STDC_HEADERS 1
29624_ACEOF
29625
29626fi
29627
Reid Spencera773bd52006-08-04 18:18:08 +000029628{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29629echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029630if test "${ac_cv_header_sys_wait_h+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29632else
29633 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029634/* confdefs.h. */
29635_ACEOF
29636cat confdefs.h >>conftest.$ac_ext
29637cat >>conftest.$ac_ext <<_ACEOF
29638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029639#include <sys/types.h>
29640#include <sys/wait.h>
29641#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029642# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029643#endif
29644#ifndef WIFEXITED
29645# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29646#endif
29647
John Criswell7a73b802003-06-30 21:59:07 +000029648int
29649main ()
29650{
29651 int s;
29652 wait (&s);
29653 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29654 ;
29655 return 0;
29656}
29657_ACEOF
29658rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029659if { (ac_try="$ac_compile"
29660case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29663esac
29664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029667 grep -v '^ *+' conftest.er1 >conftest.err
29668 rm -f conftest.er1
29669 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029671 (exit $ac_status); } &&
29672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29673 { (case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29676esac
29677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_try") 2>&5
29679 ac_status=$?
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; } &&
29682 { ac_try='test -s conftest.$ac_objext'
29683 { (case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29686esac
29687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_try") 2>&5
29689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029692 ac_cv_header_sys_wait_h=yes
29693else
29694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029695sed 's/^/| /' conftest.$ac_ext >&5
29696
Reid Spencera773bd52006-08-04 18:18:08 +000029697 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029698fi
Reid Spencera773bd52006-08-04 18:18:08 +000029699
29700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029701fi
Reid Spencera773bd52006-08-04 18:18:08 +000029702{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29703echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029704if test $ac_cv_header_sys_wait_h = yes; then
29705
29706cat >>confdefs.h <<\_ACEOF
29707#define HAVE_SYS_WAIT_H 1
29708_ACEOF
29709
29710fi
29711
Reid Spencera773bd52006-08-04 18:18:08 +000029712{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29713echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029714if test "${ac_cv_header_time+set}" = set; then
29715 echo $ECHO_N "(cached) $ECHO_C" >&6
29716else
29717 cat >conftest.$ac_ext <<_ACEOF
29718/* confdefs.h. */
29719_ACEOF
29720cat confdefs.h >>conftest.$ac_ext
29721cat >>conftest.$ac_ext <<_ACEOF
29722/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029723#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029724#include <sys/time.h>
29725#include <time.h>
29726
29727int
29728main ()
29729{
29730if ((struct tm *) 0)
29731return 0;
29732 ;
29733 return 0;
29734}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029735_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029736rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029737if { (ac_try="$ac_compile"
29738case "(($ac_try" in
29739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740 *) ac_try_echo=$ac_try;;
29741esac
29742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029744 ac_status=$?
29745 grep -v '^ *+' conftest.er1 >conftest.err
29746 rm -f conftest.er1
29747 cat conftest.err >&5
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029749 (exit $ac_status); } &&
29750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29751 { (case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29754esac
29755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_try") 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; } &&
29760 { ac_try='test -s conftest.$ac_objext'
29761 { (case "(($ac_try" in
29762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763 *) ac_try_echo=$ac_try;;
29764esac
29765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766 (eval "$ac_try") 2>&5
29767 ac_status=$?
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029770 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029771else
29772 echo "$as_me: failed program was:" >&5
29773sed 's/^/| /' conftest.$ac_ext >&5
29774
Reid Spencera773bd52006-08-04 18:18:08 +000029775 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029776fi
Reid Spencera773bd52006-08-04 18:18:08 +000029777
29778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029779fi
Reid Spencera773bd52006-08-04 18:18:08 +000029780{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29781echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029782if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029783
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029784cat >>confdefs.h <<\_ACEOF
29785#define TIME_WITH_SYS_TIME 1
29786_ACEOF
29787
29788fi
29789
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029790
Reid Spencer59473af2004-12-25 07:31:29 +000029791
29792
29793
29794
29795
29796
29797for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29798do
29799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805fi
Reid Spencera773bd52006-08-04 18:18:08 +000029806ac_res=`eval echo '${'$as_ac_Header'}'`
29807 { echo "$as_me:$LINENO: result: $ac_res" >&5
29808echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029809else
29810 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029811{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029813cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029814/* confdefs.h. */
29815_ACEOF
29816cat confdefs.h >>conftest.$ac_ext
29817cat >>conftest.$ac_ext <<_ACEOF
29818/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029819$ac_includes_default
29820#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029821_ACEOF
29822rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029823if { (ac_try="$ac_compile"
29824case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827esac
29828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029830 ac_status=$?
29831 grep -v '^ *+' conftest.er1 >conftest.err
29832 rm -f conftest.er1
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029835 (exit $ac_status); } &&
29836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29837 { (case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29840esac
29841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_try") 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest.$ac_objext'
29847 { (case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_try") 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029856 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029857else
29858 echo "$as_me: failed program was:" >&5
29859sed 's/^/| /' conftest.$ac_ext >&5
29860
Reid Spencera773bd52006-08-04 18:18:08 +000029861 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029862fi
Reid Spencera773bd52006-08-04 18:18:08 +000029863
29864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29866echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029867
Reid Spencer59473af2004-12-25 07:31:29 +000029868# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029869{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029871cat >conftest.$ac_ext <<_ACEOF
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
29877#include <$ac_header>
29878_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029879if { (ac_try="$ac_cpp conftest.$ac_ext"
29880case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883esac
29884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029886 ac_status=$?
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029891 (exit $ac_status); } >/dev/null; then
29892 if test -s conftest.err; then
29893 ac_cpp_err=$ac_c_preproc_warn_flag
29894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29895 else
29896 ac_cpp_err=
29897 fi
29898else
29899 ac_cpp_err=yes
29900fi
29901if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029902 ac_header_preproc=yes
29903else
29904 echo "$as_me: failed program was:" >&5
29905sed 's/^/| /' conftest.$ac_ext >&5
29906
29907 ac_header_preproc=no
29908fi
Reid Spencera773bd52006-08-04 18:18:08 +000029909
Reid Spencer59473af2004-12-25 07:31:29 +000029910rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29912echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029913
29914# So? What about this header?
29915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916 yes:no: )
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29921 ac_header_preproc=yes
29922 ;;
29923 no:yes:* )
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029936 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029937## ----------------------------------- ##
29938## Report this to llvmbugs@cs.uiuc.edu ##
29939## ----------------------------------- ##
29940_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029941 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029942 ;;
29943esac
Reid Spencera773bd52006-08-04 18:18:08 +000029944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029947 echo $ECHO_N "(cached) $ECHO_C" >&6
29948else
29949 eval "$as_ac_Header=\$ac_header_preproc"
29950fi
Reid Spencera773bd52006-08-04 18:18:08 +000029951ac_res=`eval echo '${'$as_ac_Header'}'`
29952 { echo "$as_me:$LINENO: result: $ac_res" >&5
29953echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029954
29955fi
Reid Spencer59473af2004-12-25 07:31:29 +000029956if test `eval echo '${'$as_ac_Header'}'` = yes; then
29957 cat >>confdefs.h <<_ACEOF
29958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029959_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029960
29961fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029962
Reid Spencer59473af2004-12-25 07:31:29 +000029963done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029964
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029965
29966
Reid Spencer59473af2004-12-25 07:31:29 +000029967
29968
29969
29970
Douglas Gregor071d73d2009-05-18 17:21:34 +000029971for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029972do
29973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029978 echo $ECHO_N "(cached) $ECHO_C" >&6
29979fi
Reid Spencera773bd52006-08-04 18:18:08 +000029980ac_res=`eval echo '${'$as_ac_Header'}'`
29981 { echo "$as_me:$LINENO: result: $ac_res" >&5
29982echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029983else
29984 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029987cat >conftest.$ac_ext <<_ACEOF
29988/* confdefs.h. */
29989_ACEOF
29990cat confdefs.h >>conftest.$ac_ext
29991cat >>conftest.$ac_ext <<_ACEOF
29992/* end confdefs.h. */
29993$ac_includes_default
29994#include <$ac_header>
29995_ACEOF
29996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029997if { (ac_try="$ac_compile"
29998case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30001esac
30002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030004 ac_status=$?
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030009 (exit $ac_status); } &&
30010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30011 { (case "(($ac_try" in
30012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013 *) ac_try_echo=$ac_try;;
30014esac
30015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016 (eval "$ac_try") 2>&5
30017 ac_status=$?
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); }; } &&
30020 { ac_try='test -s conftest.$ac_objext'
30021 { (case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30024esac
30025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_try") 2>&5
30027 ac_status=$?
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030030 ac_header_compiler=yes
30031else
30032 echo "$as_me: failed program was:" >&5
30033sed 's/^/| /' conftest.$ac_ext >&5
30034
Reid Spencera773bd52006-08-04 18:18:08 +000030035 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030036fi
Reid Spencera773bd52006-08-04 18:18:08 +000030037
30038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30040echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030041
30042# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030045cat >conftest.$ac_ext <<_ACEOF
30046/* confdefs.h. */
30047_ACEOF
30048cat confdefs.h >>conftest.$ac_ext
30049cat >>conftest.$ac_ext <<_ACEOF
30050/* end confdefs.h. */
30051#include <$ac_header>
30052_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030053if { (ac_try="$ac_cpp conftest.$ac_ext"
30054case "(($ac_try" in
30055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056 *) ac_try_echo=$ac_try;;
30057esac
30058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030060 ac_status=$?
30061 grep -v '^ *+' conftest.er1 >conftest.err
30062 rm -f conftest.er1
30063 cat conftest.err >&5
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030065 (exit $ac_status); } >/dev/null; then
30066 if test -s conftest.err; then
30067 ac_cpp_err=$ac_c_preproc_warn_flag
30068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30069 else
30070 ac_cpp_err=
30071 fi
30072else
30073 ac_cpp_err=yes
30074fi
30075if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030076 ac_header_preproc=yes
30077else
30078 echo "$as_me: failed program was:" >&5
30079sed 's/^/| /' conftest.$ac_ext >&5
30080
30081 ac_header_preproc=no
30082fi
Reid Spencera773bd52006-08-04 18:18:08 +000030083
Reid Spencer59473af2004-12-25 07:31:29 +000030084rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30086echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030087
30088# So? What about this header?
30089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30090 yes:no: )
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30095 ac_header_preproc=yes
30096 ;;
30097 no:yes:* )
30098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030110 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030111## ----------------------------------- ##
30112## Report this to llvmbugs@cs.uiuc.edu ##
30113## ----------------------------------- ##
30114_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030115 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030116 ;;
30117esac
Reid Spencera773bd52006-08-04 18:18:08 +000030118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030121 echo $ECHO_N "(cached) $ECHO_C" >&6
30122else
30123 eval "$as_ac_Header=\$ac_header_preproc"
30124fi
Reid Spencera773bd52006-08-04 18:18:08 +000030125ac_res=`eval echo '${'$as_ac_Header'}'`
30126 { echo "$as_me:$LINENO: result: $ac_res" >&5
30127echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030128
30129fi
30130if test `eval echo '${'$as_ac_Header'}'` = yes; then
30131 cat >>confdefs.h <<_ACEOF
30132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30133_ACEOF
30134
30135fi
30136
30137done
30138
30139
Douglas Gregor071d73d2009-05-18 17:21:34 +000030140
30141for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030142do
30143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30148 echo $ECHO_N "(cached) $ECHO_C" >&6
30149fi
30150ac_res=`eval echo '${'$as_ac_Header'}'`
30151 { echo "$as_me:$LINENO: result: $ac_res" >&5
30152echo "${ECHO_T}$ac_res" >&6; }
30153else
30154 # Is the header compilable?
30155{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30157cat >conftest.$ac_ext <<_ACEOF
30158/* confdefs.h. */
30159_ACEOF
30160cat confdefs.h >>conftest.$ac_ext
30161cat >>conftest.$ac_ext <<_ACEOF
30162/* end confdefs.h. */
30163$ac_includes_default
30164#include <$ac_header>
30165_ACEOF
30166rm -f conftest.$ac_objext
30167if { (ac_try="$ac_compile"
30168case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171esac
30172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_compile") 2>conftest.er1
30174 ac_status=$?
30175 grep -v '^ *+' conftest.er1 >conftest.err
30176 rm -f conftest.er1
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030179 (exit $ac_status); } &&
30180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181 { (case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30184esac
30185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_try") 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030200 ac_header_compiler=yes
30201else
30202 echo "$as_me: failed program was:" >&5
30203sed 's/^/| /' conftest.$ac_ext >&5
30204
30205 ac_header_compiler=no
30206fi
30207
30208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30210echo "${ECHO_T}$ac_header_compiler" >&6; }
30211
30212# Is the header present?
30213{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30215cat >conftest.$ac_ext <<_ACEOF
30216/* confdefs.h. */
30217_ACEOF
30218cat confdefs.h >>conftest.$ac_ext
30219cat >>conftest.$ac_ext <<_ACEOF
30220/* end confdefs.h. */
30221#include <$ac_header>
30222_ACEOF
30223if { (ac_try="$ac_cpp conftest.$ac_ext"
30224case "(($ac_try" in
30225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226 *) ac_try_echo=$ac_try;;
30227esac
30228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30230 ac_status=$?
30231 grep -v '^ *+' conftest.er1 >conftest.err
30232 rm -f conftest.er1
30233 cat conftest.err >&5
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030235 (exit $ac_status); } >/dev/null; then
30236 if test -s conftest.err; then
30237 ac_cpp_err=$ac_c_preproc_warn_flag
30238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30239 else
30240 ac_cpp_err=
30241 fi
30242else
30243 ac_cpp_err=yes
30244fi
30245if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030246 ac_header_preproc=yes
30247else
30248 echo "$as_me: failed program was:" >&5
30249sed 's/^/| /' conftest.$ac_ext >&5
30250
30251 ac_header_preproc=no
30252fi
30253
30254rm -f conftest.err conftest.$ac_ext
30255{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30256echo "${ECHO_T}$ac_header_preproc" >&6; }
30257
30258# So? What about this header?
30259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30260 yes:no: )
30261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30265 ac_header_preproc=yes
30266 ;;
30267 no:yes:* )
30268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30271echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30275echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30280 ( cat <<\_ASBOX
30281## ----------------------------------- ##
30282## Report this to llvmbugs@cs.uiuc.edu ##
30283## ----------------------------------- ##
30284_ASBOX
30285 ) | sed "s/^/$as_me: WARNING: /" >&2
30286 ;;
30287esac
30288{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291 echo $ECHO_N "(cached) $ECHO_C" >&6
30292else
30293 eval "$as_ac_Header=\$ac_header_preproc"
30294fi
30295ac_res=`eval echo '${'$as_ac_Header'}'`
30296 { echo "$as_me:$LINENO: result: $ac_res" >&5
30297echo "${ECHO_T}$ac_res" >&6; }
30298
30299fi
30300if test `eval echo '${'$as_ac_Header'}'` = yes; then
30301 cat >>confdefs.h <<_ACEOF
30302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30303_ACEOF
30304
30305fi
30306
30307done
Reid Spencer59473af2004-12-25 07:31:29 +000030308
30309
30310
30311
Reid Spencerbe3e4192007-08-17 05:45:26 +000030312
30313for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030314do
30315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030320 echo $ECHO_N "(cached) $ECHO_C" >&6
30321fi
Reid Spencera773bd52006-08-04 18:18:08 +000030322ac_res=`eval echo '${'$as_ac_Header'}'`
30323 { echo "$as_me:$LINENO: result: $ac_res" >&5
30324echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030325else
30326 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030327{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030329cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030330/* confdefs.h. */
30331_ACEOF
30332cat confdefs.h >>conftest.$ac_ext
30333cat >>conftest.$ac_ext <<_ACEOF
30334/* end confdefs.h. */
30335$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030336#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030337_ACEOF
30338rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030339if { (ac_try="$ac_compile"
30340case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30343esac
30344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030351 (exit $ac_status); } &&
30352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30362 { ac_try='test -s conftest.$ac_objext'
30363 { (case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30366esac
30367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_try") 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030372 ac_header_compiler=yes
30373else
30374 echo "$as_me: failed program was:" >&5
30375sed 's/^/| /' conftest.$ac_ext >&5
30376
Reid Spencera773bd52006-08-04 18:18:08 +000030377 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030378fi
Reid Spencera773bd52006-08-04 18:18:08 +000030379
30380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30381{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30382echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030383
30384# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030385{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030387cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030388/* confdefs.h. */
30389_ACEOF
30390cat confdefs.h >>conftest.$ac_ext
30391cat >>conftest.$ac_ext <<_ACEOF
30392/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030394_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030395if { (ac_try="$ac_cpp conftest.$ac_ext"
30396case "(($ac_try" in
30397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398 *) ac_try_echo=$ac_try;;
30399esac
30400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030402 ac_status=$?
30403 grep -v '^ *+' conftest.er1 >conftest.err
30404 rm -f conftest.er1
30405 cat conftest.err >&5
30406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030407 (exit $ac_status); } >/dev/null; then
30408 if test -s conftest.err; then
30409 ac_cpp_err=$ac_c_preproc_warn_flag
30410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30411 else
30412 ac_cpp_err=
30413 fi
30414else
30415 ac_cpp_err=yes
30416fi
30417if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030418 ac_header_preproc=yes
30419else
30420 echo "$as_me: failed program was:" >&5
30421sed 's/^/| /' conftest.$ac_ext >&5
30422
30423 ac_header_preproc=no
30424fi
Reid Spencera773bd52006-08-04 18:18:08 +000030425
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030426rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030427{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30428echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030429
30430# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30432 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030437 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030438 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030439 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30443echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30447echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030452 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030453## ----------------------------------- ##
30454## Report this to llvmbugs@cs.uiuc.edu ##
30455## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030456_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030457 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030458 ;;
30459esac
Reid Spencera773bd52006-08-04 18:18:08 +000030460{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030463 echo $ECHO_N "(cached) $ECHO_C" >&6
30464else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030465 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030466fi
Reid Spencera773bd52006-08-04 18:18:08 +000030467ac_res=`eval echo '${'$as_ac_Header'}'`
30468 { echo "$as_me:$LINENO: result: $ac_res" >&5
30469echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030470
30471fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030472if test `eval echo '${'$as_ac_Header'}'` = yes; then
30473 cat >>confdefs.h <<_ACEOF
30474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030475_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030476
30477fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030478
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030479done
30480
John Criswell7ed43ad2004-07-19 16:12:29 +000030481
Reid Spencercdb08a32006-06-05 16:11:07 +000030482
Reid Spencera6d990a2006-09-14 06:17:21 +000030483
Douglas Gregor01746742009-05-11 18:05:52 +000030484
30485for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030486do
30487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030492 echo $ECHO_N "(cached) $ECHO_C" >&6
30493fi
Reid Spencera773bd52006-08-04 18:18:08 +000030494ac_res=`eval echo '${'$as_ac_Header'}'`
30495 { echo "$as_me:$LINENO: result: $ac_res" >&5
30496echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030497else
30498 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030499{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030501cat >conftest.$ac_ext <<_ACEOF
30502/* confdefs.h. */
30503_ACEOF
30504cat confdefs.h >>conftest.$ac_ext
30505cat >>conftest.$ac_ext <<_ACEOF
30506/* end confdefs.h. */
30507$ac_includes_default
30508#include <$ac_header>
30509_ACEOF
30510rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030511if { (ac_try="$ac_compile"
30512case "(($ac_try" in
30513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514 *) ac_try_echo=$ac_try;;
30515esac
30516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030518 ac_status=$?
30519 grep -v '^ *+' conftest.er1 >conftest.err
30520 rm -f conftest.er1
30521 cat conftest.err >&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030523 (exit $ac_status); } &&
30524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30525 { (case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30528esac
30529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_try") 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; } &&
30534 { ac_try='test -s conftest.$ac_objext'
30535 { (case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30538esac
30539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_try") 2>&5
30541 ac_status=$?
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030544 ac_header_compiler=yes
30545else
30546 echo "$as_me: failed program was:" >&5
30547sed 's/^/| /' conftest.$ac_ext >&5
30548
Reid Spencera773bd52006-08-04 18:18:08 +000030549 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030550fi
Reid Spencera773bd52006-08-04 18:18:08 +000030551
30552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30554echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030555
30556# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030557{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030559cat >conftest.$ac_ext <<_ACEOF
30560/* confdefs.h. */
30561_ACEOF
30562cat confdefs.h >>conftest.$ac_ext
30563cat >>conftest.$ac_ext <<_ACEOF
30564/* end confdefs.h. */
30565#include <$ac_header>
30566_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030567if { (ac_try="$ac_cpp conftest.$ac_ext"
30568case "(($ac_try" in
30569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30570 *) ac_try_echo=$ac_try;;
30571esac
30572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030574 ac_status=$?
30575 grep -v '^ *+' conftest.er1 >conftest.err
30576 rm -f conftest.er1
30577 cat conftest.err >&5
30578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030579 (exit $ac_status); } >/dev/null; then
30580 if test -s conftest.err; then
30581 ac_cpp_err=$ac_c_preproc_warn_flag
30582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30583 else
30584 ac_cpp_err=
30585 fi
30586else
30587 ac_cpp_err=yes
30588fi
30589if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030590 ac_header_preproc=yes
30591else
30592 echo "$as_me: failed program was:" >&5
30593sed 's/^/| /' conftest.$ac_ext >&5
30594
30595 ac_header_preproc=no
30596fi
Reid Spencera773bd52006-08-04 18:18:08 +000030597
Chris Lattner0b142592005-11-14 06:57:34 +000030598rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030599{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30600echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030601
30602# So? What about this header?
30603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30604 yes:no: )
30605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30609 ac_header_preproc=yes
30610 ;;
30611 no:yes:* )
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030624 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030625## ----------------------------------- ##
30626## Report this to llvmbugs@cs.uiuc.edu ##
30627## ----------------------------------- ##
30628_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030629 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030630 ;;
30631esac
Reid Spencera773bd52006-08-04 18:18:08 +000030632{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030635 echo $ECHO_N "(cached) $ECHO_C" >&6
30636else
30637 eval "$as_ac_Header=\$ac_header_preproc"
30638fi
Reid Spencera773bd52006-08-04 18:18:08 +000030639ac_res=`eval echo '${'$as_ac_Header'}'`
30640 { echo "$as_me:$LINENO: result: $ac_res" >&5
30641echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030642
30643fi
30644if test `eval echo '${'$as_ac_Header'}'` = yes; then
30645 cat >>confdefs.h <<_ACEOF
30646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30647_ACEOF
30648
30649fi
30650
30651done
30652
Reid Spencer0a262ba2005-08-24 10:07:20 +000030653if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030654
30655for ac_header in pthread.h
30656do
30657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030662 echo $ECHO_N "(cached) $ECHO_C" >&6
30663fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030664ac_res=`eval echo '${'$as_ac_Header'}'`
30665 { echo "$as_me:$LINENO: result: $ac_res" >&5
30666echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030667else
30668 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030669{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030671cat >conftest.$ac_ext <<_ACEOF
30672/* confdefs.h. */
30673_ACEOF
30674cat confdefs.h >>conftest.$ac_ext
30675cat >>conftest.$ac_ext <<_ACEOF
30676/* end confdefs.h. */
30677$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030678#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030679_ACEOF
30680rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030681if { (ac_try="$ac_compile"
30682case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30685esac
30686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030688 ac_status=$?
30689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030693 (exit $ac_status); } &&
30694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30695 { (case "(($ac_try" in
30696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697 *) ac_try_echo=$ac_try;;
30698esac
30699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700 (eval "$ac_try") 2>&5
30701 ac_status=$?
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); }; } &&
30704 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030714 ac_header_compiler=yes
30715else
30716 echo "$as_me: failed program was:" >&5
30717sed 's/^/| /' conftest.$ac_ext >&5
30718
Reid Spencera773bd52006-08-04 18:18:08 +000030719 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030720fi
Reid Spencera773bd52006-08-04 18:18:08 +000030721
30722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30723{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30724echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030725
30726# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030727{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030729cat >conftest.$ac_ext <<_ACEOF
30730/* confdefs.h. */
30731_ACEOF
30732cat confdefs.h >>conftest.$ac_ext
30733cat >>conftest.$ac_ext <<_ACEOF
30734/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030735#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030736_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030737if { (ac_try="$ac_cpp conftest.$ac_ext"
30738case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30741esac
30742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030744 ac_status=$?
30745 grep -v '^ *+' conftest.er1 >conftest.err
30746 rm -f conftest.er1
30747 cat conftest.err >&5
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030749 (exit $ac_status); } >/dev/null; then
30750 if test -s conftest.err; then
30751 ac_cpp_err=$ac_c_preproc_warn_flag
30752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30753 else
30754 ac_cpp_err=
30755 fi
30756else
30757 ac_cpp_err=yes
30758fi
30759if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030760 ac_header_preproc=yes
30761else
30762 echo "$as_me: failed program was:" >&5
30763sed 's/^/| /' conftest.$ac_ext >&5
30764
30765 ac_header_preproc=no
30766fi
Reid Spencera773bd52006-08-04 18:18:08 +000030767
Reid Spencer0a262ba2005-08-24 10:07:20 +000030768rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030769{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30770echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030771
30772# So? What about this header?
30773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30774 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30776echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30778echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030779 ac_header_preproc=yes
30780 ;;
30781 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30785echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30787echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30789echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30793echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030794 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030795## ----------------------------------- ##
30796## Report this to llvmbugs@cs.uiuc.edu ##
30797## ----------------------------------- ##
30798_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030799 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030800 ;;
30801esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030802{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030805 echo $ECHO_N "(cached) $ECHO_C" >&6
30806else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030807 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030808fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030809ac_res=`eval echo '${'$as_ac_Header'}'`
30810 { echo "$as_me:$LINENO: result: $ac_res" >&5
30811echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030812
30813fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030814if test `eval echo '${'$as_ac_Header'}'` = yes; then
30815 cat >>confdefs.h <<_ACEOF
30816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30817_ACEOF
30818 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030819
30820else
30821 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030822
30823fi
30824
Reid Spencerbe3e4192007-08-17 05:45:26 +000030825done
Reid Spencer1000b732006-12-01 00:37:14 +000030826
30827else
30828 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030829
30830fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030831
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030832if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030833
30834
30835for ac_header in ffi.h ffi/ffi.h
30836do
30837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30842 echo $ECHO_N "(cached) $ECHO_C" >&6
30843fi
30844ac_res=`eval echo '${'$as_ac_Header'}'`
30845 { echo "$as_me:$LINENO: result: $ac_res" >&5
30846echo "${ECHO_T}$ac_res" >&6; }
30847else
30848 # Is the header compilable?
30849{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30851cat >conftest.$ac_ext <<_ACEOF
30852/* confdefs.h. */
30853_ACEOF
30854cat confdefs.h >>conftest.$ac_ext
30855cat >>conftest.$ac_ext <<_ACEOF
30856/* end confdefs.h. */
30857$ac_includes_default
30858#include <$ac_header>
30859_ACEOF
30860rm -f conftest.$ac_objext
30861if { (ac_try="$ac_compile"
30862case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30865esac
30866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_compile") 2>conftest.er1
30868 ac_status=$?
30869 grep -v '^ *+' conftest.er1 >conftest.err
30870 rm -f conftest.er1
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030873 (exit $ac_status); } &&
30874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30875 { (case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30878esac
30879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_try") 2>&5
30881 ac_status=$?
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; } &&
30884 { ac_try='test -s conftest.$ac_objext'
30885 { (case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30888esac
30889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_try") 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030894 ac_header_compiler=yes
30895else
30896 echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899 ac_header_compiler=no
30900fi
30901
30902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30904echo "${ECHO_T}$ac_header_compiler" >&6; }
30905
30906# Is the header present?
30907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30909cat >conftest.$ac_ext <<_ACEOF
30910/* confdefs.h. */
30911_ACEOF
30912cat confdefs.h >>conftest.$ac_ext
30913cat >>conftest.$ac_ext <<_ACEOF
30914/* end confdefs.h. */
30915#include <$ac_header>
30916_ACEOF
30917if { (ac_try="$ac_cpp conftest.$ac_ext"
30918case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30921esac
30922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30924 ac_status=$?
30925 grep -v '^ *+' conftest.er1 >conftest.err
30926 rm -f conftest.er1
30927 cat conftest.err >&5
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030929 (exit $ac_status); } >/dev/null; then
30930 if test -s conftest.err; then
30931 ac_cpp_err=$ac_c_preproc_warn_flag
30932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30933 else
30934 ac_cpp_err=
30935 fi
30936else
30937 ac_cpp_err=yes
30938fi
30939if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030940 ac_header_preproc=yes
30941else
30942 echo "$as_me: failed program was:" >&5
30943sed 's/^/| /' conftest.$ac_ext >&5
30944
30945 ac_header_preproc=no
30946fi
30947
30948rm -f conftest.err conftest.$ac_ext
30949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30950echo "${ECHO_T}$ac_header_preproc" >&6; }
30951
30952# So? What about this header?
30953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30954 yes:no: )
30955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30959 ac_header_preproc=yes
30960 ;;
30961 no:yes:* )
30962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30974 ( cat <<\_ASBOX
30975## ----------------------------------- ##
30976## Report this to llvmbugs@cs.uiuc.edu ##
30977## ----------------------------------- ##
30978_ASBOX
30979 ) | sed "s/^/$as_me: WARNING: /" >&2
30980 ;;
30981esac
30982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30985 echo $ECHO_N "(cached) $ECHO_C" >&6
30986else
30987 eval "$as_ac_Header=\$ac_header_preproc"
30988fi
30989ac_res=`eval echo '${'$as_ac_Header'}'`
30990 { echo "$as_me:$LINENO: result: $ac_res" >&5
30991echo "${ECHO_T}$ac_res" >&6; }
30992
30993fi
30994if test `eval echo '${'$as_ac_Header'}'` = yes; then
30995 cat >>confdefs.h <<_ACEOF
30996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30997_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030998
30999fi
31000
31001done
31002
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031003fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031004
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031005
Reid Spencer8085cff2005-01-16 02:58:39 +000031006
Reid Spencerb2ed05262006-11-03 18:04:08 +000031007 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31008echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31009if test "${ac_cv_huge_val_sanity+set}" = set; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31011else
31012
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031013 ac_ext=cpp
31014ac_cpp='$CXXCPP $CPPFLAGS'
31015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031018
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031019 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031020 if test "$cross_compiling" = yes; then
31021 ac_cv_huge_val_sanity=yes
31022else
31023 cat >conftest.$ac_ext <<_ACEOF
31024/* confdefs.h. */
31025_ACEOF
31026cat confdefs.h >>conftest.$ac_ext
31027cat >>conftest.$ac_ext <<_ACEOF
31028/* end confdefs.h. */
31029#include <math.h>
31030int
31031main ()
31032{
31033double x = HUGE_VAL; return x != x;
31034 ;
31035 return 0;
31036}
31037_ACEOF
31038rm -f conftest$ac_exeext
31039if { (ac_try="$ac_link"
31040case "(($ac_try" in
31041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042 *) ac_try_echo=$ac_try;;
31043esac
31044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045 (eval "$ac_link") 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31052esac
31053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; }; then
31058 ac_cv_huge_val_sanity=yes
31059else
31060 echo "$as_me: program exited with status $ac_status" >&5
31061echo "$as_me: failed program was:" >&5
31062sed 's/^/| /' conftest.$ac_ext >&5
31063
31064( exit $ac_status )
31065ac_cv_huge_val_sanity=no
31066fi
31067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31068fi
31069
31070
31071 ac_ext=c
31072ac_cpp='$CPP $CPPFLAGS'
31073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075ac_compiler_gnu=$ac_cv_c_compiler_gnu
31076
31077
31078fi
31079{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31080echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31081 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31082
31083
Reid Spencera773bd52006-08-04 18:18:08 +000031084{ echo "$as_me:$LINENO: checking for pid_t" >&5
31085echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031086if test "${ac_cv_type_pid_t+set}" = set; then
31087 echo $ECHO_N "(cached) $ECHO_C" >&6
31088else
31089 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031090/* confdefs.h. */
31091_ACEOF
31092cat confdefs.h >>conftest.$ac_ext
31093cat >>conftest.$ac_ext <<_ACEOF
31094/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031095$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031096typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031097int
31098main ()
31099{
Reid Spencera773bd52006-08-04 18:18:08 +000031100if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031101 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031102if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031103 return 0;
31104 ;
31105 return 0;
31106}
31107_ACEOF
31108rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031109if { (ac_try="$ac_compile"
31110case "(($ac_try" in
31111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112 *) ac_try_echo=$ac_try;;
31113esac
31114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031116 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031117 grep -v '^ *+' conftest.er1 >conftest.err
31118 rm -f conftest.er1
31119 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031121 (exit $ac_status); } &&
31122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31123 { (case "(($ac_try" in
31124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125 *) ac_try_echo=$ac_try;;
31126esac
31127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128 (eval "$ac_try") 2>&5
31129 ac_status=$?
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); }; } &&
31132 { ac_try='test -s conftest.$ac_objext'
31133 { (case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31136esac
31137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138 (eval "$ac_try") 2>&5
31139 ac_status=$?
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031142 ac_cv_type_pid_t=yes
31143else
31144 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031145sed 's/^/| /' conftest.$ac_ext >&5
31146
Reid Spencera773bd52006-08-04 18:18:08 +000031147 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031148fi
Reid Spencera773bd52006-08-04 18:18:08 +000031149
31150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031151fi
Reid Spencera773bd52006-08-04 18:18:08 +000031152{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31153echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031154if test $ac_cv_type_pid_t = yes; then
31155 :
31156else
31157
31158cat >>confdefs.h <<_ACEOF
31159#define pid_t int
31160_ACEOF
31161
31162fi
31163
Reid Spencera773bd52006-08-04 18:18:08 +000031164{ echo "$as_me:$LINENO: checking for size_t" >&5
31165echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031166if test "${ac_cv_type_size_t+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31168else
31169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031170/* confdefs.h. */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031175$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031176typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031177int
31178main ()
31179{
Reid Spencera773bd52006-08-04 18:18:08 +000031180if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031181 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031182if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031183 return 0;
31184 ;
31185 return 0;
31186}
31187_ACEOF
31188rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031189if { (ac_try="$ac_compile"
31190case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31193esac
31194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031196 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031197 grep -v '^ *+' conftest.er1 >conftest.err
31198 rm -f conftest.er1
31199 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031201 (exit $ac_status); } &&
31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31203 { (case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31206esac
31207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_try") 2>&5
31209 ac_status=$?
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; } &&
31212 { ac_try='test -s conftest.$ac_objext'
31213 { (case "(($ac_try" in
31214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215 *) ac_try_echo=$ac_try;;
31216esac
31217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218 (eval "$ac_try") 2>&5
31219 ac_status=$?
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031222 ac_cv_type_size_t=yes
31223else
31224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031225sed 's/^/| /' conftest.$ac_ext >&5
31226
Reid Spencera773bd52006-08-04 18:18:08 +000031227 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031228fi
Reid Spencera773bd52006-08-04 18:18:08 +000031229
31230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031231fi
Reid Spencera773bd52006-08-04 18:18:08 +000031232{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31233echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031234if test $ac_cv_type_size_t = yes; then
31235 :
31236else
31237
31238cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031239#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031240_ACEOF
31241
31242fi
31243
Reid Spencera773bd52006-08-04 18:18:08 +000031244{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31245echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031246if test "${ac_cv_type_signal+set}" = set; then
31247 echo $ECHO_N "(cached) $ECHO_C" >&6
31248else
31249 cat >conftest.$ac_ext <<_ACEOF
31250/* confdefs.h. */
31251_ACEOF
31252cat confdefs.h >>conftest.$ac_ext
31253cat >>conftest.$ac_ext <<_ACEOF
31254/* end confdefs.h. */
31255#include <sys/types.h>
31256#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031257
31258int
31259main ()
31260{
Reid Spencera773bd52006-08-04 18:18:08 +000031261return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031262 ;
31263 return 0;
31264}
31265_ACEOF
31266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031267if { (ac_try="$ac_compile"
31268case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31271esac
31272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031274 ac_status=$?
31275 grep -v '^ *+' conftest.er1 >conftest.err
31276 rm -f conftest.er1
31277 cat conftest.err >&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031279 (exit $ac_status); } &&
31280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31284esac
31285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
31290 { ac_try='test -s conftest.$ac_objext'
31291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31294esac
31295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031300 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031301else
31302 echo "$as_me: failed program was:" >&5
31303sed 's/^/| /' conftest.$ac_ext >&5
31304
Reid Spencera773bd52006-08-04 18:18:08 +000031305 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306fi
Reid Spencera773bd52006-08-04 18:18:08 +000031307
31308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031309fi
Reid Spencera773bd52006-08-04 18:18:08 +000031310{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31311echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031312
31313cat >>confdefs.h <<_ACEOF
31314#define RETSIGTYPE $ac_cv_type_signal
31315_ACEOF
31316
31317
Reid Spencera773bd52006-08-04 18:18:08 +000031318{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31319echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031320if test "${ac_cv_struct_tm+set}" = set; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31322else
31323 cat >conftest.$ac_ext <<_ACEOF
31324/* confdefs.h. */
31325_ACEOF
31326cat confdefs.h >>conftest.$ac_ext
31327cat >>conftest.$ac_ext <<_ACEOF
31328/* end confdefs.h. */
31329#include <sys/types.h>
31330#include <time.h>
31331
31332int
31333main ()
31334{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031335struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031336 ;
31337 return 0;
31338}
31339_ACEOF
31340rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031341if { (ac_try="$ac_compile"
31342case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031348 ac_status=$?
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031353 (exit $ac_status); } &&
31354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31355 { (case "(($ac_try" in
31356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357 *) ac_try_echo=$ac_try;;
31358esac
31359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360 (eval "$ac_try") 2>&5
31361 ac_status=$?
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; } &&
31364 { ac_try='test -s conftest.$ac_objext'
31365 { (case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31368esac
31369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_try") 2>&5
31371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031374 ac_cv_struct_tm=time.h
31375else
31376 echo "$as_me: failed program was:" >&5
31377sed 's/^/| /' conftest.$ac_ext >&5
31378
Reid Spencera773bd52006-08-04 18:18:08 +000031379 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031380fi
Reid Spencera773bd52006-08-04 18:18:08 +000031381
31382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031383fi
Reid Spencera773bd52006-08-04 18:18:08 +000031384{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31385echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031386if test $ac_cv_struct_tm = sys/time.h; then
31387
31388cat >>confdefs.h <<\_ACEOF
31389#define TM_IN_SYS_TIME 1
31390_ACEOF
31391
31392fi
31393
Reid Spencera773bd52006-08-04 18:18:08 +000031394{ echo "$as_me:$LINENO: checking for int64_t" >&5
31395echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031396if test "${ac_cv_type_int64_t+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398else
31399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031400/* confdefs.h. */
31401_ACEOF
31402cat confdefs.h >>conftest.$ac_ext
31403cat >>conftest.$ac_ext <<_ACEOF
31404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031405$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031406typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031407int
31408main ()
31409{
Reid Spencera773bd52006-08-04 18:18:08 +000031410if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031411 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031412if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031413 return 0;
31414 ;
31415 return 0;
31416}
31417_ACEOF
31418rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031419if { (ac_try="$ac_compile"
31420case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31423esac
31424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031427 grep -v '^ *+' conftest.er1 >conftest.err
31428 rm -f conftest.er1
31429 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031431 (exit $ac_status); } &&
31432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31433 { (case "(($ac_try" in
31434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435 *) ac_try_echo=$ac_try;;
31436esac
31437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438 (eval "$ac_try") 2>&5
31439 ac_status=$?
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); }; } &&
31442 { ac_try='test -s conftest.$ac_objext'
31443 { (case "(($ac_try" in
31444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445 *) ac_try_echo=$ac_try;;
31446esac
31447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448 (eval "$ac_try") 2>&5
31449 ac_status=$?
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031452 ac_cv_type_int64_t=yes
31453else
31454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031455sed 's/^/| /' conftest.$ac_ext >&5
31456
Reid Spencera773bd52006-08-04 18:18:08 +000031457 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031458fi
Reid Spencera773bd52006-08-04 18:18:08 +000031459
31460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031461fi
Reid Spencera773bd52006-08-04 18:18:08 +000031462{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31463echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031464if test $ac_cv_type_int64_t = yes; then
31465
31466cat >>confdefs.h <<_ACEOF
31467#define HAVE_INT64_T 1
31468_ACEOF
31469
31470
31471else
31472 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31473echo "$as_me: error: Type int64_t required but not found" >&2;}
31474 { (exit 1); exit 1; }; }
31475fi
31476
Reid Spencera773bd52006-08-04 18:18:08 +000031477{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31478echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031479if test "${ac_cv_type_uint64_t+set}" = set; then
31480 echo $ECHO_N "(cached) $ECHO_C" >&6
31481else
31482 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031483/* confdefs.h. */
31484_ACEOF
31485cat confdefs.h >>conftest.$ac_ext
31486cat >>conftest.$ac_ext <<_ACEOF
31487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031488$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031489typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031490int
31491main ()
31492{
Reid Spencera773bd52006-08-04 18:18:08 +000031493if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031494 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031495if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031496 return 0;
31497 ;
31498 return 0;
31499}
31500_ACEOF
31501rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031502if { (ac_try="$ac_compile"
31503case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31506esac
31507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031509 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031510 grep -v '^ *+' conftest.er1 >conftest.err
31511 rm -f conftest.er1
31512 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031514 (exit $ac_status); } &&
31515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31516 { (case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31519esac
31520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521 (eval "$ac_try") 2>&5
31522 ac_status=$?
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); }; } &&
31525 { ac_try='test -s conftest.$ac_objext'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031535 ac_cv_type_uint64_t=yes
31536else
31537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031538sed 's/^/| /' conftest.$ac_ext >&5
31539
Reid Spencera773bd52006-08-04 18:18:08 +000031540 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031541fi
Reid Spencera773bd52006-08-04 18:18:08 +000031542
31543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031544fi
Reid Spencera773bd52006-08-04 18:18:08 +000031545{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31546echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031547if test $ac_cv_type_uint64_t = yes; then
31548
31549cat >>confdefs.h <<_ACEOF
31550#define HAVE_UINT64_T 1
31551_ACEOF
31552
31553
31554else
Reid Spencera773bd52006-08-04 18:18:08 +000031555 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31556echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031557if test "${ac_cv_type_u_int64_t+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31559else
31560 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031561/* confdefs.h. */
31562_ACEOF
31563cat confdefs.h >>conftest.$ac_ext
31564cat >>conftest.$ac_ext <<_ACEOF
31565/* end confdefs.h. */
31566$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031567typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031568int
31569main ()
31570{
Reid Spencera773bd52006-08-04 18:18:08 +000031571if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031572 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031573if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031574 return 0;
31575 ;
31576 return 0;
31577}
31578_ACEOF
31579rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031580if { (ac_try="$ac_compile"
31581case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584esac
31585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031587 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031588 grep -v '^ *+' conftest.er1 >conftest.err
31589 rm -f conftest.er1
31590 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031592 (exit $ac_status); } &&
31593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31594 { (case "(($ac_try" in
31595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596 *) ac_try_echo=$ac_try;;
31597esac
31598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599 (eval "$ac_try") 2>&5
31600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; } &&
31603 { ac_try='test -s conftest.$ac_objext'
31604 { (case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31607esac
31608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_try") 2>&5
31610 ac_status=$?
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031613 ac_cv_type_u_int64_t=yes
31614else
31615 echo "$as_me: failed program was:" >&5
31616sed 's/^/| /' conftest.$ac_ext >&5
31617
Reid Spencera773bd52006-08-04 18:18:08 +000031618 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031619fi
Reid Spencera773bd52006-08-04 18:18:08 +000031620
31621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031622fi
Reid Spencera773bd52006-08-04 18:18:08 +000031623{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31624echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031625if test $ac_cv_type_u_int64_t = yes; then
31626
31627cat >>confdefs.h <<_ACEOF
31628#define HAVE_U_INT64_T 1
31629_ACEOF
31630
31631
Misha Brukmanceca9042004-09-02 23:02:30 +000031632else
31633 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31634echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31635 { (exit 1); exit 1; }; }
31636fi
31637
John Criswell679ff312004-09-02 18:44:44 +000031638fi
31639
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031640
31641
31642
31643
31644
31645
31646
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031647
31648
Reid Spencerdf3be822006-01-23 08:15:53 +000031649for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031650do
31651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031652{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31654if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031655 echo $ECHO_N "(cached) $ECHO_C" >&6
31656else
31657 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031658/* confdefs.h. */
31659_ACEOF
31660cat confdefs.h >>conftest.$ac_ext
31661cat >>conftest.$ac_ext <<_ACEOF
31662/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31665#define $ac_func innocuous_$ac_func
31666
31667/* System header to define __stub macros and hopefully few prototypes,
31668 which can conflict with char $ac_func (); below.
31669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31670 <limits.h> exists even on freestanding compilers. */
31671
31672#ifdef __STDC__
31673# include <limits.h>
31674#else
31675# include <assert.h>
31676#endif
31677
31678#undef $ac_func
31679
Reid Spencera773bd52006-08-04 18:18:08 +000031680/* Override any GCC internal prototype to avoid an error.
31681 Use char because int might match the return type of a GCC
31682 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031683#ifdef __cplusplus
31684extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031686char $ac_func ();
31687/* The GNU C library defines this for functions which it implements
31688 to always fail with ENOSYS. Some functions are actually named
31689 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031690#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031691choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692#endif
John Criswell7a73b802003-06-30 21:59:07 +000031693
John Criswell7a73b802003-06-30 21:59:07 +000031694int
31695main ()
31696{
Reid Spencera773bd52006-08-04 18:18:08 +000031697return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031698 ;
31699 return 0;
31700}
31701_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031702rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031703if { (ac_try="$ac_link"
31704case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707esac
31708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031711 grep -v '^ *+' conftest.er1 >conftest.err
31712 rm -f conftest.er1
31713 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031715 (exit $ac_status); } &&
31716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31717 { (case "(($ac_try" in
31718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719 *) ac_try_echo=$ac_try;;
31720esac
31721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722 (eval "$ac_try") 2>&5
31723 ac_status=$?
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); }; } &&
31726 { ac_try='test -s conftest$ac_exeext'
31727 { (case "(($ac_try" in
31728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729 *) ac_try_echo=$ac_try;;
31730esac
31731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732 (eval "$ac_try") 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031736 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031737else
31738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031739sed 's/^/| /' conftest.$ac_ext >&5
31740
Reid Spencera773bd52006-08-04 18:18:08 +000031741 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031742fi
Reid Spencera773bd52006-08-04 18:18:08 +000031743
Bill Wendlingebcceee2009-04-18 11:20:33 +000031744rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031745 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031746fi
Reid Spencera773bd52006-08-04 18:18:08 +000031747ac_res=`eval echo '${'$as_ac_var'}'`
31748 { echo "$as_me:$LINENO: result: $ac_res" >&5
31749echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031750if test `eval echo '${'$as_ac_var'}'` = yes; then
31751 cat >>confdefs.h <<_ACEOF
31752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031753_ACEOF
31754
31755fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031756done
John Criswell7a73b802003-06-30 21:59:07 +000031757
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031758
31759
31760
Reid Spencer6af3d262004-12-15 04:01:48 +000031761
Reid Spencer96cf5872007-07-13 10:05:30 +000031762for ac_func in powf fmodf strtof round
31763do
31764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31765{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31768 echo $ECHO_N "(cached) $ECHO_C" >&6
31769else
31770 cat >conftest.$ac_ext <<_ACEOF
31771/* confdefs.h. */
31772_ACEOF
31773cat confdefs.h >>conftest.$ac_ext
31774cat >>conftest.$ac_ext <<_ACEOF
31775/* end confdefs.h. */
31776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31778#define $ac_func innocuous_$ac_func
31779
31780/* System header to define __stub macros and hopefully few prototypes,
31781 which can conflict with char $ac_func (); below.
31782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31783 <limits.h> exists even on freestanding compilers. */
31784
31785#ifdef __STDC__
31786# include <limits.h>
31787#else
31788# include <assert.h>
31789#endif
31790
31791#undef $ac_func
31792
31793/* Override any GCC internal prototype to avoid an error.
31794 Use char because int might match the return type of a GCC
31795 builtin and then its argument prototype would still apply. */
31796#ifdef __cplusplus
31797extern "C"
31798#endif
31799char $ac_func ();
31800/* The GNU C library defines this for functions which it implements
31801 to always fail with ENOSYS. Some functions are actually named
31802 something starting with __ and the normal name is an alias. */
31803#if defined __stub_$ac_func || defined __stub___$ac_func
31804choke me
31805#endif
31806
31807int
31808main ()
31809{
31810return $ac_func ();
31811 ;
31812 return 0;
31813}
31814_ACEOF
31815rm -f conftest.$ac_objext conftest$ac_exeext
31816if { (ac_try="$ac_link"
31817case "(($ac_try" in
31818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819 *) ac_try_echo=$ac_try;;
31820esac
31821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31822 (eval "$ac_link") 2>conftest.er1
31823 ac_status=$?
31824 grep -v '^ *+' conftest.er1 >conftest.err
31825 rm -f conftest.er1
31826 cat conftest.err >&5
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031828 (exit $ac_status); } &&
31829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31830 { (case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31833esac
31834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_try") 2>&5
31836 ac_status=$?
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; } &&
31839 { ac_try='test -s conftest$ac_exeext'
31840 { (case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31843esac
31844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_try") 2>&5
31846 ac_status=$?
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031849 eval "$as_ac_var=yes"
31850else
31851 echo "$as_me: failed program was:" >&5
31852sed 's/^/| /' conftest.$ac_ext >&5
31853
31854 eval "$as_ac_var=no"
31855fi
31856
Bill Wendlingebcceee2009-04-18 11:20:33 +000031857rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031858 conftest$ac_exeext conftest.$ac_ext
31859fi
31860ac_res=`eval echo '${'$as_ac_var'}'`
31861 { echo "$as_me:$LINENO: result: $ac_res" >&5
31862echo "${ECHO_T}$ac_res" >&6; }
31863if test `eval echo '${'$as_ac_var'}'` = yes; then
31864 cat >>confdefs.h <<_ACEOF
31865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31866_ACEOF
31867
31868fi
31869done
31870
31871
31872
31873
31874
Reid Spencer6af3d262004-12-15 04:01:48 +000031875
Reid Spencerb90645c2007-02-16 19:17:20 +000031876for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31877do
31878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31879{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31882 echo $ECHO_N "(cached) $ECHO_C" >&6
31883else
31884 cat >conftest.$ac_ext <<_ACEOF
31885/* confdefs.h. */
31886_ACEOF
31887cat confdefs.h >>conftest.$ac_ext
31888cat >>conftest.$ac_ext <<_ACEOF
31889/* end confdefs.h. */
31890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31892#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031893
Reid Spencerb90645c2007-02-16 19:17:20 +000031894/* System header to define __stub macros and hopefully few prototypes,
31895 which can conflict with char $ac_func (); below.
31896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31897 <limits.h> exists even on freestanding compilers. */
31898
31899#ifdef __STDC__
31900# include <limits.h>
31901#else
31902# include <assert.h>
31903#endif
31904
31905#undef $ac_func
31906
31907/* Override any GCC internal prototype to avoid an error.
31908 Use char because int might match the return type of a GCC
31909 builtin and then its argument prototype would still apply. */
31910#ifdef __cplusplus
31911extern "C"
31912#endif
31913char $ac_func ();
31914/* The GNU C library defines this for functions which it implements
31915 to always fail with ENOSYS. Some functions are actually named
31916 something starting with __ and the normal name is an alias. */
31917#if defined __stub_$ac_func || defined __stub___$ac_func
31918choke me
31919#endif
31920
31921int
31922main ()
31923{
31924return $ac_func ();
31925 ;
31926 return 0;
31927}
31928_ACEOF
31929rm -f conftest.$ac_objext conftest$ac_exeext
31930if { (ac_try="$ac_link"
31931case "(($ac_try" in
31932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933 *) ac_try_echo=$ac_try;;
31934esac
31935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31936 (eval "$ac_link") 2>conftest.er1
31937 ac_status=$?
31938 grep -v '^ *+' conftest.er1 >conftest.err
31939 rm -f conftest.er1
31940 cat conftest.err >&5
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031942 (exit $ac_status); } &&
31943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31944 { (case "(($ac_try" in
31945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31946 *) ac_try_echo=$ac_try;;
31947esac
31948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31949 (eval "$ac_try") 2>&5
31950 ac_status=$?
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; } &&
31953 { ac_try='test -s conftest$ac_exeext'
31954 { (case "(($ac_try" in
31955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31956 *) ac_try_echo=$ac_try;;
31957esac
31958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31959 (eval "$ac_try") 2>&5
31960 ac_status=$?
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031963 eval "$as_ac_var=yes"
31964else
31965 echo "$as_me: failed program was:" >&5
31966sed 's/^/| /' conftest.$ac_ext >&5
31967
31968 eval "$as_ac_var=no"
31969fi
31970
Bill Wendlingebcceee2009-04-18 11:20:33 +000031971rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031972 conftest$ac_exeext conftest.$ac_ext
31973fi
31974ac_res=`eval echo '${'$as_ac_var'}'`
31975 { echo "$as_me:$LINENO: result: $ac_res" >&5
31976echo "${ECHO_T}$ac_res" >&6; }
31977if test `eval echo '${'$as_ac_var'}'` = yes; then
31978 cat >>confdefs.h <<_ACEOF
31979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31980_ACEOF
31981
31982fi
31983done
31984
31985
31986
31987
31988for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031989do
31990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031991{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31993if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031994 echo $ECHO_N "(cached) $ECHO_C" >&6
31995else
31996 cat >conftest.$ac_ext <<_ACEOF
31997/* confdefs.h. */
31998_ACEOF
31999cat confdefs.h >>conftest.$ac_ext
32000cat >>conftest.$ac_ext <<_ACEOF
32001/* end confdefs.h. */
32002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32004#define $ac_func innocuous_$ac_func
32005
32006/* System header to define __stub macros and hopefully few prototypes,
32007 which can conflict with char $ac_func (); below.
32008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32009 <limits.h> exists even on freestanding compilers. */
32010
32011#ifdef __STDC__
32012# include <limits.h>
32013#else
32014# include <assert.h>
32015#endif
32016
32017#undef $ac_func
32018
Reid Spencera773bd52006-08-04 18:18:08 +000032019/* Override any GCC internal prototype to avoid an error.
32020 Use char because int might match the return type of a GCC
32021 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032022#ifdef __cplusplus
32023extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032024#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032025char $ac_func ();
32026/* The GNU C library defines this for functions which it implements
32027 to always fail with ENOSYS. Some functions are actually named
32028 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032029#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032030choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032031#endif
32032
32033int
32034main ()
32035{
Reid Spencera773bd52006-08-04 18:18:08 +000032036return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032037 ;
32038 return 0;
32039}
32040_ACEOF
32041rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032042if { (ac_try="$ac_link"
32043case "(($ac_try" in
32044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32045 *) ac_try_echo=$ac_try;;
32046esac
32047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32048 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032049 ac_status=$?
32050 grep -v '^ *+' conftest.er1 >conftest.err
32051 rm -f conftest.er1
32052 cat conftest.err >&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032054 (exit $ac_status); } &&
32055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32056 { (case "(($ac_try" in
32057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058 *) ac_try_echo=$ac_try;;
32059esac
32060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061 (eval "$ac_try") 2>&5
32062 ac_status=$?
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); }; } &&
32065 { ac_try='test -s conftest$ac_exeext'
32066 { (case "(($ac_try" in
32067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068 *) ac_try_echo=$ac_try;;
32069esac
32070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32071 (eval "$ac_try") 2>&5
32072 ac_status=$?
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032075 eval "$as_ac_var=yes"
32076else
32077 echo "$as_me: failed program was:" >&5
32078sed 's/^/| /' conftest.$ac_ext >&5
32079
Reid Spencera773bd52006-08-04 18:18:08 +000032080 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032081fi
Reid Spencera773bd52006-08-04 18:18:08 +000032082
Bill Wendlingebcceee2009-04-18 11:20:33 +000032083rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032084 conftest$ac_exeext conftest.$ac_ext
32085fi
Reid Spencera773bd52006-08-04 18:18:08 +000032086ac_res=`eval echo '${'$as_ac_var'}'`
32087 { echo "$as_me:$LINENO: result: $ac_res" >&5
32088echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032089if test `eval echo '${'$as_ac_var'}'` = yes; then
32090 cat >>confdefs.h <<_ACEOF
32091#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32092_ACEOF
32093
32094fi
32095done
32096
32097
32098
32099
32100
32101
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032102for ac_func in mktemp realpath sbrk setrlimit strdup
32103do
32104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32105{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32107if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32108 echo $ECHO_N "(cached) $ECHO_C" >&6
32109else
32110 cat >conftest.$ac_ext <<_ACEOF
32111/* confdefs.h. */
32112_ACEOF
32113cat confdefs.h >>conftest.$ac_ext
32114cat >>conftest.$ac_ext <<_ACEOF
32115/* end confdefs.h. */
32116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32118#define $ac_func innocuous_$ac_func
32119
32120/* System header to define __stub macros and hopefully few prototypes,
32121 which can conflict with char $ac_func (); below.
32122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32123 <limits.h> exists even on freestanding compilers. */
32124
32125#ifdef __STDC__
32126# include <limits.h>
32127#else
32128# include <assert.h>
32129#endif
32130
32131#undef $ac_func
32132
32133/* Override any GCC internal prototype to avoid an error.
32134 Use char because int might match the return type of a GCC
32135 builtin and then its argument prototype would still apply. */
32136#ifdef __cplusplus
32137extern "C"
32138#endif
32139char $ac_func ();
32140/* The GNU C library defines this for functions which it implements
32141 to always fail with ENOSYS. Some functions are actually named
32142 something starting with __ and the normal name is an alias. */
32143#if defined __stub_$ac_func || defined __stub___$ac_func
32144choke me
32145#endif
32146
32147int
32148main ()
32149{
32150return $ac_func ();
32151 ;
32152 return 0;
32153}
32154_ACEOF
32155rm -f conftest.$ac_objext conftest$ac_exeext
32156if { (ac_try="$ac_link"
32157case "(($ac_try" in
32158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32159 *) ac_try_echo=$ac_try;;
32160esac
32161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32162 (eval "$ac_link") 2>conftest.er1
32163 ac_status=$?
32164 grep -v '^ *+' conftest.er1 >conftest.err
32165 rm -f conftest.er1
32166 cat conftest.err >&5
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); } &&
32169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32170 { (case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173esac
32174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_try") 2>&5
32176 ac_status=$?
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; } &&
32179 { ac_try='test -s conftest$ac_exeext'
32180 { (case "(($ac_try" in
32181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32182 *) ac_try_echo=$ac_try;;
32183esac
32184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32185 (eval "$ac_try") 2>&5
32186 ac_status=$?
32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188 (exit $ac_status); }; }; then
32189 eval "$as_ac_var=yes"
32190else
32191 echo "$as_me: failed program was:" >&5
32192sed 's/^/| /' conftest.$ac_ext >&5
32193
32194 eval "$as_ac_var=no"
32195fi
32196
32197rm -f core conftest.err conftest.$ac_objext \
32198 conftest$ac_exeext conftest.$ac_ext
32199fi
32200ac_res=`eval echo '${'$as_ac_var'}'`
32201 { echo "$as_me:$LINENO: result: $ac_res" >&5
32202echo "${ECHO_T}$ac_res" >&6; }
32203if test `eval echo '${'$as_ac_var'}'` = yes; then
32204 cat >>confdefs.h <<_ACEOF
32205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32206_ACEOF
32207
32208fi
32209done
Reid Spencerdf3be822006-01-23 08:15:53 +000032210
32211
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032212
32213
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000032214
32215for ac_func in strerror strerror_r strerror_s setenv
Reid Spencer7931a782004-12-27 06:15:02 +000032216do
32217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032221 echo $ECHO_N "(cached) $ECHO_C" >&6
32222else
32223 cat >conftest.$ac_ext <<_ACEOF
32224/* confdefs.h. */
32225_ACEOF
32226cat confdefs.h >>conftest.$ac_ext
32227cat >>conftest.$ac_ext <<_ACEOF
32228/* end confdefs.h. */
32229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32231#define $ac_func innocuous_$ac_func
32232
32233/* System header to define __stub macros and hopefully few prototypes,
32234 which can conflict with char $ac_func (); below.
32235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32236 <limits.h> exists even on freestanding compilers. */
32237
32238#ifdef __STDC__
32239# include <limits.h>
32240#else
32241# include <assert.h>
32242#endif
32243
32244#undef $ac_func
32245
Reid Spencera773bd52006-08-04 18:18:08 +000032246/* Override any GCC internal prototype to avoid an error.
32247 Use char because int might match the return type of a GCC
32248 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032249#ifdef __cplusplus
32250extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032251#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032252char $ac_func ();
32253/* The GNU C library defines this for functions which it implements
32254 to always fail with ENOSYS. Some functions are actually named
32255 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032256#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032257choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032258#endif
32259
32260int
32261main ()
32262{
Reid Spencera773bd52006-08-04 18:18:08 +000032263return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032264 ;
32265 return 0;
32266}
32267_ACEOF
32268rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032269if { (ac_try="$ac_link"
32270case "(($ac_try" in
32271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272 *) ac_try_echo=$ac_try;;
32273esac
32274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032276 ac_status=$?
32277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032281 (exit $ac_status); } &&
32282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32283 { (case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32286esac
32287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_try") 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest$ac_exeext'
32293 { (case "(($ac_try" in
32294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295 *) ac_try_echo=$ac_try;;
32296esac
32297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298 (eval "$ac_try") 2>&5
32299 ac_status=$?
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032302 eval "$as_ac_var=yes"
32303else
32304 echo "$as_me: failed program was:" >&5
32305sed 's/^/| /' conftest.$ac_ext >&5
32306
Reid Spencera773bd52006-08-04 18:18:08 +000032307 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032308fi
Reid Spencera773bd52006-08-04 18:18:08 +000032309
Bill Wendlingebcceee2009-04-18 11:20:33 +000032310rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032311 conftest$ac_exeext conftest.$ac_ext
32312fi
Reid Spencera773bd52006-08-04 18:18:08 +000032313ac_res=`eval echo '${'$as_ac_var'}'`
32314 { echo "$as_me:$LINENO: result: $ac_res" >&5
32315echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032316if test `eval echo '${'$as_ac_var'}'` = yes; then
32317 cat >>confdefs.h <<_ACEOF
32318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32319_ACEOF
32320
32321fi
32322done
32323
32324
Reid Spencerba46ca32004-12-31 05:49:15 +000032325
32326
Chris Lattner0b142592005-11-14 06:57:34 +000032327
Chris Lattner511f11d2005-11-14 07:25:50 +000032328for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032329do
32330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032331{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32333if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032334 echo $ECHO_N "(cached) $ECHO_C" >&6
32335else
32336 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032337/* confdefs.h. */
32338_ACEOF
32339cat confdefs.h >>conftest.$ac_ext
32340cat >>conftest.$ac_ext <<_ACEOF
32341/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32344#define $ac_func innocuous_$ac_func
32345
32346/* System header to define __stub macros and hopefully few prototypes,
32347 which can conflict with char $ac_func (); below.
32348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32349 <limits.h> exists even on freestanding compilers. */
32350
32351#ifdef __STDC__
32352# include <limits.h>
32353#else
32354# include <assert.h>
32355#endif
32356
32357#undef $ac_func
32358
Reid Spencera773bd52006-08-04 18:18:08 +000032359/* Override any GCC internal prototype to avoid an error.
32360 Use char because int might match the return type of a GCC
32361 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032362#ifdef __cplusplus
32363extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032364#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032365char $ac_func ();
32366/* The GNU C library defines this for functions which it implements
32367 to always fail with ENOSYS. Some functions are actually named
32368 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032369#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032370choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032371#endif
John Criswell7a73b802003-06-30 21:59:07 +000032372
John Criswell7a73b802003-06-30 21:59:07 +000032373int
32374main ()
32375{
Reid Spencera773bd52006-08-04 18:18:08 +000032376return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032377 ;
32378 return 0;
32379}
32380_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032381rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032382if { (ac_try="$ac_link"
32383case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32386esac
32387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032394 (exit $ac_status); } &&
32395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32396 { (case "(($ac_try" in
32397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398 *) ac_try_echo=$ac_try;;
32399esac
32400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401 (eval "$ac_try") 2>&5
32402 ac_status=$?
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; } &&
32405 { ac_try='test -s conftest$ac_exeext'
32406 { (case "(($ac_try" in
32407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408 *) ac_try_echo=$ac_try;;
32409esac
32410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411 (eval "$ac_try") 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032415 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032416else
32417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032418sed 's/^/| /' conftest.$ac_ext >&5
32419
Reid Spencera773bd52006-08-04 18:18:08 +000032420 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032421fi
Reid Spencera773bd52006-08-04 18:18:08 +000032422
Bill Wendlingebcceee2009-04-18 11:20:33 +000032423rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032424 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032425fi
Reid Spencera773bd52006-08-04 18:18:08 +000032426ac_res=`eval echo '${'$as_ac_var'}'`
32427 { echo "$as_me:$LINENO: result: $ac_res" >&5
32428echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032429if test `eval echo '${'$as_ac_var'}'` = yes; then
32430 cat >>confdefs.h <<_ACEOF
32431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032432_ACEOF
32433
32434fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032435done
John Criswell7a73b802003-06-30 21:59:07 +000032436
Reid Spencercdb08a32006-06-05 16:11:07 +000032437
32438
32439
32440
Reid Spencerafa22e22006-12-10 23:29:19 +000032441for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032442do
32443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032444{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032447 echo $ECHO_N "(cached) $ECHO_C" >&6
32448else
32449 cat >conftest.$ac_ext <<_ACEOF
32450/* confdefs.h. */
32451_ACEOF
32452cat confdefs.h >>conftest.$ac_ext
32453cat >>conftest.$ac_ext <<_ACEOF
32454/* end confdefs.h. */
32455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32457#define $ac_func innocuous_$ac_func
32458
32459/* System header to define __stub macros and hopefully few prototypes,
32460 which can conflict with char $ac_func (); below.
32461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32462 <limits.h> exists even on freestanding compilers. */
32463
32464#ifdef __STDC__
32465# include <limits.h>
32466#else
32467# include <assert.h>
32468#endif
32469
32470#undef $ac_func
32471
Reid Spencera773bd52006-08-04 18:18:08 +000032472/* Override any GCC internal prototype to avoid an error.
32473 Use char because int might match the return type of a GCC
32474 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032475#ifdef __cplusplus
32476extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032477#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032478char $ac_func ();
32479/* The GNU C library defines this for functions which it implements
32480 to always fail with ENOSYS. Some functions are actually named
32481 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032482#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032483choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032484#endif
32485
32486int
32487main ()
32488{
Reid Spencera773bd52006-08-04 18:18:08 +000032489return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032490 ;
32491 return 0;
32492}
32493_ACEOF
32494rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032495if { (ac_try="$ac_link"
32496case "(($ac_try" in
32497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 *) ac_try_echo=$ac_try;;
32499esac
32500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032502 ac_status=$?
32503 grep -v '^ *+' conftest.er1 >conftest.err
32504 rm -f conftest.er1
32505 cat conftest.err >&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032507 (exit $ac_status); } &&
32508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32509 { (case "(($ac_try" in
32510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511 *) ac_try_echo=$ac_try;;
32512esac
32513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514 (eval "$ac_try") 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; } &&
32518 { ac_try='test -s conftest$ac_exeext'
32519 { (case "(($ac_try" in
32520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521 *) ac_try_echo=$ac_try;;
32522esac
32523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524 (eval "$ac_try") 2>&5
32525 ac_status=$?
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032528 eval "$as_ac_var=yes"
32529else
32530 echo "$as_me: failed program was:" >&5
32531sed 's/^/| /' conftest.$ac_ext >&5
32532
Reid Spencera773bd52006-08-04 18:18:08 +000032533 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032534fi
Reid Spencera773bd52006-08-04 18:18:08 +000032535
Bill Wendlingebcceee2009-04-18 11:20:33 +000032536rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032537 conftest$ac_exeext conftest.$ac_ext
32538fi
Reid Spencera773bd52006-08-04 18:18:08 +000032539ac_res=`eval echo '${'$as_ac_var'}'`
32540 { echo "$as_me:$LINENO: result: $ac_res" >&5
32541echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032542if test `eval echo '${'$as_ac_var'}'` = yes; then
32543 cat >>confdefs.h <<_ACEOF
32544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32545_ACEOF
32546
32547fi
32548done
32549
Reid Spencera773bd52006-08-04 18:18:08 +000032550{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32551echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032552if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032553 echo $ECHO_N "(cached) $ECHO_C" >&6
32554else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032555 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032556ac_cpp='$CPP $CPPFLAGS'
32557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32559ac_compiler_gnu=$ac_cv_c_compiler_gnu
32560
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032561 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032562 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032563else
32564 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032565
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032566 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032567_ACEOF
32568cat confdefs.h >>conftest.$ac_ext
32569cat >>conftest.$ac_ext <<_ACEOF
32570/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032571
John Criswella0137d32003-10-13 16:22:01 +000032572#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032573#include <stdlib.h>
32574
John Criswella0137d32003-10-13 16:22:01 +000032575int
32576main ()
32577{
32578
Reid Spencer2706f8c2004-09-19 23:53:36 +000032579volatile double A, B;
32580char Buffer[100];
32581A = 1;
32582A /= 10.0;
32583sprintf(Buffer, "%a", A);
32584B = atof(Buffer);
32585if (A != B)
32586 return (1);
32587if (A != 0x1.999999999999ap-4)
32588 return (1);
32589return (0);
John Criswella0137d32003-10-13 16:22:01 +000032590 ;
32591 return 0;
32592}
32593_ACEOF
32594rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032595if { (ac_try="$ac_link"
32596case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32599esac
32600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608esac
32609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032614 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032615else
32616 echo "$as_me: program exited with status $ac_status" >&5
32617echo "$as_me: failed program was:" >&5
32618sed 's/^/| /' conftest.$ac_ext >&5
32619
32620( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032621llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032622fi
Reid Spencera773bd52006-08-04 18:18:08 +000032623rm -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 +000032624fi
Reid Spencera773bd52006-08-04 18:18:08 +000032625
32626
Reid Spencer2706f8c2004-09-19 23:53:36 +000032627 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032628ac_cpp='$CPP $CPPFLAGS'
32629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32631ac_compiler_gnu=$ac_cv_c_compiler_gnu
32632
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032633fi
Reid Spencera773bd52006-08-04 18:18:08 +000032634{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32635echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032636 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032637
32638cat >>confdefs.h <<\_ACEOF
32639#define HAVE_PRINTF_A 1
32640_ACEOF
32641
Reid Spencer2706f8c2004-09-19 23:53:36 +000032642 fi
John Criswella0137d32003-10-13 16:22:01 +000032643
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032644# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32645# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032646{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32647echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032648if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032649 echo $ECHO_N "(cached) $ECHO_C" >&6
32650else
John Criswell0021c312004-02-13 21:57:29 +000032651 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032652/* confdefs.h. */
32653_ACEOF
32654cat confdefs.h >>conftest.$ac_ext
32655cat >>conftest.$ac_ext <<_ACEOF
32656/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032657#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032658int
32659main ()
32660{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032661char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032662 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032663 ;
32664 return 0;
32665}
32666_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032667rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032668if { (ac_try="$ac_link"
32669case "(($ac_try" in
32670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671 *) ac_try_echo=$ac_try;;
32672esac
32673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032675 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032676 grep -v '^ *+' conftest.er1 >conftest.err
32677 rm -f conftest.er1
32678 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032680 (exit $ac_status); } &&
32681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32682 { (case "(($ac_try" in
32683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684 *) ac_try_echo=$ac_try;;
32685esac
32686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687 (eval "$ac_try") 2>&5
32688 ac_status=$?
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); }; } &&
32691 { ac_try='test -s conftest$ac_exeext'
32692 { (case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32695esac
32696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_try") 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032701 ac_cv_working_alloca_h=yes
32702else
32703 echo "$as_me: failed program was:" >&5
32704sed 's/^/| /' conftest.$ac_ext >&5
32705
Reid Spencera773bd52006-08-04 18:18:08 +000032706 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032707fi
Reid Spencera773bd52006-08-04 18:18:08 +000032708
Bill Wendlingebcceee2009-04-18 11:20:33 +000032709rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032710 conftest$ac_exeext conftest.$ac_ext
32711fi
Reid Spencera773bd52006-08-04 18:18:08 +000032712{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32713echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032714if test $ac_cv_working_alloca_h = yes; then
32715
32716cat >>confdefs.h <<\_ACEOF
32717#define HAVE_ALLOCA_H 1
32718_ACEOF
32719
32720fi
32721
Reid Spencera773bd52006-08-04 18:18:08 +000032722{ echo "$as_me:$LINENO: checking for alloca" >&5
32723echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032724if test "${ac_cv_func_alloca_works+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32726else
32727 cat >conftest.$ac_ext <<_ACEOF
32728/* confdefs.h. */
32729_ACEOF
32730cat confdefs.h >>conftest.$ac_ext
32731cat >>conftest.$ac_ext <<_ACEOF
32732/* end confdefs.h. */
32733#ifdef __GNUC__
32734# define alloca __builtin_alloca
32735#else
32736# ifdef _MSC_VER
32737# include <malloc.h>
32738# define alloca _alloca
32739# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032740# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032741# include <alloca.h>
32742# else
32743# ifdef _AIX
32744 #pragma alloca
32745# else
32746# ifndef alloca /* predefined by HP cc +Olibcalls */
32747char *alloca ();
32748# endif
32749# endif
32750# endif
32751# endif
32752#endif
32753
32754int
32755main ()
32756{
32757char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032758 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032759 ;
32760 return 0;
32761}
32762_ACEOF
32763rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032764if { (ac_try="$ac_link"
32765case "(($ac_try" in
32766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767 *) ac_try_echo=$ac_try;;
32768esac
32769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032771 ac_status=$?
32772 grep -v '^ *+' conftest.er1 >conftest.err
32773 rm -f conftest.er1
32774 cat conftest.err >&5
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032776 (exit $ac_status); } &&
32777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32778 { (case "(($ac_try" in
32779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780 *) ac_try_echo=$ac_try;;
32781esac
32782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783 (eval "$ac_try") 2>&5
32784 ac_status=$?
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); }; } &&
32787 { ac_try='test -s conftest$ac_exeext'
32788 { (case "(($ac_try" in
32789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790 *) ac_try_echo=$ac_try;;
32791esac
32792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793 (eval "$ac_try") 2>&5
32794 ac_status=$?
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032797 ac_cv_func_alloca_works=yes
32798else
32799 echo "$as_me: failed program was:" >&5
32800sed 's/^/| /' conftest.$ac_ext >&5
32801
Reid Spencera773bd52006-08-04 18:18:08 +000032802 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032803fi
Reid Spencera773bd52006-08-04 18:18:08 +000032804
Bill Wendlingebcceee2009-04-18 11:20:33 +000032805rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032806 conftest$ac_exeext conftest.$ac_ext
32807fi
Reid Spencera773bd52006-08-04 18:18:08 +000032808{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32809echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032810
32811if test $ac_cv_func_alloca_works = yes; then
32812
32813cat >>confdefs.h <<\_ACEOF
32814#define HAVE_ALLOCA 1
32815_ACEOF
32816
32817else
32818 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32819# that cause trouble. Some versions do not even contain alloca or
32820# contain a buggy version. If you still want to use their alloca,
32821# use ar to extract alloca.o from them instead of compiling alloca.c.
32822
Reid Spencera773bd52006-08-04 18:18:08 +000032823ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032824
32825cat >>confdefs.h <<\_ACEOF
32826#define C_ALLOCA 1
32827_ACEOF
32828
32829
Reid Spencera773bd52006-08-04 18:18:08 +000032830{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32831echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032832if test "${ac_cv_os_cray+set}" = set; then
32833 echo $ECHO_N "(cached) $ECHO_C" >&6
32834else
32835 cat >conftest.$ac_ext <<_ACEOF
32836/* confdefs.h. */
32837_ACEOF
32838cat confdefs.h >>conftest.$ac_ext
32839cat >>conftest.$ac_ext <<_ACEOF
32840/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032841#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032842webecray
32843#else
32844wenotbecray
32845#endif
32846
32847_ACEOF
32848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32849 $EGREP "webecray" >/dev/null 2>&1; then
32850 ac_cv_os_cray=yes
32851else
32852 ac_cv_os_cray=no
32853fi
32854rm -f conftest*
32855
32856fi
Reid Spencera773bd52006-08-04 18:18:08 +000032857{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32858echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032859if test $ac_cv_os_cray = yes; then
32860 for ac_func in _getb67 GETB67 getb67; do
32861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032862{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032865 echo $ECHO_N "(cached) $ECHO_C" >&6
32866else
32867 cat >conftest.$ac_ext <<_ACEOF
32868/* confdefs.h. */
32869_ACEOF
32870cat confdefs.h >>conftest.$ac_ext
32871cat >>conftest.$ac_ext <<_ACEOF
32872/* end confdefs.h. */
32873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32875#define $ac_func innocuous_$ac_func
32876
32877/* System header to define __stub macros and hopefully few prototypes,
32878 which can conflict with char $ac_func (); below.
32879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32880 <limits.h> exists even on freestanding compilers. */
32881
32882#ifdef __STDC__
32883# include <limits.h>
32884#else
32885# include <assert.h>
32886#endif
32887
32888#undef $ac_func
32889
Reid Spencera773bd52006-08-04 18:18:08 +000032890/* Override any GCC internal prototype to avoid an error.
32891 Use char because int might match the return type of a GCC
32892 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032893#ifdef __cplusplus
32894extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032895#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032896char $ac_func ();
32897/* The GNU C library defines this for functions which it implements
32898 to always fail with ENOSYS. Some functions are actually named
32899 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032900#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032901choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032902#endif
32903
32904int
32905main ()
32906{
Reid Spencera773bd52006-08-04 18:18:08 +000032907return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032908 ;
32909 return 0;
32910}
32911_ACEOF
32912rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032913if { (ac_try="$ac_link"
32914case "(($ac_try" in
32915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916 *) ac_try_echo=$ac_try;;
32917esac
32918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032920 ac_status=$?
32921 grep -v '^ *+' conftest.er1 >conftest.err
32922 rm -f conftest.er1
32923 cat conftest.err >&5
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032925 (exit $ac_status); } &&
32926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32927 { (case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32930esac
32931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_try") 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; } &&
32936 { ac_try='test -s conftest$ac_exeext'
32937 { (case "(($ac_try" in
32938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939 *) ac_try_echo=$ac_try;;
32940esac
32941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942 (eval "$ac_try") 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032946 eval "$as_ac_var=yes"
32947else
32948 echo "$as_me: failed program was:" >&5
32949sed 's/^/| /' conftest.$ac_ext >&5
32950
Reid Spencera773bd52006-08-04 18:18:08 +000032951 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032952fi
Reid Spencera773bd52006-08-04 18:18:08 +000032953
Bill Wendlingebcceee2009-04-18 11:20:33 +000032954rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032955 conftest$ac_exeext conftest.$ac_ext
32956fi
Reid Spencera773bd52006-08-04 18:18:08 +000032957ac_res=`eval echo '${'$as_ac_var'}'`
32958 { echo "$as_me:$LINENO: result: $ac_res" >&5
32959echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032960if test `eval echo '${'$as_ac_var'}'` = yes; then
32961
32962cat >>confdefs.h <<_ACEOF
32963#define CRAY_STACKSEG_END $ac_func
32964_ACEOF
32965
32966 break
32967fi
32968
32969 done
32970fi
32971
Reid Spencera773bd52006-08-04 18:18:08 +000032972{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32973echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032974if test "${ac_cv_c_stack_direction+set}" = set; then
32975 echo $ECHO_N "(cached) $ECHO_C" >&6
32976else
32977 if test "$cross_compiling" = yes; then
32978 ac_cv_c_stack_direction=0
32979else
32980 cat >conftest.$ac_ext <<_ACEOF
32981/* confdefs.h. */
32982_ACEOF
32983cat confdefs.h >>conftest.$ac_ext
32984cat >>conftest.$ac_ext <<_ACEOF
32985/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032986$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032987int
32988find_stack_direction ()
32989{
32990 static char *addr = 0;
32991 auto char dummy;
32992 if (addr == 0)
32993 {
32994 addr = &dummy;
32995 return find_stack_direction ();
32996 }
John Criswell0021c312004-02-13 21:57:29 +000032997 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032998 return (&dummy > addr) ? 1 : -1;
32999}
John Criswell0021c312004-02-13 21:57:29 +000033000
John Criswell0021c312004-02-13 21:57:29 +000033001int
33002main ()
33003{
Reid Spencera773bd52006-08-04 18:18:08 +000033004 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033005}
33006_ACEOF
33007rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033008if { (ac_try="$ac_link"
33009case "(($ac_try" in
33010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33011 *) ac_try_echo=$ac_try;;
33012esac
33013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33014 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033018 { (case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33021esac
33022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033027 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033028else
33029 echo "$as_me: program exited with status $ac_status" >&5
33030echo "$as_me: failed program was:" >&5
33031sed 's/^/| /' conftest.$ac_ext >&5
33032
33033( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033034ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033035fi
Reid Spencera773bd52006-08-04 18:18:08 +000033036rm -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 +000033037fi
Reid Spencera773bd52006-08-04 18:18:08 +000033038
33039
John Criswell0021c312004-02-13 21:57:29 +000033040fi
Reid Spencera773bd52006-08-04 18:18:08 +000033041{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33042echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033043
33044cat >>confdefs.h <<_ACEOF
33045#define STACK_DIRECTION $ac_cv_c_stack_direction
33046_ACEOF
33047
33048
John Criswell0021c312004-02-13 21:57:29 +000033049fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033050
33051
Reid Spencera773bd52006-08-04 18:18:08 +000033052{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33053echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033054if test "${ac_cv_func_rand48+set}" = set; then
33055 echo $ECHO_N "(cached) $ECHO_C" >&6
33056else
Reid Spencera773bd52006-08-04 18:18:08 +000033057 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033058ac_cpp='$CXXCPP $CPPFLAGS'
33059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33062
33063 cat >conftest.$ac_ext <<_ACEOF
33064/* confdefs.h. */
33065_ACEOF
33066cat confdefs.h >>conftest.$ac_ext
33067cat >>conftest.$ac_ext <<_ACEOF
33068/* end confdefs.h. */
33069#include <stdlib.h>
33070int
33071main ()
33072{
33073srand48(0);lrand48();drand48();
33074 ;
33075 return 0;
33076}
33077_ACEOF
33078rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033079if { (ac_try="$ac_compile"
33080case "(($ac_try" in
33081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082 *) ac_try_echo=$ac_try;;
33083esac
33084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033086 ac_status=$?
33087 grep -v '^ *+' conftest.er1 >conftest.err
33088 rm -f conftest.er1
33089 cat conftest.err >&5
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033091 (exit $ac_status); } &&
33092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33093 { (case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33096esac
33097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_try") 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; } &&
33102 { ac_try='test -s conftest.$ac_objext'
33103 { (case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33106esac
33107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_try") 2>&5
33109 ac_status=$?
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033112 ac_cv_func_rand48=yes
33113else
33114 echo "$as_me: failed program was:" >&5
33115sed 's/^/| /' conftest.$ac_ext >&5
33116
Reid Spencera773bd52006-08-04 18:18:08 +000033117 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033118fi
Reid Spencera773bd52006-08-04 18:18:08 +000033119
33120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033121 ac_ext=c
33122ac_cpp='$CPP $CPPFLAGS'
33123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33125ac_compiler_gnu=$ac_cv_c_compiler_gnu
33126
33127fi
Reid Spencera773bd52006-08-04 18:18:08 +000033128{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33129echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033130
33131if test "$ac_cv_func_rand48" = "yes" ; then
33132
33133cat >>confdefs.h <<\_ACEOF
33134#define HAVE_RAND48 1
33135_ACEOF
33136
33137fi
John Criswell0021c312004-02-13 21:57:29 +000033138
33139
Reid Spencera773bd52006-08-04 18:18:08 +000033140{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33141echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033142if test "${ac_cv_cxx_namespaces+set}" = set; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144else
Reid Spencera773bd52006-08-04 18:18:08 +000033145 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033146ac_cpp='$CXXCPP $CPPFLAGS'
33147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33150
33151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033152/* confdefs.h. */
33153_ACEOF
33154cat confdefs.h >>conftest.$ac_ext
33155cat >>conftest.$ac_ext <<_ACEOF
33156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033157namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033158int
33159main ()
33160{
33161using namespace Outer::Inner; return i;
33162 ;
33163 return 0;
33164}
33165_ACEOF
33166rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033167if { (ac_try="$ac_compile"
33168case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171esac
33172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033175 grep -v '^ *+' conftest.er1 >conftest.err
33176 rm -f conftest.er1
33177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033179 (exit $ac_status); } &&
33180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33181 { (case "(($ac_try" in
33182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183 *) ac_try_echo=$ac_try;;
33184esac
33185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186 (eval "$ac_try") 2>&5
33187 ac_status=$?
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); }; } &&
33190 { ac_try='test -s conftest.$ac_objext'
33191 { (case "(($ac_try" in
33192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193 *) ac_try_echo=$ac_try;;
33194esac
33195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196 (eval "$ac_try") 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033200 ac_cv_cxx_namespaces=yes
33201else
33202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033203sed 's/^/| /' conftest.$ac_ext >&5
33204
Reid Spencera773bd52006-08-04 18:18:08 +000033205 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033206fi
Reid Spencera773bd52006-08-04 18:18:08 +000033207
33208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033209 ac_ext=c
33210ac_cpp='$CPP $CPPFLAGS'
33211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33213ac_compiler_gnu=$ac_cv_c_compiler_gnu
33214
33215
33216fi
Reid Spencera773bd52006-08-04 18:18:08 +000033217{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33218echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033219if test "$ac_cv_cxx_namespaces" = yes; then
33220
33221cat >>confdefs.h <<\_ACEOF
33222#define HAVE_NAMESPACES
33223_ACEOF
33224
33225fi
33226
Reid Spencera773bd52006-08-04 18:18:08 +000033227{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33228echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033229if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33230 echo $ECHO_N "(cached) $ECHO_C" >&6
33231else
33232
Reid Spencera773bd52006-08-04 18:18:08 +000033233 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033234ac_cpp='$CXXCPP $CPPFLAGS'
33235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33238
33239 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033240/* confdefs.h. */
33241_ACEOF
33242cat confdefs.h >>conftest.$ac_ext
33243cat >>conftest.$ac_ext <<_ACEOF
33244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033245#include <iterator>
33246#ifdef HAVE_NAMESPACES
33247using namespace std;
33248#endif
John Criswell7a73b802003-06-30 21:59:07 +000033249int
33250main ()
33251{
33252iterator<int,int,int> t; return 0;
33253 ;
33254 return 0;
33255}
33256_ACEOF
33257rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033258if { (ac_try="$ac_compile"
33259case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262esac
33263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033265 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033266 grep -v '^ *+' conftest.er1 >conftest.err
33267 rm -f conftest.er1
33268 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33275esac
33276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; } &&
33281 { ac_try='test -s conftest.$ac_objext'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33285esac
33286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33288 ac_status=$?
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033291 ac_cv_cxx_have_std_iterator=yes
33292else
33293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033294sed 's/^/| /' conftest.$ac_ext >&5
33295
Reid Spencera773bd52006-08-04 18:18:08 +000033296 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033297fi
Reid Spencera773bd52006-08-04 18:18:08 +000033298
33299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033300 ac_ext=c
33301ac_cpp='$CPP $CPPFLAGS'
33302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304ac_compiler_gnu=$ac_cv_c_compiler_gnu
33305
33306
33307fi
Reid Spencera773bd52006-08-04 18:18:08 +000033308{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33309echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033310if test "$ac_cv_cxx_have_std_iterator" = yes
33311then
John Criswell40468462004-09-24 21:19:06 +000033312
33313cat >>confdefs.h <<\_ACEOF
33314#define HAVE_STD_ITERATOR 1
33315_ACEOF
33316
33317else
33318
33319cat >>confdefs.h <<\_ACEOF
33320#define HAVE_STD_ITERATOR 0
33321_ACEOF
33322
John Criswell7a73b802003-06-30 21:59:07 +000033323fi
33324
Reid Spencera773bd52006-08-04 18:18:08 +000033325{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33326echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033327if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33328 echo $ECHO_N "(cached) $ECHO_C" >&6
33329else
33330
Reid Spencera773bd52006-08-04 18:18:08 +000033331 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033332ac_cpp='$CXXCPP $CPPFLAGS'
33333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33336
33337 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033338/* confdefs.h. */
33339_ACEOF
33340cat confdefs.h >>conftest.$ac_ext
33341cat >>conftest.$ac_ext <<_ACEOF
33342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033343#include <iterator>
33344#ifdef HAVE_NAMESPACES
33345using namespace std;
33346#endif
John Criswell7a73b802003-06-30 21:59:07 +000033347int
33348main ()
33349{
John Criswellc78022e2003-07-29 19:11:58 +000033350bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033351 ;
33352 return 0;
33353}
33354_ACEOF
33355rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033356if { (ac_try="$ac_compile"
33357case "(($ac_try" in
33358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359 *) ac_try_echo=$ac_try;;
33360esac
33361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033364 grep -v '^ *+' conftest.er1 >conftest.err
33365 rm -f conftest.er1
33366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033368 (exit $ac_status); } &&
33369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33370 { (case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33373esac
33374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_try") 2>&5
33376 ac_status=$?
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; } &&
33379 { ac_try='test -s conftest.$ac_objext'
33380 { (case "(($ac_try" in
33381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33382 *) ac_try_echo=$ac_try;;
33383esac
33384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33385 (eval "$ac_try") 2>&5
33386 ac_status=$?
33387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033389 ac_cv_cxx_have_bi_iterator=yes
33390else
33391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033392sed 's/^/| /' conftest.$ac_ext >&5
33393
Reid Spencera773bd52006-08-04 18:18:08 +000033394 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033395fi
Reid Spencera773bd52006-08-04 18:18:08 +000033396
33397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033398 ac_ext=c
33399ac_cpp='$CPP $CPPFLAGS'
33400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33402ac_compiler_gnu=$ac_cv_c_compiler_gnu
33403
33404
33405fi
Reid Spencera773bd52006-08-04 18:18:08 +000033406{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33407echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033408if test "$ac_cv_cxx_have_bi_iterator" = yes
33409then
John Criswell40468462004-09-24 21:19:06 +000033410
33411cat >>confdefs.h <<\_ACEOF
33412#define HAVE_BI_ITERATOR 1
33413_ACEOF
33414
33415else
33416
33417cat >>confdefs.h <<\_ACEOF
33418#define HAVE_BI_ITERATOR 0
33419_ACEOF
33420
John Criswell7a73b802003-06-30 21:59:07 +000033421fi
33422
Reid Spencera773bd52006-08-04 18:18:08 +000033423{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33424echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033425if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
33427else
33428
Reid Spencera773bd52006-08-04 18:18:08 +000033429 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033430ac_cpp='$CXXCPP $CPPFLAGS'
33431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33434
33435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033436/* confdefs.h. */
33437_ACEOF
33438cat confdefs.h >>conftest.$ac_ext
33439cat >>conftest.$ac_ext <<_ACEOF
33440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033441#include <iterator>
33442#ifdef HAVE_NAMESPACES
33443using namespace std;
33444#endif
John Criswell7a73b802003-06-30 21:59:07 +000033445int
33446main ()
33447{
John Criswellc78022e2003-07-29 19:11:58 +000033448forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033449 ;
33450 return 0;
33451}
33452_ACEOF
33453rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033454if { (ac_try="$ac_compile"
33455case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33458esac
33459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033462 grep -v '^ *+' conftest.er1 >conftest.err
33463 rm -f conftest.er1
33464 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033466 (exit $ac_status); } &&
33467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33468 { (case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33471esac
33472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_try") 2>&5
33474 ac_status=$?
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; } &&
33477 { ac_try='test -s conftest.$ac_objext'
33478 { (case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33481esac
33482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483 (eval "$ac_try") 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033487 ac_cv_cxx_have_fwd_iterator=yes
33488else
33489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033490sed 's/^/| /' conftest.$ac_ext >&5
33491
Reid Spencera773bd52006-08-04 18:18:08 +000033492 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033493fi
Reid Spencera773bd52006-08-04 18:18:08 +000033494
33495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033496 ac_ext=c
33497ac_cpp='$CPP $CPPFLAGS'
33498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33500ac_compiler_gnu=$ac_cv_c_compiler_gnu
33501
33502
33503fi
Reid Spencera773bd52006-08-04 18:18:08 +000033504{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33505echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033506if test "$ac_cv_cxx_have_fwd_iterator" = yes
33507then
John Criswell40468462004-09-24 21:19:06 +000033508
33509cat >>confdefs.h <<\_ACEOF
33510#define HAVE_FWD_ITERATOR 1
33511_ACEOF
33512
33513else
33514
33515cat >>confdefs.h <<\_ACEOF
33516#define HAVE_FWD_ITERATOR 0
33517_ACEOF
33518
John Criswell7a73b802003-06-30 21:59:07 +000033519fi
33520
33521
Reid Spencera773bd52006-08-04 18:18:08 +000033522{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33523echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033524if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33525 echo $ECHO_N "(cached) $ECHO_C" >&6
33526else
Reid Spencera773bd52006-08-04 18:18:08 +000033527 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033528ac_cpp='$CXXCPP $CPPFLAGS'
33529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33532
Reid Spencerabec8f92004-10-27 23:03:44 +000033533 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033534/* confdefs.h. */
33535_ACEOF
33536cat confdefs.h >>conftest.$ac_ext
33537cat >>conftest.$ac_ext <<_ACEOF
33538/* end confdefs.h. */
33539#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033540int
33541main ()
33542{
33543float f; isnan(f);
33544 ;
33545 return 0;
33546}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033547_ACEOF
33548rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033549if { (ac_try="$ac_compile"
33550case "(($ac_try" in
33551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552 *) ac_try_echo=$ac_try;;
33553esac
33554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033556 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033557 grep -v '^ *+' conftest.er1 >conftest.err
33558 rm -f conftest.er1
33559 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033561 (exit $ac_status); } &&
33562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33563 { (case "(($ac_try" in
33564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565 *) ac_try_echo=$ac_try;;
33566esac
33567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568 (eval "$ac_try") 2>&5
33569 ac_status=$?
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; } &&
33572 { ac_try='test -s conftest.$ac_objext'
33573 { (case "(($ac_try" in
33574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575 *) ac_try_echo=$ac_try;;
33576esac
33577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578 (eval "$ac_try") 2>&5
33579 ac_status=$?
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033582 ac_cv_func_isnan_in_math_h=yes
33583else
33584 echo "$as_me: failed program was:" >&5
33585sed 's/^/| /' conftest.$ac_ext >&5
33586
Reid Spencera773bd52006-08-04 18:18:08 +000033587 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033588fi
Reid Spencera773bd52006-08-04 18:18:08 +000033589
33590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033591 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033592ac_cpp='$CPP $CPPFLAGS'
33593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33595ac_compiler_gnu=$ac_cv_c_compiler_gnu
33596
33597fi
Reid Spencera773bd52006-08-04 18:18:08 +000033598{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33599echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033600
33601
33602if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033603
33604cat >>confdefs.h <<\_ACEOF
33605#define HAVE_ISNAN_IN_MATH_H 1
33606_ACEOF
33607
Reid Spencerabec8f92004-10-27 23:03:44 +000033608fi
33609
Reid Spencera773bd52006-08-04 18:18:08 +000033610{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33611echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033612if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614else
Reid Spencera773bd52006-08-04 18:18:08 +000033615 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033616ac_cpp='$CXXCPP $CPPFLAGS'
33617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33620
Reid Spencerabec8f92004-10-27 23:03:44 +000033621 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033622/* confdefs.h. */
33623_ACEOF
33624cat confdefs.h >>conftest.$ac_ext
33625cat >>conftest.$ac_ext <<_ACEOF
33626/* end confdefs.h. */
33627#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033628int
33629main ()
33630{
33631float f; isnan(f);
33632 ;
33633 return 0;
33634}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033635_ACEOF
33636rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033637if { (ac_try="$ac_compile"
33638case "(($ac_try" in
33639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640 *) ac_try_echo=$ac_try;;
33641esac
33642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033644 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033645 grep -v '^ *+' conftest.er1 >conftest.err
33646 rm -f conftest.er1
33647 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033649 (exit $ac_status); } &&
33650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33651 { (case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33654esac
33655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_try") 2>&5
33657 ac_status=$?
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); }; } &&
33660 { ac_try='test -s conftest.$ac_objext'
33661 { (case "(($ac_try" in
33662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663 *) ac_try_echo=$ac_try;;
33664esac
33665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666 (eval "$ac_try") 2>&5
33667 ac_status=$?
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033670 ac_cv_func_isnan_in_cmath=yes
33671else
33672 echo "$as_me: failed program was:" >&5
33673sed 's/^/| /' conftest.$ac_ext >&5
33674
Reid Spencera773bd52006-08-04 18:18:08 +000033675 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033676fi
Reid Spencera773bd52006-08-04 18:18:08 +000033677
33678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033679 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033680ac_cpp='$CPP $CPPFLAGS'
33681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33683ac_compiler_gnu=$ac_cv_c_compiler_gnu
33684
33685fi
Reid Spencera773bd52006-08-04 18:18:08 +000033686{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33687echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033688
33689if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033690
33691cat >>confdefs.h <<\_ACEOF
33692#define HAVE_ISNAN_IN_CMATH 1
33693_ACEOF
33694
Reid Spencerabec8f92004-10-27 23:03:44 +000033695fi
33696
Reid Spencera773bd52006-08-04 18:18:08 +000033697{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33698echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033699if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33700 echo $ECHO_N "(cached) $ECHO_C" >&6
33701else
Reid Spencera773bd52006-08-04 18:18:08 +000033702 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033703ac_cpp='$CXXCPP $CPPFLAGS'
33704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33707
Reid Spencerabec8f92004-10-27 23:03:44 +000033708 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033709/* confdefs.h. */
33710_ACEOF
33711cat confdefs.h >>conftest.$ac_ext
33712cat >>conftest.$ac_ext <<_ACEOF
33713/* end confdefs.h. */
33714#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033715int
33716main ()
33717{
33718float f; std::isnan(f);
33719 ;
33720 return 0;
33721}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033722_ACEOF
33723rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033724if { (ac_try="$ac_compile"
33725case "(($ac_try" in
33726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33727 *) ac_try_echo=$ac_try;;
33728esac
33729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33730 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033731 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033732 grep -v '^ *+' conftest.er1 >conftest.err
33733 rm -f conftest.er1
33734 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033736 (exit $ac_status); } &&
33737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33738 { (case "(($ac_try" in
33739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740 *) ac_try_echo=$ac_try;;
33741esac
33742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743 (eval "$ac_try") 2>&5
33744 ac_status=$?
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); }; } &&
33747 { ac_try='test -s conftest.$ac_objext'
33748 { (case "(($ac_try" in
33749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33750 *) ac_try_echo=$ac_try;;
33751esac
33752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33753 (eval "$ac_try") 2>&5
33754 ac_status=$?
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033757 ac_cv_func_std_isnan_in_cmath=yes
33758else
33759 echo "$as_me: failed program was:" >&5
33760sed 's/^/| /' conftest.$ac_ext >&5
33761
Reid Spencera773bd52006-08-04 18:18:08 +000033762 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033763fi
Reid Spencera773bd52006-08-04 18:18:08 +000033764
33765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033766 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033767ac_cpp='$CPP $CPPFLAGS'
33768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33770ac_compiler_gnu=$ac_cv_c_compiler_gnu
33771
33772fi
Reid Spencera773bd52006-08-04 18:18:08 +000033773{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33774echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033775
33776if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033777
33778cat >>confdefs.h <<\_ACEOF
33779#define HAVE_STD_ISNAN_IN_CMATH 1
33780_ACEOF
33781
Reid Spencerabec8f92004-10-27 23:03:44 +000033782fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033783
33784
Reid Spencera773bd52006-08-04 18:18:08 +000033785{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33786echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033787if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33788 echo $ECHO_N "(cached) $ECHO_C" >&6
33789else
Reid Spencera773bd52006-08-04 18:18:08 +000033790 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033791ac_cpp='$CXXCPP $CPPFLAGS'
33792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33795
Reid Spencerabec8f92004-10-27 23:03:44 +000033796 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033797/* confdefs.h. */
33798_ACEOF
33799cat confdefs.h >>conftest.$ac_ext
33800cat >>conftest.$ac_ext <<_ACEOF
33801/* end confdefs.h. */
33802#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033803int
33804main ()
33805{
33806float f; isinf(f);
33807 ;
33808 return 0;
33809}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033810_ACEOF
33811rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033812if { (ac_try="$ac_compile"
33813case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33816esac
33817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033820 grep -v '^ *+' conftest.er1 >conftest.err
33821 rm -f conftest.er1
33822 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033824 (exit $ac_status); } &&
33825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33826 { (case "(($ac_try" in
33827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828 *) ac_try_echo=$ac_try;;
33829esac
33830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33831 (eval "$ac_try") 2>&5
33832 ac_status=$?
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); }; } &&
33835 { ac_try='test -s conftest.$ac_objext'
33836 { (case "(($ac_try" in
33837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33838 *) ac_try_echo=$ac_try;;
33839esac
33840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33841 (eval "$ac_try") 2>&5
33842 ac_status=$?
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033845 ac_cv_func_isinf_in_math_h=yes
33846else
33847 echo "$as_me: failed program was:" >&5
33848sed 's/^/| /' conftest.$ac_ext >&5
33849
Reid Spencera773bd52006-08-04 18:18:08 +000033850 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033851fi
Reid Spencera773bd52006-08-04 18:18:08 +000033852
33853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033854 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033855ac_cpp='$CPP $CPPFLAGS'
33856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858ac_compiler_gnu=$ac_cv_c_compiler_gnu
33859
33860fi
Reid Spencera773bd52006-08-04 18:18:08 +000033861{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33862echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033863
33864if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033865
33866cat >>confdefs.h <<\_ACEOF
33867#define HAVE_ISINF_IN_MATH_H 1
33868_ACEOF
33869
Reid Spencerabec8f92004-10-27 23:03:44 +000033870fi
33871
Reid Spencera773bd52006-08-04 18:18:08 +000033872{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33873echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033874if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876else
Reid Spencera773bd52006-08-04 18:18:08 +000033877 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033878ac_cpp='$CXXCPP $CPPFLAGS'
33879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33882
Reid Spencerabec8f92004-10-27 23:03:44 +000033883 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033884/* confdefs.h. */
33885_ACEOF
33886cat confdefs.h >>conftest.$ac_ext
33887cat >>conftest.$ac_ext <<_ACEOF
33888/* end confdefs.h. */
33889#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033890int
33891main ()
33892{
33893float f; isinf(f);
33894 ;
33895 return 0;
33896}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033897_ACEOF
33898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033899if { (ac_try="$ac_compile"
33900case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33903esac
33904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033907 grep -v '^ *+' conftest.er1 >conftest.err
33908 rm -f conftest.er1
33909 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033911 (exit $ac_status); } &&
33912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33913 { (case "(($ac_try" in
33914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915 *) ac_try_echo=$ac_try;;
33916esac
33917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918 (eval "$ac_try") 2>&5
33919 ac_status=$?
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); }; } &&
33922 { ac_try='test -s conftest.$ac_objext'
33923 { (case "(($ac_try" in
33924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925 *) ac_try_echo=$ac_try;;
33926esac
33927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928 (eval "$ac_try") 2>&5
33929 ac_status=$?
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033932 ac_cv_func_isinf_in_cmath=yes
33933else
33934 echo "$as_me: failed program was:" >&5
33935sed 's/^/| /' conftest.$ac_ext >&5
33936
Reid Spencera773bd52006-08-04 18:18:08 +000033937 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033938fi
Reid Spencera773bd52006-08-04 18:18:08 +000033939
33940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033941 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033942ac_cpp='$CPP $CPPFLAGS'
33943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33945ac_compiler_gnu=$ac_cv_c_compiler_gnu
33946
33947fi
Reid Spencera773bd52006-08-04 18:18:08 +000033948{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33949echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033950
33951if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033952
33953cat >>confdefs.h <<\_ACEOF
33954#define HAVE_ISINF_IN_CMATH 1
33955_ACEOF
33956
Reid Spencerabec8f92004-10-27 23:03:44 +000033957fi
33958
Reid Spencera773bd52006-08-04 18:18:08 +000033959{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33960echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033961if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33962 echo $ECHO_N "(cached) $ECHO_C" >&6
33963else
Reid Spencera773bd52006-08-04 18:18:08 +000033964 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033965ac_cpp='$CXXCPP $CPPFLAGS'
33966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33969
Reid Spencerabec8f92004-10-27 23:03:44 +000033970 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033971/* confdefs.h. */
33972_ACEOF
33973cat confdefs.h >>conftest.$ac_ext
33974cat >>conftest.$ac_ext <<_ACEOF
33975/* end confdefs.h. */
33976#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033977int
33978main ()
33979{
33980float f; std::isinf(f)}
33981 ;
33982 return 0;
33983}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033984_ACEOF
33985rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033986if { (ac_try="$ac_compile"
33987case "(($ac_try" in
33988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33989 *) ac_try_echo=$ac_try;;
33990esac
33991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33992 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033994 grep -v '^ *+' conftest.er1 >conftest.err
33995 rm -f conftest.er1
33996 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033998 (exit $ac_status); } &&
33999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34000 { (case "(($ac_try" in
34001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002 *) ac_try_echo=$ac_try;;
34003esac
34004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005 (eval "$ac_try") 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; } &&
34009 { ac_try='test -s conftest.$ac_objext'
34010 { (case "(($ac_try" in
34011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012 *) ac_try_echo=$ac_try;;
34013esac
34014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015 (eval "$ac_try") 2>&5
34016 ac_status=$?
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034019 ac_cv_func_std_isinf_in_cmath=yes
34020else
34021 echo "$as_me: failed program was:" >&5
34022sed 's/^/| /' conftest.$ac_ext >&5
34023
Reid Spencera773bd52006-08-04 18:18:08 +000034024 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034025fi
Reid Spencera773bd52006-08-04 18:18:08 +000034026
34027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034028 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034029ac_cpp='$CPP $CPPFLAGS'
34030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34032ac_compiler_gnu=$ac_cv_c_compiler_gnu
34033
34034fi
Reid Spencera773bd52006-08-04 18:18:08 +000034035{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34036echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034037
34038if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034039
34040cat >>confdefs.h <<\_ACEOF
34041#define HAVE_STD_ISINF_IN_CMATH 1
34042_ACEOF
34043
Reid Spencerabec8f92004-10-27 23:03:44 +000034044fi
34045
Reid Spencera773bd52006-08-04 18:18:08 +000034046{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34047echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034048if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34050else
Reid Spencera773bd52006-08-04 18:18:08 +000034051 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034052ac_cpp='$CXXCPP $CPPFLAGS'
34053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34056
Reid Spencerabec8f92004-10-27 23:03:44 +000034057 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034058/* confdefs.h. */
34059_ACEOF
34060cat confdefs.h >>conftest.$ac_ext
34061cat >>conftest.$ac_ext <<_ACEOF
34062/* end confdefs.h. */
34063#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034064int
34065main ()
34066{
34067float f; finite(f);
34068 ;
34069 return 0;
34070}
Brian Gaeked59a6472004-07-21 03:33:58 +000034071_ACEOF
34072rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034073if { (ac_try="$ac_compile"
34074case "(($ac_try" in
34075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076 *) ac_try_echo=$ac_try;;
34077esac
34078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034080 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034081 grep -v '^ *+' conftest.er1 >conftest.err
34082 rm -f conftest.er1
34083 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034085 (exit $ac_status); } &&
34086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34087 { (case "(($ac_try" in
34088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34089 *) ac_try_echo=$ac_try;;
34090esac
34091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34092 (eval "$ac_try") 2>&5
34093 ac_status=$?
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; } &&
34096 { ac_try='test -s conftest.$ac_objext'
34097 { (case "(($ac_try" in
34098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34099 *) ac_try_echo=$ac_try;;
34100esac
34101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34102 (eval "$ac_try") 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034106 ac_cv_func_finite_in_ieeefp_h=yes
34107else
34108 echo "$as_me: failed program was:" >&5
34109sed 's/^/| /' conftest.$ac_ext >&5
34110
Reid Spencera773bd52006-08-04 18:18:08 +000034111 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034112fi
Reid Spencera773bd52006-08-04 18:18:08 +000034113
34114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034115 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034116ac_cpp='$CPP $CPPFLAGS'
34117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34119ac_compiler_gnu=$ac_cv_c_compiler_gnu
34120
34121fi
Reid Spencera773bd52006-08-04 18:18:08 +000034122{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34123echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034124
Brian Gaeke6802b552004-10-28 05:06:45 +000034125if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034126
34127cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034128#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034129_ACEOF
34130
Reid Spencerabec8f92004-10-27 23:03:44 +000034131fi
34132
34133
34134
Reid Spencer30fe5262007-01-20 07:48:49 +000034135if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034136
34137
34138for ac_header in stdlib.h unistd.h
34139do
34140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034145 echo $ECHO_N "(cached) $ECHO_C" >&6
34146fi
Reid Spencera773bd52006-08-04 18:18:08 +000034147ac_res=`eval echo '${'$as_ac_Header'}'`
34148 { echo "$as_me:$LINENO: result: $ac_res" >&5
34149echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034150else
34151 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034152{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034154cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034155/* confdefs.h. */
34156_ACEOF
34157cat confdefs.h >>conftest.$ac_ext
34158cat >>conftest.$ac_ext <<_ACEOF
34159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034160$ac_includes_default
34161#include <$ac_header>
34162_ACEOF
34163rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034164if { (ac_try="$ac_compile"
34165case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34168esac
34169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034171 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034172 grep -v '^ *+' conftest.er1 >conftest.err
34173 rm -f conftest.er1
34174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034176 (exit $ac_status); } &&
34177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34178 { (case "(($ac_try" in
34179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180 *) ac_try_echo=$ac_try;;
34181esac
34182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183 (eval "$ac_try") 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; } &&
34187 { ac_try='test -s conftest.$ac_objext'
34188 { (case "(($ac_try" in
34189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34190 *) ac_try_echo=$ac_try;;
34191esac
34192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193 (eval "$ac_try") 2>&5
34194 ac_status=$?
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034197 ac_header_compiler=yes
34198else
34199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034200sed 's/^/| /' conftest.$ac_ext >&5
34201
Reid Spencera773bd52006-08-04 18:18:08 +000034202 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034203fi
Reid Spencera773bd52006-08-04 18:18:08 +000034204
34205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34207echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034208
34209# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034212cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034213/* confdefs.h. */
34214_ACEOF
34215cat confdefs.h >>conftest.$ac_ext
34216cat >>conftest.$ac_ext <<_ACEOF
34217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034218#include <$ac_header>
34219_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034220if { (ac_try="$ac_cpp conftest.$ac_ext"
34221case "(($ac_try" in
34222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34223 *) ac_try_echo=$ac_try;;
34224esac
34225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034227 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034228 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034229 rm -f conftest.er1
34230 cat conftest.err >&5
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034232 (exit $ac_status); } >/dev/null; then
34233 if test -s conftest.err; then
34234 ac_cpp_err=$ac_c_preproc_warn_flag
34235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34236 else
34237 ac_cpp_err=
34238 fi
34239else
34240 ac_cpp_err=yes
34241fi
34242if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034243 ac_header_preproc=yes
34244else
34245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034246sed 's/^/| /' conftest.$ac_ext >&5
34247
John Criswell7a73b802003-06-30 21:59:07 +000034248 ac_header_preproc=no
34249fi
Reid Spencera773bd52006-08-04 18:18:08 +000034250
John Criswell7a73b802003-06-30 21:59:07 +000034251rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034252{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34253echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034254
34255# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34257 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34262 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034263 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034264 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34268echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34272echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034277 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034278## ----------------------------------- ##
34279## Report this to llvmbugs@cs.uiuc.edu ##
34280## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034281_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034282 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034283 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034284esac
Reid Spencera773bd52006-08-04 18:18:08 +000034285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034288 echo $ECHO_N "(cached) $ECHO_C" >&6
34289else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034290 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034291fi
Reid Spencera773bd52006-08-04 18:18:08 +000034292ac_res=`eval echo '${'$as_ac_Header'}'`
34293 { echo "$as_me:$LINENO: result: $ac_res" >&5
34294echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034295
34296fi
34297if test `eval echo '${'$as_ac_Header'}'` = yes; then
34298 cat >>confdefs.h <<_ACEOF
34299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34300_ACEOF
34301
34302fi
34303
34304done
34305
34306
34307for ac_func in getpagesize
34308do
34309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034310{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034313 echo $ECHO_N "(cached) $ECHO_C" >&6
34314else
34315 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034316/* confdefs.h. */
34317_ACEOF
34318cat confdefs.h >>conftest.$ac_ext
34319cat >>conftest.$ac_ext <<_ACEOF
34320/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34323#define $ac_func innocuous_$ac_func
34324
John Criswell7a73b802003-06-30 21:59:07 +000034325/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034326 which can conflict with char $ac_func (); below.
34327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34328 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034329
John Criswell0c38eaf2003-09-10 15:17:25 +000034330#ifdef __STDC__
34331# include <limits.h>
34332#else
34333# include <assert.h>
34334#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034335
34336#undef $ac_func
34337
Reid Spencera773bd52006-08-04 18:18:08 +000034338/* Override any GCC internal prototype to avoid an error.
34339 Use char because int might match the return type of a GCC
34340 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034341#ifdef __cplusplus
34342extern "C"
34343#endif
John Criswell7a73b802003-06-30 21:59:07 +000034344char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034345/* The GNU C library defines this for functions which it implements
34346 to always fail with ENOSYS. Some functions are actually named
34347 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034348#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034349choke me
John Criswell7a73b802003-06-30 21:59:07 +000034350#endif
34351
John Criswell0c38eaf2003-09-10 15:17:25 +000034352int
34353main ()
34354{
Reid Spencera773bd52006-08-04 18:18:08 +000034355return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034356 ;
34357 return 0;
34358}
34359_ACEOF
34360rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034361if { (ac_try="$ac_link"
34362case "(($ac_try" in
34363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364 *) ac_try_echo=$ac_try;;
34365esac
34366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034369 grep -v '^ *+' conftest.er1 >conftest.err
34370 rm -f conftest.er1
34371 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034373 (exit $ac_status); } &&
34374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34375 { (case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34378esac
34379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_try") 2>&5
34381 ac_status=$?
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; } &&
34384 { ac_try='test -s conftest$ac_exeext'
34385 { (case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34388esac
34389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_try") 2>&5
34391 ac_status=$?
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034394 eval "$as_ac_var=yes"
34395else
34396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034397sed 's/^/| /' conftest.$ac_ext >&5
34398
Reid Spencera773bd52006-08-04 18:18:08 +000034399 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034400fi
Reid Spencera773bd52006-08-04 18:18:08 +000034401
Bill Wendlingebcceee2009-04-18 11:20:33 +000034402rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034403 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034404fi
Reid Spencera773bd52006-08-04 18:18:08 +000034405ac_res=`eval echo '${'$as_ac_var'}'`
34406 { echo "$as_me:$LINENO: result: $ac_res" >&5
34407echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034408if test `eval echo '${'$as_ac_var'}'` = yes; then
34409 cat >>confdefs.h <<_ACEOF
34410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34411_ACEOF
34412
34413fi
34414done
34415
Reid Spencera773bd52006-08-04 18:18:08 +000034416{ echo "$as_me:$LINENO: checking for working mmap" >&5
34417echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034418if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34419 echo $ECHO_N "(cached) $ECHO_C" >&6
34420else
34421 if test "$cross_compiling" = yes; then
34422 ac_cv_func_mmap_fixed_mapped=no
34423else
34424 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034425/* confdefs.h. */
34426_ACEOF
34427cat confdefs.h >>conftest.$ac_ext
34428cat >>conftest.$ac_ext <<_ACEOF
34429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034430$ac_includes_default
34431/* malloc might have been renamed as rpl_malloc. */
34432#undef malloc
34433
34434/* Thanks to Mike Haertel and Jim Avera for this test.
34435 Here is a matrix of mmap possibilities:
34436 mmap private not fixed
34437 mmap private fixed at somewhere currently unmapped
34438 mmap private fixed at somewhere already mapped
34439 mmap shared not fixed
34440 mmap shared fixed at somewhere currently unmapped
34441 mmap shared fixed at somewhere already mapped
34442 For private mappings, we should verify that changes cannot be read()
34443 back from the file, nor mmap's back from the file at a different
34444 address. (There have been systems where private was not correctly
34445 implemented like the infamous i386 svr4.0, and systems where the
34446 VM page cache was not coherent with the file system buffer cache
34447 like early versions of FreeBSD and possibly contemporary NetBSD.)
34448 For shared mappings, we should conversely verify that changes get
34449 propagated back to all the places they're supposed to be.
34450
34451 Grep wants private fixed already mapped.
34452 The main things grep needs to know about mmap are:
34453 * does it exist and is it safe to write into the mmap'd area
34454 * how to use it (BSD variants) */
34455
34456#include <fcntl.h>
34457#include <sys/mman.h>
34458
Bill Wendlingebcceee2009-04-18 11:20:33 +000034459#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034460char *malloc ();
34461#endif
34462
34463/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034464#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034465/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034466# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034467# define HAVE_SYS_PARAM_H 1
34468# endif
34469
34470# ifdef _SC_PAGESIZE
34471# define getpagesize() sysconf(_SC_PAGESIZE)
34472# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034473# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034474# include <sys/param.h>
34475# ifdef EXEC_PAGESIZE
34476# define getpagesize() EXEC_PAGESIZE
34477# else /* no EXEC_PAGESIZE */
34478# ifdef NBPG
34479# define getpagesize() NBPG * CLSIZE
34480# ifndef CLSIZE
34481# define CLSIZE 1
34482# endif /* no CLSIZE */
34483# else /* no NBPG */
34484# ifdef NBPC
34485# define getpagesize() NBPC
34486# else /* no NBPC */
34487# ifdef PAGESIZE
34488# define getpagesize() PAGESIZE
34489# endif /* PAGESIZE */
34490# endif /* no NBPC */
34491# endif /* no NBPG */
34492# endif /* no EXEC_PAGESIZE */
34493# else /* no HAVE_SYS_PARAM_H */
34494# define getpagesize() 8192 /* punt totally */
34495# endif /* no HAVE_SYS_PARAM_H */
34496# endif /* no _SC_PAGESIZE */
34497
34498#endif /* no HAVE_GETPAGESIZE */
34499
34500int
34501main ()
34502{
34503 char *data, *data2, *data3;
34504 int i, pagesize;
34505 int fd;
34506
34507 pagesize = getpagesize ();
34508
34509 /* First, make a file with some known garbage in it. */
34510 data = (char *) malloc (pagesize);
34511 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034512 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034513 for (i = 0; i < pagesize; ++i)
34514 *(data + i) = rand ();
34515 umask (0);
34516 fd = creat ("conftest.mmap", 0600);
34517 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034518 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034519 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034520 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034521 close (fd);
34522
34523 /* Next, try to mmap the file at a fixed address which already has
34524 something else allocated at it. If we can, also make sure that
34525 we see the same garbage. */
34526 fd = open ("conftest.mmap", O_RDWR);
34527 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034528 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034529 data2 = (char *) malloc (2 * pagesize);
34530 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034531 return 1;
34532 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034533 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034534 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034535 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034536 for (i = 0; i < pagesize; ++i)
34537 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034538 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034539
34540 /* Finally, make sure that changes to the mapped area do not
34541 percolate back to the file as seen by read(). (This is a bug on
34542 some variants of i386 svr4.0.) */
34543 for (i = 0; i < pagesize; ++i)
34544 *(data2 + i) = *(data2 + i) + 1;
34545 data3 = (char *) malloc (pagesize);
34546 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034547 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034548 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034549 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034550 for (i = 0; i < pagesize; ++i)
34551 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034552 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034553 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034554 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034555}
34556_ACEOF
34557rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034558if { (ac_try="$ac_link"
34559case "(($ac_try" in
34560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34561 *) ac_try_echo=$ac_try;;
34562esac
34563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34564 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034565 ac_status=$?
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034568 { (case "(($ac_try" in
34569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34570 *) ac_try_echo=$ac_try;;
34571esac
34572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34573 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034574 ac_status=$?
34575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576 (exit $ac_status); }; }; then
34577 ac_cv_func_mmap_fixed_mapped=yes
34578else
34579 echo "$as_me: program exited with status $ac_status" >&5
34580echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034581sed 's/^/| /' conftest.$ac_ext >&5
34582
John Criswell7a73b802003-06-30 21:59:07 +000034583( exit $ac_status )
34584ac_cv_func_mmap_fixed_mapped=no
34585fi
Reid Spencera773bd52006-08-04 18:18:08 +000034586rm -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 +000034587fi
Reid Spencera773bd52006-08-04 18:18:08 +000034588
34589
John Criswell7a73b802003-06-30 21:59:07 +000034590fi
Reid Spencera773bd52006-08-04 18:18:08 +000034591{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34592echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034593if test $ac_cv_func_mmap_fixed_mapped = yes; then
34594
34595cat >>confdefs.h <<\_ACEOF
34596#define HAVE_MMAP 1
34597_ACEOF
34598
34599fi
34600rm -f conftest.mmap
34601
Reid Spencer30fe5262007-01-20 07:48:49 +000034602 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034603echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034604if test "${ac_cv_func_mmap_file+set}" = set; then
34605 echo $ECHO_N "(cached) $ECHO_C" >&6
34606else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034607 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034608ac_cpp='$CPP $CPPFLAGS'
34609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34611ac_compiler_gnu=$ac_cv_c_compiler_gnu
34612
34613 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034614 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034615else
34616 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034617
Reid Spencer777ce172004-09-20 04:09:56 +000034618 /* confdefs.h. */
34619_ACEOF
34620cat confdefs.h >>conftest.$ac_ext
34621cat >>conftest.$ac_ext <<_ACEOF
34622/* end confdefs.h. */
34623
John Criswell7a73b802003-06-30 21:59:07 +000034624#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034625#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034626#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034627
34628int
34629main ()
34630{
John Criswell7a73b802003-06-30 21:59:07 +000034631
34632 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034633 fd = creat ("foo",0777);
34634 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34635 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034636 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034637 ;
34638 return 0;
34639}
John Criswell7a73b802003-06-30 21:59:07 +000034640_ACEOF
34641rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034642if { (ac_try="$ac_link"
34643case "(($ac_try" in
34644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34645 *) ac_try_echo=$ac_try;;
34646esac
34647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34648 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034652 { (case "(($ac_try" in
34653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654 *) ac_try_echo=$ac_try;;
34655esac
34656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; }; then
34661 ac_cv_func_mmap_file=yes
34662else
34663 echo "$as_me: program exited with status $ac_status" >&5
34664echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034665sed 's/^/| /' conftest.$ac_ext >&5
34666
John Criswell7a73b802003-06-30 21:59:07 +000034667( exit $ac_status )
34668ac_cv_func_mmap_file=no
34669fi
Reid Spencera773bd52006-08-04 18:18:08 +000034670rm -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 +000034671fi
Reid Spencera773bd52006-08-04 18:18:08 +000034672
34673
John Criswell7a73b802003-06-30 21:59:07 +000034674 ac_ext=c
34675ac_cpp='$CPP $CPPFLAGS'
34676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34678ac_compiler_gnu=$ac_cv_c_compiler_gnu
34679
34680
34681fi
Reid Spencera773bd52006-08-04 18:18:08 +000034682{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34683echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034684if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034685
34686cat >>confdefs.h <<\_ACEOF
34687#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034688_ACEOF
34689
34690 MMAP_FILE=yes
34691
34692fi
34693
Reid Spencer30fe5262007-01-20 07:48:49 +000034694 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034695echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034696if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34698else
Reid Spencer582a23c2004-12-29 07:07:57 +000034699 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034700 ac_cv_need_dev_zero_for_mmap=yes
34701 else
34702 ac_cv_need_dev_zero_for_mmap=no
34703 fi
34704
34705fi
Reid Spencera773bd52006-08-04 18:18:08 +000034706{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34707echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034708if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34709
34710cat >>confdefs.h <<\_ACEOF
34711#define NEED_DEV_ZERO_FOR_MMAP 1
34712_ACEOF
34713
34714fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034715
Reid Spencer30fe5262007-01-20 07:48:49 +000034716 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34717 then
34718 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034719echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034720 fi
34721 if test "$ac_cv_func_mmap_file" = "no"
34722 then
34723 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034724echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034725 fi
John Criswellb13092b2003-07-22 21:00:24 +000034726fi
John Criswell7a73b802003-06-30 21:59:07 +000034727
Owen Andersona8603702009-05-19 22:18:56 +000034728{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034729echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034730cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034731/* confdefs.h. */
34732_ACEOF
34733cat confdefs.h >>conftest.$ac_ext
34734cat >>conftest.$ac_ext <<_ACEOF
34735/* end confdefs.h. */
34736int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034737 volatile unsigned long val = 1;
34738 __sync_synchronize();
34739 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034740 __sync_add_and_fetch(&val, 1);
34741 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034742 return 0;
34743 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034744
34745_ACEOF
34746rm -f conftest.$ac_objext conftest$ac_exeext
34747if { (ac_try="$ac_link"
34748case "(($ac_try" in
34749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750 *) ac_try_echo=$ac_try;;
34751esac
34752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753 (eval "$ac_link") 2>conftest.er1
34754 ac_status=$?
34755 grep -v '^ *+' conftest.er1 >conftest.err
34756 rm -f conftest.er1
34757 cat conftest.err >&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } &&
34760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34761 { (case "(($ac_try" in
34762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34763 *) ac_try_echo=$ac_try;;
34764esac
34765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34766 (eval "$ac_try") 2>&5
34767 ac_status=$?
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; } &&
34770 { ac_try='test -s conftest$ac_exeext'
34771 { (case "(($ac_try" in
34772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34773 *) ac_try_echo=$ac_try;;
34774esac
34775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34776 (eval "$ac_try") 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; }; then
34780 { echo "$as_me:$LINENO: result: yes" >&5
34781echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034782
34783cat >>confdefs.h <<\_ACEOF
34784#define LLVM_MULTITHREADED 1
34785_ACEOF
34786
Owen Andersond4b272b2009-05-18 23:58:51 +000034787else
34788 echo "$as_me: failed program was:" >&5
34789sed 's/^/| /' conftest.$ac_ext >&5
34790
34791 { echo "$as_me:$LINENO: result: no" >&5
34792echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034793
Owen Andersona8603702009-05-19 22:18:56 +000034794cat >>confdefs.h <<\_ACEOF
34795#define LLVM_MULTITHREADED 0
34796_ACEOF
34797
34798 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34799echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034800fi
34801
34802rm -f core conftest.err conftest.$ac_objext \
34803 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034804
34805
John Criswell7a73b802003-06-30 21:59:07 +000034806
Nick Lewycky4372e692009-09-29 06:18:23 +000034807if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34808 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34809echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34810if test "${llvm_cv_linux_mixed+set}" = set; then
34811 echo $ECHO_N "(cached) $ECHO_C" >&6
34812else
34813 ac_ext=c
34814ac_cpp='$CPP $CPPFLAGS'
34815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34817ac_compiler_gnu=$ac_cv_c_compiler_gnu
34818
34819 cat >conftest.$ac_ext <<_ACEOF
34820/* confdefs.h. */
34821_ACEOF
34822cat confdefs.h >>conftest.$ac_ext
34823cat >>conftest.$ac_ext <<_ACEOF
34824/* end confdefs.h. */
34825#ifndef __x86_64__
34826 error: Not x86-64 even if uname says so!
34827 #endif
34828
34829int
34830main ()
34831{
34832
34833 ;
34834 return 0;
34835}
34836_ACEOF
34837rm -f conftest.$ac_objext
34838if { (ac_try="$ac_compile"
34839case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34842esac
34843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_compile") 2>conftest.er1
34845 ac_status=$?
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
34851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34852 { (case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34855esac
34856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_try") 2>&5
34858 ac_status=$?
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); }; } &&
34861 { ac_try='test -s conftest.$ac_objext'
34862 { (case "(($ac_try" in
34863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34864 *) ac_try_echo=$ac_try;;
34865esac
34866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34867 (eval "$ac_try") 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 llvm_cv_linux_mixed=no
34872else
34873 echo "$as_me: failed program was:" >&5
34874sed 's/^/| /' conftest.$ac_ext >&5
34875
34876 llvm_cv_linux_mixed=yes
34877fi
34878
34879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880 ac_ext=c
34881ac_cpp='$CPP $CPPFLAGS'
34882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34884ac_compiler_gnu=$ac_cv_c_compiler_gnu
34885
34886
34887fi
34888{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34889echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34890
34891 if test "$llvm_cv_linux_mixed" = "yes"; then
34892 llvm_cv_target_arch="x86"
34893 ARCH="x86"
34894 fi
34895fi
34896
Reid Spencer9372f152007-07-30 20:13:24 +000034897
34898for ac_func in __dso_handle
34899do
34900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34901{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34904 echo $ECHO_N "(cached) $ECHO_C" >&6
34905else
34906 cat >conftest.$ac_ext <<_ACEOF
34907/* confdefs.h. */
34908_ACEOF
34909cat confdefs.h >>conftest.$ac_ext
34910cat >>conftest.$ac_ext <<_ACEOF
34911/* end confdefs.h. */
34912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34914#define $ac_func innocuous_$ac_func
34915
34916/* System header to define __stub macros and hopefully few prototypes,
34917 which can conflict with char $ac_func (); below.
34918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34919 <limits.h> exists even on freestanding compilers. */
34920
34921#ifdef __STDC__
34922# include <limits.h>
34923#else
34924# include <assert.h>
34925#endif
34926
34927#undef $ac_func
34928
34929/* Override any GCC internal prototype to avoid an error.
34930 Use char because int might match the return type of a GCC
34931 builtin and then its argument prototype would still apply. */
34932#ifdef __cplusplus
34933extern "C"
34934#endif
34935char $ac_func ();
34936/* The GNU C library defines this for functions which it implements
34937 to always fail with ENOSYS. Some functions are actually named
34938 something starting with __ and the normal name is an alias. */
34939#if defined __stub_$ac_func || defined __stub___$ac_func
34940choke me
34941#endif
34942
34943int
34944main ()
34945{
34946return $ac_func ();
34947 ;
34948 return 0;
34949}
34950_ACEOF
34951rm -f conftest.$ac_objext conftest$ac_exeext
34952if { (ac_try="$ac_link"
34953case "(($ac_try" in
34954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955 *) ac_try_echo=$ac_try;;
34956esac
34957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34958 (eval "$ac_link") 2>conftest.er1
34959 ac_status=$?
34960 grep -v '^ *+' conftest.er1 >conftest.err
34961 rm -f conftest.er1
34962 cat conftest.err >&5
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034964 (exit $ac_status); } &&
34965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34966 { (case "(($ac_try" in
34967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34968 *) ac_try_echo=$ac_try;;
34969esac
34970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34971 (eval "$ac_try") 2>&5
34972 ac_status=$?
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; } &&
34975 { ac_try='test -s conftest$ac_exeext'
34976 { (case "(($ac_try" in
34977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34978 *) ac_try_echo=$ac_try;;
34979esac
34980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34981 (eval "$ac_try") 2>&5
34982 ac_status=$?
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034985 eval "$as_ac_var=yes"
34986else
34987 echo "$as_me: failed program was:" >&5
34988sed 's/^/| /' conftest.$ac_ext >&5
34989
34990 eval "$as_ac_var=no"
34991fi
34992
Bill Wendlingebcceee2009-04-18 11:20:33 +000034993rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034994 conftest$ac_exeext conftest.$ac_ext
34995fi
34996ac_res=`eval echo '${'$as_ac_var'}'`
34997 { echo "$as_me:$LINENO: result: $ac_res" >&5
34998echo "${ECHO_T}$ac_res" >&6; }
34999if test `eval echo '${'$as_ac_var'}'` = yes; then
35000 cat >>confdefs.h <<_ACEOF
35001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35002_ACEOF
35003
35004fi
35005done
35006
35007
Reid Spencera773bd52006-08-04 18:18:08 +000035008{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35009echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035010if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35011 echo $ECHO_N "(cached) $ECHO_C" >&6
35012else
35013 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000035014if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035015 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000035016 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35017 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035018 if test $? -eq 0 ; then
35019 llvm_cv_llvmgcc_sanity="yes"
35020 fi
35021 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000035022fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035023fi
Reid Spencera773bd52006-08-04 18:18:08 +000035024{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35025echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035026
35027if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000035028 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35029echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000035030 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035031 LLVMCC1=$llvmcc1path
35032
Reid Spencer502935f2004-12-22 05:56:56 +000035033 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035034 LLVMCC1PLUS=$llvmcc1pluspath
35035
Reid Spencer502935f2004-12-22 05:56:56 +000035036 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35037 LLVMGCCDIR=$llvmgccdir
35038
Reid Spencer282d8c12006-12-21 22:55:41 +000035039 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35040 LLVMGCCLIBEXEC=$llvmgcclibexec
35041
Reid Spencerb5d75b82006-05-09 00:31:01 +000035042 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000035043 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35044 LLVMGCC_VERSION=$llvmgccversion
35045
35046 LLVMGCC_MAJVERS=$llvmgccmajvers
35047
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000035048 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000035049 LLVMGCC_LANGS=$llvmgcclangs
35050
35051 { echo "$as_me:$LINENO: result: ok" >&5
35052echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000035053fi
35054
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035055SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000035056
35057
Reid Spencere9de0912004-08-20 09:03:57 +000035058# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035059# information into substitutions that will end up in Makefile.config.in
35060# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000035061if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000035062 prefix="/usr/local"
35063fi
Reid Spencere9de0912004-08-20 09:03:57 +000035064eval LLVM_PREFIX="${prefix}";
35065eval LLVM_BINDIR="${prefix}/bin";
35066eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000035067eval LLVM_DATADIR="${prefix}/share/llvm";
35068eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35069eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000035070eval LLVM_INCLUDEDIR="${prefix}/include";
35071eval LLVM_INFODIR="${prefix}/info";
35072eval LLVM_MANDIR="${prefix}/man";
35073LLVM_CONFIGTIME=`date`
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035085# Place the various directores into the config.h file as #defines so that we
35086# can know about the installation paths within LLVM.
35087
Reid Spencere9de0912004-08-20 09:03:57 +000035088cat >>confdefs.h <<_ACEOF
35089#define LLVM_PREFIX "$LLVM_PREFIX"
35090_ACEOF
35091
35092
35093cat >>confdefs.h <<_ACEOF
35094#define LLVM_BINDIR "$LLVM_BINDIR"
35095_ACEOF
35096
35097
35098cat >>confdefs.h <<_ACEOF
35099#define LLVM_LIBDIR "$LLVM_LIBDIR"
35100_ACEOF
35101
35102
35103cat >>confdefs.h <<_ACEOF
35104#define LLVM_DATADIR "$LLVM_DATADIR"
35105_ACEOF
35106
35107
35108cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035109#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035110_ACEOF
35111
35112
35113cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035114#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035115_ACEOF
35116
35117
35118cat >>confdefs.h <<_ACEOF
35119#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35120_ACEOF
35121
35122
35123cat >>confdefs.h <<_ACEOF
35124#define LLVM_INFODIR "$LLVM_INFODIR"
35125_ACEOF
35126
35127
35128cat >>confdefs.h <<_ACEOF
35129#define LLVM_MANDIR "$LLVM_MANDIR"
35130_ACEOF
35131
35132
35133cat >>confdefs.h <<_ACEOF
35134#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35135_ACEOF
35136
35137
Eric Christopher790e11c2007-12-01 00:34:39 +000035138cat >>confdefs.h <<_ACEOF
35139#define LLVM_HOSTTRIPLE "$host"
35140_ACEOF
35141
35142
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035143# Determine which bindings to build.
35144if test "$BINDINGS_TO_BUILD" = auto ; then
35145 BINDINGS_TO_BUILD=""
35146 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35147 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35148 fi
35149fi
35150BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35151
35152
35153# This isn't really configurey, but it avoids having to repeat the list in
35154# other files.
35155ALL_BINDINGS=ocaml
35156
35157
Gordon Henriksenf0915682007-10-02 16:42:22 +000035158# Do any work necessary to ensure that bindings have what they need.
35159binding_prereqs_failed=0
35160for a_binding in $BINDINGS_TO_BUILD ; do
35161 case "$a_binding" in
35162 ocaml)
35163 if test "x$OCAMLC" = x ; then
35164 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35165echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35166 binding_prereqs_failed=1
35167 fi
35168 if test "x$OCAMLDEP" = x ; then
35169 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35170echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35171 binding_prereqs_failed=1
35172 fi
35173 if test "x$OCAMLOPT" = x ; then
35174 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35175echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35176 fi
35177 if test "x$with_ocaml_libdir" != xauto ; then
35178 OCAML_LIBDIR=$with_ocaml_libdir
35179
35180 else
35181 ocaml_stdlib="`"$OCAMLC" -where`"
35182 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35183 then
35184 # ocaml stdlib is beneath our prefix; use stdlib
35185 OCAML_LIBDIR=$ocaml_stdlib
35186
35187 else
35188 # ocaml stdlib is outside our prefix; use libdir/ocaml
35189 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35190
35191 fi
35192 fi
35193 ;;
35194 esac
35195done
35196if test "$binding_prereqs_failed" = 1 ; then
35197 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35198echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35199 { (exit 1); exit 1; }; }
35200fi
35201
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035202{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35203echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35204if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35205 echo $ECHO_N "(cached) $ECHO_C" >&6
35206else
35207 ac_ext=cpp
35208ac_cpp='$CXXCPP $CPPFLAGS'
35209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35212
35213 oldcxxflags="$CXXFLAGS"
35214 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35215 cat >conftest.$ac_ext <<_ACEOF
35216/* confdefs.h. */
35217_ACEOF
35218cat confdefs.h >>conftest.$ac_ext
35219cat >>conftest.$ac_ext <<_ACEOF
35220/* end confdefs.h. */
35221
35222int
35223main ()
35224{
35225
35226 ;
35227 return 0;
35228}
35229_ACEOF
35230rm -f conftest.$ac_objext
35231if { (ac_try="$ac_compile"
35232case "(($ac_try" in
35233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35234 *) ac_try_echo=$ac_try;;
35235esac
35236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35237 (eval "$ac_compile") 2>conftest.er1
35238 ac_status=$?
35239 grep -v '^ *+' conftest.er1 >conftest.err
35240 rm -f conftest.er1
35241 cat conftest.err >&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035243 (exit $ac_status); } &&
35244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35245 { (case "(($ac_try" in
35246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35247 *) ac_try_echo=$ac_try;;
35248esac
35249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35250 (eval "$ac_try") 2>&5
35251 ac_status=$?
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; } &&
35254 { ac_try='test -s conftest.$ac_objext'
35255 { (case "(($ac_try" in
35256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257 *) ac_try_echo=$ac_try;;
35258esac
35259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35260 (eval "$ac_try") 2>&5
35261 ac_status=$?
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035264 llvm_cv_cxx_visibility_inlines_hidden=yes
35265else
35266 echo "$as_me: failed program was:" >&5
35267sed 's/^/| /' conftest.$ac_ext >&5
35268
35269 llvm_cv_cxx_visibility_inlines_hidden=no
35270fi
35271
35272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35273 CXXFLAGS="$oldcxxflags"
35274 ac_ext=c
35275ac_cpp='$CPP $CPPFLAGS'
35276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35278ac_compiler_gnu=$ac_cv_c_compiler_gnu
35279
35280
35281fi
35282{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35283echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35284if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35285 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35286
35287else
35288 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35289
35290fi
35291
Gordon Henriksenf0915682007-10-02 16:42:22 +000035292
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035293if test "$llvm_cv_link_use_r" = "yes" ; then
35294 RPATH="-Wl,-R"
35295else
35296 RPATH="-Wl,-rpath"
35297fi
35298
35299
35300if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35301 RDYNAMIC="-Wl,-export-dynamic"
35302else
35303 RDYNAMIC=""
35304fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035305
35306
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035307
Reid Spencera773bd52006-08-04 18:18:08 +000035308ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035309
Douglas Gregor1555a232009-06-16 20:12:29 +000035310ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35311
35312ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35313
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035314ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35315
Chandler Carruth8b67f772009-10-26 01:35:46 +000035316ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035317
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035318
Reid Spencera773bd52006-08-04 18:18:08 +000035319ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035320
35321
Reid Spencerea949cf2006-08-16 00:45:38 +000035322ac_config_files="$ac_config_files llvm.spec"
35323
35324
Reid Spencera773bd52006-08-04 18:18:08 +000035325ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035326
35327
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035328ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35329
35330
Reid Spencera773bd52006-08-04 18:18:08 +000035331ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035332
35333
Reid Spencera773bd52006-08-04 18:18:08 +000035334ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035335
Reid Spencera773bd52006-08-04 18:18:08 +000035336ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035337
35338
Reid Spencera773bd52006-08-04 18:18:08 +000035339ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035340
35341
Reid Spencera773bd52006-08-04 18:18:08 +000035342ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035343
35344
Reid Spencera773bd52006-08-04 18:18:08 +000035345ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035346
35347
Reid Spencer8b2e1412006-11-17 03:32:33 +000035348ac_config_commands="$ac_config_commands runtime/Makefile"
35349
35350
Reid Spencera773bd52006-08-04 18:18:08 +000035351ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035352
35353
Reid Spencera773bd52006-08-04 18:18:08 +000035354ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035355
35356
Bill Wendlingf24eb392009-01-04 23:12:30 +000035357ac_config_commands="$ac_config_commands unittests/Makefile"
35358
35359
Reid Spencera773bd52006-08-04 18:18:08 +000035360ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035361
35362
Reid Spencera773bd52006-08-04 18:18:08 +000035363ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035364
35365
Reid Spencera773bd52006-08-04 18:18:08 +000035366ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035367
35368
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035369ac_config_commands="$ac_config_commands bindings/Makefile"
35370
35371
35372ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35373
35374
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035375
John Criswell7a73b802003-06-30 21:59:07 +000035376cat >confcache <<\_ACEOF
35377# This file is a shell script that caches the results of configure
35378# tests run on this system so they can be shared between configure
35379# scripts and configure runs, see configure's option --config-cache.
35380# It is not useful on other systems. If it contains results you don't
35381# want to keep, you may remove or edit it.
35382#
35383# config.status only pays attention to the cache file if you give it
35384# the --recheck option to rerun configure.
35385#
John Criswell0c38eaf2003-09-10 15:17:25 +000035386# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035387# loading this file, other *unset* `ac_cv_foo' will be assigned the
35388# following values.
35389
35390_ACEOF
35391
35392# The following way of writing the cache mishandles newlines in values,
35393# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035394# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035395# Ultrix sh set writes to stderr and can't be redirected directly,
35396# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035397(
35398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35399 eval ac_val=\$$ac_var
35400 case $ac_val in #(
35401 *${as_nl}*)
35402 case $ac_var in #(
35403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35404echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35405 esac
35406 case $ac_var in #(
35407 _ | IFS | as_nl) ;; #(
35408 *) $as_unset $ac_var ;;
35409 esac ;;
35410 esac
35411 done
35412
John Criswell7a73b802003-06-30 21:59:07 +000035413 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35415 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035416 # `set' does not quote correctly, so add quotes (double-quote
35417 # substitution turns \\\\ into \\, and sed turns \\ into \).
35418 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035419 "s/'/'\\\\''/g;
35420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035421 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035422 *)
35423 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035425 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035426 esac |
35427 sort
35428) |
John Criswell7a73b802003-06-30 21:59:07 +000035429 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035430 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035431 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035432 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35434 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35436 :end' >>confcache
35437if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35438 if test -w "$cache_file"; then
35439 test "x$cache_file" != "x/dev/null" &&
35440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35441echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035442 cat confcache >$cache_file
35443 else
Reid Spencera773bd52006-08-04 18:18:08 +000035444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35445echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035446 fi
35447fi
35448rm -f confcache
35449
35450test "x$prefix" = xNONE && prefix=$ac_default_prefix
35451# Let make expand exec_prefix.
35452test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35453
John Criswell7a73b802003-06-30 21:59:07 +000035454DEFS=-DHAVE_CONFIG_H
35455
John Criswell0c38eaf2003-09-10 15:17:25 +000035456ac_libobjs=
35457ac_ltlibobjs=
35458for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35459 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35461 ac_i=`echo "$ac_i" | sed "$ac_script"`
35462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35463 # will be set to the directory where LIBOBJS objects are built.
35464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035466done
35467LIBOBJS=$ac_libobjs
35468
35469LTLIBOBJS=$ac_ltlibobjs
35470
35471
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035472if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35473 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35474Usually this means the macro was only invoked conditionally." >&5
35475echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35476Usually this means the macro was only invoked conditionally." >&2;}
35477 { (exit 1); exit 1; }; }
35478fi
35479if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35480 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35481Usually this means the macro was only invoked conditionally." >&5
35482echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35483Usually this means the macro was only invoked conditionally." >&2;}
35484 { (exit 1); exit 1; }; }
35485fi
John Criswell7a73b802003-06-30 21:59:07 +000035486
35487: ${CONFIG_STATUS=./config.status}
35488ac_clean_files_save=$ac_clean_files
35489ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35490{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35491echo "$as_me: creating $CONFIG_STATUS" >&6;}
35492cat >$CONFIG_STATUS <<_ACEOF
35493#! $SHELL
35494# Generated by $as_me.
35495# Run this file to recreate the current configuration.
35496# Compiler output produced by configure, useful for debugging
35497# configure, is in config.log if it exists.
35498
35499debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035500ac_cs_recheck=false
35501ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035502SHELL=\${CONFIG_SHELL-$SHELL}
35503_ACEOF
35504
35505cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035506## --------------------- ##
35507## M4sh Initialization. ##
35508## --------------------- ##
35509
Bill Wendlingebcceee2009-04-18 11:20:33 +000035510# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035511if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35512 emulate sh
35513 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035514 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35515 # is contrary to our usage. Disable this feature.
35516 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035517 setopt NO_GLOB_SUBST
35518else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035519 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035520fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035521BIN_SH=xpg4; export BIN_SH # for Tru64
35522DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035523
John Criswell7a73b802003-06-30 21:59:07 +000035524
Reid Spencera773bd52006-08-04 18:18:08 +000035525# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035526# Avoid depending upon Character Ranges.
35527as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35528as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35529as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35530as_cr_digits='0123456789'
35531as_cr_alnum=$as_cr_Letters$as_cr_digits
35532
35533# The user is always right.
35534if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035535 echo "#! /bin/sh" >conf$$.sh
35536 echo "exit 0" >>conf$$.sh
35537 chmod +x conf$$.sh
35538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035539 PATH_SEPARATOR=';'
35540 else
35541 PATH_SEPARATOR=:
35542 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035543 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035544fi
35545
Reid Spencera773bd52006-08-04 18:18:08 +000035546# Support unset when possible.
35547if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35548 as_unset=unset
35549else
35550 as_unset=false
35551fi
John Criswell7a73b802003-06-30 21:59:07 +000035552
Reid Spencera773bd52006-08-04 18:18:08 +000035553
35554# IFS
35555# We need space, tab and new line, in precisely that order. Quoting is
35556# there to prevent editors from complaining about space-tab.
35557# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35558# splitting by setting IFS to empty value.)
35559as_nl='
35560'
35561IFS=" "" $as_nl"
35562
35563# Find who we are. Look in the path if we contain no directory separator.
35564case $0 in
35565 *[\\/]* ) as_myself=$0 ;;
35566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035567for as_dir in $PATH
35568do
35569 IFS=$as_save_IFS
35570 test -z "$as_dir" && as_dir=.
35571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35572done
Reid Spencera773bd52006-08-04 18:18:08 +000035573IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035574
Reid Spencera773bd52006-08-04 18:18:08 +000035575 ;;
35576esac
35577# We did not find ourselves, most probably we were run as `sh COMMAND'
35578# in which case we are not to be found in the path.
35579if test "x$as_myself" = x; then
35580 as_myself=$0
35581fi
35582if test ! -f "$as_myself"; then
35583 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35584 { (exit 1); exit 1; }
35585fi
35586
35587# Work around bugs in pre-3.0 UWIN ksh.
35588for as_var in ENV MAIL MAILPATH
35589do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35590done
35591PS1='$ '
35592PS2='> '
35593PS4='+ '
35594
35595# NLS nuisances.
35596for as_var in \
35597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35599 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035600do
Reid Spencera773bd52006-08-04 18:18:08 +000035601 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35602 eval $as_var=C; export $as_var
35603 else
35604 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35605 fi
35606done
35607
35608# Required to use basename.
35609if expr a : '\(a\)' >/dev/null 2>&1 &&
35610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35611 as_expr=expr
35612else
35613 as_expr=false
35614fi
35615
35616if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35617 as_basename=basename
35618else
35619 as_basename=false
35620fi
35621
35622
35623# Name of the executable.
35624as_me=`$as_basename -- "$0" ||
35625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35626 X"$0" : 'X\(//\)$' \| \
35627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35628echo X/"$0" |
35629 sed '/^.*\/\([^/][^/]*\)\/*$/{
35630 s//\1/
35631 q
35632 }
35633 /^X\/\(\/\/\)$/{
35634 s//\1/
35635 q
35636 }
35637 /^X\/\(\/\).*/{
35638 s//\1/
35639 q
35640 }
35641 s/.*/./; q'`
35642
35643# CDPATH.
35644$as_unset CDPATH
35645
35646
35647
John Criswell7a73b802003-06-30 21:59:07 +000035648 as_lineno_1=$LINENO
35649 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035650 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035652
35653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35654 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035655 # line-number line after each line using $LINENO; the second 'sed'
35656 # does the real work. The second script uses 'N' to pair each
35657 # line-number line with the line containing $LINENO, and appends
35658 # trailing '-' during substitution so that $LINENO is not a special
35659 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035661 # scripts with optimization help from Paolo Bonzini. Blame Lee
35662 # E. McMahon (1931-1989) for sed's syntax. :-)
35663 sed -n '
35664 p
35665 /[$]LINENO/=
35666 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035667 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035668 s/[$]LINENO.*/&-/
35669 t lineno
35670 b
35671 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035672 N
Reid Spencera773bd52006-08-04 18:18:08 +000035673 :loop
35674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035675 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035676 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035677 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035678 chmod +x "$as_me.lineno" ||
35679 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035680 { (exit 1); exit 1; }; }
35681
35682 # Don't try to exec as it changes $[0], causing all sort of problems
35683 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035684 # original and so on. Autoconf is especially sensitive to this).
35685 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035686 # Exit status is that of the last command.
35687 exit
35688}
35689
35690
Reid Spencera773bd52006-08-04 18:18:08 +000035691if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35692 as_dirname=dirname
35693else
35694 as_dirname=false
35695fi
35696
35697ECHO_C= ECHO_N= ECHO_T=
35698case `echo -n x` in
35699-n*)
35700 case `echo 'x\c'` in
35701 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35702 *) ECHO_C='\c';;
35703 esac;;
35704*)
35705 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035706esac
35707
Reid Spencera773bd52006-08-04 18:18:08 +000035708if expr a : '\(a\)' >/dev/null 2>&1 &&
35709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035710 as_expr=expr
35711else
35712 as_expr=false
35713fi
35714
35715rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035716if test -d conf$$.dir; then
35717 rm -f conf$$.dir/conf$$.file
35718else
35719 rm -f conf$$.dir
35720 mkdir conf$$.dir
35721fi
John Criswell7a73b802003-06-30 21:59:07 +000035722echo >conf$$.file
35723if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035724 as_ln_s='ln -s'
35725 # ... but there are two gotchas:
35726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35728 # In both cases, we have to default to `cp -p'.
35729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035730 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035731elif ln conf$$.file conf$$ 2>/dev/null; then
35732 as_ln_s=ln
35733else
35734 as_ln_s='cp -p'
35735fi
Reid Spencera773bd52006-08-04 18:18:08 +000035736rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35737rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035738
John Criswell0c38eaf2003-09-10 15:17:25 +000035739if mkdir -p . 2>/dev/null; then
35740 as_mkdir_p=:
35741else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035742 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035743 as_mkdir_p=false
35744fi
35745
Bill Wendlingebcceee2009-04-18 11:20:33 +000035746# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35747# systems may use methods other than mode bits to determine executability.
35748cat >conf$$.file <<_ASEOF
35749#! /bin/sh
35750exit 0
35751_ASEOF
35752chmod +x conf$$.file
35753if test -x conf$$.file >/dev/null 2>&1; then
35754 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035755else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035756 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035757fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035758rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035759
35760# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035761as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035762
35763# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035764as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035765
35766
John Criswell7a73b802003-06-30 21:59:07 +000035767exec 6>&1
35768
Reid Spencera773bd52006-08-04 18:18:08 +000035769# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035770# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035771# values after options handling.
35772ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000035773This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035774generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035775
35776 CONFIG_FILES = $CONFIG_FILES
35777 CONFIG_HEADERS = $CONFIG_HEADERS
35778 CONFIG_LINKS = $CONFIG_LINKS
35779 CONFIG_COMMANDS = $CONFIG_COMMANDS
35780 $ $0 $@
35781
Reid Spencera773bd52006-08-04 18:18:08 +000035782on `(hostname || uname -n) 2>/dev/null | sed 1q`
35783"
35784
John Criswell7a73b802003-06-30 21:59:07 +000035785_ACEOF
35786
Reid Spencera773bd52006-08-04 18:18:08 +000035787cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035788# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035789config_files="$ac_config_files"
35790config_headers="$ac_config_headers"
35791config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035792
Reid Spencera773bd52006-08-04 18:18:08 +000035793_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035794
35795cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035796ac_cs_usage="\
35797\`$as_me' instantiates files from templates according to the
35798current configuration.
35799
35800Usage: $0 [OPTIONS] [FILE]...
35801
35802 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035803 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035804 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035805 -d, --debug don't remove temporary files
35806 --recheck update $as_me by reconfiguring in the same conditions
35807 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035808 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035809 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035810 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035811
35812Configuration files:
35813$config_files
35814
35815Configuration headers:
35816$config_headers
35817
John Criswellc764fbc2003-09-06 15:17:13 +000035818Configuration commands:
35819$config_commands
35820
John Criswell7a73b802003-06-30 21:59:07 +000035821Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035822
Reid Spencera773bd52006-08-04 18:18:08 +000035823_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035824cat >>$CONFIG_STATUS <<_ACEOF
35825ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000035826llvm config.status 2.7svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035827configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035828 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035829
Reid Spencera773bd52006-08-04 18:18:08 +000035830Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035831This config.status script is free software; the Free Software Foundation
35832gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035833
35834ac_pwd='$ac_pwd'
35835srcdir='$srcdir'
35836INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035837_ACEOF
35838
35839cat >>$CONFIG_STATUS <<\_ACEOF
35840# If no file are specified by the user, then we need to provide default
35841# value. By we need to know if files were specified by the user.
35842ac_need_defaults=:
35843while test $# != 0
35844do
35845 case $1 in
35846 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035849 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035851 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035852 ac_option=$1
35853 ac_optarg=$2
35854 ac_shift=shift
35855 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035856 esac
35857
John Criswell0c38eaf2003-09-10 15:17:25 +000035858 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035859 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35861 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35863 echo "$ac_cs_version"; exit ;;
35864 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035865 debug=: ;;
35866 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035867 $ac_shift
35868 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035869 ac_need_defaults=false;;
35870 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035871 $ac_shift
35872 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035873 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035874 --he | --h)
35875 # Conflict between --help and --header
35876 { echo "$as_me: error: ambiguous option: $1
35877Try \`$0 --help' for more information." >&2
35878 { (exit 1); exit 1; }; };;
35879 --help | --hel | -h )
35880 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35882 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35883 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035884
35885 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035886 -*) { echo "$as_me: error: unrecognized option: $1
35887Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035888 { (exit 1); exit 1; }; } ;;
35889
Reid Spencera773bd52006-08-04 18:18:08 +000035890 *) ac_config_targets="$ac_config_targets $1"
35891 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035892
35893 esac
35894 shift
35895done
35896
John Criswell0c38eaf2003-09-10 15:17:25 +000035897ac_configure_extra_args=
35898
35899if $ac_cs_silent; then
35900 exec 6>/dev/null
35901 ac_configure_extra_args="$ac_configure_extra_args --silent"
35902fi
35903
35904_ACEOF
35905cat >>$CONFIG_STATUS <<_ACEOF
35906if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035907 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35908 CONFIG_SHELL=$SHELL
35909 export CONFIG_SHELL
35910 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035911fi
35912
John Criswell7a73b802003-06-30 21:59:07 +000035913_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035914cat >>$CONFIG_STATUS <<\_ACEOF
35915exec 5>>config.log
35916{
35917 echo
35918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35919## Running $as_me. ##
35920_ASBOX
35921 echo "$ac_log"
35922} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035923
Reid Spencera773bd52006-08-04 18:18:08 +000035924_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035925cat >>$CONFIG_STATUS <<_ACEOF
35926#
Reid Spencera773bd52006-08-04 18:18:08 +000035927# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035928#
Reid Spencerc0682832005-02-24 19:05:19 +000035929llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035930
35931_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035932
John Criswell7a73b802003-06-30 21:59:07 +000035933cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035934
35935# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035936for ac_config_target in $ac_config_targets
35937do
Reid Spencera773bd52006-08-04 18:18:08 +000035938 case $ac_config_target in
35939 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035940 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35941 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035942 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000035943 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035944 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035945 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035946 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035947 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035948 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35949 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35950 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35951 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35952 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35953 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035954 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035955 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35956 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035957 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035958 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35959 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35960 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035961 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35962 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035963
John Criswell7a73b802003-06-30 21:59:07 +000035964 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35965echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35966 { (exit 1); exit 1; }; };;
35967 esac
35968done
35969
Reid Spencera773bd52006-08-04 18:18:08 +000035970
John Criswell7a73b802003-06-30 21:59:07 +000035971# If the user did not use the arguments to specify the items to instantiate,
35972# then the envvar interface is used. Set only those that are not.
35973# We use the long form for the default assignment because of an extremely
35974# bizarre bug on SunOS 4.1.3.
35975if $ac_need_defaults; then
35976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035979fi
35980
John Criswell0c38eaf2003-09-10 15:17:25 +000035981# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035982# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035983# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035984# Hook for its removal unless debugging.
35985# Note that there is a small window in which the directory will not be cleaned:
35986# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035987$debug ||
35988{
Reid Spencera773bd52006-08-04 18:18:08 +000035989 tmp=
35990 trap 'exit_status=$?
35991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35992' 0
John Criswell7a73b802003-06-30 21:59:07 +000035993 trap '{ (exit 1); exit 1; }' 1 2 13 15
35994}
John Criswell7a73b802003-06-30 21:59:07 +000035995# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035996
John Criswell7a73b802003-06-30 21:59:07 +000035997{
Reid Spencera773bd52006-08-04 18:18:08 +000035998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035999 test -n "$tmp" && test -d "$tmp"
36000} ||
36001{
Reid Spencera773bd52006-08-04 18:18:08 +000036002 tmp=./conf$$-$RANDOM
36003 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000036004} ||
36005{
John Criswell0c38eaf2003-09-10 15:17:25 +000036006 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000036007 { (exit 1); exit 1; }
36008}
36009
John Criswell7a73b802003-06-30 21:59:07 +000036010#
Reid Spencera773bd52006-08-04 18:18:08 +000036011# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000036012#
36013
36014# No need to generate the scripts if there are no CONFIG_FILES.
36015# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000036016if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000036017
36018_ACEOF
36019
Reid Spencera773bd52006-08-04 18:18:08 +000036020
36021
36022ac_delim='%!_!# '
36023for ac_last_try in false false false false false :; do
36024 cat >conf$$subs.sed <<_ACEOF
36025SHELL!$SHELL$ac_delim
36026PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36027PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36028PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36029PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36030PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36031PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36032exec_prefix!$exec_prefix$ac_delim
36033prefix!$prefix$ac_delim
36034program_transform_name!$program_transform_name$ac_delim
36035bindir!$bindir$ac_delim
36036sbindir!$sbindir$ac_delim
36037libexecdir!$libexecdir$ac_delim
36038datarootdir!$datarootdir$ac_delim
36039datadir!$datadir$ac_delim
36040sysconfdir!$sysconfdir$ac_delim
36041sharedstatedir!$sharedstatedir$ac_delim
36042localstatedir!$localstatedir$ac_delim
36043includedir!$includedir$ac_delim
36044oldincludedir!$oldincludedir$ac_delim
36045docdir!$docdir$ac_delim
36046infodir!$infodir$ac_delim
36047htmldir!$htmldir$ac_delim
36048dvidir!$dvidir$ac_delim
36049pdfdir!$pdfdir$ac_delim
36050psdir!$psdir$ac_delim
36051libdir!$libdir$ac_delim
36052localedir!$localedir$ac_delim
36053mandir!$mandir$ac_delim
36054DEFS!$DEFS$ac_delim
36055ECHO_C!$ECHO_C$ac_delim
36056ECHO_N!$ECHO_N$ac_delim
36057ECHO_T!$ECHO_T$ac_delim
36058LIBS!$LIBS$ac_delim
36059build_alias!$build_alias$ac_delim
36060host_alias!$host_alias$ac_delim
36061target_alias!$target_alias$ac_delim
36062LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36063subdirs!$subdirs$ac_delim
36064build!$build$ac_delim
36065build_cpu!$build_cpu$ac_delim
36066build_vendor!$build_vendor$ac_delim
36067build_os!$build_os$ac_delim
36068host!$host$ac_delim
36069host_cpu!$host_cpu$ac_delim
36070host_vendor!$host_vendor$ac_delim
36071host_os!$host_os$ac_delim
36072target!$target$ac_delim
36073target_cpu!$target_cpu$ac_delim
36074target_vendor!$target_vendor$ac_delim
36075target_os!$target_os$ac_delim
36076OS!$OS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036077HOST_OS!$HOST_OS$ac_delim
36078TARGET_OS!$TARGET_OS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036079LINKALL!$LINKALL$ac_delim
36080NOLINKALL!$NOLINKALL$ac_delim
36081LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36082LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewycky83fc4472009-09-29 05:48:51 +000036083ARCH!$ARCH$ac_delim
36084ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036085CC!$CC$ac_delim
36086CFLAGS!$CFLAGS$ac_delim
36087LDFLAGS!$LDFLAGS$ac_delim
36088CPPFLAGS!$CPPFLAGS$ac_delim
36089ac_ct_CC!$ac_ct_CC$ac_delim
36090EXEEXT!$EXEEXT$ac_delim
36091OBJEXT!$OBJEXT$ac_delim
36092CPP!$CPP$ac_delim
36093GREP!$GREP$ac_delim
36094EGREP!$EGREP$ac_delim
36095LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36096BUILD_CC!$BUILD_CC$ac_delim
36097BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036098BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036099CVSBUILD!$CVSBUILD$ac_delim
36100ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036101ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036102DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036103ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36104EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036105DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036106DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036107JIT!$JIT$ac_delim
36108TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36109ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36110ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036111ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036112TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036113LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36114LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036115LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036116ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036117OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036118EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036119BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036120ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36121ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036122_ACEOF
36123
36124 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36125 break
36126 elif $ac_last_try; then
36127 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36128echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36129 { (exit 1); exit 1; }; }
36130 else
36131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036132 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036133done
36134
36135ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36136if test -n "$ac_eof"; then
36137 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36138 ac_eof=`expr $ac_eof + 1`
36139fi
36140
36141cat >>$CONFIG_STATUS <<_ACEOF
36142cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36143/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36144_ACEOF
36145sed '
36146s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36147s/^/s,@/; s/!/@,|#_!!_#|/
36148:n
36149t n
36150s/'"$ac_delim"'$/,g/; t
36151s/$/\\/; p
36152N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36153' >>$CONFIG_STATUS <conf$$subs.sed
36154rm -f conf$$subs.sed
36155cat >>$CONFIG_STATUS <<_ACEOF
36156CEOF$ac_eof
36157_ACEOF
36158
36159
36160ac_delim='%!_!# '
36161for ac_last_try in false false false false false :; do
36162 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036163CXX!$CXX$ac_delim
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +000036164CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov0855f102009-08-18 00:40:51 +000036165ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen7e836972009-08-11 13:39:52 +000036166NM!$NM$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036167ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036168LN_S!$LN_S$ac_delim
36169CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036170CP!$CP$ac_delim
36171DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036172FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036173MKDIR!$MKDIR$ac_delim
36174MV!$MV$ac_delim
36175RANLIB!$RANLIB$ac_delim
36176RM!$RM$ac_delim
36177SED!$SED$ac_delim
36178TAR!$TAR$ac_delim
36179BINPWD!$BINPWD$ac_delim
36180GRAPHVIZ!$GRAPHVIZ$ac_delim
36181DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036182FDP!$FDP$ac_delim
36183NEATO!$NEATO$ac_delim
36184TWOPI!$TWOPI$ac_delim
36185CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036186GV!$GV$ac_delim
36187DOTTY!$DOTTY$ac_delim
36188PERL!$PERL$ac_delim
36189HAVE_PERL!$HAVE_PERL$ac_delim
36190INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36191INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36192INSTALL_DATA!$INSTALL_DATA$ac_delim
36193BZIP2!$BZIP2$ac_delim
36194DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036195GROFF!$GROFF$ac_delim
36196GZIP!$GZIP$ac_delim
36197POD2HTML!$POD2HTML$ac_delim
36198POD2MAN!$POD2MAN$ac_delim
36199RUNTEST!$RUNTEST$ac_delim
36200TCLSH!$TCLSH$ac_delim
36201ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036202OCAMLC!$OCAMLC$ac_delim
36203OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036204OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036205OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036206GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036207INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36208INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36209CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36210CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36211LIBADD_DL!$LIBADD_DL$ac_delim
36212ECHO!$ECHO$ac_delim
36213AR!$AR$ac_delim
36214STRIP!$STRIP$ac_delim
36215CXXCPP!$CXXCPP$ac_delim
36216F77!$F77$ac_delim
36217FFLAGS!$FFLAGS$ac_delim
36218ac_ct_F77!$ac_ct_F77$ac_delim
36219LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036220LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36221LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036222LLVMGCC!$LLVMGCC$ac_delim
36223LLVMGXX!$LLVMGXX$ac_delim
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000036224NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36225NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036226USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036227USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036228HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036229HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036230ALLOCA!$ALLOCA$ac_delim
36231MMAP_FILE!$MMAP_FILE$ac_delim
36232LLVMCC1!$LLVMCC1$ac_delim
36233LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36234LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036235LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036236LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36237LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036238LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036239SHLIBEXT!$SHLIBEXT$ac_delim
36240LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36241LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36242LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36243LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36244LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36245LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36246LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36247LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36248LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36249LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036250BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36251ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036252OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036253ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036254RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036255RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036256LIBOBJS!$LIBOBJS$ac_delim
36257LTLIBOBJS!$LTLIBOBJS$ac_delim
36258_ACEOF
36259
Daniel Dunbar1fce9482009-11-04 04:32:50 +000036260 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Reid Spencera773bd52006-08-04 18:18:08 +000036261 break
36262 elif $ac_last_try; then
36263 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36264echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36265 { (exit 1); exit 1; }; }
36266 else
36267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36268 fi
36269done
36270
36271ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36272if test -n "$ac_eof"; then
36273 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36274 ac_eof=`expr $ac_eof + 1`
36275fi
36276
36277cat >>$CONFIG_STATUS <<_ACEOF
36278cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36279/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36280_ACEOF
36281sed '
36282s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36283s/^/s,@/; s/!/@,|#_!!_#|/
36284:n
36285t n
36286s/'"$ac_delim"'$/,g/; t
36287s/$/\\/; p
36288N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36289' >>$CONFIG_STATUS <conf$$subs.sed
36290rm -f conf$$subs.sed
36291cat >>$CONFIG_STATUS <<_ACEOF
36292:end
36293s/|#_!!_#|//g
36294CEOF$ac_eof
36295_ACEOF
36296
36297
36298# VPATH may cause trouble with some makes, so we remove $(srcdir),
36299# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36300# trailing colons and then remove the whole line if VPATH becomes empty
36301# (actually we leave an empty line to preserve line numbers).
36302if test "x$srcdir" = x.; then
36303 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36304s/:*\$(srcdir):*/:/
36305s/:*\${srcdir}:*/:/
36306s/:*@srcdir@:*/:/
36307s/^\([^=]*=[ ]*\):*/\1/
36308s/:*$//
36309s/^[^=]*=[ ]*$//
36310}'
36311fi
36312
36313cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036314fi # test -n "$CONFIG_FILES"
36315
Reid Spencera773bd52006-08-04 18:18:08 +000036316
36317for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36318do
36319 case $ac_tag in
36320 :[FHLC]) ac_mode=$ac_tag; continue;;
36321 esac
36322 case $ac_mode$ac_tag in
36323 :[FHL]*:*);;
36324 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36325echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36326 { (exit 1); exit 1; }; };;
36327 :[FH]-) ac_tag=-:-;;
36328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36329 esac
36330 ac_save_IFS=$IFS
36331 IFS=:
36332 set x $ac_tag
36333 IFS=$ac_save_IFS
36334 shift
36335 ac_file=$1
36336 shift
36337
36338 case $ac_mode in
36339 :L) ac_source=$1;;
36340 :[FH])
36341 ac_file_inputs=
36342 for ac_f
36343 do
36344 case $ac_f in
36345 -) ac_f="$tmp/stdin";;
36346 *) # Look for the file first in the build tree, then in the source tree
36347 # (if the path is not absolute). The absolute path cannot be DOS-style,
36348 # because $ac_f cannot contain `:'.
36349 test -f "$ac_f" ||
36350 case $ac_f in
36351 [\\/$]*) false;;
36352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36353 esac ||
36354 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36355echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36356 { (exit 1); exit 1; }; };;
36357 esac
36358 ac_file_inputs="$ac_file_inputs $ac_f"
36359 done
36360
36361 # Let's still pretend it is `configure' which instantiates (i.e., don't
36362 # use $as_me), people would be surprised to read:
36363 # /* config.h. Generated by config.status. */
36364 configure_input="Generated from "`IFS=:
36365 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36366 if test x"$ac_file" != x-; then
36367 configure_input="$ac_file. $configure_input"
36368 { echo "$as_me:$LINENO: creating $ac_file" >&5
36369echo "$as_me: creating $ac_file" >&6;}
36370 fi
36371
36372 case $ac_tag in
36373 *:-:* | *:-) cat >"$tmp/stdin";;
36374 esac
36375 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036376 esac
36377
Reid Spencera773bd52006-08-04 18:18:08 +000036378 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036379$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036380 X"$ac_file" : 'X\(//\)[^/]' \| \
36381 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036383echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36385 s//\1/
36386 q
36387 }
36388 /^X\(\/\/\)[^/].*/{
36389 s//\1/
36390 q
36391 }
36392 /^X\(\/\/\)$/{
36393 s//\1/
36394 q
36395 }
36396 /^X\(\/\).*/{
36397 s//\1/
36398 q
36399 }
36400 s/.*/./; q'`
36401 { as_dir="$ac_dir"
36402 case $as_dir in #(
36403 -*) as_dir=./$as_dir;;
36404 esac
36405 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036406 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036407 while :; do
36408 case $as_dir in #(
36409 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36410 *) as_qdir=$as_dir;;
36411 esac
36412 as_dirs="'$as_qdir' $as_dirs"
36413 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036414$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036415 X"$as_dir" : 'X\(//\)[^/]' \| \
36416 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036418echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36420 s//\1/
36421 q
36422 }
36423 /^X\(\/\/\)[^/].*/{
36424 s//\1/
36425 q
36426 }
36427 /^X\(\/\/\)$/{
36428 s//\1/
36429 q
36430 }
36431 /^X\(\/\).*/{
36432 s//\1/
36433 q
36434 }
36435 s/.*/./; q'`
36436 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036437 done
Reid Spencera773bd52006-08-04 18:18:08 +000036438 test -z "$as_dirs" || eval "mkdir $as_dirs"
36439 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36440echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036441 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036442 ac_builddir=.
36443
Reid Spencera773bd52006-08-04 18:18:08 +000036444case "$ac_dir" in
36445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36446*)
John Criswell7a73b802003-06-30 21:59:07 +000036447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036448 # A ".." for each directory in $ac_dir_suffix.
36449 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36450 case $ac_top_builddir_sub in
36451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36453 esac ;;
36454esac
36455ac_abs_top_builddir=$ac_pwd
36456ac_abs_builddir=$ac_pwd$ac_dir_suffix
36457# for backward compatibility:
36458ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036459
36460case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036461 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036462 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036463 ac_top_srcdir=$ac_top_builddir_sub
36464 ac_abs_top_srcdir=$ac_pwd ;;
36465 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036466 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036467 ac_top_srcdir=$srcdir
36468 ac_abs_top_srcdir=$srcdir ;;
36469 *) # Relative name.
36470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36471 ac_top_srcdir=$ac_top_build_prefix$srcdir
36472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036473esac
Reid Spencera773bd52006-08-04 18:18:08 +000036474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036475
John Criswell7a73b802003-06-30 21:59:07 +000036476
Reid Spencera773bd52006-08-04 18:18:08 +000036477 case $ac_mode in
36478 :F)
36479 #
36480 # CONFIG_FILE
36481 #
John Criswell7a73b802003-06-30 21:59:07 +000036482
36483 case $INSTALL in
36484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036486 esac
John Criswell7a73b802003-06-30 21:59:07 +000036487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036488
36489cat >>$CONFIG_STATUS <<\_ACEOF
36490# If the template does not know about datarootdir, expand it.
36491# FIXME: This hack should be removed a few years after 2.60.
36492ac_datarootdir_hack=; ac_datarootdir_seen=
36493
36494case `sed -n '/datarootdir/ {
36495 p
36496 q
36497}
36498/@datadir@/p
36499/@docdir@/p
36500/@infodir@/p
36501/@localedir@/p
36502/@mandir@/p
36503' $ac_file_inputs` in
36504*datarootdir*) ac_datarootdir_seen=yes;;
36505*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36506 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36507echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36508_ACEOF
36509cat >>$CONFIG_STATUS <<_ACEOF
36510 ac_datarootdir_hack='
36511 s&@datadir@&$datadir&g
36512 s&@docdir@&$docdir&g
36513 s&@infodir@&$infodir&g
36514 s&@localedir@&$localedir&g
36515 s&@mandir@&$mandir&g
36516 s&\\\${datarootdir}&$datarootdir&g' ;;
36517esac
36518_ACEOF
36519
36520# Neutralize VPATH when `$srcdir' = `.'.
36521# Shell code in configure.ac might set extrasub.
36522# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036523cat >>$CONFIG_STATUS <<_ACEOF
36524 sed "$ac_vpsub
36525$extrasub
36526_ACEOF
36527cat >>$CONFIG_STATUS <<\_ACEOF
36528:t
36529/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036530s&@configure_input@&$configure_input&;t t
36531s&@top_builddir@&$ac_top_builddir_sub&;t t
36532s&@srcdir@&$ac_srcdir&;t t
36533s&@abs_srcdir@&$ac_abs_srcdir&;t t
36534s&@top_srcdir@&$ac_top_srcdir&;t t
36535s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36536s&@builddir@&$ac_builddir&;t t
36537s&@abs_builddir@&$ac_abs_builddir&;t t
36538s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36539s&@INSTALL@&$ac_INSTALL&;t t
36540$ac_datarootdir_hack
36541" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036542
Reid Spencera773bd52006-08-04 18:18:08 +000036543test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36546 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36547which seems to be undefined. Please make sure it is defined." >&5
36548echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36549which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036550
Reid Spencera773bd52006-08-04 18:18:08 +000036551 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036552 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036553 -) cat "$tmp/out"; rm -f "$tmp/out";;
36554 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036555 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036556 ;;
36557 :H)
36558 #
36559 # CONFIG_HEADER
36560 #
John Criswell7a73b802003-06-30 21:59:07 +000036561_ACEOF
36562
Reid Spencera773bd52006-08-04 18:18:08 +000036563# Transform confdefs.h into a sed script `conftest.defines', that
36564# substitutes the proper values into config.h.in to produce config.h.
36565rm -f conftest.defines conftest.tail
36566# First, append a space to every undef/define line, to ease matching.
36567echo 's/$/ /' >conftest.defines
36568# Then, protect against being on the right side of a sed subst, or in
36569# an unquoted here document, in config.status. If some macros were
36570# called several times there might be several #defines for the same
36571# symbol, which is useless. But do not sort them, since the last
36572# AC_DEFINE must be honored.
36573ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36574# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36575# NAME is the cpp macro being defined, VALUE is the value it is being given.
36576# PARAMS is the parameter list in the macro definition--in most cases, it's
36577# just an empty string.
36578ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36579ac_dB='\\)[ (].*,\\1define\\2'
36580ac_dC=' '
36581ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036582
Reid Spencera773bd52006-08-04 18:18:08 +000036583uniq confdefs.h |
36584 sed -n '
36585 t rset
36586 :rset
36587 s/^[ ]*#[ ]*define[ ][ ]*//
36588 t ok
36589 d
36590 :ok
36591 s/[\\&,]/\\&/g
36592 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36593 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36594 ' >>conftest.defines
36595
36596# Remove the space that was appended to ease matching.
36597# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036598# example, in the case of _POSIX_SOURCE, which is predefined and required
36599# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036600# (The regexp can be short, since the line contains either #define or #undef.)
36601echo 's/ $//
36602s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036603
Reid Spencera773bd52006-08-04 18:18:08 +000036604# Break up conftest.defines:
36605ac_max_sed_lines=50
36606
36607# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36608# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36609# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36610# et cetera.
36611ac_in='$ac_file_inputs'
36612ac_out='"$tmp/out1"'
36613ac_nxt='"$tmp/out2"'
36614
36615while :
John Criswell7a73b802003-06-30 21:59:07 +000036616do
Reid Spencera773bd52006-08-04 18:18:08 +000036617 # Write a here document:
36618 cat >>$CONFIG_STATUS <<_ACEOF
36619 # First, check the format of the line:
36620 cat >"\$tmp/defines.sed" <<\\CEOF
36621/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36622/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36623b
36624:def
36625_ACEOF
36626 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036627 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036628 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36629 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36630 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36631 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036632 rm -f conftest.defines
36633 mv conftest.tail conftest.defines
36634done
Reid Spencera773bd52006-08-04 18:18:08 +000036635rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036636
Reid Spencera773bd52006-08-04 18:18:08 +000036637echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036638cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036639 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036640 echo "/* $configure_input */" >"$tmp/config.h"
36641 cat "$ac_result" >>"$tmp/config.h"
36642 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36644echo "$as_me: $ac_file is unchanged" >&6;}
36645 else
John Criswell7a73b802003-06-30 21:59:07 +000036646 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036647 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036648 fi
36649 else
Reid Spencera773bd52006-08-04 18:18:08 +000036650 echo "/* $configure_input */"
36651 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036652 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036653 rm -f "$tmp/out12"
36654 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036655
Reid Spencera773bd52006-08-04 18:18:08 +000036656 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36657echo "$as_me: executing $ac_file commands" >&6;}
36658 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036659 esac
John Criswell7a73b802003-06-30 21:59:07 +000036660
Reid Spencera773bd52006-08-04 18:18:08 +000036661
36662 case $ac_file$ac_mode in
36663 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036665 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000036666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036667 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036669 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036671 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036672 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036673 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036674 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036675 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000036676 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036677 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036678 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036679 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036680 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036681 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036683 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036685 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000036686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036687 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000036688 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036689
36690 esac
36691done # for ac_tag
36692
John Criswell7a73b802003-06-30 21:59:07 +000036693
36694{ (exit 0); exit 0; }
36695_ACEOF
36696chmod +x $CONFIG_STATUS
36697ac_clean_files=$ac_clean_files_save
36698
36699
36700# configure is writing to config.log, and then calls config.status.
36701# config.status does its own redirection, appending to config.log.
36702# Unfortunately, on DOS this fails, as config.log is still kept open
36703# by configure, so config.status won't be able to write to it; its
36704# output is simply discarded. So we exec the FD to /dev/null,
36705# effectively closing config.log, so it can be properly (re)opened and
36706# appended to by config.status. When coming back to configure, we
36707# need to make the FD available again.
36708if test "$no_create" != yes; then
36709 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036710 ac_config_status_args=
36711 test "$silent" = yes &&
36712 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036713 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036715 exec 5>>config.log
36716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36717 # would make configure fail if this is the last instruction.
36718 $ac_cs_success || { (exit 1); exit 1; }
36719fi
36720
John Criswell12399a12003-09-30 15:55:44 +000036721#
36722# CONFIG_SUBDIRS section.
36723#
36724if test "$no_recursion" != yes; then
36725
36726 # Remove --cache-file and --srcdir arguments so they do not pile up.
36727 ac_sub_configure_args=
36728 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036729 eval "set x $ac_configure_args"
36730 shift
36731 for ac_arg
36732 do
John Criswell12399a12003-09-30 15:55:44 +000036733 if test -n "$ac_prev"; then
36734 ac_prev=
36735 continue
36736 fi
36737 case $ac_arg in
36738 -cache-file | --cache-file | --cache-fil | --cache-fi \
36739 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36740 ac_prev=cache_file ;;
36741 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36742 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36743 | --c=*)
36744 ;;
36745 --config-cache | -C)
36746 ;;
36747 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36748 ac_prev=srcdir ;;
36749 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36750 ;;
36751 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36752 ac_prev=prefix ;;
36753 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36754 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036755 *)
36756 case $ac_arg in
36757 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36758 esac
36759 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036760 esac
36761 done
36762
36763 # Always prepend --prefix to ensure using the same prefix
36764 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036765 ac_arg="--prefix=$prefix"
36766 case $ac_arg in
36767 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36768 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036769 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036770
36771 ac_popdir=`pwd`
36772 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36773
36774 # Do not complain, so a configure script can configure whichever
36775 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036776 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036777
Reid Spencera773bd52006-08-04 18:18:08 +000036778 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36779 echo "$as_me:$LINENO: $ac_msg" >&5
36780 echo "$ac_msg" >&6
36781 { as_dir="$ac_dir"
36782 case $as_dir in #(
36783 -*) as_dir=./$as_dir;;
36784 esac
36785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036786 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036787 while :; do
36788 case $as_dir in #(
36789 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36790 *) as_qdir=$as_dir;;
36791 esac
36792 as_dirs="'$as_qdir' $as_dirs"
36793 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036795 X"$as_dir" : 'X\(//\)[^/]' \| \
36796 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036798echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36800 s//\1/
36801 q
36802 }
36803 /^X\(\/\/\)[^/].*/{
36804 s//\1/
36805 q
36806 }
36807 /^X\(\/\/\)$/{
36808 s//\1/
36809 q
36810 }
36811 /^X\(\/\).*/{
36812 s//\1/
36813 q
36814 }
36815 s/.*/./; q'`
36816 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036817 done
Reid Spencera773bd52006-08-04 18:18:08 +000036818 test -z "$as_dirs" || eval "mkdir $as_dirs"
36819 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36820echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036821 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036822 ac_builddir=.
36823
Reid Spencera773bd52006-08-04 18:18:08 +000036824case "$ac_dir" in
36825.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36826*)
John Criswell12399a12003-09-30 15:55:44 +000036827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036828 # A ".." for each directory in $ac_dir_suffix.
36829 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36830 case $ac_top_builddir_sub in
36831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36833 esac ;;
36834esac
36835ac_abs_top_builddir=$ac_pwd
36836ac_abs_builddir=$ac_pwd$ac_dir_suffix
36837# for backward compatibility:
36838ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036839
36840case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036841 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036842 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036843 ac_top_srcdir=$ac_top_builddir_sub
36844 ac_abs_top_srcdir=$ac_pwd ;;
36845 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036846 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036847 ac_top_srcdir=$srcdir
36848 ac_abs_top_srcdir=$srcdir ;;
36849 *) # Relative name.
36850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36851 ac_top_srcdir=$ac_top_build_prefix$srcdir
36852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036853esac
Reid Spencera773bd52006-08-04 18:18:08 +000036854ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036855
36856
Reid Spencera773bd52006-08-04 18:18:08 +000036857 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036858
36859 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036860 if test -f "$ac_srcdir/configure.gnu"; then
36861 ac_sub_configure=$ac_srcdir/configure.gnu
36862 elif test -f "$ac_srcdir/configure"; then
36863 ac_sub_configure=$ac_srcdir/configure
36864 elif test -f "$ac_srcdir/configure.in"; then
36865 # This should be Cygnus configure.
36866 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036867 else
36868 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36869echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36870 ac_sub_configure=
36871 fi
36872
36873 # The recursion is here.
36874 if test -n "$ac_sub_configure"; then
36875 # Make the cache file name correct relative to the subdirectory.
36876 case $cache_file in
36877 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036878 *) # Relative name.
36879 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036880 esac
36881
Reid Spencera773bd52006-08-04 18:18:08 +000036882 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36883echo "$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 +000036884 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036885 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36886 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036887 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036888echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36889 { (exit 1); exit 1; }; }
36890 fi
36891
Reid Spencera773bd52006-08-04 18:18:08 +000036892 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036893 done
36894fi
36895